cmark

My personal build of CMark ✏️

Commit
d602943b9c4cc94d5809224ec8ecf45cdc8f559e
Parent
e5a65e02bef6856e4ee0c2f928e3a41d4d2e18de
Author
John MacFarlane <jgm@berkeley.edu>
Date

Rename ends_with_blank_line with S_ prefix.

As with other static functions.

Diffstat

1 file changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified src/blocks.c 6 3 3
diff --git a/src/blocks.c b/src/blocks.c
@@ -215,13 +215,13 @@ static void remove_trailing_blank_lines(cmark_strbuf *ln) {
 
 // Check to see if a node ends with a blank line, descending
 // if needed into lists and sublists.
-static bool ends_with_blank_line(cmark_node *node) {
+static bool S_ends_with_blank_line(cmark_node *node) {
   if (S_last_line_checked(node)) {
     return(S_last_line_blank(node));
   } else if ((S_type(node) == CMARK_NODE_LIST ||
               S_type(node) == CMARK_NODE_ITEM) && node->last_child) {
     S_set_last_line_checked(node);
-    return(ends_with_blank_line(node->last_child));
+    return(S_ends_with_blank_line(node->last_child));
   } else {
     S_set_last_line_checked(node);
     return (S_last_line_blank(node));
@@ -322,7 +322,7 @@ static cmark_node *finalize(cmark_parser *parser, cmark_node *b) {
       // spaces between them:
       subitem = item->first_child;
       while (subitem) {
-        if (ends_with_blank_line(subitem) && (item->next || subitem->next)) {
+        if (S_ends_with_blank_line(subitem) && (item->next || subitem->next)) {
           b->as.list.tight = false;
           break;
         }