From 9c8bf52be1fe1af8830327c375d644ecfdb5f5c1 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 29 Dec 2017 01:23:12 -0500 Subject: Various bugfixes Also removed debug prints --- ctemplates.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ctemplates.c b/ctemplates.c index fb32b67..faf4334 100644 --- a/ctemplates.c +++ b/ctemplates.c @@ -785,7 +785,6 @@ parse(struct TMPL_token* head, struct TMPL_buf* errbuf){ if(head == NULL){ return NULL; } - printf("Parsing token of type: %d\n",head->type); switch(head->type){ case tag_text: root = parse_text(head,errbuf); @@ -809,7 +808,6 @@ parse(struct TMPL_token* head, struct TMPL_buf* errbuf){ root = NULL; break; default: - printf("Hit token of type: %d, exiting\n", head->type); exit(-1); break; } @@ -831,15 +829,11 @@ compile(char* tmplstr){ struct TMPL_templates* ret = alloc_templates(); ret->out = alloc_tmpl_buf(); ret->errout = alloc_tmpl_buf(); - printf("About to do hard things\n"); struct TMPL_token* tokens = TMPL_tokenize(tmplstr,slen); print_tokens(tokens); - printf("Done tokenizeing\n"); struct TMPL_tagnode* ast = parse(tokens,ret->errout); - printf("Done making ast\n"); print_ast(ast); if(ast == NULL){ - printf("Failed to compile\n"); }else{ ret->roottag = ast; } -- cgit v1.2.3-70-g09d2