[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.44,2.45
Jeremy Hylton
jhylton@users.sourceforge.net
Tue, 16 Oct 2001 14:19:47 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Python thread.c,2.38,2.39 thread_beos.h,2.6,2.7 thread_cthread.h,2.14,2.15 thread_foobar.h,2.11,2.12 thread_lwp.h,2.14,2.15 thread_nt.h,2.18,2.19 thread_os2.h,2.10,2.11 thread_pth.h,2.7,2.8 thread_pthread.h,2.34,2.35 thread_sgi.h,2.14,2.15 thread_solaris.h,2.15,2.16 thread_wince.h,2.6,2.7
- Next message: [Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.45,2.46
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv311
Modified Files:
zlibmodule.c
Log Message:
Reformat!
Consistently indent 4 spaces.
Use whitespace around operators.
Put braces in the right places.
Index: zlibmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zlibmodule.c,v
retrieving revision 2.44
retrieving revision 2.45
diff -C2 -d -r2.44 -r2.45
*** zlibmodule.c 2001/10/16 20:39:49 2.44
--- zlibmodule.c 2001/10/16 21:19:45 2.45
***************
*** 76,84 ****
typedef struct
{
! PyObject_HEAD
! z_stream zst;
! PyObject *unused_data;
! PyObject *unconsumed_tail;
! int is_initialised;
} compobject;
--- 76,84 ----
[...1558 lines suppressed...]
! PyModule_AddIntConstant(m, "Z_DEFAULT_COMPRESSION", Z_DEFAULT_COMPRESSION);
! PyModule_AddIntConstant(m, "Z_FILTERED", Z_FILTERED);
! PyModule_AddIntConstant(m, "Z_HUFFMAN_ONLY", Z_HUFFMAN_ONLY);
! PyModule_AddIntConstant(m, "Z_DEFAULT_STRATEGY", Z_DEFAULT_STRATEGY);
!
! PyModule_AddIntConstant(m, "Z_FINISH", Z_FINISH);
! PyModule_AddIntConstant(m, "Z_NO_FLUSH", Z_NO_FLUSH);
! PyModule_AddIntConstant(m, "Z_SYNC_FLUSH", Z_SYNC_FLUSH);
! PyModule_AddIntConstant(m, "Z_FULL_FLUSH", Z_FULL_FLUSH);
!
! ver = PyString_FromString(ZLIB_VERSION);
! if (ver != NULL) {
! PyDict_SetItemString(d, "ZLIB_VERSION", ver);
! Py_DECREF(ver);
! }
#ifdef WITH_THREAD
! zlib_lock = PyThread_allocate_lock();
#endif // WITH_THREAD
}
- Previous message: [Python-checkins] CVS: python/dist/src/Python thread.c,2.38,2.39 thread_beos.h,2.6,2.7 thread_cthread.h,2.14,2.15 thread_foobar.h,2.11,2.12 thread_lwp.h,2.14,2.15 thread_nt.h,2.18,2.19 thread_os2.h,2.10,2.11 thread_pth.h,2.7,2.8 thread_pthread.h,2.34,2.35 thread_sgi.h,2.14,2.15 thread_solaris.h,2.15,2.16 thread_wince.h,2.6,2.7
- Next message: [Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.45,2.46
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]