aboutsummaryrefslogtreecommitdiff
path: root/query.h
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 /query.h
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 'query.h')
-rw-r--r--query.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/query.h b/query.h
deleted file mode 100644
index d9c7ac9..0000000
--- a/query.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#define TRUNCATED(s) s[-1]
-
-struct query{
- int method;
- int length; /* Content length. */
- char *string;
-} query;
-
-enum method{
- GET,
- POST
-};
-
-char *nextparam(enum method, int *, int);
-void setquery(void);
-char *split(char *);
-int urldecode(char *, int); \ No newline at end of file