diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-09-21 03:39:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-09-21 03:39:33 (GMT) |
commit | 0c21214f3e583d541227df2239de377e796b55fa (patch) | |
tree | 154bfb91be848e117f6721523750bdc4afff8b71 /Python/getargs.c | |
parent | ec2319c46d11e8f486e7def785339af5415a3559 (diff) | |
download | cpython-0c21214f3e583d541227df2239de377e796b55fa.zip cpython-0c21214f3e583d541227df2239de377e796b55fa.tar.gz cpython-0c21214f3e583d541227df2239de377e796b55fa.tar.bz2 |
replace usage of Py_VA_COPY with the (C99) standard va_copy
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 87a5d26..cd80eda 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -142,7 +142,7 @@ PyArg_VaParse(PyObject *args, const char *format, va_list va) { va_list lva; - Py_VA_COPY(lva, va); + va_copy(lva, va); return vgetargs1(args, format, &lva, 0); } @@ -152,7 +152,7 @@ _PyArg_VaParse_SizeT(PyObject *args, const char *format, va_list va) { va_list lva; - Py_VA_COPY(lva, va); + va_copy(lva, va); return vgetargs1(args, format, &lva, FLAG_SIZE_T); } @@ -1402,7 +1402,7 @@ PyArg_VaParseTupleAndKeywords(PyObject *args, return 0; } - Py_VA_COPY(lva, va); + va_copy(lva, va); retval = vgetargskeywords(args, keywords, format, kwlist, &lva, 0); return retval; @@ -1426,7 +1426,7 @@ _PyArg_VaParseTupleAndKeywords_SizeT(PyObject *args, return 0; } - Py_VA_COPY(lva, va); + va_copy(lva, va); retval = vgetargskeywords(args, keywords, format, kwlist, &lva, FLAG_SIZE_T); @@ -1531,7 +1531,7 @@ _PyArg_VaParseTupleAndKeywordsFast(PyObject *args, PyObject *keywords, return 0; } - Py_VA_COPY(lva, va); + va_copy(lva, va); retval = vgetargskeywordsfast(args, keywords, parser, &lva, 0); return retval; @@ -1552,7 +1552,7 @@ _PyArg_VaParseTupleAndKeywordsFast_SizeT(PyObject *args, PyObject *keywords, return 0; } - Py_VA_COPY(lva, va); + va_copy(lva, va); retval = vgetargskeywordsfast(args, keywords, parser, &lva, FLAG_SIZE_T); return retval; |