[Python-checkins] CVS: python/dist/src/Objects funcobject.c,2.28,2.29 methodobject.c,2.31,2.32 moduleobject.c,2.27,2.28
Fred L. Drake
python-dev@python.org
Sat, 8 Jul 2000 23:03:27 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5102
Modified Files:
funcobject.c methodobject.c moduleobject.c
Log Message:
ANSI-fication of the sources.
Index: funcobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/funcobject.c,v
retrieving revision 2.28
retrieving revision 2.29
diff -C2 -r2.28 -r2.29
*** funcobject.c 2000年07月01日 01:00:38 2.28
--- funcobject.c 2000年07月09日 06:03:25 2.29
***************
*** 16,22 ****
PyObject *
! PyFunction_New(code, globals)
! PyObject *code;
! PyObject *globals;
{
PyFunctionObject *op = PyObject_NEW(PyFunctionObject,
--- 16,20 ----
PyObject *
! PyFunction_New(PyObject *code, PyObject *globals)
{
PyFunctionObject *op = PyObject_NEW(PyFunctionObject,
***************
*** 48,53 ****
PyObject *
! PyFunction_GetCode(op)
! PyObject *op;
{
if (!PyFunction_Check(op)) {
--- 46,50 ----
PyObject *
! PyFunction_GetCode(PyObject *op)
{
if (!PyFunction_Check(op)) {
***************
*** 59,64 ****
PyObject *
! PyFunction_GetGlobals(op)
! PyObject *op;
{
if (!PyFunction_Check(op)) {
--- 56,60 ----
PyObject *
! PyFunction_GetGlobals(PyObject *op)
{
if (!PyFunction_Check(op)) {
***************
*** 70,75 ****
PyObject *
! PyFunction_GetDefaults(op)
! PyObject *op;
{
if (!PyFunction_Check(op)) {
--- 66,70 ----
PyObject *
! PyFunction_GetDefaults(PyObject *op)
{
if (!PyFunction_Check(op)) {
***************
*** 81,87 ****
int
! PyFunction_SetDefaults(op, defaults)
! PyObject *op;
! PyObject *defaults;
{
if (!PyFunction_Check(op)) {
--- 76,80 ----
int
! PyFunction_SetDefaults(PyObject *op, PyObject *defaults)
{
if (!PyFunction_Check(op)) {
***************
*** 119,125 ****
static PyObject *
! func_getattr(op, name)
! PyFunctionObject *op;
! char *name;
{
if (name[0] != '_' && PyEval_GetRestricted()) {
--- 112,116 ----
static PyObject *
! func_getattr(PyFunctionObject *op, char *name)
{
if (name[0] != '_' && PyEval_GetRestricted()) {
***************
*** 132,139 ****
static int
! func_setattr(op, name, value)
! PyFunctionObject *op;
! char *name;
! PyObject *value;
{
if (PyEval_GetRestricted()) {
--- 123,127 ----
static int
! func_setattr(PyFunctionObject *op, char *name, PyObject *value)
{
if (PyEval_GetRestricted()) {
***************
*** 164,169 ****
static void
! func_dealloc(op)
! PyFunctionObject *op;
{
PyObject_GC_Fini(op);
--- 152,156 ----
static void
! func_dealloc(PyFunctionObject *op)
{
PyObject_GC_Fini(op);
***************
*** 178,183 ****
static PyObject*
! func_repr(op)
! PyFunctionObject *op;
{
char buf[140];
--- 165,169 ----
static PyObject*
! func_repr(PyFunctionObject *op)
{
char buf[140];
***************
*** 192,197 ****
static int
! func_compare(f, g)
! PyFunctionObject *f, *g;
{
int c;
--- 178,182 ----
static int
! func_compare(PyFunctionObject *f, PyFunctionObject *g)
{
int c;
***************
*** 211,216 ****
static long
! func_hash(f)
! PyFunctionObject *f;
{
long h,x;
--- 196,200 ----
static long
! func_hash(PyFunctionObject *f)
{
long h,x;
Index: methodobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/methodobject.c,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -r2.31 -r2.32
*** methodobject.c 2000年06月30日 23:58:05 2.31
--- methodobject.c 2000年07月09日 06:03:25 2.32
***************
*** 18,24 ****
PyObject *
! PyCFunction_New(ml, self)
! PyMethodDef *ml;
! PyObject *self;
{
PyCFunctionObject *op;
--- 18,22 ----
PyObject *
! PyCFunction_New(PyMethodDef *ml, PyObject *self)
{
PyCFunctionObject *op;
***************
*** 40,45 ****
PyCFunction
! PyCFunction_GetFunction(op)
! PyObject *op;
{
if (!PyCFunction_Check(op)) {
--- 38,42 ----
PyCFunction
! PyCFunction_GetFunction(PyObject *op)
{
if (!PyCFunction_Check(op)) {
***************
*** 51,56 ****
PyObject *
! PyCFunction_GetSelf(op)
! PyObject *op;
{
if (!PyCFunction_Check(op)) {
--- 48,52 ----
PyObject *
! PyCFunction_GetSelf(PyObject *op)
{
if (!PyCFunction_Check(op)) {
***************
*** 62,67 ****
int
! PyCFunction_GetFlags(op)
! PyObject *op;
{
if (!PyCFunction_Check(op)) {
--- 58,62 ----
int
! PyCFunction_GetFlags(PyObject *op)
{
if (!PyCFunction_Check(op)) {
***************
*** 75,80 ****
static void
! meth_dealloc(m)
! PyCFunctionObject *m;
{
Py_XDECREF(m->m_self);
--- 70,74 ----
static void
! meth_dealloc(PyCFunctionObject *m)
{
Py_XDECREF(m->m_self);
***************
*** 84,90 ****
static PyObject *
! meth_getattr(m, name)
! PyCFunctionObject *m;
! char *name;
{
if (strcmp(name, "__name__") == 0) {
--- 78,82 ----
static PyObject *
! meth_getattr(PyCFunctionObject *m, char *name)
{
if (strcmp(name, "__name__") == 0) {
***************
*** 120,125 ****
static PyObject *
! meth_repr(m)
! PyCFunctionObject *m;
{
char buf[200];
--- 112,116 ----
static PyObject *
! meth_repr(PyCFunctionObject *m)
{
char buf[200];
***************
*** 135,140 ****
static int
! meth_compare(a, b)
! PyCFunctionObject *a, *b;
{
if (a->m_self != b->m_self)
--- 126,130 ----
static int
! meth_compare(PyCFunctionObject *a, PyCFunctionObject *b)
{
if (a->m_self != b->m_self)
***************
*** 149,154 ****
static long
! meth_hash(a)
! PyCFunctionObject *a;
{
long x,y;
--- 139,143 ----
static long
! meth_hash(PyCFunctionObject *a)
{
long x,y;
***************
*** 190,195 ****
static PyObject *
! listmethodchain(chain)
! PyMethodChain *chain;
{
PyMethodChain *c;
--- 179,183 ----
static PyObject *
! listmethodchain(PyMethodChain *chain)
{
PyMethodChain *c;
***************
*** 224,231 ****
PyObject *
! Py_FindMethodInChain(chain, self, name)
! PyMethodChain *chain;
! PyObject *self;
! char *name;
{
if (name[0] == '_' && name[1] == '_') {
--- 212,216 ----
PyObject *
! Py_FindMethodInChain(PyMethodChain *chain, PyObject *self, char *name)
{
if (name[0] == '_' && name[1] == '_') {
***************
*** 254,261 ****
PyObject *
! Py_FindMethod(methods, self, name)
! PyMethodDef *methods;
! PyObject *self;
! char *name;
{
PyMethodChain chain;
--- 239,243 ----
PyObject *
! Py_FindMethod(PyMethodDef *methods, PyObject *self, char *name)
{
PyMethodChain chain;
***************
*** 268,272 ****
void
! PyCFunction_Fini()
{
while (free_list) {
--- 250,254 ----
void
! PyCFunction_Fini(void)
{
while (free_list) {
Index: moduleobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/moduleobject.c,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -r2.27 -r2.28
*** moduleobject.c 2000年06月30日 23:58:05 2.27
--- moduleobject.c 2000年07月09日 06:03:25 2.28
***************
*** 19,24 ****
PyObject *
! PyModule_New(name)
! char *name;
{
PyModuleObject *m;
--- 19,23 ----
PyObject *
! PyModule_New(char *name)
{
PyModuleObject *m;
***************
*** 45,50 ****
PyObject *
! PyModule_GetDict(m)
! PyObject *m;
{
if (!PyModule_Check(m)) {
--- 44,48 ----
PyObject *
! PyModule_GetDict(PyObject *m)
{
if (!PyModule_Check(m)) {
***************
*** 56,61 ****
char *
! PyModule_GetName(m)
! PyObject *m;
{
PyObject *nameobj;
--- 54,58 ----
char *
! PyModule_GetName(PyObject *m)
{
PyObject *nameobj;
***************
*** 74,79 ****
char *
! PyModule_GetFilename(m)
! PyObject *m;
{
PyObject *fileobj;
--- 71,75 ----
char *
! PyModule_GetFilename(PyObject *m)
{
PyObject *fileobj;
***************
*** 92,97 ****
void
! _PyModule_Clear(m)
! PyObject *m;
{
/* To make the execution order of destructors for global
--- 88,92 ----
void
! _PyModule_Clear(PyObject *m)
{
/* To make the execution order of destructors for global
***************
*** 143,148 ****
static void
! module_dealloc(m)
! PyModuleObject *m;
{
if (m->md_dict != NULL) {
--- 138,142 ----
static void
! module_dealloc(PyModuleObject *m)
{
if (m->md_dict != NULL) {
***************
*** 154,159 ****
static PyObject *
! module_repr(m)
! PyModuleObject *m;
{
char buf[400];
--- 148,152 ----
static PyObject *
! module_repr(PyModuleObject *m)
{
char buf[400];
***************
*** 177,183 ****
static PyObject *
! module_getattr(m, name)
! PyModuleObject *m;
! char *name;
{
PyObject *res;
--- 170,174 ----
static PyObject *
! module_getattr(PyModuleObject *m, char *name)
{
PyObject *res;
***************
*** 195,202 ****
static int
! module_setattr(m, name, v)
! PyModuleObject *m;
! char *name;
! PyObject *v;
{
if (name[0] == '_' && strcmp(name, "__dict__") == 0) {
--- 186,190 ----
static int
! module_setattr(PyModuleObject *m, char *name, PyObject *v)
{
if (name[0] == '_' && strcmp(name, "__dict__") == 0) {