[Python-checkins] CVS: python/dist/src/Modules zlibmodule.c,2.44,2.45

Jeremy Hylton jhylton@users.sourceforge.net
2001年10月16日 14:19:47 -0700


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
 }

AltStyle によって変換されたページ (->オリジナル) /