diff options
author | Guido van Rossum <guido@python.org> | 1991-06-07 22:35:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-06-07 22:35:42 (GMT) |
commit | d783a46d73d92e9a79ef123dc6b422568e1aad69 (patch) | |
tree | 618f954c179d3b0dd21bbbd6527ecb5da0b5aea7 /Include/object.h | |
parent | 909336104b70cae29c0c4fde4477d508e1d709ac (diff) | |
download | cpython-d783a46d73d92e9a79ef123dc6b422568e1aad69.zip cpython-d783a46d73d92e9a79ef123dc6b422568e1aad69.tar.gz cpython-d783a46d73d92e9a79ef123dc6b422568e1aad69.tar.bz2 |
printobject now returns an error code
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h index 5a93000..750cd80 100644 --- a/Include/object.h +++ b/Include/object.h @@ -162,7 +162,7 @@ typedef struct _typeobject { /* Methods to implement standard operations */ void (*tp_dealloc) FPROTO((object *)); - void (*tp_print) FPROTO((object *, FILE *, int)); + int (*tp_print) FPROTO((object *, FILE *, int)); object *(*tp_getattr) FPROTO((object *, char *)); int (*tp_setattr) FPROTO((object *, char *, object *)); int (*tp_compare) FPROTO((object *, object *)); @@ -180,7 +180,7 @@ extern typeobject Typetype; /* The type of type objects */ #define is_typeobject(op) ((op)->ob_type == &Typetype) /* Generic operations on objects */ -extern void printobject PROTO((object *, FILE *, int)); +extern int printobject PROTO((object *, FILE *, int)); extern object * reprobject PROTO((object *)); extern int cmpobject PROTO((object *, object *)); extern object *getattr PROTO((object *, char *)); |