aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2019-09-04 20:29:20 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2019-09-04 20:29:20 -0400
commitd1a1990c4177653fd2379c227142e6208ecfc20d (patch)
tree1ca9468b96a7bdfae79753913cf052d986f014c3 /include
parent06087b10ec7a897ad48db83f7f33a8fc11fa9341 (diff)
downloadlibctemplates-d1a1990c4177653fd2379c227142e6208ecfc20d.tar.gz
libctemplates-d1a1990c4177653fd2379c227142e6208ecfc20d.tar.bz2
libctemplates-d1a1990c4177653fd2379c227142e6208ecfc20d.zip
Fix typos in headers
Diffstat (limited to 'include')
-rw-r--r--include/ctemplates.h16
1 files changed, 11 insertions, 5 deletions
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 <stddef.h>
+
#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.