diff options
Diffstat (limited to 'src/engine/engine.c')
-rw-r--r-- | src/engine/engine.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/engine/engine.c b/src/engine/engine.c index b1dccf4..ecfbc22 100644 --- a/src/engine/engine.c +++ b/src/engine/engine.c @@ -33,6 +33,15 @@ extern msg_t *msg; +/* + * First reads the config, if present. Then streams each directive and parses + * it, modifying the buffer. At the end, all applicable directives in the + * buffer are parsed and evaluated. + * + * ENDEACHDO, BODY, CONTENT, _RAW, etc. are not applicable, + * for varying reasons. For example, ENDEACHDO isn't really meant to be parsed. + * It's only there to define the end of the EACHDO content block. + */ engine_t * engine_ingest(char **buffer) { @@ -113,6 +122,9 @@ engine_ingest(char **buffer) return engine; } +/* + * Frees the provided engine_t's children before freeing the structure itself. + */ void engine_delete(engine_t *engine) { |