regex_compile should return -1 if not a regular grammar; give backends names
This commit is contained in:
parent
c9419f4c34
commit
1d12f9ffac
4 changed files with 17 additions and 6 deletions
|
|
@ -353,7 +353,7 @@ static void h_regex_free(HParser *parser) {
|
|||
|
||||
static int h_regex_compile(HAllocator *mm__, HParser* parser, const void* params) {
|
||||
if (!parser->vtable->isValidRegular(parser->env)) {
|
||||
return 1;
|
||||
return -1;
|
||||
}
|
||||
HRVMProg *prog = h_new(HRVMProg, 1);
|
||||
prog->length = prog->action_count = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue