mirror of
https://github.com/python/cpython.git
synced 2025-07-22 10:45:22 +00:00
ANSI-fication of the sources.
This commit is contained in:
parent
ee238b977f
commit
45cfbcccc2
3 changed files with 22 additions and 60 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue