version 1.9, 2009/10/27 23:59:40 |
version 1.10, 2015/10/16 17:56:07 |
|
|
errx(1, "String too large"); |
errx(1, "String too large"); |
if (sp->s_topFree == NULL) { |
if (sp->s_topFree == NULL) { |
index = sp - &stringdope[0]; |
index = sp - &stringdope[0]; |
sp->s_topFree = (char *)malloc(STRINGSIZE << index); |
sp->s_topFree = malloc(STRINGSIZE << index); |
if (sp->s_topFree == NULL) |
if (sp->s_topFree == NULL) |
errx(1, "No room for space %d", index); |
err(1, "malloc"); |
sp->s_nextFree = sp->s_topFree; |
sp->s_nextFree = sp->s_topFree; |
sp->s_nleft = STRINGSIZE << index; |
sp->s_nleft = STRINGSIZE << index; |
} |
} |