[Python-checkins] CVS: python/dist/src/Modules fcntlmodule.c,2.21,2.22 gcmodule.c,2.2,2.3
Peter Schneider-Kamp
python-dev@python.org
Mon, 10 Jul 2000 10:10:28 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv8179
Modified Files:
fcntlmodule.c gcmodule.c
Log Message:
ANSI-fication
Index: fcntlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/fcntlmodule.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -r2.21 -r2.22
*** fcntlmodule.c 2000/06/30 23:58:05 2.21
--- fcntlmodule.c 2000/07/10 17:10:26 2.22
***************
*** 28,34 ****
static PyObject *
! fcntl_fcntl(self, args)
! PyObject *self; /* Not used */
! PyObject *args;
{
int fd;
--- 28,32 ----
static PyObject *
! fcntl_fcntl(PyObject *self, PyObject *args)
{
int fd;
***************
*** 88,94 ****
static PyObject *
! fcntl_ioctl(self, args)
! PyObject *self; /* Not used */
! PyObject *args;
{
int fd;
--- 86,90 ----
static PyObject *
! fcntl_ioctl(PyObject *self, PyObject *args)
{
int fd;
***************
*** 147,153 ****
static PyObject *
! fcntl_flock(self, args)
! PyObject *self; /* Not used */
! PyObject *args;
{
int fd;
--- 143,147 ----
static PyObject *
! fcntl_flock(PyObject *self, PyObject *args)
{
int fd;
***************
*** 207,213 ****
/* lockf(fd, operation) */
static PyObject *
! fcntl_lockf(self, args)
! PyObject *self; /* Not used */
! PyObject *args;
{
int fd, code, ret, whence = 0;
--- 201,205 ----
/* lockf(fd, operation) */
static PyObject *
! fcntl_lockf(PyObject *self, PyObject *args)
{
int fd, code, ret, whence = 0;
***************
*** 300,307 ****
static int
! ins(d, symbol, value)
! PyObject* d;
! char* symbol;
! long value;
{
PyObject* v = PyInt_FromLong(value);
--- 292,296 ----
static int
! ins(PyObject* d, char* symbol, long value)
{
PyObject* v = PyInt_FromLong(value);
***************
*** 314,319 ****
static int
! all_ins(d)
! PyObject* d;
{
if (ins(d, "LOCK_SH", (long)LOCK_SH)) return -1;
--- 303,307 ----
static int
! all_ins(PyObject* d)
{
if (ins(d, "LOCK_SH", (long)LOCK_SH)) return -1;
Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.2
retrieving revision 2.3
diff -C2 -r2.2 -r2.3
*** gcmodule.c 2000/07/10 05:37:39 2.2
--- gcmodule.c 2000/07/10 17:10:26 2.3
***************
*** 528,534 ****
static PyObject *
! Py_collect(self, args)
! PyObject *self;
! PyObject *args;
{
long n;
--- 528,532 ----
static PyObject *
! Py_collect(PyObject *self, PyObject *args)
{
long n;
***************
*** 562,568 ****
static PyObject *
! Py_set_debug(self, args)
! PyObject *self;
! PyObject *args;
{
if (!PyArg_ParseTuple(args, "l", &debug))
--- 560,564 ----
static PyObject *
! Py_set_debug(PyObject *self, PyObject *args)
{
if (!PyArg_ParseTuple(args, "l", &debug))
***************
*** 580,586 ****
static PyObject *
! Py_get_debug(self, args)
! PyObject *self;
! PyObject *args;
{
if(!PyArg_ParseTuple(args, "")) /* no args */
--- 576,580 ----
static PyObject *
! Py_get_debug(PyObject *self, PyObject *args)
{
if(!PyArg_ParseTuple(args, "")) /* no args */
***************
*** 598,604 ****
static PyObject *
! Py_set_thresh(self, args)
! PyObject *self;
! PyObject *args;
{
if (!PyArg_ParseTuple(args, "i|ii", &threshold0,
--- 592,596 ----
static PyObject *
! Py_set_thresh(PyObject *self, PyObject *args)
{
if (!PyArg_ParseTuple(args, "i|ii", &threshold0,
***************
*** 617,623 ****
static PyObject *
! Py_get_thresh(self, args)
! PyObject *self;
! PyObject *args;
{
if(!PyArg_ParseTuple(args, "")) /* no args */
--- 609,613 ----
static PyObject *
! Py_get_thresh(PyObject *self, PyObject *args)
{
if(!PyArg_ParseTuple(args, "")) /* no args */