diff options
author | mike <mike@FreeBSD.org> | 2002-09-18 07:33:16 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-18 07:33:16 +0000 |
commit | e35c51c74c9136c275aff6e68216801a7262f546 (patch) | |
tree | d9550a771c43d65b540d4e46a2dadaefba483323 /sys | |
parent | 397f4349cf97eb654d15023a7c4b6b06fd206725 (diff) | |
download | FreeBSD-src-e35c51c74c9136c275aff6e68216801a7262f546.zip FreeBSD-src-e35c51c74c9136c275aff6e68216801a7262f546.tar.gz |
Implement C99's va_copy() macro.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/include/stdarg.h | 3 | ||||
-rw-r--r-- | sys/amd64/include/stdarg.h | 3 | ||||
-rw-r--r-- | sys/i386/include/stdarg.h | 3 | ||||
-rw-r--r-- | sys/ia64/include/stdarg.h | 3 | ||||
-rw-r--r-- | sys/powerpc/include/stdarg.h | 3 | ||||
-rw-r--r-- | sys/sparc64/include/stdarg.h | 3 |
6 files changed, 18 insertions, 0 deletions
diff --git a/sys/alpha/include/stdarg.h b/sys/alpha/include/stdarg.h index 5ecd44b..b14b686 100644 --- a/sys/alpha/include/stdarg.h +++ b/sys/alpha/include/stdarg.h @@ -51,6 +51,9 @@ typedef __va_list va_list; #define va_arg(ap, type) \ __builtin_va_arg((ap), type) +#define va_copy(dest, src) \ + __builtin_va_copy((dest), (src)) + #define va_end(ap) \ __builtin_va_end(ap) diff --git a/sys/amd64/include/stdarg.h b/sys/amd64/include/stdarg.h index 4048d13..b7b1954 100644 --- a/sys/amd64/include/stdarg.h +++ b/sys/amd64/include/stdarg.h @@ -41,6 +41,9 @@ typedef __va_list va_list; #define va_arg(ap, type) \ __builtin_va_arg((ap), type) +#define va_copy(dest, src) \ + __builtin_va_copy((dest), (src)) + #define va_end(ap) \ __builtin_va_end(ap) diff --git a/sys/i386/include/stdarg.h b/sys/i386/include/stdarg.h index 1432c6c..3ce2f37 100644 --- a/sys/i386/include/stdarg.h +++ b/sys/i386/include/stdarg.h @@ -50,6 +50,9 @@ typedef __va_list va_list; #define va_arg(ap, type) \ __builtin_va_arg((ap), type) +#define va_copy(dest, src) \ + __builtin_va_copy((dest), (src)) + #define va_end(ap) \ __builtin_va_end(ap) diff --git a/sys/ia64/include/stdarg.h b/sys/ia64/include/stdarg.h index f48a20b..df9725d 100644 --- a/sys/ia64/include/stdarg.h +++ b/sys/ia64/include/stdarg.h @@ -50,6 +50,9 @@ typedef __va_list va_list; #define va_arg(ap, type) \ __builtin_va_arg((ap), type) +#define va_copy(dest, src) \ + __builtin_va_copy((dest), (src)) + #define va_end(ap) \ __builtin_va_end(ap) diff --git a/sys/powerpc/include/stdarg.h b/sys/powerpc/include/stdarg.h index f71971d..5b5bcb3 100644 --- a/sys/powerpc/include/stdarg.h +++ b/sys/powerpc/include/stdarg.h @@ -43,6 +43,9 @@ typedef __va_list va_list; #define va_arg(ap, type) \ __builtin_va_arg((ap), type) +#define va_copy(dest, src) \ + __builtin_va_copy((dest), (src)) + #define va_end(ap) \ __builtin_va_end(ap) diff --git a/sys/sparc64/include/stdarg.h b/sys/sparc64/include/stdarg.h index f81a67c..b148b71 100644 --- a/sys/sparc64/include/stdarg.h +++ b/sys/sparc64/include/stdarg.h @@ -53,6 +53,9 @@ typedef __va_list va_list; #define va_arg(ap, type) \ __builtin_va_arg((ap), type) +#define va_copy(dest, src) \ + __builtin_va_copy((dest), (src)) + #define va_end(ap) \ __builtin_va_end(ap) |