summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 19:10:39 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-27 19:10:39 +0000
commit68036f05fcb98c2ed805cd29c8b914fe436885e8 (patch)
treed23e7ce6ba6bad4bc0e3bcf6fa3f63d9e2844c33 /include
parentdb1b818ccb51fd14d72ad01cebbdce5c25102286 (diff)
downloadgcc-68036f05fcb98c2ed805cd29c8b914fe436885e8.tar.gz
include:
* ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses. libiberty: * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45204 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/ansidecl.h8
2 files changed, 8 insertions, 4 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index e7a3bcf7822..23ba4fb7983 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.
+
2001-08-23 Lars Brinkhoff <lars@nocrew.org>
* dyn-string.h, fibheap.h, partition.h, sort.h, splay-tree.h:
diff --git a/include/ansidecl.h b/include/ansidecl.h
index b7c4c40abff..4c63fa66e49 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -152,8 +152,8 @@ So instead we use the macro below and test it against specific values. */
/* "struct Qdmy" swallows the semicolon after VA_OPEN/VA_FIXEDARG's
use without inhibiting further decls and without declaring an
actual variable. */
-#define VA_OPEN(AP, VAR) va_list AP; va_start(AP, VAR); { struct Qdmy
-#define VA_CLOSE(AP) } va_end(AP)
+#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP, VAR); { struct Qdmy
+#define VA_CLOSE(AP) } va_end(AP); }
#define VA_FIXEDARG(AP, T, N) struct Qdmy
#undef const
@@ -199,8 +199,8 @@ So instead we use the macro below and test it against specific values. */
#define VPARAMS(args) (va_alist) va_dcl
#define VA_START(va_list, var) va_start(va_list)
-#define VA_OPEN(AP, VAR) va_list AP; va_start(AP); { struct Qdmy
-#define VA_CLOSE(AP) } va_end(AP)
+#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP); { struct Qdmy
+#define VA_CLOSE(AP) } va_end(AP); }
#define VA_FIXEDARG(AP, TYPE, NAME) TYPE NAME = va_arg(AP, TYPE)
/* some systems define these in header files for non-ansi mode */