diff options
author | Adrian Thurston <thurston@complang.org> | 2015-02-07 16:20:29 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-02-07 16:20:29 -0500 |
commit | ab2d8e8cdba3b5fe8b9d5e49ad22b4ef0c73461d (patch) | |
tree | f371ac845605d0bcd861465e3475cbc6fa20346a /src/tree.h | |
parent | 162a4df0969a2448d380e05e5c773b61eeae5207 (diff) | |
download | colm-ab2d8e8cdba3b5fe8b9d5e49ad22b4ef0c73461d.tar.gz |
code movement and conventions
Diffstat (limited to 'src/tree.h')
-rw-r--r-- | src/tree.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -93,10 +93,10 @@ typedef struct _ParseTree /* Parsing algorithm. */ long state; - long region; short causeReduce; - /* FIXME: unify probably. */ + /* Retry vars. Might be able to unify lower and upper. */ + long retryRegion; char retryLower; char retryUpper; } ParseTree; @@ -237,6 +237,7 @@ Object *newList2( struct colm_program *prg ); int testFalse( struct colm_program *prg, Tree *tree ); Tree *makeTree( struct colm_program *prg, Tree **args, long nargs ); Stream *openFile( struct colm_program *prg, Tree *name, Tree *mode ); +Stream *colm_stream_open_file( struct colm_program *prg, Tree *name, Tree *mode ); Stream *colm_stream_open_fd( struct colm_program *prg, char *name, long fd ); Kid *copyIgnoreList( struct colm_program *prg, Kid *ignoreHeader ); Kid *copyKidList( struct colm_program *prg, Kid *kidList ); |