summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-05-05 20:10:41 (GMT)
committerGuido van Rossum <guido@python.org>1991-05-05 20:10:41 (GMT)
commit05ab111b1d431fc848966627b395afa71fb5758e (patch)
treec7fa8c7a85ef29c71a865a16c9e692ff395aa5f9 /Objects
parentedcc38aac5cf1a07eb287624b917116ec114ed61 (diff)
downloadcpython-05ab111b1d431fc848966627b395afa71fb5758e.zip
cpython-05ab111b1d431fc848966627b395afa71fb5758e.tar.gz
cpython-05ab111b1d431fc848966627b395afa71fb5758e.tar.bz2
Enabled (and fixed) newvarobject()
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Objects/object.c b/Objects/object.c
index c54bf5c..2b5b891 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -46,8 +46,6 @@ newobject(tp)
return op;
}
-#if 0 /* unused */
-
varobject *
newvarobject(tp, size)
typeobject *tp;
@@ -56,15 +54,13 @@ newvarobject(tp, size)
varobject *op = (varobject *)
malloc(tp->tp_basicsize + size * tp->tp_itemsize);
if (op == NULL)
- return err_nomem();
+ return (varobject *)err_nomem();
NEWREF(op);
op->ob_type = tp;
op->ob_size = size;
return op;
}
-#endif
-
int StopPrint; /* Flag to indicate printing must be stopped */
static int prlevel;