From e9b207c658b1771d7e208535017cbbf33d9e0cf8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 8 Oct 2012 20:22:04 +0100 Subject: Port urldb to nsurl. Won't build since rest of NS needs ported to new urldb API. + urldb API now takes URLs as nsurl, rather than string. + urldb internally stores full URLs with nsurl ref. + urldb internally stores schemes as lwc_string. + Load and save of cookies and URL file may be slower since we now need to create a nsurl. + Everything else should be faster, and there should be much less allocating/freeing and much less parsing of the same url over and over again. + Updated urldbtest for new urldb API. + urldbtest now cleans up at the end + Added lwc_string itterator to end of urldbtest + Adding some broken URLs (such as http:domain/) will now work, since nsurl fixes (http://domain/) them. --- test/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 43b45dda2..759d5f9c8 100644 --- a/test/Makefile +++ b/test/Makefile @@ -16,10 +16,11 @@ llcache_SRCS := content/fetch.c content/fetchers/curl.c \ urldbtest_SRCS := content/urldb.c utils/url.c utils/utils.c utils/log.c \ desktop/options.c utils/messages.c utils/hashtable.c \ - utils/filename.c test/urldbtest.c + utils/filename.c utils/nsurl.c utils/corestrings.c \ + test/urldbtest.c -urldbtest_CFLAGS := $(shell pkg-config --cflags libwapcaplet) -O2 -urldbtest_LDFLAGS := $(shell pkg-config --libs libwapcaplet) +urldbtest_CFLAGS := $(shell pkg-config --cflags libwapcaplet libdom) -O2 +urldbtest_LDFLAGS := $(shell pkg-config --libs libwapcaplet libdom) nsurl_SRCS := utils/log.c utils/nsurl.c test/nsurl.c nsurl_CFLAGS := $(shell pkg-config --cflags libwapcaplet) -- cgit v1.2.3