summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-16 18:15:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-16 18:15:50 -0800
commitda6e2ffafd9a988aa04ffafd7c1118891e3d97c1 (patch)
tree8f4c41e1f4c24f7e67b708fcd7960b80abe943b8
parentac9524d8f2387f68bf4c9f20f44b96c4f1487ed0 (diff)
Renamed parameters cmark_node -> node.
Minor code reformatting: This corrects an overzealous global replace from earlier.
-rw-r--r--src/blocks.c14
1 files 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;
}