summaryrefslogtreecommitdiff
path: root/colm/tree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-04-06 15:15:14 -0400
committerAdrian Thurston <thurston@complang.org>2013-04-06 15:15:14 -0400
commitfd2321adba3b2fb536fb2dee778d5654ff554a01 (patch)
treef3ad83181861a0baf8762ef5d58b077af92857d4 /colm/tree.h
parent7343ff7f7c770633ef41b395d6eb5adcb01b9c56 (diff)
downloadcolm-fd2321adba3b2fb536fb2dee778d5654ff554a01.tar.gz
pass file name to streams, set in location
Diffstat (limited to 'colm/tree.h')
-rw-r--r--colm/tree.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/colm/tree.h b/colm/tree.h
index d137a8c9..edfb60f9 100644
--- a/colm/tree.h
+++ b/colm/tree.h
@@ -33,15 +33,9 @@ typedef unsigned long Word;
typedef unsigned long Half;
struct Bindings;
-typedef struct _File
-{
- struct _File *prev;
- struct _File *next;
-} File;
-
typedef struct _Location
{
- File *file;
+ const char *name;
long line;
long column;
long byte;
@@ -277,7 +271,7 @@ Tree *constructStream( struct ColmProgram *prg );
int testFalse( struct ColmProgram *prg, Tree *tree );
Tree *makeTree( struct ColmProgram *prg, Tree **root, long nargs );
Stream *openFile( struct ColmProgram *prg, Tree *name, Tree *mode );
-Stream *openStreamFd( struct ColmProgram *prg, long fd );
+Stream *openStreamFd( struct ColmProgram *prg, char *name, long fd );
Kid *copyIgnoreList( struct ColmProgram *prg, Kid *ignoreHeader );
Kid *copyKidList( struct ColmProgram *prg, Kid *kidList );
void streamFree( struct ColmProgram *prg, Stream *s );