[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.32,2.33
Peter Schneider-Kamp
python-dev@python.org
Mon, 10 Jul 2000 02:57:22 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6609
Modified Files:
zlibmodule.c
Log Message:
ANSI-fication
Index: zlibmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zlibmodule.c,v
retrieving revision 2.32
retrieving revision 2.33
diff -C2 -r2.32 -r2.33
*** zlibmodule.c 2000/05/03 23:44:33 2.32
--- zlibmodule.c 2000/07/10 09:57:19 2.33
***************
*** 43,48 ****
static compobject *
! newcompobject(type)
! PyTypeObject *type;
{
compobject *self;
--- 43,47 ----
static compobject *
! newcompobject(PyTypeObject *type)
{
compobject *self;
***************
*** 63,69 ****
static PyObject *
! PyZlib_compress(self, args)
! PyObject *self;
! PyObject *args;
{
PyObject *ReturnVal;
--- 62,66 ----
static PyObject *
! PyZlib_compress(PyObject *self, PyObject *args)
{
PyObject *ReturnVal;
***************
*** 161,167 ****
static PyObject *
! PyZlib_decompress(self, args)
! PyObject *self;
! PyObject *args;
{
PyObject *result_str;
--- 158,162 ----
static PyObject *
! PyZlib_decompress(PyObject *self, PyObject *args)
{
PyObject *result_str;
***************
*** 268,274 ****
static PyObject *
! PyZlib_compressobj(selfptr, args)
! PyObject *selfptr;
! PyObject *args;
{
compobject *self;
--- 263,267 ----
static PyObject *
! PyZlib_compressobj(PyObject *selfptr, PyObject *args)
{
compobject *self;
***************
*** 317,323 ****
static PyObject *
! PyZlib_decompressobj(selfptr, args)
! PyObject *selfptr;
! PyObject *args;
{
int wbits=DEF_WBITS, err;
--- 310,314 ----
static PyObject *
! PyZlib_decompressobj(PyObject *selfptr, PyObject *args)
{
int wbits=DEF_WBITS, err;
***************
*** 364,369 ****
static void
! Comp_dealloc(self)
! compobject *self;
{
if (self->is_initialised)
--- 355,359 ----
static void
! Comp_dealloc(compobject *self)
{
if (self->is_initialised)
***************
*** 374,379 ****
static void
! Decomp_dealloc(self)
! compobject *self;
{
inflateEnd(&self->zst);
--- 364,368 ----
static void
! Decomp_dealloc(compobject *self)
{
inflateEnd(&self->zst);
***************
*** 391,397 ****
static PyObject *
! PyZlib_objcompress(self, args)
! compobject *self;
! PyObject *args;
{
int err = Z_OK, inplen;
--- 380,384 ----
static PyObject *
! PyZlib_objcompress(compobject *self, PyObject *args)
{
int err = Z_OK, inplen;
***************
*** 450,456 ****
static PyObject *
! PyZlib_objdecompress(self, args)
! compobject *self;
! PyObject *args;
{
int length, err, inplen;
--- 437,441 ----
static PyObject *
! PyZlib_objdecompress(compobject *self, PyObject *args)
{
int length, err, inplen;
***************
*** 524,530 ****
static PyObject *
! PyZlib_flush(self, args)
! compobject *self;
! PyObject *args;
{
int length=DEFAULTALLOC, err = Z_OK;
--- 509,513 ----
static PyObject *
! PyZlib_flush(compobject *self, PyObject *args)
{
int length=DEFAULTALLOC, err = Z_OK;
***************
*** 623,629 ****
static PyObject *
! PyZlib_unflush(self, args)
! compobject *self;
! PyObject *args;
{
int length=0, err;
--- 606,610 ----
static PyObject *
! PyZlib_unflush(compobject *self, PyObject *args)
{
int length=0, err;
***************
*** 708,714 ****
static PyObject *
! Comp_getattr(self, name)
! compobject *self;
! char *name;
{
return Py_FindMethod(comp_methods, (PyObject *)self, name);
--- 689,693 ----
static PyObject *
! Comp_getattr(compobject *self, char *name)
{
return Py_FindMethod(comp_methods, (PyObject *)self, name);
***************
*** 716,722 ****
static PyObject *
! Decomp_getattr(self, name)
! compobject *self;
! char *name;
{
if (strcmp(name, "unused_data") == 0)
--- 695,699 ----
static PyObject *
! Decomp_getattr(compobject *self, char *name)
{
if (strcmp(name, "unused_data") == 0)
***************
*** 736,741 ****
static PyObject *
! PyZlib_adler32(self, args)
! PyObject *self, *args;
{
uLong adler32val=adler32(0L, Z_NULL, 0);
--- 713,717 ----
static PyObject *
! PyZlib_adler32(PyObject *self, PyObject *args)
{
uLong adler32val=adler32(0L, Z_NULL, 0);
***************
*** 759,764 ****
static PyObject *
! PyZlib_crc32(self, args)
! PyObject *self, *args;
{
uLong crc32val=crc32(0L, Z_NULL, 0);
--- 735,739 ----
static PyObject *
! PyZlib_crc32(PyObject *self, PyObject *args)
{
uLong crc32val=crc32(0L, Z_NULL, 0);
***************
*** 825,832 ****
For simplicity, errors (which are unlikely anyway) are ignored. */
static void
! insint(d, name, value)
! PyObject *d;
! char *name;
! int value;
{
PyObject *v = PyInt_FromLong((long) value);
--- 800,804 ----
For simplicity, errors (which are unlikely anyway) are ignored. */
static void
! insint(PyObject *d, char *name, int value)
{
PyObject *v = PyInt_FromLong((long) value);