diff options
author | Adrian Thurston <thurston@complang.org> | 2012-01-01 21:09:43 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2012-01-01 21:09:43 +0000 |
commit | ab4266db27d12e5a406af9c971663f580daca8f1 (patch) | |
tree | 968737d60d38c19ca3c8246e4cecbb02b7177582 | |
parent | 1ff445d6647df911c3b9c3a3b2bbcbf8681d8ff4 (diff) | |
download | colm-ab4266db27d12e5a406af9c971663f580daca8f1.tar.gz |
Don't create a default accum stream when creating parsers. It will always be
set.
-rw-r--r-- | colm/tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/colm/tree.c b/colm/tree.c index 66dbc207..73eb7ea7 100644 --- a/colm/tree.c +++ b/colm/tree.c @@ -809,15 +809,11 @@ Tree *createGeneric( Program *prg, long genericId ) accum->genericInfo = genericInfo; accum->fsmRun = malloc( sizeof(FsmRun) ); accum->pdaRun = malloc( sizeof(PdaRun) ); - accum->accumStream = accumStreamAllocate( prg ); - accum->accumStream->in = malloc( sizeof(InputStream) ); - accum->accumStream->refs = 1; /* Start off the parsing process. */ initPdaRun( accum->pdaRun, prg, prg->rtd->pdaTables, accum->fsmRun, genericInfo->parserId, false, false, 0 ); initFsmRun( accum->fsmRun, prg ); - initInputStream( accum->accumStream->in ); newToken( prg, accum->pdaRun, accum->fsmRun ); newGeneric = (Tree*) accum; |