From fa428438520c4898b208a3435edd7fe15b69524a Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 1 Sep 2011 04:32:38 +0200 Subject: Drop dependency on the old `array.c` The old array was not quite optimal, and was not used optimally either. - The `struct array` that was used for accessing link references has been replaced with a minimal, fixed-width hash table. This should be much more straightforward for small documents. - The `struct parray` used as a string pool has been replaced with a fast-growing stack. Realloc'ing once per push has never been a good idea anyway. Yey for losing boilerplate! --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index de38f2a..57346c2 100644 --- a/Makefile +++ b/Makefile @@ -32,12 +32,12 @@ all: libsundown.so sundown smartypants html_blocks libsundown.so: libsundown.so.1 ln -f -s $^ $@ -libsundown.so.1: src/markdown.o src/array.o src/buffer.o src/autolink.o html/html.o html/html_smartypants.o +libsundown.so.1: src/markdown.o src/stack.o src/buffer.o src/autolink.o html/html.o html/html_smartypants.o $(CC) $(LDFLAGS) -shared -Wl $^ -o $@ # executables -sundown: examples/sundown.o src/markdown.o src/array.o src/autolink.o src/buffer.o html/html.o html/html_smartypants.o +sundown: examples/sundown.o src/markdown.o src/stack.o src/autolink.o src/buffer.o html/html.o html/html_smartypants.o $(CC) $(LDFLAGS) $^ -o $@ smartypants: examples/smartypants.o src/buffer.o html/html_smartypants.o html/html.o src/autolink.o -- cgit v1.2.1