Rename resp.{c,h} to data.{c,h} - quark - quark web server | |
git clone git://git.suckless.org/quark | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit a94b15814cf5729a377dd23c7961f183c6884b59 | |
parent 9a95d9183c0d4c656d9aca33c2fca2327dc5f3a6 | |
Author: Laslo Hunhold | |
Date: Fri, 28 Aug 2020 23:29:54 +0200 Rename resp.{c,h} to data.{c,h} The methods in data.h only deal with the actual response data, not the request handling itself, which has been formalized a bit more in http.h. To avoid confusion, we rename it to data.h. Signed-off-by: Laslo Hunhold | |
diff --git a/Makefile b/Makefile | |
@@ -4,15 +4,15 @@ include config.mk -COMPONENTS = util sock http resp +COMPONENTS = data http sock util all: quark -util.o: util.c util.h config.mk -sock.o: sock.c sock.h util.h config.mk -http.o: http.c http.h util.h http.h resp.h config.h config.mk -resp.o: resp.c resp.h util.h http.h config.mk +data.o: data.c data.h util.h http.h config.mk +http.o: http.c http.h util.h http.h data.h config.h config.mk main.o: main.c util.h sock.h http.h arg.h config.h config.mk +sock.o: sock.c sock.h util.h config.mk +util.o: util.c util.h config.mk quark: $(COMPONENTS:=.o) $(COMPONENTS:=.h) main.o config.mk $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(COMPONENTS:=.o) main.o $(LDFLAGS) | |
diff --git a/data.c b/data.c | |
@@ -0,0 +1,137 @@ +/* See LICENSE file for copyright and license details. */ +#include |
\n