From da6e2ffafd9a988aa04ffafd7c1118891e3d97c1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 16 Jan 2015 18:15:50 -0800 Subject: Renamed parameters cmark_node -> node. Minor code reformatting: This corrects an overzealous global replace from earlier. --- src/blocks.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/blocks.c b/src/blocks.c index 315ddff..6ed54d0 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -116,10 +116,10 @@ static inline bool accepts_lines(cmark_node_type block_type) block_type == NODE_CODE_BLOCK); } -static void add_line(cmark_node* cmark_node, cmark_chunk *ch, int offset) +static void add_line(cmark_node* node, cmark_chunk *ch, int offset) { - assert(cmark_node->open); - cmark_strbuf_put(&cmark_node->string_content, ch->data + offset, ch->len - offset); + assert(node->open); + cmark_strbuf_put(&node->string_content, ch->data + offset, ch->len - offset); } static void remove_trailing_blank_lines(cmark_strbuf *ln) @@ -145,13 +145,13 @@ static void remove_trailing_blank_lines(cmark_strbuf *ln) // Check to see if a cmark_node ends with a blank line, descending // if needed into lists and sublists. -static bool ends_with_blank_line(cmark_node* cmark_node) +static bool ends_with_blank_line(cmark_node* node) { - if (cmark_node->last_line_blank) { + if (node->last_line_blank) { return true; } - if ((cmark_node->type == NODE_LIST || cmark_node->type == NODE_ITEM) && cmark_node->last_child) { - return ends_with_blank_line(cmark_node->last_child); + if ((node->type == NODE_LIST || node->type == NODE_ITEM) && node->last_child) { + return ends_with_blank_line(node->last_child); } else { return false; } -- cgit v1.2.3