ANSI-fication of the sources.

This commit is contained in:
Fred Drake 2000-07-09 06:21:27 +00:00
parent ee238b977f
commit 45cfbcccc2
3 changed files with 22 additions and 60 deletions

View file

@ -15,9 +15,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
/* Type object implementation */
static PyObject *
type_getattr(t, name)
PyTypeObject *t;
char *name;
type_getattr(PyTypeObject *t, char *name)
{
if (strcmp(name, "__name__") == 0)
return PyString_FromString(t->tp_name);
@ -35,8 +33,7 @@ type_getattr(t, name)
}
static PyObject *
type_repr(v)
PyTypeObject *v;
type_repr(PyTypeObject *v)
{
char buf[100];
sprintf(buf, "<type '%.80s'>", v->tp_name);