Skip to content

Commit 754ef31

Browse files
committed
tests: Fix existing tests except binary dependency tests.
1 parent 419edce commit 754ef31

29 files changed

+719
-830
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ OBJS = $(DEPS:.c=.o)
2121

2222
export CC
2323

24-
CFLAGS += -std=c17 -U__STRICT_ANSI__ -Ideps -Isrc/common -Isrc/repository -Isrc/registry
25-
CFLAGS += -g -Wall -Werror=return-type -Wno-unused-function $(shell curl-config --cflags)
24+
CFLAGS += -std=c99 -U__STRICT_ANSI__ -Ideps -Isrc/common -Isrc/repository -Isrc/registry $(shell curl-config --cflags)
25+
CFLAGS += -g -Wall -Werror=return-type -Wno-unused-function -Werror=implicit-function-declaration
2626

2727
ifdef STATIC
2828
CFLAGS += -DCURL_STATICLIB $(shell deps/curl/bin/curl-config --cflags)

clib.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
"which": "0.1.3",
1919
"stephenmathieson/str-flatten.c": "0.0.4",
2020
"commander": "1.3.2",
21-
"stephenmathieson/wiki-registry.c": "0.0.4",
2221
"stephenmathieson/case.c": "0.1.3",
2322
"jwerle/fs.c": "0.2.0",
2423
"stephenmathieson/str-replace.c": "0.0.6",
25-
"strdup": "*",
24+
"strdup": "0.1.*",
2625
"Constellation/console-colors.c": "1.0.1",
2726
"littlstar/asprintf.c": "0.0.3",
2827
"logger": "0.0.1",
@@ -44,7 +43,7 @@
4443
"stephenmathieson/gumbo-get-element-by-id.c": "*",
4544
"stephenmathieson/gumbo-get-elements-by-tag-name.c": "*",
4645
"clibs/list": "*",
47-
"jwerle/url.h": "0.1.*"
46+
"jwerle/url.h": "0.2.*"
4847
},
4948
"development": {
5049
"stephenmathieson/describe.h": "2.0.1"

deps/http-get/http-get.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int http_get_file_shared(const char *url, const char *file, CURLSH *share, const
133133
return (200 == status && CURLE_ABORTED_BY_CALLBACK != res) ? 0 : -1;
134134
}
135135

136-
int http_get_file(const char *url, const char *file) {
136+
int http_get_file(const char *url, const char *file, const char** headers, int header_count) {
137137
return http_get_file_shared(url, file, NULL, NULL, 0);
138138
}
139139

deps/http-get/http-get.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ typedef struct {
2424
http_get_response_t *http_get(const char *url, const char** headers, int header_count);
2525
http_get_response_t *http_get_shared(const char *url, void *, const char** headers, int header_count);
2626

27-
int http_get_file(const char *, const char *);
27+
int http_get_file(const char *, const char *, const char** headers, int header_count);
2828
int http_get_file_shared(const char *, const char *, void *, const char** headers, int header_count);
2929

3030
void http_get_free(http_get_response_t *);
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "url",
3-
"version": "0.0.2",
3+
"version": "0.2.0",
44
"repo": "jwerle/url.h",
55
"description": "Parse URLs much like Node's url module",
66
"keywords": ["url", "parse"],
77
"license": "MIT",
8-
"src": ["url.h"]
9-
}
8+
"makefile": "Makefile",
9+
"src": ["url.h", "url.c"]
10+
}

0 commit comments

Comments
 (0)