Ported to OpenBSD.

This commit is contained in:
TQ Hirsch 2014-04-13 22:29:49 +00:00
parent 2c405f40a9
commit cc4ded8914
7 changed files with 14 additions and 7 deletions

View file

@ -92,6 +92,7 @@ HParser* h_optional(const HParser* p) {
HParser* h_optional__m(HAllocator* mm__, const HParser* p) {
// TODO: re-add this
//assert_message(p->vtable != &ignore_vt, "Thou shalt ignore an option, rather than the other way 'round.");
return h_new_parser(mm__, &optional_vt, (void *)p);
void* env = (void*)p;
return h_new_parser(mm__, &optional_vt, env);
}