Lines Matching refs:sp
72 register struct strings *sp;
86 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
87 if (sp->s_topFree == NOSTR && (STRINGSIZE << index) >= s)
89 if (sp->s_nleft >= s)
93 if (sp >= &stringdope[NSPACE])
95 if (sp->s_topFree == NOSTR) {
96 index = sp - &stringdope[0];
97 sp->s_topFree = (char *) calloc(STRINGSIZE << index,
99 if (sp->s_topFree == NOSTR) {
104 sp->s_nextFree = sp->s_topFree;
105 sp->s_nleft = STRINGSIZE << index;
107 sp->s_nleft -= s;
108 t = sp->s_nextFree;
109 sp->s_nextFree += s;
111 lastsp = sp;
128 register struct strings *sp = lastsp;
140 delta = s - (sp->s_nextFree - (char *)optr);
141 if (delta <= sp->s_nleft) {
142 sp->s_nextFree += delta;
143 sp->s_nleft -= delta;
161 register struct strings *sp;
168 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
169 if (sp->s_topFree == NOSTR)
171 sp->s_nextFree = sp->s_topFree;
172 sp->s_nleft = STRINGSIZE << index;