diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-06-10 19:32:02 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-06-10 19:32:02 -0700 |
commit | fbf525ae910ae48b1e6401fd2307772e214b1baa (patch) | |
tree | 01375a1d08b4fb2cc5cbe526998bec9ed35eced9 /parser.h | |
parent | 421b7c3aec0b60d126cdec79f2647c901323389f (diff) | |
download | txr-fbf525ae910ae48b1e6401fd2307772e214b1baa.tar.gz txr-fbf525ae910ae48b1e6401fd2307772e214b1baa.tar.bz2 txr-fbf525ae910ae48b1e6401fd2307772e214b1baa.zip |
Preparing for lisp loading.
* parser.c (open_txr_file): Rewritten to take new argument
which indicates whether to treat an unsuffixed file as
TXR or TXR Lisp, and is updated to indicate which is the
case by looking at the suffix.
* parser.h (open_txr_file): Declaration updated.
* match.c (v_load): Follow change in open_txr_file.
* txr.c (txr_main): Likewise.
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ int yylex_destroy(yyscan_t scanner); parser_t *yyget_extra(yyscan_t scanner); void yyset_extra(parser_t *, yyscan_t); void parser_l_init(void); -void open_txr_file(val spec_file, val *name, val *stream); +void open_txr_file(val spec_file, val *txr_lisp_p, val *name, val *stream); val prime_parser(val parser); int parse_once(val stream, val name, parser_t *parser); int parse(parser_t *parser); |