commit 512410aeb0fcaad15bc7e3db54eb6e7331a22d0f
parent bd413d7d795f484b0f41a550daac5d87ae460db5
Author: finwo <finwo@pm.me>
Date: Thu, 3 Aug 2023 21:06:06 +0200
Add tidwall/buf dep and include dep's config.mk in makefile
Diffstat:
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,8 +1,10 @@
SRC=$(wildcard src/*.c)
SRC+=test.c
+include lib/.dep/config.mk
+
http-parser-test: $(SRC) src/http-parser-statusses.h src/http-parser.h
- $(CC) -Isrc -o $@ $(SRC)
+ $(CC) -Isrc $(INCLUDES) -o $@ $(SRC)
.PHONY: check
check: http-parser-test
diff --git a/package.ini b/package.ini
@@ -1,7 +1,8 @@
-[package]
-name=finwo/http-parser
-
+[dependencies]
+tidwall/buf=https://raw.githubusercontent.com/finwo/dep-repository/main/tidwall/buf/package.ini
[export]
config.mk=config.mk
-include/finwo/http-parser.h=src/http-parser.h
include/finwo/http-parser-statusses.h=src/http-parser-statusses.h
+include/finwo/http-parser.h=src/http-parser.h
+[package]
+name=finwo/http-parser
diff --git a/src/http-parser.h b/src/http-parser.h
@@ -65,7 +65,6 @@ struct http_parser_pair * http_parser_pair_init(void *udata);
struct http_parser_message * http_parser_request_init();
struct http_parser_message * http_parser_response_init();
-
void http_parser_request_data(struct http_parser_message *request, const char *data, int size);
void http_parser_response_data(struct http_parser_message *response, const char *data, int size);