This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]

[PATCH] C99 initializers for sysdeps/generic/siglist.c


Hi.

Here's a patch for this file. This patch changes the macro so the
output is the C99 array initializer format.

2002-12-15  Art Haas  <ahaas@airmail.net>

	* sysdeps/generic/siglist.c: Convert to C99 initializers.

Index: sysdeps/generic/siglist.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/generic/siglist.c,v
retrieving revision 1.4
diff -u -r1.4 siglist.c
--- sysdeps/generic/siglist.c	4 Aug 2002 23:26:49 -0000	1.4
+++ sysdeps/generic/siglist.c	16 Dec 2002 01:25:23 -0000
@@ -23,7 +23,7 @@
 
 const char *const _sys_siglist[NSIG] =
 {
-#define init_sig(sig, abbrev, desc)   [sig] desc,
+#define init_sig(sig, abbrev, desc)   [sig] = desc,
 #include <siglist.h>
 #undef init_sig
 };
@@ -32,7 +32,7 @@
 
 const char *const _sys_sigabbrev[NSIG] =
 {
-#define init_sig(sig, abbrev, desc)   [sig] abbrev,
+#define init_sig(sig, abbrev, desc)   [sig] = abbrev,
 #include <siglist.h>
 #undef init_sig
 };
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759


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