Enabled (and fixed) newvarobject()
This commit is contained in:
parent
edcc38aac5
commit
05ab111b1d
|
@ -46,8 +46,6 @@ newobject(tp)
|
||||||
return op;
|
return op;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* unused */
|
|
||||||
|
|
||||||
varobject *
|
varobject *
|
||||||
newvarobject(tp, size)
|
newvarobject(tp, size)
|
||||||
typeobject *tp;
|
typeobject *tp;
|
||||||
|
@ -56,15 +54,13 @@ newvarobject(tp, size)
|
||||||
varobject *op = (varobject *)
|
varobject *op = (varobject *)
|
||||||
malloc(tp->tp_basicsize + size * tp->tp_itemsize);
|
malloc(tp->tp_basicsize + size * tp->tp_itemsize);
|
||||||
if (op == NULL)
|
if (op == NULL)
|
||||||
return err_nomem();
|
return (varobject *)err_nomem();
|
||||||
NEWREF(op);
|
NEWREF(op);
|
||||||
op->ob_type = tp;
|
op->ob_type = tp;
|
||||||
op->ob_size = size;
|
op->ob_size = size;
|
||||||
return op;
|
return op;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int StopPrint; /* Flag to indicate printing must be stopped */
|
int StopPrint; /* Flag to indicate printing must be stopped */
|
||||||
|
|
||||||
static int prlevel;
|
static int prlevel;
|
||||||
|
|
Loading…
Reference in New Issue