summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar default2025-02-28 09:20:10 +0100
committerGravatar default2025-02-28 09:20:10 +0100
commitba3518e7298e8479c89dd316903a47bf4827b8c5 (patch)
tree4f46d379f7671d6d2f62af5fa5463f656009b768 /main.c
parentUpdated documentation. (diff)
downloadsnac2-ba3518e7298e8479c89dd316903a47bf4827b8c5.tar.gz
snac2-ba3518e7298e8479c89dd316903a47bf4827b8c5.tar.xz
snac2-ba3518e7298e8479c89dd316903a47bf4827b8c5.zip
Deleted old debug code.
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/main.c b/main.c
index 1cd6580..a4ea961 100644
--- a/main.c
+++ b/main.c
@@ -98,15 +98,6 @@ int main(int argc, char *argv[])
98 return snac_init(basedir); 98 return snac_init(basedir);
99 } 99 }
100 100
101 if (strcmp(cmd, "markdown") == 0) { /** **/
102 /* undocumented, for testing only */
103 xs *c = xs_readall(stdin);
104 xs *fc = not_really_markdown(c, NULL, NULL);
105
106 printf("<html>\n%s\n</html>\n", fc);
107 return 0;
108 }
109
110 if ((basedir = getenv("SNAC_BASEDIR")) == NULL) { 101 if ((basedir = getenv("SNAC_BASEDIR")) == NULL) {
111 if ((basedir = GET_ARGV()) == NULL) 102 if ((basedir = GET_ARGV()) == NULL)
112 return usage(); 103 return usage();