This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fixheader patch
- From: Kean Johnston <jkj at sco dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Nov 2005 10:51:40 -0800
- Subject: fixheader patch
- Reply-to: jkj at sco dot com
All,
Attached is a patch that fixes fixheader. The code was inserting
the directory "X11/" by way of example, but that example needs to
go, becuase if any target defines FIXPROTO_IGNORE_LIST, they
get that example directory as well, which is certainly not the
intention. Also, make it such that the list defined by
FIXPROTO_IGNORE_LIST does not need to be comma-terminated in the
header file, which is a less-than-obvious usage of such macros.
Kean
2005-11-30 Kean Johnston <jkj@sco.com>
* fix-header.c (files_to_ignore): Dont include X11 if host defines
an ignore list, and make it such that the host list does not need
to be terminated with a comma in teh header file, which is non-
intuitive.
Index: fix-header.c
===================================================================
--- fix-header.c (revision 107723)
+++ fix-header.c (working copy)
@@ -120,9 +120,8 @@
earlier in fixproto, but this is simpler and easier to customize.) */
static const char *const files_to_ignore[] = {
- "X11/",
FIXPROTO_IGNORE_LIST
- 0
+ , 0
};
#endif