summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 7a7383e..072b50b 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1,5 +1,5 @@
/***********************************************************
-Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum,
+Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
Amsterdam, The Netherlands.
All Rights Reserved
@@ -107,10 +107,8 @@ printobject(op, fp, flags)
int flags;
{
int ret = 0;
- if (intrcheck()) {
- err_set(KeyboardInterrupt);
+ if (sigcheck())
return -1;
- }
if (op == NULL) {
fprintf(fp, "<nil>");
}
@@ -159,10 +157,8 @@ object *
reprobject(v)
object *v;
{
- if (intrcheck()) {
- err_set(KeyboardInterrupt);
+ if (sigcheck())
return NULL;
- }
if (v == NULL)
return newstringobject("<NULL>");
else if (v->ob_type->tp_repr == NULL) {
@@ -349,7 +345,7 @@ static typeobject Notype = {
0, /*tp_getattr*/
0, /*tp_setattr*/
0, /*tp_compare*/
- none_repr, /*tp_repr*/
+ (reprfunc)none_repr, /*tp_repr*/
0, /*tp_as_number*/
0, /*tp_as_sequence*/
0, /*tp_as_mapping*/