diff Python/modsupport.c @ 63924:9108e7dcd7d8

Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 va_copy, but available on all python platforms. Untabified a few unrelated files.
author Alexander Belopolsky <alexander.belopolsky@gmail.com>
date Wed, 11 Aug 2010 17:31:17 +0000
parents 600c23127207
children 3c9232a684ae
line wrap: on
line diff
--- a/Python/modsupport.c	Wed Aug 11 15:59:57 2010 +0000
+++ b/Python/modsupport.c	Wed Aug 11 17:31:17 2010 +0000
@@ -456,15 +456,7 @@
     int n = countformat(f, '\0');
     va_list lva;
 
-#ifdef VA_LIST_IS_ARRAY
-    memcpy(lva, va, sizeof(va_list));
-#else
-#ifdef __va_copy
-    __va_copy(lva, va);
-#else
-    lva = va;
-#endif
-#endif
+        Py_VA_COPY(lva, va);
 
     if (n < 0)
         return NULL;