251
251
static const char* scope_declare(struct scope *s, const char *token, const size_t len, struct parser_state *state)
253
const struct element *el = hashtab_insert(&s->id_map, token, len, state->var_uniq++);
253
const struct cli_element *el = cli_hashtab_insert(&s->id_map, token, len, state->var_uniq++);
255
255
* new one, we return the allocated string */
256
256
return el ? el->key : NULL;
259
259
static const char* scope_use(struct scope *s, const char *token, const size_t len)
263
263
/* identifier already found in current scope,
264
264
* return here to avoid overwriting uniq id */