mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -581,21 +581,6 @@ long_dealloc(v)
|
|||
DEL(v);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
long_print(v, fp, flags)
|
||||
object *v;
|
||||
FILE *fp;
|
||||
int flags; /* Not used but required by interface */
|
||||
{
|
||||
stringobject *str = (stringobject *) long_format(v, 10);
|
||||
if (str == NULL)
|
||||
return -1;
|
||||
fprintf(fp, "%s", GETSTRINGVALUE(str));
|
||||
DECREF(str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static object *
|
||||
long_repr(v)
|
||||
object *v;
|
||||
|
|
@ -1347,7 +1332,7 @@ typeobject Longtype = {
|
|||
sizeof(longobject) - sizeof(digit),
|
||||
sizeof(digit),
|
||||
long_dealloc, /*tp_dealloc*/
|
||||
long_print, /*tp_print*/
|
||||
0, /*tp_print*/
|
||||
0, /*tp_getattr*/
|
||||
0, /*tp_setattr*/
|
||||
(int (*) FPROTO((object *, object *)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue