aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Added appropriate error for missing a var bindingAlexander Pickering2019-11-25
| | | | | The var binding warning before was just a printf(), change it so that it outputs some helpful text to the template's errout.
* Merge branch 'master' of ssh://cogarr.net:43/home/git/libctemplatesAlexander Pickering2019-11-24
|\
| * Fixed memory corruption bugsAlex Pickering2019-09-28
| | | | | | | | Fixed various memory corruption bugs in the parsing step
* | Reset the output buffer on renderAlexander Pickering2019-11-24
| | | | | | | | | | Reset the output buffer when TMPL_render() is called so that only only the latest render errors are preserved.
* | Fixed empty loop causeing infinite loopAlexander Pickering2019-11-21
|/ | | | | | If a loop was defined in the template, but no loop was defined in the varlist, render() would infinite loop while trying to execute. Fixs that.
* BugfixAlexander Pickering2019-09-28
| | | | Fixed a bug where rendering a template multiple times would fail.
* Fixed some out of bounds writesAlex Pickering2019-09-28
|
* Squashed warningsAlexander Pickering2019-09-27
| | | | | Added the -Wextra flag to the makefile for debug builds, and squashed all the warning that came up.
* Fix typos in headersAlexander Pickering2019-09-04
|
* Added break statement to templatesAlexander Pickering2019-08-28
| | | | | Added a break statement that can break out of loops, also added some tests to test the functionality of the same.
* Added break statementsAlexander Pickering2019-07-21
| | | | Added break statements that can be used to break out of loops
* Cleaning up printsAlexander Pickering2019-02-19
| | | | Cleanning up prints after the last commit
* Added break statementAlexander Pickering2019-02-19
| | | | Added a break statement that can break out of loops.
* Make tokenize return double-linked listAlexander Pickering2018-12-15
| | | | | Tokenize now has a doubly linked list of toekns, for additionall help parsing break/continue instructions.
* Allow bstringify to accept a null sizeAlexander Pickering2018-12-05
| | | | | | 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.
* Added a method to get errors from the templateAlexander Pickering2018-11-07
| | | | | | | Added a method const char* TMPL_err(TMPL_templates* t, size_t* size); t is the template that had an error size is a pointer, size of the error message is returned;
* Added const to most charsAlexander Pickering2018-11-07
| | | | Added const qualifier for clarity.
* Started refactoring codeAlexander Pickering2018-10-25
Added a src/ and build/ directory Added a include/ directory Included file is smaller