Some uses of va_dcl are accompanied by semicolons while it seems they
shouldn't be:
http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/basetrf2/varargs.htm
http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWaman/hman3head/varargs.3head.html
The diff includes all such instances I found with grep, but I'm
not sure if the changes I made are correct, for I've never had access
to a pre-standard C environment :(
How rigorously does GLOBAL aim to keep K&R compatibility? The ##
operator's already broken it, and appearently no one has complained
about the va_dcl so far...
--
Jun Inoue
[EMAIL PROTECTED]
diff -ur global/gtags-parser/php.l w.global/gtags-parser/php.l
--- global/gtags-parser/php.l 2005-03-25 18:30:04.887218920 -0800
+++ w.global/gtags-parser/php.l 2005-04-01 21:50:29.150799232 -0800
@@ -78,7 +78,7 @@
#else
debug_print(s, va_alist)
const char *s;
-va_dcl;
+va_dcl
#endif
{
va_list ap;
diff -ur global/libutil/die.c w.global/libutil/die.c
--- global/libutil/die.c 2005-03-25 18:30:04.938211168 -0800
+++ w.global/libutil/die.c 2005-04-01 21:50:29.160797712 -0800
@@ -61,7 +61,7 @@
#else
die(s, va_alist)
char *s;
- va_dcl;
+ va_dcl
#endif
{
va_list ap;
@@ -91,7 +91,7 @@
die_with_code(n, s, va_alist)
int n;
char *s;
- va_dcl;
+ va_dcl
#endif
{
va_list ap;
@@ -119,7 +119,7 @@
#else
message(s, va_alist)
char *s;
- va_dcl;
+ va_dcl
#endif
{
va_list ap;
@@ -141,7 +141,7 @@
#else
warning(s, va_alist)
char *s;
- va_dcl;
+ va_dcl
#endif
{
va_list ap;
diff -ur global/libutil/strbuf.c w.global/libutil/strbuf.c
--- global/libutil/strbuf.c 2005-03-25 18:30:04.940210864 -0800
+++ w.global/libutil/strbuf.c 2005-04-01 21:50:29.172795888 -0800
@@ -323,7 +323,7 @@
strbuf_sprintf(sb, s, va_alist)
STRBUF *sb;
char *s;
- va_dcl;
+ va_dcl
#endif
{
static char buf[1024];
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global