diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-03-13 21:25:25 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-03-13 21:25:25 -0700 |
commit | c4eb6bc33d9639ce0840a5fa3cea173c2c816fd1 (patch) | |
tree | 6724e3dbf909f022095cb5a7ad669c15477dfb78 /src/latex.c | |
parent | c187089e8725b45144ec668c4bd95b99b28633d5 (diff) | |
parent | af98c75f1ad3338c813aa475aa1b543dd80c138a (diff) |
Merge pull request #109 from nwellnhof/msvc-c99
Compile in plain C mode with MSVC 12.0 or newer
Diffstat (limited to 'src/latex.c')
-rw-r--r-- | src/latex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latex.c b/src/latex.c index 879f813..cd2f6f3 100644 --- a/src/latex.c +++ b/src/latex.c @@ -17,8 +17,9 @@ #define LIT(s) renderer->out(renderer, s, false, LITERAL) #define CR() renderer->cr(renderer) #define BLANKLINE() renderer->blankline(renderer) +#define LIST_NUMBER_STRING_SIZE 20 -static inline void outc(cmark_renderer *renderer, cmark_escaping escape, +static CMARK_INLINE void outc(cmark_renderer *renderer, cmark_escaping escape, int32_t c, unsigned char nextc) { if (escape == LITERAL) { cmark_render_code_point(renderer, c); @@ -217,7 +218,6 @@ static int S_get_enumlevel(cmark_node *node) { static int S_render_node(cmark_renderer *renderer, cmark_node *node, cmark_event_type ev_type, int options) { int list_number; - const size_t LIST_NUMBER_STRING_SIZE = 20; char list_number_string[LIST_NUMBER_STRING_SIZE]; bool entering = (ev_type == CMARK_EVENT_ENTER); cmark_list_type list_type; |