Skip to content

Commit 563dfc2

Browse files
committed
Style conformance: function name begins a new line *consistently*.
Make convertbuffer() static like the prototype says. Not used elsewhere.
1 parent 429a86a commit 563dfc2

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

Python/getargs.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ static int vgetargskeywords(PyObject *, PyObject *,
3131
char *, char **, va_list *);
3232
static char *skipitem(char **, va_list *);
3333

34-
int PyArg_Parse(PyObject *args, char *format, ...)
34+
int
35+
PyArg_Parse(PyObject *args, char *format, ...)
3536
{
3637
int retval;
3738
va_list va;
@@ -43,7 +44,8 @@ int PyArg_Parse(PyObject *args, char *format, ...)
4344
}
4445

4546

46-
int PyArg_ParseTuple(PyObject *args, char *format, ...)
47+
int
48+
PyArg_ParseTuple(PyObject *args, char *format, ...)
4749
{
4850
int retval;
4951
va_list va;
@@ -971,7 +973,8 @@ convertsimple(PyObject *arg, char **p_format, va_list *p_va, char *msgbuf)
971973
return NULL;
972974
}
973975

974-
int convertbuffer(PyObject *arg, void **p, char **errmsg)
976+
static int
977+
convertbuffer(PyObject *arg, void **p, char **errmsg)
975978
{
976979
PyBufferProcs *pb = arg->ob_type->tp_as_buffer;
977980
int count;
@@ -994,10 +997,11 @@ int convertbuffer(PyObject *arg, void **p, char **errmsg)
994997
/* Support for keyword arguments donated by
995998
Geoff Philbrick <philbric@delphi.hks.com> */
996999

997-
int PyArg_ParseTupleAndKeywords(PyObject *args,
998-
PyObject *keywords,
999-
char *format,
1000-
char **kwlist, ...)
1000+
int
1001+
PyArg_ParseTupleAndKeywords(PyObject *args,
1002+
PyObject *keywords,
1003+
char *format,
1004+
char **kwlist, ...)
10011005
{
10021006
int retval;
10031007
va_list va;

0 commit comments

Comments
 (0)