diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2002-07-28 10:21:31 (GMT) |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2002-07-28 10:21:31 (GMT) |
| commit | 59b5b4720b9bb11e0dcbb4cb255c6cc571df0a5c (patch) | |
| tree | 4657b04773da19b3895fdd5841eb01a62ab8d909 /Python | |
| parent | 086fa07f6878d9678c9efe8a728a99dfc3e0d292 (diff) | |
| download | cpython-59b5b4720b9bb11e0dcbb4cb255c6cc571df0a5c.zip cpython-59b5b4720b9bb11e0dcbb4cb255c6cc571df0a5c.tar.gz cpython-59b5b4720b9bb11e0dcbb4cb255c6cc571df0a5c.tar.bz2 | |
Patch #554716: Use __va_copy where available.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/getargs.c | 4 | ||||
| -rw-r--r-- | Python/modsupport.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 9df2a2e..08b79e4 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -61,8 +61,12 @@ PyArg_VaParse(PyObject *args, char *format, va_list va) #ifdef VA_LIST_IS_ARRAY memcpy(lva, va, sizeof(va_list)); #else +#ifdef __va_copy + __va_copy(lva, va); +#else lva = va; #endif +#endif return vgetargs1(args, format, &lva, 0); } diff --git a/Python/modsupport.c b/Python/modsupport.c index cff9a02..437469b 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -411,8 +411,12 @@ Py_VaBuildValue(char *format, va_list va) #ifdef VA_LIST_IS_ARRAY memcpy(lva, va, sizeof(va_list)); #else +#ifdef __va_copy + __va_copy(lva, va); +#else lva = va; #endif +#endif if (n < 0) return NULL; |
