some cosmetic changes
This commit is contained in:
parent
9c014b9e64
commit
a203a029cb
|
@ -25,12 +25,12 @@ st_alloc(phead, size, count)
|
||||||
((_PALLOC_) p)->_A_next = 0;
|
((_PALLOC_) p)->_A_next = 0;
|
||||||
while (--count) {
|
while (--count) {
|
||||||
p += size;
|
p += size;
|
||||||
((_PALLOC_) p)->_A_next = p - size;
|
((_PALLOC_) p)->_A_next = (_PALLOC_) (p - size);
|
||||||
}
|
}
|
||||||
*phead = p;
|
*phead = p;
|
||||||
}
|
}
|
||||||
else p = *phead;
|
else p = *phead;
|
||||||
*phead = ((_PALLOC_)p)->_A_next;
|
*phead = (char *) (((_PALLOC_)p)->_A_next);
|
||||||
retval = p;
|
retval = p;
|
||||||
if (size >= sizeof(long)) {
|
if (size >= sizeof(long)) {
|
||||||
q = (long *) p;
|
q = (long *) p;
|
||||||
|
|
|
@ -25,12 +25,12 @@ std_alloc(phead, size, count, pcnt)
|
||||||
((_PALLOC_) p)->_A_next = 0;
|
((_PALLOC_) p)->_A_next = 0;
|
||||||
while (--count) {
|
while (--count) {
|
||||||
p += size;
|
p += size;
|
||||||
((_PALLOC_) p)->_A_next = p - size;
|
((_PALLOC_) p)->_A_next = (_PALLOC_) (p - size);
|
||||||
}
|
}
|
||||||
*phead = p;
|
*phead = p;
|
||||||
}
|
}
|
||||||
else p = *phead;
|
else p = *phead;
|
||||||
*phead = ((_PALLOC_) p)->_A_next;
|
*phead = (char *) (((_PALLOC_) p)->_A_next);
|
||||||
p += size;
|
p += size;
|
||||||
while (size--) *--p = 0;
|
while (size--) *--p = 0;
|
||||||
return p;
|
return p;
|
||||||
|
|
Loading…
Reference in a new issue