Lines Matching refs:sp
69 struct strings *sp;
75 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
76 if (sp->s_topFree == NULL && (STRINGSIZE << index) >= s)
78 if (sp->s_nleft >= s)
82 if (sp >= &stringdope[NSPACE])
84 if (sp->s_topFree == NULL) {
85 index = sp - &stringdope[0];
86 if ((sp->s_topFree = malloc(STRINGSIZE << index)) == NULL)
88 sp->s_nextFree = sp->s_topFree;
89 sp->s_nleft = STRINGSIZE << index;
91 sp->s_nleft -= s;
92 t = sp->s_nextFree;
93 sp->s_nextFree += s;
105 struct strings *sp;
111 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++) {
112 if (sp->s_topFree == NULL)
114 sp->s_nextFree = sp->s_topFree;
115 sp->s_nleft = STRINGSIZE << index;
127 struct strings *sp;
129 for (sp = &stringdope[0]; sp < &stringdope[NSPACE]; sp++)
130 sp->s_topFree = NULL;