summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-02-07 16:20:29 -0500
committerAdrian Thurston <thurston@complang.org>2015-02-07 16:20:29 -0500
commitab2d8e8cdba3b5fe8b9d5e49ad22b4ef0c73461d (patch)
treef371ac845605d0bcd861465e3475cbc6fa20346a /src/tree.h
parent162a4df0969a2448d380e05e5c773b61eeae5207 (diff)
downloadcolm-ab2d8e8cdba3b5fe8b9d5e49ad22b4ef0c73461d.tar.gz
code movement and conventions
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tree.h b/src/tree.h
index 85e9af3f..d3c1e875 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -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 );