summaryrefslogtreecommitdiff
path: root/src/program.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-11-12 15:06:02 -0500
committerAdrian Thurston <thurston@complang.org>2015-11-12 15:06:02 -0500
commit5182f76980bde6ba75f62247f9775e7da51e91b3 (patch)
tree86a41887a820d8d73dcb75b66fae32f466695deb /src/program.c
parent8eb52f256121624aa4c70800fdca342d87596608 (diff)
downloadcolm-5182f76980bde6ba75f62247f9775e7da51e91b3.tar.gz
dynamically size runbufs from extract_token
Allows large tokens. Note there are other places this is needed.
Diffstat (limited to 'src/program.c')
-rw-r--r--src/program.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/program.c b/src/program.c
index 0f7396d8..67a5f4bc 100644
--- a/src/program.c
+++ b/src/program.c
@@ -270,9 +270,9 @@ int colm_delete_program( program_t *prg )
parse_tree_clear( &prg->parse_tree_pool );
location_clear( prg );
- RunBuf *rb = prg->alloc_run_buf;
+ struct run_buf *rb = prg->alloc_run_buf;
while ( rb != 0 ) {
- RunBuf *next = rb->next;
+ struct run_buf *next = rb->next;
free( rb );
rb = next;
}