Ported to OpenBSD.
This commit is contained in:
parent
2c405f40a9
commit
cc4ded8914
7 changed files with 14 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue