X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/ffc11f031cf7274310dc9d7e010f1f8549af6f1a..211567363bd8bfbd70cef81e4208ea02d49ebb55:/newsearch/parser.c diff --git a/newsearch/parser.c b/newsearch/parser.c index 0ed67a1a..61976447 100644 --- a/newsearch/parser.c +++ b/newsearch/parser.c @@ -10,6 +10,7 @@ void yy_flush_buffer(struct yy_buffer_state *); int yyparse(void); char *parseStrError; +int parseStrErrorPos; parseFunc fnfinder(char *name, void *arg) { searchCmd *cmdtree = arg; @@ -54,7 +55,7 @@ parsertree *parse_string(searchCmd *cmd, const char *str) { if(ret) /* error occured, parseStrError has it */ return NULL; - parseStrError = "not yet implemented"; + parseStrError = "BUG: you shouldn't ever see this"; return pt; } @@ -64,6 +65,7 @@ void parse_free(parsertree *pt) { for(sl=pt->strlist;sl;sl=nsl) { nsl = sl->next; + freesstring(sl->data); free(sl); }