diff options
-rw-r--r-- | src/html.c | 5 | ||||
-rw-r--r-- | src/man.c | 4 | ||||
-rw-r--r-- | src/xml.c | 5 |
3 files changed, 6 insertions, 8 deletions
@@ -50,10 +50,9 @@ S_render_sourcepos(cmark_node *node, cmark_strbuf *html, long options) { } static int -S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate, - long options) +S_render_node(cmark_node *node, cmark_event_type ev_type, + struct render_state *state, long options) { - struct render_state *state = vstate; cmark_node *parent; cmark_node *grandparent; cmark_strbuf *html = state->html; @@ -43,9 +43,9 @@ struct render_state { }; static int -S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate) +S_render_node(cmark_node *node, cmark_event_type ev_type, + struct render_state *state) { - struct render_state *state = vstate; cmark_node *tmp; cmark_strbuf *man = state->man; int list_number; @@ -35,10 +35,9 @@ static inline void indent(struct render_state *state) } static int -S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate, - long options) +S_render_node(cmark_node *node, cmark_event_type ev_type, + struct render_state *state, long options) { - struct render_state *state = vstate; cmark_strbuf *xml = state->xml; bool literal = false; |