aboutsummaryrefslogtreecommitdiff
path: root/cforum.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-19 14:46:47 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-19 14:46:47 +0200
commit53569c91e4ebdbba96e6286f846dead1d427e6e2 (patch)
tree70d9e65a3e175d034349dbfb17e1044b752a1334 /cforum.c
parent3f2a9bc6638dbe09bd8c70fdac068555659e58ac (diff)
downloadcforum-53569c91e4ebdbba96e6286f846dead1d427e6e2.tar.gz
Use single header file
There are drawbacks with this approach, but the benefit -- for a small-ish project -- is that the single header file can serve as a very good overview and guide for people exploring the code for the first time.
Diffstat (limited to 'cforum.c')
-rw-r--r--cforum.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cforum.c b/cforum.c
index 999ae78..a7d5d7d 100644
--- a/cforum.c
+++ b/cforum.c
@@ -3,12 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
-#include "ctl.h" /* Controllers. */
-#include "db.h" /* Database functions. Defines global variable db. */
-#include "err.h" /* HTTP errors. */
-#include "site.h" /* Site settings. Defines global struct site. */
-#include "query.h" /* Query functions. Defines global struct query. */
+#include "cforum.h"
#define MAXMSG 300