diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-09-01 04:32:38 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-09-01 04:32:38 +0200 |
commit | fa428438520c4898b208a3435edd7fe15b69524a (patch) | |
tree | b35d1c3c830726c84194f1d9ead3321299820439 /Makefile | |
parent | 9988a0123c03edccd95cd7b3b45620b3ac6b445c (diff) | |
download | rust-hoedown-fa428438520c4898b208a3435edd7fe15b69524a.tar.gz |
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!
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |