[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.34,2.35
A.M. Kuchling
python-dev@python.org
Wed, 2 Aug 2000 19:04:08 -0700
- Previous message: [Python-checkins] CVS: python/dist/src README,1.85,1.85.2.1
- Next message: [Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.13,2.14 binascii.c,2.22,2.23 cStringIO.c,2.24,2.25 cmathmodule.c,2.19,2.20 md5module.c,2.20,2.21 newmodule.c,2.25,2.26 readline.c,2.25,2.26 socketmodule.c,1.124,1.125 soundex.c,2.8,2.9 stropmodule.c,2.70,2.71 threadmodule.c,2.35,2.36 timemodule.c,2.98,2.99
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17704
Modified Files:
zlibmodule.c
Log Message:
Use METH_VARARGS instead of numeric constant 1
Index: zlibmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zlibmodule.c,v
retrieving revision 2.34
retrieving revision 2.35
diff -C2 -r2.34 -r2.35
*** zlibmodule.c 2000/07/21 06:00:07 2.34
--- zlibmodule.c 2000/08/03 02:04:05 2.35
***************
*** 611,615 ****
PyObject *RetVal;
! if (!PyArg_NoArgs(args))
return NULL;
if (!(RetVal = PyString_FromStringAndSize(NULL, DEFAULTALLOC)))
--- 611,615 ----
PyObject *RetVal;
! if (!PyArg_ParseTuple(args, ""))
return NULL;
if (!(RetVal = PyString_FromStringAndSize(NULL, DEFAULTALLOC)))
***************
*** 676,681 ****
static PyMethodDef comp_methods[] =
{
! {"compress", (binaryfunc)PyZlib_objcompress, 1, comp_compress__doc__},
! {"flush", (binaryfunc)PyZlib_flush, 1, comp_flush__doc__},
{NULL, NULL}
};
--- 676,683 ----
static PyMethodDef comp_methods[] =
{
! {"compress", (binaryfunc)PyZlib_objcompress,
! METH_VARARGS, comp_compress__doc__},
! {"flush", (binaryfunc)PyZlib_flush,
! METH_VARARGS, comp_flush__doc__},
{NULL, NULL}
};
***************
*** 683,688 ****
static PyMethodDef Decomp_methods[] =
{
! {"decompress", (binaryfunc)PyZlib_objdecompress, 1, decomp_decompress__doc__},
! {"flush", (binaryfunc)PyZlib_unflush, 0, decomp_flush__doc__},
{NULL, NULL}
};
--- 685,692 ----
static PyMethodDef Decomp_methods[] =
{
! {"decompress", (binaryfunc)PyZlib_objdecompress,
! METH_VARARGS, decomp_decompress__doc__},
! {"flush", (binaryfunc)PyZlib_unflush,
! METH_VARARGS, decomp_flush__doc__},
{NULL, NULL}
};
***************
*** 751,761 ****
static PyMethodDef zlib_methods[] =
{
! {"adler32", (PyCFunction)PyZlib_adler32, 1, adler32__doc__},
! {"compress", (PyCFunction)PyZlib_compress, 1, compress__doc__},
! {"compressobj", (PyCFunction)PyZlib_compressobj, 1, compressobj__doc__},
! {"crc32", (PyCFunction)PyZlib_crc32, 1, crc32__doc__},
! {"decompress", (PyCFunction)PyZlib_decompress, 1, decompress__doc__},
! {"decompressobj", (PyCFunction)PyZlib_decompressobj, 1, decompressobj__doc__},
! {NULL, NULL}
};
--- 755,771 ----
static PyMethodDef zlib_methods[] =
{
! {"adler32", (PyCFunction)PyZlib_adler32,
! METH_VARARGS, adler32__doc__},
! {"compress", (PyCFunction)PyZlib_compress,
! METH_VARARGS, compress__doc__},
! {"compressobj", (PyCFunction)PyZlib_compressobj,
! METH_VARARGS, compressobj__doc__},
! {"crc32", (PyCFunction)PyZlib_crc32,
! METH_VARARGS, crc32__doc__},
! {"decompress", (PyCFunction)PyZlib_decompress,
! METH_VARARGS, decompress__doc__},
! {"decompressobj", (PyCFunction)PyZlib_decompressobj,
! METH_VARARGS, decompressobj__doc__},
! {NULL, NULL}
};
- Previous message: [Python-checkins] CVS: python/dist/src README,1.85,1.85.2.1
- Next message: [Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.13,2.14 binascii.c,2.22,2.23 cStringIO.c,2.24,2.25 cmathmodule.c,2.19,2.20 md5module.c,2.20,2.21 newmodule.c,2.25,2.26 readline.c,2.25,2.26 socketmodule.c,1.124,1.125 soundex.c,2.8,2.9 stropmodule.c,2.70,2.71 threadmodule.c,2.35,2.36 timemodule.c,2.98,2.99
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]