diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-08-06 09:34:39 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-08-06 09:34:39 -0700 |
commit | 1f6e14ad253ab3758f507e177b131b8e487076c0 (patch) | |
tree | 175729d6e58e3da3d2fdcd99c69d7dbd209e7a0d /src/render.c | |
parent | d9f5a3fe2555ecf9d64e392d8febf551c60ddbe5 (diff) | |
parent | 2f393322635cbc1eea0fd75ac17c00d01fe42176 (diff) |
Merge pull request #70 from kainjow/master
Prefix utf8proc functions to avoid conflict with existing library
Diffstat (limited to 'src/render.c')
-rwxr-xr-x[-rw-r--r--] | src/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render.c b/src/render.c index 4912615..f1ec672 100644..100755 --- a/src/render.c +++ b/src/render.c @@ -55,7 +55,7 @@ static void S_out(cmark_renderer *renderer, const char *source, bool wrap, renderer->column = renderer->prefix->size; } - len = utf8proc_iterate((const uint8_t *)source + i, length - i, &c); + len = cmark_utf8proc_iterate((const uint8_t *)source + i, length - i, &c); if (len == -1) { // error condition return; // return without rendering rest of string } @@ -118,7 +118,7 @@ void cmark_render_ascii(cmark_renderer *renderer, const char *s) { } void cmark_render_code_point(cmark_renderer *renderer, uint32_t c) { - utf8proc_encode_char(c, renderer->buffer); + cmark_utf8proc_encode_char(c, renderer->buffer); renderer->column += 1; } |