]> git.pld-linux.org Git - packages/cproto.git/commitdiff
extern variables
authorkloczek <kloczek@pld-linux.org>
Mon, 28 Jan 2002 07:03:59 +0000 (07:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
The appending of " = {0}" to extern variables
causes trouble for nearly every compiler.
Run cproto -e and it will generate code like

extern const int foo = {0};

Changed files:
    cproto-varargs.patch -> 1.1

cproto-varargs.patch [new file with mode: 0644]

diff --git a/cproto-varargs.patch b/cproto-varargs.patch
new file mode 100644 (file)
index 0000000..01cf75a
--- /dev/null
@@ -0,0 +1,10 @@
+--- cproto-4.6/grammar.y.orig  Tue Jan 20 19:55:55 1998
++++ cproto-4.6/grammar.y       Mon Aug 13 18:39:07 2001
+@@ -835,6 +835,7 @@
+       "__const__",    "__const",
+       "__volatile__", "__volatile",
+       "__inline__",   "__inline",
++      "__builtin_va_list",
+ #endif
+     };
+     int i;
This page took 0.107772 seconds and 4 git commands to generate.