[Python-checkins] CVS: python/dist/src/Modules parsermodule.c,2.36,2.37

Fred Drake python-dev@python.org
2000年4月19日 09:54:19 -0400


Update of /projects/cvsroot/python/dist/src/Modules
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Modules
Modified Files:
	parsermodule.c 
Log Message:
ANSI-fy & de-tabify the source.
(4-space indents already used.)
Index: parsermodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/parsermodule.c,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -r2.36 -r2.37
*** parsermodule.c	2000年02月21日 18:19:06	2.36
--- parsermodule.c	2000年04月19日 13:54:15	2.37
***************
*** 26,35 ****
 */
 
! #include "Python.h"			/* general Python API		 */
! #include "graminit.h"			/* symbols defined in the grammar */
! #include "node.h"			/* internal parser structure	 */
! #include "token.h"			/* token definitions		 */
! 					/* ISTERMINAL() / ISNONTERMINAL() */
! #include "compile.h"			/* PyNode_Compile()		 */
 
 #ifdef lint
[...4992 lines suppressed...]
 module = PyImport_ImportModule("copy_reg");
 if (module != NULL) {
! PyObject *func, *pickler;
 
! func = PyObject_GetAttrString(module, "pickle");
! pickle_constructor = PyDict_GetItemString(dict, "sequence2ast");
! pickler = PyDict_GetItemString(dict, "_pickler");
! Py_XINCREF(pickle_constructor);
! if ((func != NULL) && (pickle_constructor != NULL)
! && (pickler != NULL)) {
! PyObject *res;
! 
! res = PyObject_CallFunction(
! func, "OOO", &PyAST_Type, pickler, pickle_constructor);
! Py_XDECREF(res);
! }
! Py_XDECREF(func);
! Py_DECREF(module);
 }
! }

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