remove pic_ungensym
This commit is contained in:
parent
1b510e982e
commit
09cb576a3b
|
@ -180,7 +180,6 @@ pic_sym pic_intern_str(pic_state *, pic_str *);
|
|||
pic_sym pic_intern_cstr(pic_state *, const char *);
|
||||
const char *pic_symbol_name(pic_state *, pic_sym);
|
||||
pic_sym pic_gensym(pic_state *, pic_sym);
|
||||
pic_sym pic_ungensym(pic_state *, pic_sym);
|
||||
bool pic_interned_p(pic_state *, pic_sym);
|
||||
|
||||
pic_value pic_read(pic_state *, struct pic_port *);
|
||||
|
|
|
@ -63,22 +63,6 @@ pic_gensym(pic_state *pic, pic_sym base)
|
|||
return uniq;
|
||||
}
|
||||
|
||||
pic_sym
|
||||
pic_ungensym(pic_state *pic, pic_sym base)
|
||||
{
|
||||
const char *name, *occr;
|
||||
|
||||
if (pic_interned_p(pic, base)) {
|
||||
return base;
|
||||
}
|
||||
|
||||
name = pic_symbol_name(pic, base);
|
||||
if ((occr = strrchr(name, '@')) == NULL) {
|
||||
pic_panic(pic, "logic flaw");
|
||||
}
|
||||
return pic_intern(pic, name, (size_t)(occr - name));
|
||||
}
|
||||
|
||||
bool
|
||||
pic_interned_p(pic_state *pic, pic_sym sym)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue