diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-23 14:41:08 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-23 14:41:08 (GMT) |
commit | 563dfc2f73a7d171b6712ce7bbbc51350b832e04 (patch) | |
tree | 5b3888a542c683a97634a655a5c597d9d6f29a38 /Python | |
parent | 429a86af5b07ae365c170c35fb26c4b637146925 (diff) | |
download | cpython-563dfc2f73a7d171b6712ce7bbbc51350b832e04.zip cpython-563dfc2f73a7d171b6712ce7bbbc51350b832e04.tar.gz cpython-563dfc2f73a7d171b6712ce7bbbc51350b832e04.tar.bz2 |
Style conformance: function name begins a new line *consistently*.
Make convertbuffer() static like the prototype says. Not used elsewhere.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 0acb23a..592d247 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -31,7 +31,8 @@ static int vgetargskeywords(PyObject *, PyObject *, char *, char **, va_list *); static char *skipitem(char **, va_list *); -int PyArg_Parse(PyObject *args, char *format, ...) +int +PyArg_Parse(PyObject *args, char *format, ...) { int retval; va_list va; @@ -43,7 +44,8 @@ int PyArg_Parse(PyObject *args, char *format, ...) } -int PyArg_ParseTuple(PyObject *args, char *format, ...) +int +PyArg_ParseTuple(PyObject *args, char *format, ...) { int retval; va_list va; @@ -971,7 +973,8 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf) return NULL; } -int convertbuffer(PyObject *arg, void **p, char **errmsg) +static int +convertbuffer(PyObject *arg, void **p, char **errmsg) { PyBufferProcs *pb = arg->ob_type->tp_as_buffer; int count; @@ -994,10 +997,11 @@ int convertbuffer(PyObject *arg, void **p, char **errmsg) /* Support for keyword arguments donated by Geoff Philbrick <philbric@delphi.hks.com> */ -int PyArg_ParseTupleAndKeywords(PyObject *args, - PyObject *keywords, - char *format, - char **kwlist, ...) +int +PyArg_ParseTupleAndKeywords(PyObject *args, + PyObject *keywords, + char *format, + char **kwlist, ...) { int retval; va_list va; |