From d1a1990c4177653fd2379c227142e6208ecfc20d Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 4 Sep 2019 20:29:20 -0400 Subject: Fix typos in headers --- include/ctemplates.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'include/ctemplates.h') diff --git a/include/ctemplates.h b/include/ctemplates.h index ca77391..7c8e57c 100644 --- a/include/ctemplates.h +++ b/include/ctemplates.h @@ -1,11 +1,17 @@ /* - * C TemplateS Library 0.1 - - * Forked from C Template Library 1.0 by Stephen C. Losen. + * C TemplateS : template expander + * Based on the original libctemplate by Stephen C. Losen + * + * Version 0.1 + * + * Copyright (c) 2017-2019 Alexander M. Pickering (alex@cogarr.net) * * Copyright 2017 Alexander M. Pickering Distributed under the terms * of the GNU General Public License (GPL) */ +#include + #ifndef _CTEMPLATE_H #define _CTEMPLATE_H @@ -37,18 +43,18 @@ void TMPL_add_varlist_to_loop(struct TMPL_loop* l, struct TMPL_varlist* vl); /* Create a new varlist. If allocation fails, the struct retuned will be NULL */ struct TMPL_varlist* TMPL_alloc_varlist(void); /* Frees a varlist (and recursively, any loops under it, any varlists under those loops, ect.) */ -void TMPL_free_varlist(struct TMPL_varlist* t); +void TMPL_free_varlist(struct TMPL_varlist* t); /* Allocate a new template. If allocation fails, the struct retunred will be NULL */ struct TMPL_templates* TMPL_alloc_template(const char* t); /* Free a template. Do not use the string returned by TMPL_render() the template is freed */ -void TMPL_free_template(struct TMPL_templates* t); +void TMPL_free_template(struct TMPL_templates* t); /* Create a new loop. If allocation fails, the struct returned will be NULL */ struct TMPL_loop* TMPL_alloc_loop(void); /* Free a loop. If the loop is added to a varlist, just call free on the varlist and any loops that have been added to it will automatically be freed.*/ -void TMPL_free_loop(struct TMPL_loop* tl); +void TMPL_free_loop(struct TMPL_loop* tl); /* Takes a template and varlist, and collapses it into a string. If size_p is non-null, the size of the resulting string will be placed in it. -- cgit v1.2.3-70-g09d2