summaryrefslogtreecommitdiff
path: root/src/man.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-03-13 21:25:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-03-13 21:25:25 -0700
commitc4eb6bc33d9639ce0840a5fa3cea173c2c816fd1 (patch)
tree6724e3dbf909f022095cb5a7ad669c15477dfb78 /src/man.c
parentc187089e8725b45144ec668c4bd95b99b28633d5 (diff)
parentaf98c75f1ad3338c813aa475aa1b543dd80c138a (diff)
Merge pull request #109 from nwellnhof/msvc-c99
Compile in plain C mode with MSVC 12.0 or newer
Diffstat (limited to 'src/man.c')
-rw-r--r--src/man.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/man.c b/src/man.c
index 2ce7540..3d8bc20 100644
--- a/src/man.c
+++ b/src/man.c
@@ -14,6 +14,7 @@
#define LIT(s) renderer->out(renderer, s, false, LITERAL)
#define CR() renderer->cr(renderer)
#define BLANKLINE() renderer->blankline(renderer)
+#define LIST_NUMBER_SIZE 20
// Functions to convert cmark_nodes to groff man strings.
static void S_outc(cmark_renderer *renderer, cmark_escaping escape, int32_t c,
@@ -110,7 +111,6 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
tmp = tmp->prev;
list_number += 1;
}
- const size_t LIST_NUMBER_SIZE = 20;
char list_number_s[LIST_NUMBER_SIZE];
snprintf(list_number_s, LIST_NUMBER_SIZE, "\"%d.\" 4", list_number);
LIT(list_number_s);