Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
75d2d94e
Commit
75d2d94e
authored
Jul 28, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #554716: Use __va_copy where available.
parent
09c35f78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
Objects/abstract.c
Objects/abstract.c
+4
-0
Objects/stringobject.c
Objects/stringobject.c
+4
-0
Python/getargs.c
Python/getargs.c
+4
-0
Python/modsupport.c
Python/modsupport.c
+4
-0
No files found.
Objects/abstract.c
View file @
75d2d94e
...
...
@@ -1792,8 +1792,12 @@ objargs_mktuple(va_list va)
#ifdef VA_LIST_IS_ARRAY
memcpy
(
countva
,
va
,
sizeof
(
va_list
));
#else
#ifdef __va_copy
__va_copy
(
countva
,
va
);
#else
countva
=
va
;
#endif
#endif
while
(((
PyObject
*
)
va_arg
(
countva
,
PyObject
*
))
!=
NULL
)
...
...
Objects/stringobject.c
View file @
75d2d94e
...
...
@@ -155,8 +155,12 @@ PyString_FromFormatV(const char *format, va_list vargs)
#ifdef VA_LIST_IS_ARRAY
memcpy
(
count
,
vargs
,
sizeof
(
va_list
));
#else
#ifdef __va_copy
__va_copy
(
count
,
vargs
);
#else
count
=
vargs
;
#endif
#endif
/* step 1: figure out how large a buffer we need */
for
(
f
=
format
;
*
f
;
f
++
)
{
...
...
Python/getargs.c
View file @
75d2d94e
...
...
@@ -60,8 +60,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
);
...
...
Python/modsupport.c
View file @
75d2d94e
...
...
@@ -417,8 +417,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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment