diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-15 12:05:04 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-12-15 12:05:04 -0800 |
commit | d6077ea037e23f6e2c0d83dda7b5d7106f48d1a3 (patch) | |
tree | 5bf5a03ba41d8570ecea1846ac6cd36c049bfc7a /src/houdini_html_e.c | |
parent | ab19f3cf3c247a5216ae7e7e78ef8c2eaac7ce0a (diff) |
Re-added cmark_ prefix to strbuf and chunk.
Reverts 225d720.
Diffstat (limited to 'src/houdini_html_e.c')
-rw-r--r-- | src/houdini_html_e.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/houdini_html_e.c b/src/houdini_html_e.c index db5034b..4e523f5 100644 --- a/src/houdini_html_e.c +++ b/src/houdini_html_e.c @@ -45,7 +45,7 @@ static const char *HTML_ESCAPES[] = { }; int -houdini_escape_html0(strbuf *ob, const uint8_t *src, size_t size, int secure) +houdini_escape_html0(cmark_strbuf *ob, const uint8_t *src, size_t size, int secure) { size_t i = 0, org, esc = 0; @@ -55,7 +55,7 @@ houdini_escape_html0(strbuf *ob, const uint8_t *src, size_t size, int secure) i++; if (i > org) - strbuf_put(ob, src + org, i - org); + cmark_strbuf_put(ob, src + org, i - org); /* escaping */ if (unlikely(i >= size)) @@ -63,9 +63,9 @@ houdini_escape_html0(strbuf *ob, const uint8_t *src, size_t size, int secure) /* The forward slash is only escaped in secure mode */ if ((src[i] == '/' || src[i] == '\'') && !secure) { - strbuf_putc(ob, src[i]); + cmark_strbuf_putc(ob, src[i]); } else { - strbuf_puts(ob, HTML_ESCAPES[esc]); + cmark_strbuf_puts(ob, HTML_ESCAPES[esc]); } i++; @@ -75,7 +75,7 @@ houdini_escape_html0(strbuf *ob, const uint8_t *src, size_t size, int secure) } int -houdini_escape_html(strbuf *ob, const uint8_t *src, size_t size) +houdini_escape_html(cmark_strbuf *ob, const uint8_t *src, size_t size) { return houdini_escape_html0(ob, src, size, 1); } |