Lines Matching refs:sp
79 struct strings *sp;
86 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
87 if (sp->s_topFree == NULL && (STRINGSIZE << idx) >= s)
89 if (sp->s_nleft >= s)
93 if (sp >= &stringdope[NSPACE])
95 if (sp->s_topFree == NULL) {
96 idx = (int)(sp - &stringdope[0]);
97 sp->s_topFree = malloc(STRINGSIZE << idx);
98 if (sp->s_topFree == NULL)
100 sp->s_nextFree = sp->s_topFree;
101 sp->s_nleft = STRINGSIZE << idx;
103 sp->s_nleft -= s;
104 t = sp->s_nextFree;
105 sp->s_nextFree += s;
129 struct strings *sp;
135 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
136 if (sp->s_topFree == NULL)
138 sp->s_nextFree = sp->s_topFree;
139 sp->s_nleft = STRINGSIZE << idx;
151 struct strings *sp;
153 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++)
154 sp->s_topFree = NULL;