This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[fixincludes] fixinc.svr4: Remove obsolete code.


The junk after #else and #endif is now ignored by cpp for system headers;
accordingly this is unneeded cruft.  OK for mainline?

	* fixinc/fixinc.svr4: Remove now-unnecessary cleanup of junk after
	#else and #endif directives.

--- fixinc.svr4.alpha	2003-07-27 20:27:42.000000000 -0400
+++ fixinc.svr4	2003-07-27 20:30:31.000000000 -0400
@@ -170,10 +170,6 @@
 # The change of u_char, etc, to u_int
 # applies to bit fields.
 	sed -e '
-	  s%^\([ 	]*#[ 	]*else\)[ 	]*/[^*].*%\1%
-	  s%^\([ 	]*#[ 	]*else\)[ 	]*[^/ 	].*%\1%
-	  s%^\([ 	]*#[ 	]*endif\)[ 	]*/[^*].*%\1%
-	  s%^\([ 	]*#[ 	]*endif\)[ 	]*[^/ 	].*%\1%
   	  s/#lint(on)/defined(lint)/g
   	  s/#lint(off)/!defined(lint)/g
   	  s/#machine(\([^)]*\))/defined(__\1__)/g

-- 
Nathanael Nerode  <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]