diff options
author | Aki <please@ignore.pl> | 2020-08-16 21:07:17 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-16 21:07:17 +0200 |
commit | ddb35c287bc34622879edf687952825a1259ffdb (patch) | |
tree | 1f05dc1c3b8ac8ed30fe48dc4316590e9e696a69 | |
parent | 338736f6cd60bf634ef04ab246187caa78597789 (diff) | |
download | plop-ddb35c287bc34622879edf687952825a1259ffdb.zip plop-ddb35c287bc34622879edf687952825a1259ffdb.tar.gz plop-ddb35c287bc34622879edf687952825a1259ffdb.tar.bz2 |
Removed unused http header and source file
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | http.c | 11 | ||||
-rw-r--r-- | http.h | 14 | ||||
-rw-r--r-- | plop.c | 1 | ||||
-rw-r--r-- | plop.h | 1 | ||||
-rw-r--r-- | request.c | 2 | ||||
-rw-r--r-- | response.c | 2 |
7 files changed, 5 insertions, 37 deletions
@@ -3,13 +3,12 @@ CFLAGS+=-I/usr/include/lua5.3 LDLIBS+=-llua5.3 PREFIX?=/usr/local -plop: main.o plop.o http.o response.o request.o +plop: main.o plop.o response.o request.o -http.o: http.h -main.o: plop.h http.h request.h -plop.o: http.h plop.h request.h response.h -request.o: http.h request.h -response.o: response.h http.h +main.o: plop.h request.h +plop.o: plop.h request.h response.h +request.o: request.h +response.o: response.h clean: rm -f plop *.o @@ -1,11 +0,0 @@ -#include "http.h" - -const char * status_str[] = { - [STATUS_OK] = "200 OK", - [STATUS_BAD_REQUEST] = "400 Bad Request", - [STATUS_METHOD_NOT_ALLOWED] = "405 Method Not Allowed", - [STATUS_REQUEST_TIMEOUT] = "408 Request Timeout", - [STATUS_INTERNAL_SERVER_ERROR] = "500 Internal Server Error", - [STATUS_NOT_IMPLEMENTED] = "501 Not Implemented", - [STATUS_VERSION_NOT_SUPPORTED] = "505 Version Not Supported", -}; @@ -1,14 +0,0 @@ -#pragma once - -enum status -{ - STATUS_OK = 200, - STATUS_BAD_REQUEST = 400, - STATUS_METHOD_NOT_ALLOWED = 405, - STATUS_REQUEST_TIMEOUT = 408, - STATUS_INTERNAL_SERVER_ERROR = 500, - STATUS_NOT_IMPLEMENTED = 501, - STATUS_VERSION_NOT_SUPPORTED = 505, -}; - -extern const char * status_str[]; @@ -14,7 +14,6 @@ #include <lauxlib.h> #include <lua.h> -#include "http.h" #include "request.h" #include "response.h" @@ -4,7 +4,6 @@ #include <lua.h> -#include "http.h" #include "request.h" int make_server(const char *, const char *); @@ -11,8 +11,6 @@ #include <lauxlib.h> #include <lua.h> -#include "http.h" - static const int REQUEST_DATA_SIZE = 4096; /// Allocates and initializes request structure. @@ -8,8 +8,6 @@ #include <lua.h> -#include "http.h" - /// Sends a response based on the current top value on the stack. /// \param L Lua state to send response for /// \param fd File descriptor of a socket to write to |