[Python-checkins] CVS: python/dist/src/Python getargs.c,2.67,2.68

Fred L. Drake fdrake@users.sourceforge.net
2001年10月23日 07:41:10 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv2941
Modified Files:
	getargs.c 
Log Message:
Style conformance: function name begins a new line *consistently*.
Make convertbuffer() static like the prototype says. Not used elsewhere.
Index: getargs.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/getargs.c,v
retrieving revision 2.67
retrieving revision 2.68
diff -C2 -d -r2.67 -r2.68
*** getargs.c	2001年10月11日 14:40:37	2.67
--- getargs.c	2001年10月23日 14:41:08	2.68
***************
*** 32,36 ****
 static char *skipitem(char **, va_list *);
 
! int PyArg_Parse(PyObject *args, char *format, ...)
 {
 	int retval;
--- 32,37 ----
 static char *skipitem(char **, va_list *);
 
! int
! PyArg_Parse(PyObject *args, char *format, ...)
 {
 	int retval;
***************
*** 44,48 ****
 
 
! int PyArg_ParseTuple(PyObject *args, char *format, ...)
 {
 	int retval;
--- 45,50 ----
 
 
! int
! PyArg_ParseTuple(PyObject *args, char *format, ...)
 {
 	int retval;
***************
*** 972,976 ****
 }
 
! int convertbuffer(PyObject *arg, void **p, char **errmsg)
 {
 	PyBufferProcs *pb = arg->ob_type->tp_as_buffer;
--- 974,979 ----
 }
 
! static int
! convertbuffer(PyObject *arg, void **p, char **errmsg)
 {
 	PyBufferProcs *pb = arg->ob_type->tp_as_buffer;
***************
*** 995,1002 ****
 Geoff Philbrick <philbric@delphi.hks.com> */
 
! int PyArg_ParseTupleAndKeywords(PyObject *args,
! 				PyObject *keywords,
! 				char *format, 
! 				char **kwlist, ...)
 {
 	int retval;
--- 998,1006 ----
 Geoff Philbrick <philbric@delphi.hks.com> */
 
! int
! PyArg_ParseTupleAndKeywords(PyObject *args,
! 			 PyObject *keywords,
! 			 char *format, 
! 			 char **kwlist, ...)
 {
 	int retval;

AltStyle によって変換されたページ (->オリジナル) /