cmark

My personal build of CMark ✏️

Commit
1ada72c625b2005d9b03d86bc72ce1597740bf7a
Parent
6a1d17d27fcdd3217228b9543c4a658fffa27c00
Author
John MacFarlane <jgm@berkeley.edu>
Date

Renamed a couple variables.

Diffstat

1 file changed, 7 insertions, 7 deletions

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 14 7 7
diff --git a/src/inlines.c b/src/inlines.c
@@ -679,7 +679,7 @@ static cmark_node* handle_close_bracket(subject* subj, cmark_node *parent)
 	int sps;
 	cmark_reference *ref;
 	bool is_image = false;
-	cmark_chunk urlcmark_chunk, titlecmark_chunk;
+	cmark_chunk url_chunk, title_chunk;
 	unsigned char *url, *title;
 	delimiter *opener;
 	cmark_node *link_text;
@@ -734,12 +734,12 @@ static cmark_node* handle_close_bracket(subject* subj, cmark_node *parent)
 		if (peek_at(subj, endall) == ')') {
 			subj->pos = endall + 1;
 
-			urlcmark_chunk = cmark_chunk_dup(&subj->input, starturl, endurl - starturl);
-			titlecmark_chunk = cmark_chunk_dup(&subj->input, starttitle, endtitle - starttitle);
-			url = cmark_clean_url(&urlcmark_chunk);
-			title = cmark_clean_title(&titlecmark_chunk);
-			cmark_chunk_free(&urlcmark_chunk);
-			cmark_chunk_free(&titlecmark_chunk);
+			url_chunk = cmark_chunk_dup(&subj->input, starturl, endurl - starturl);
+			title_chunk = cmark_chunk_dup(&subj->input, starttitle, endtitle - starttitle);
+			url = cmark_clean_url(&url_chunk);
+			title = cmark_clean_title(&title_chunk);
+			cmark_chunk_free(&url_chunk);
+			cmark_chunk_free(&title_chunk);
 			goto match;
 
 		} else {