* Makefile: added IMGFILE; moved some stuff around.

* flmodule.c: added some missing functions; changed readonly flags of
  some data members based upon FORMS documentation.
* listobject.c: fixed int/long arg lint bug (bites PC compilers).
* several: removed redundant print methods (repr is good enough).
* posixmodule.c: added (still experimental) process group functions.
This commit is contained in:
Guido van Rossum 1992-09-17 17:54:56 +00:00
parent c2670a000b
commit 7066dd75c5
11 changed files with 126 additions and 142 deletions

View file

@ -99,21 +99,6 @@ meth_dealloc(m)
free((char *)m);
}
/* ARGSUSED */
static int
meth_print(m, fp, flags)
methodobject *m;
FILE *fp;
int flags; /* Not used but required by interface */
{
if (m->m_self == NULL)
fprintf(fp, "<built-in function '%s'>", m->m_name);
else
fprintf(fp, "<built-in method '%s' of some %s object>",
m->m_name, m->m_self->ob_type->tp_name);
return 0;
}
static object *
meth_repr(m)
methodobject *m;
@ -131,11 +116,11 @@ meth_repr(m)
typeobject Methodtype = {
OB_HEAD_INIT(&Typetype)
0,
"method",
"builtin_function_or_method",
sizeof(methodobject),
0,
meth_dealloc, /*tp_dealloc*/
meth_print, /*tp_print*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/