improve comments and remove a few TODO markers - saait - the most boring static… | |
git clone git://git.codemadness.org/saait | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 12339ea5125e7ec8ea6c59f98ab09f6245c1d734 | |
parent 51c0c162ec51ad219acaf97e4f7b8b93023fa262 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 29 Oct 2019 18:46:34 +0100 | |
improve comments and remove a few TODO markers | |
Diffstat: | |
M saait.c | 8 +++----- | |
1 file changed, 3 insertions(+), 5 deletions(-) | |
--- | |
diff --git a/saait.c b/saait.c | |
@@ -31,7 +31,7 @@ char *argv0; | |
#include "config.h" | |
-static struct variable *global; | |
+static struct variable *global; /* global config variables */ | |
char * | |
estrdup(const char *s) | |
@@ -476,8 +476,7 @@ main(int argc, char *argv[]) | |
/* header */ | |
for (i = 0; i < templateslen; i++) { | |
- /* TODO: document special "page". | |
- TODO: make "page" template mandatory? */ | |
+ /* "page" is a special case */ | |
if (!strcmp(templates[i].name, "page")) | |
continue; | |
r = snprintf(file, sizeof(file), "%s/%s", outputdir, | |
@@ -526,9 +525,8 @@ main(int argc, char *argv[]) | |
/* item blocks */ | |
for (j = 0; j < templateslen; j++) { | |
- /* TODO: page is a special case for now */ | |
+ /* "page" is a special case */ | |
if (!strcmp(templates[j].name, "page")) { | |
- /* TODO: config option to not process as page … | |
r = snprintf(outputfile, sizeof(outputfile), "… | |
outputdir, filename); | |
if (r < 0 || (size_t)r >= sizeof(outputfile)) { |