| Commit message (Collapse) | Author | Age |
| |
|
|
| |
Unslopify the tests
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Refactor parsing to not be recursive in the length of the template,
long templates should still render fine, we only limit the depth of
nested tags.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Bunch of bugfixes to templating,
various memory over-reads and over-writes fixed.
Started work on correct unrolling after OOM
Started using frama-c EVA comments.
|
| | |
|
| |
|
|
| |
Add comments and return codes for buffer functions.
|
| |
|
|
|
|
| |
* Update code to suckless style
* Seperate out unit tests for frama-c
* Start working on trbldoc style documentation
|
| | |
|
| |
|
|
| |
Make sure errors propagate inside of if/elseif/else failure.
|
| |
|
|
|
| |
Use Plan9 style headers,
headers do not import from eachother.
|
| |
|
|
| |
Do the right thing when render fails
|
| |
|
|
| |
Public API did not specify error codes for consumers.
|
| |
|
|
| |
Executeable should have been .exe
|
| |
|
|
| |
Use before initalization
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Fixed tests to use the new apis
|
| |
|
|
|
| |
Certain conditions on an if statement could cause a crash, bug
introduced when adding errors everywhere a few patches ago.
|
| |
|
|
|
| |
The var binding warning before was just a printf(), change it so that it
outputs some helpful text to the template's errout.
|
| |\ |
|
| | |
| |
| |
| | |
Fixed various memory corruption bugs in the parsing step
|
| | |
| |
| |
| |
| | |
Reset the output buffer when TMPL_render() is called so that only only
the latest render errors are preserved.
|
| |/
|
|
|
|
| |
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.
|
| |
|
|
| |
Fixed a bug where rendering a template multiple times would fail.
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| | |
Added the -Wextra flag to the makefile for debug builds, and squashed
all the warning that came up.
|
| |/
|
|
|
| |
Added the -Wextra flag to the makefile for debug builds, and squashed
all the warning that came up.
|
| | |
|
| |
|
|
|
| |
Added a break statement that can break out of loops, also added
some tests to test the functionality of the same.
|
| |
|
|
| |
Added more system tests for loop breaking
|
| |
|
|
|
|
| |
Sill needs some more tests, like: make sure variable scoping is
still correct after breaking out of a loop, how about multiple
loops?
|
| |
|
|
| |
Added break statements that can be used to break out of loops
|
| |
|
|
| |
Cleanning up prints after the last commit
|
| |
|
|
| |
Added a break statement that can break out of loops.
|
| |
|
|
| |
Corrected a bunch of spelling mistakes in the readme and the Makefile
|
| |
|
|
|
| |
Tokenize now has a doubly linked list of toekns, for additionall
help parsing break/continue instructions.
|
| |
|
|
|
| |
Added documentation for each function in the include/ctemplates.h file
Also did some spellchecking on the readme.
|
| |
|
|
|
|
| |
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
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 qualifier for clarity.
|
| |
|
|
|
|
| |
Added a src/ and build/ directory
Added a include/ directory
Included file is smaller
|