From ea5f2d56933d04975ef34b85372a577ad433950f Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 5 Dec 2018 18:30:47 -0500 Subject: Allow bstringify to accept a null size Allow bstringify (and therefore TMPL_render()) to accept NULL as the size. When NULL is passed as the size, the size of the resulting string is not stored anywhere. --- t/test_1.c | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 't/test_1.c') diff --git a/t/test_1.c b/t/test_1.c index c881701..4fc8b72 100644 --- a/t/test_1.c +++ b/t/test_1.c @@ -73,7 +73,10 @@ char t_18[] = "Test var with spaces between attribute and name:roottag);*/ - /*printf("Alloced template\n");*/ vl = TMPL_alloc_varlist(); - /*printf("Made varles\n");*/ ret = TMPL_render(t,vl,&dummy); - /*printf("Rendered\n");*/ if(strcmp(ret,c_18_1) != 0){ fprintf(stderr, "Error in test file 1, test 18\n"); printf("Result should have been '%s\n was '%s'\n",c_18_1,ret); @@ -426,6 +441,7 @@ int main(){ } TMPL_free_varlist(vl); TMPL_free_template(t); + log("Test 18 complete\n"); return 0; } -- cgit v1.2.3-70-g09d2