diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-12-29 01:23:12 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-12-29 01:23:33 -0500 |
| commit | 9c8bf52be1fe1af8830327c375d644ecfdb5f5c1 (patch) | |
| tree | a343d81da1cb5c482792f85d318bd9b24f4f80d3 /ctemplates.c | |
| parent | e81f26718e5c95de6140631652f1319857602ff8 (diff) | |
| download | libctemplates-9c8bf52be1fe1af8830327c375d644ecfdb5f5c1.tar.gz libctemplates-9c8bf52be1fe1af8830327c375d644ecfdb5f5c1.tar.bz2 libctemplates-9c8bf52be1fe1af8830327c375d644ecfdb5f5c1.zip | |
Various bugfixes
Also removed debug prints
Diffstat (limited to 'ctemplates.c')
| -rw-r--r-- | ctemplates.c | 6 |
1 files changed, 0 insertions, 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; } |
