Do not use the allocation mechanism for the desig structure; overkill

This commit is contained in:
ceriel
1991-03-14 11:10:40 +00:00
parent 86bc055fa1
commit 5ebc2017a0
7 changed files with 66 additions and 58 deletions

View File

@@ -490,11 +490,13 @@ arith *
MkSet(size)
unsigned size;
{
register arith *s;
register arith *s, *t;
s = (arith *) Malloc(size);
s = t = (arith *) Malloc(size);
clear((char *) s , size);
s++;
size /= sizeof(arith);
while (size--) *t++ = 0;
inc_refcount(s);
return s;
}