Lines Matching refs:stringbuf
58 static char *stringbuf; /* buffer for string capabilities */
69 if (stringbuf != NULL) { in _nc_init_entry()
70 FreeAndNull(stringbuf); in _nc_init_entry()
78 if (stringbuf == NULL) in _nc_init_entry()
79 TYPE_CALLOC(char, (size_t) MAX_ENTRY_SIZE, stringbuf); in _nc_init_entry()
112 if (stringbuf != NULL) { in _nc_save_str()
125 result = (stringbuf + next_free - 1); in _nc_save_str()
128 _nc_STRCPY(&stringbuf[next_free], string, MAX_ENTRY_SIZE); in _nc_save_str()
132 result = (stringbuf + old_next_free); in _nc_save_str()
152 if (ep == NULL || stringbuf == NULL) in _nc_wrap_entry()
178 assert(tp->term_names >= stringbuf); in _nc_wrap_entry()
179 n = (unsigned) (tp->term_names - stringbuf); in _nc_wrap_entry()
187 offsets[i] = (int) (tp->Strings[i] - stringbuf); in _nc_wrap_entry()
196 useoffsets[i] = (int) (ep->uses[i].name - stringbuf); in _nc_wrap_entry()
200 (void) memcpy(tp->str_table, stringbuf, next_free); in _nc_wrap_entry()
223 offsets[i] = (int) (tp->ext_Names[i] - stringbuf); in _nc_wrap_entry()
229 stringbuf + offsets[i], in _nc_wrap_entry()
412 if (stringbuf != NULL) { in _nc_alloc_entry_leaks()
413 FreeAndNull(stringbuf); in _nc_alloc_entry_leaks()