Lines Matching defs:stringbuf
57 static char *stringbuf; /* buffer for string capabilities */
58 static size_t next_free; /* next free character in stringbuf */
66 if (stringbuf != 0) {
67 FreeAndNull(stringbuf);
73 if (stringbuf == 0)
74 TYPE_MALLOC(char, (size_t) MAX_STRTAB, stringbuf);
107 result = (stringbuf + next_free - 1);
110 _nc_STRCPY(&stringbuf[next_free], string, MAX_STRTAB);
114 result = (stringbuf + old_next_free);
152 assert(tp->term_names >= stringbuf);
153 n = (unsigned) (tp->term_names - stringbuf);
161 offsets[i] = (int) (tp->Strings[i] - stringbuf);
170 useoffsets[i] = (int) (ep->uses[i].name - stringbuf);
174 (void) memcpy(tp->str_table, stringbuf, next_free);
197 offsets[i] = (int) (tp->ext_Names[i] - stringbuf);
203 stringbuf + offsets[i],
272 if (stringbuf != 0) {
273 FreeAndNull(stringbuf);