#if instead of #ifdef in igc.c

Ralph Giles <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Igor added some debug code to igc.c v1.11 protected with #if DEBUG instead of the usual 
#ifdef DEBUG. The attached patch normalizes these lines, which makes the fix for the 
(unrelated) macos bug 686844 simpler.

Any objections?

 -r

_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
igc-ifdef.txt (text/plain, 659 B)
Index: igc.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/igc.c,v
retrieving revision 1.11
diff -u -r1.11 igc.c
--- igc.c	27 Oct 2003 08:02:21 -0000	1.11
+++ igc.c	19 Nov 2003 23:57:28 -0000
@@ -1188,7 +1188,7 @@
     if_debug_chunk('6', "[6]relocating in chunk", cp);
     SCAN_CHUNK_OBJECTS(cp)
 	DO_ALL
-#if DEBUG
+#ifdef DEBUG
 	pstate->container = cp;
 #endif
     /* We need to relocate the pointers in an object iff */
@@ -1208,7 +1208,7 @@
 	    if (proc != 0)
 		(*proc) (pre + 1, size, pre->o_type, pstate);
 	}
-#if DEBUG
+#ifdef DEBUG
 	pstate->container = 0;
 #endif
     END_OBJECTS_SCAN
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.