This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fixincludes] fixinc.svr4: Remove obsolete code.
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: bkorb at veritas dot com, gcc-patches at gcc dot gnu dot org
- Date: Sun, 27 Jul 2003 20:49:17 -0400
- Subject: [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