Mini-patch for cccp.c

Thomas Koenig ig25@mvmap66.ciw.uni-karlsruhe.de
Tue Sep 30 06:01:00 GMT 1997


Here's a mini-patch to cccp.c.

Rationale:

- system_header_p as char saves no space, since the struct gets padded
  anyway

- It may slow down processing infinitesimally (converting to/from int)

- using chars as Booleans are a bad idea, anyway

- This patch shuts up a spurious warning by checkergcc (which is why I
  did it in the first place)

Hope I don't have to sign a copyright assignment to the FSF for this
one-liner :-)

Tue Sep 30 14:54:55 CEST 1997  Thomas Koenig  (ig25@rz.uni-karlsruhe.de)

	* cccp.c: change system_header_p in struct file_buf to int

+++ cccp.c	Tue Sep 30 14:44:02 1997
@@ -519,7 +519,7 @@
   /* Object to be freed at end of input at this level.  */
   U_CHAR *free_ptr;
   /* True if this is a header file included using <FILENAME>.  */
-  char system_header_p;
+  int system_header_p;
 } instack[INPUT_STACK_MAX];
 
 static int last_error_tick;	   /* Incremented each time we print it.  */
-- 
Thomas Koenig, Thomas.Koenig@ciw.uni-karlsruhe.de, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.



More information about the Gcc mailing list