some refactoring trying to get h_many to work

This commit is contained in:
Sven M. Hallberg 2013-06-15 20:30:57 +02:00
parent 9a96314931
commit 5a57adabab
3 changed files with 29 additions and 24 deletions

View file

@ -331,6 +331,12 @@ bool h_stringmap_present_epsilon(const HStringMap *m)
return (m->epsilon_branch != NULL);
}
bool h_stringmap_empty(const HStringMap *m)
{
return (m->epsilon_branch == NULL
&& m->end_branch == NULL
&& h_hashtable_empty(m->char_branches));
}
const HStringMap *h_first(size_t k, HCFGrammar *g, const HCFChoice *x)
{