CPP PATCH: T_VOID

Mark Mitchell mark@codesourcery.com
Mon Oct 30 00:43:00 GMT 2000


When the grand cpp renaming took place, this spot (conditionally
compiled in on Solaris) got missed.  (Note that this is why making
feature macros have 0-1 values, and then writing code with `if',
rather than `#ifdef', is a Good Thing. :-))

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-10-30  Mark Mitchell  <mark@codesourcery.com>

	* cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.

Index: cppmacro.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cppmacro.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -c -p -r1.14 -r1.15
*** cppmacro.c	2000/10/29 11:37:18	1.14
--- cppmacro.c	2000/10/30 08:41:23	1.15
*************** builtin_macro (pfile, token)
*** 191,197 ****
  
  #ifdef STDC_0_IN_SYSTEM_HEADERS
  	if (CPP_IN_SYSTEM_HEADER (pfile)
! 	    && pfile->spec_nodes.n__STRICT_ANSI__->type == T_VOID)
  	  stdc = 0;
  #endif
  	make_number_token (pfile, token, stdc);
--- 191,197 ----
  
  #ifdef STDC_0_IN_SYSTEM_HEADERS
  	if (CPP_IN_SYSTEM_HEADER (pfile)
! 	    && pfile->spec_nodes.n__STRICT_ANSI__->type == NT_VOID)
  	  stdc = 0;
  #endif
  	make_number_token (pfile, token, stdc);


More information about the Gcc-patches mailing list