let's just use ((void *)-1) as another invalid pointer result

This commit is contained in:
Sven M. Hallberg 2015-09-05 22:43:49 +02:00
parent 90b6f30fa1
commit 8995097a1d
3 changed files with 5 additions and 6 deletions

View file

@ -57,7 +57,7 @@ static inline HStringMap *h_stringmap_get_char(const HStringMap *m, const uint8_
{ return h_hashtable_get(m->char_branches, (void *)char_key(c)); }
// dummy return value used by h_stringmap_get_lookahead when out of input
#define H_NEED_INPUT ((void *)&h_stringmap_get_lookahead)
#define NEED_INPUT ((void *)-1)
/* Convert 'parser' into CFG representation by desugaring and compiling the set