[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.51,2.52
Tim Peters
tim_one@users.sourceforge.net
Tue, 16 Oct 2001 20:56:47 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16756/python/Modules
Modified Files:
zlibmodule.c
Log Message:
Removed more comments that didn't make much sense.
Made the presence/absence of a semicolon after macros consistent.
Index: zlibmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zlibmodule.c,v
retrieving revision 2.51
retrieving revision 2.52
diff -C2 -d -r2.51 -r2.52
*** zlibmodule.c 2001/10/17 03:43:54 2.51
--- zlibmodule.c 2001/10/17 03:56:45 2.52
***************
*** 16,27 ****
about re-entering zlib functions.
- What we _do_ have to worry about is releasing the global lock _in
- general_ in the zlibmodule functions, because of all the calls to
- Python functions, which assume that the global lock is held. So
- only two types of calls are wrapped in Py_BEGIN/END_ALLOW_THREADS:
- those that grab the zlib lock, and those that involve other
- time-consuming functions where we need to worry about holding up
- other Python threads.
-
N.B.
--- 16,19 ----
***************
*** 371,376 ****
Comp_dealloc(compobject *self)
{
- ENTER_ZLIB
-
if (self->is_initialised)
deflateEnd(&self->zst);
--- 363,366 ----
***************
*** 378,383 ****
Py_XDECREF(self->unconsumed_tail);
PyObject_Del(self);
-
- LEAVE_ZLIB
}
--- 368,371 ----
***************
*** 385,390 ****
Decomp_dealloc(compobject *self)
{
- ENTER_ZLIB
-
if (self->is_initialised)
inflateEnd(&self->zst);
--- 373,376 ----
***************
*** 392,397 ****
Py_XDECREF(self->unconsumed_tail);
PyObject_Del(self);
-
- LEAVE_ZLIB
}
--- 378,381 ----
***************
*** 673,677 ****
error:
! LEAVE_ZLIB;
return RetVal;
--- 657,661 ----
error:
! LEAVE_ZLIB
return RetVal;