mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Enabled (and fixed) newvarobject()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user