md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

commit 3688e0fc6596a1a107196d7d5d79d70b89fec212
parent ca5da63d4dd01659593c61129d1cf465add5e41e
Author: Martin Mitas <mity@morous.org>
Date:   Sun,  1 Jan 2017 23:52:27 +0100

md_link_label_eq: Remove harmful anti-optimization.

Diffstat:
Mmd4c/md4c.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -1847,10 +1847,6 @@ md_link_label_eq(const CHAR* a_label, SZ a_size, const CHAR* b_label, SZ b_size) OFF a_off; OFF b_off; - /* Fast path: Most real-life reference labels are using exact match. */ - if(a_size == b_size && memcmp(a_label, b_label, a_size * sizeof(CHAR)) == 0) - return TRUE; - /* The slow path, with Unicode case folding and Unicode whitespace collapsing. */ a_off = md_skip_unicode_whitespace(a_label, 0, a_size); b_off = md_skip_unicode_whitespace(b_label, 0, b_size);