Mailing List Archive

CVS: python/dist/src/Python import.c,2.196,2.197 marshal.c,1.69,1.70
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv11467/Python

Modified Files:
import.c marshal.c
Log Message:
Use symbolic METH_VARARGS instead of 1 for ml_flags

Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.196
retrieving revision 2.197
diff -C2 -d -r2.196 -r2.197
*** import.c 29 Mar 2002 03:29:08 -0000 2.196
--- import.c 31 Mar 2002 14:37:44 -0000 2.197
***************
*** 2506,2530 ****

static PyMethodDef imp_methods[] = {
! {"find_module", imp_find_module, 1, doc_find_module},
! {"get_magic", imp_get_magic, 1, doc_get_magic},
! {"get_suffixes", imp_get_suffixes, 1, doc_get_suffixes},
! {"load_module", imp_load_module, 1, doc_load_module},
! {"new_module", imp_new_module, 1, doc_new_module},
! {"lock_held", imp_lock_held, 1, doc_lock_held},
/* The rest are obsolete */
! {"get_frozen_object", imp_get_frozen_object, 1},
! {"init_builtin", imp_init_builtin, 1},
! {"init_frozen", imp_init_frozen, 1},
! {"is_builtin", imp_is_builtin, 1},
! {"is_frozen", imp_is_frozen, 1},
! {"load_compiled", imp_load_compiled, 1},
#ifdef HAVE_DYNAMIC_LOADING
! {"load_dynamic", imp_load_dynamic, 1},
#endif
! {"load_package", imp_load_package, 1},
#ifdef macintosh
! {"load_resource", imp_load_resource, 1},
#endif
! {"load_source", imp_load_source, 1},
{NULL, NULL} /* sentinel */
};
--- 2506,2530 ----

static PyMethodDef imp_methods[] = {
! {"find_module", imp_find_module, METH_VARARGS, doc_find_module},
! {"get_magic", imp_get_magic, METH_VARARGS, doc_get_magic},
! {"get_suffixes", imp_get_suffixes, METH_VARARGS, doc_get_suffixes},
! {"load_module", imp_load_module, METH_VARARGS, doc_load_module},
! {"new_module", imp_new_module, METH_VARARGS, doc_new_module},
! {"lock_held", imp_lock_held, METH_VARARGS, doc_lock_held},
/* The rest are obsolete */
! {"get_frozen_object", imp_get_frozen_object, METH_VARARGS},
! {"init_builtin", imp_init_builtin, METH_VARARGS},
! {"init_frozen", imp_init_frozen, METH_VARARGS},
! {"is_builtin", imp_is_builtin, METH_VARARGS},
! {"is_frozen", imp_is_frozen, METH_VARARGS},
! {"load_compiled", imp_load_compiled, METH_VARARGS},
#ifdef HAVE_DYNAMIC_LOADING
! {"load_dynamic", imp_load_dynamic, METH_VARARGS},
#endif
! {"load_package", imp_load_package, METH_VARARGS},
#ifdef macintosh
! {"load_resource", imp_load_resource, METH_VARARGS},
#endif
! {"load_source", imp_load_source, METH_VARARGS},
{NULL, NULL} /* sentinel */
};

Index: marshal.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/marshal.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** marshal.c 9 Nov 2001 22:02:48 -0000 1.69
--- marshal.c 31 Mar 2002 14:37:44 -0000 1.70
***************
*** 853,860 ****

static PyMethodDef marshal_methods[] = {
! {"dump", marshal_dump, 1},
! {"load", marshal_load, 1},
! {"dumps", marshal_dumps, 1},
! {"loads", marshal_loads, 1},
{NULL, NULL} /* sentinel */
};
--- 853,860 ----

static PyMethodDef marshal_methods[] = {
! {"dump", marshal_dump, METH_VARARGS},
! {"load", marshal_load, METH_VARARGS},
! {"dumps", marshal_dumps, METH_VARARGS},
! {"loads", marshal_loads, METH_VARARGS},
{NULL, NULL} /* sentinel */
};