Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

software: stdarg.h: cleanup and add va_copy

  • Loading branch information...
commit 964dc8050c8ac5b1f307068d6379d0a8f72d7b6e 1 parent 5fe1aad
Sébastien Bourdeauducq authored June 02, 2012

Showing 1 changed file with 5 additions and 14 deletions. Show diff stats Hide diff stats

  1. 19  software/include/base/stdarg.h
19  software/include/base/stdarg.h
@@ -3,20 +3,11 @@
3 3
 
4 4
 #include <stdlib.h>
5 5
 
6  
-#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
7  
-#define va_start(v,l) __builtin_va_start((v),l)
8  
-#else
9  
-#define va_start(v,l) __builtin_stdarg_start((v),l)
10  
-#endif
11  
-
12  
-#define va_arg(ap, type) \
13  
-	__builtin_va_arg((ap), type)
14  
-
15  
-#define va_end(ap) \
16  
-	__builtin_va_end(ap)
17  
-
18  
-#define va_list \
19  
-	__builtin_va_list
  6
+#define va_start(v, l) __builtin_va_start((v), l)
  7
+#define va_arg(ap, type) __builtin_va_arg((ap), type)
  8
+#define va_copy(aq, ap) __builtin_va_copy((aq), (ap))
  9
+#define va_end(ap) __builtin_va_end(ap)
  10
+#define va_list __builtin_va_list
20 11
 
21 12
 int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
22 13
 int vscnprintf(char *buf, size_t size, const char *fmt, va_list args);

0 notes on commit 964dc80

Please sign in to comment.
Something went wrong with that request. Please try again.