From de547e4ec4e375531ac3d797c3e82ff2544f9464 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 7 Jun 2015 20:04:18 -0700 Subject: * match.c (v_load): Call parse_once rater than parse. * parser.c (regex_parse): Likewise. * txr.c (txr_main): Likewise. * parser.h (parse): Declaration updated. (parse_once): Declared. * parser.y (parse_once): New function, same as old parse implementation. (parse): Becomes one argument function which works with a previously initialized parser and continues the parse. --- match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'match.c') diff --git a/match.c b/match.c index 562e1dfd..b6d4163b 100644 --- a/match.c +++ b/match.c @@ -3725,7 +3725,7 @@ static val v_load(match_files_ctx *c) parser_t parser; open_txr_file(path, &name, &stream); - parse(stream, name, &parser); + parse_once(stream, name, &parser); gc_state(gc); if (parser.errors) -- cgit v1.2.3