mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
* 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:
parent
c2670a000b
commit
7066dd75c5
11 changed files with 126 additions and 142 deletions
|
@ -83,17 +83,6 @@ module_dealloc(m)
|
|||
free((char *)m);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
module_print(m, fp, flags)
|
||||
moduleobject *m;
|
||||
FILE *fp;
|
||||
int flags; /* Not used but required by interface */
|
||||
{
|
||||
fprintf(fp, "<module '%s'>", getstringvalue(m->md_name));
|
||||
return 0;
|
||||
}
|
||||
|
||||
static object *
|
||||
module_repr(m)
|
||||
moduleobject *m;
|
||||
|
@ -153,7 +142,7 @@ typeobject Moduletype = {
|
|||
sizeof(moduleobject), /*tp_size*/
|
||||
0, /*tp_itemsize*/
|
||||
module_dealloc, /*tp_dealloc*/
|
||||
module_print, /*tp_print*/
|
||||
0, /*tp_print*/
|
||||
module_getattr, /*tp_getattr*/
|
||||
module_setattr, /*tp_setattr*/
|
||||
0, /*tp_compare*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue