cmark

My personal build of CMark ✏️

Commit
6938efa76d516462483506d66c68df4287cefbda
Parent
b1dd05c53e677348f3e9722da2429e96a5861e2b
Author
John MacFarlane <jgm@berkeley.edu>
Date

cmark.h: moved typedefs for iterator into iterator section.

This just moves some code around so it makes more sense to read, and in the man page.

Diffstat

1 file changed, 7 insertions, 7 deletions

Status File Name N° Changes Insertions Deletions
Modified src/cmark.h 14 7 7
diff --git a/src/cmark.h b/src/cmark.h
@@ -86,13 +86,6 @@ typedef struct cmark_node cmark_node;
 typedef struct cmark_parser cmark_parser;
 typedef struct cmark_iter cmark_iter;
 
-typedef enum {
-  CMARK_EVENT_NONE,
-  CMARK_EVENT_DONE,
-  CMARK_EVENT_ENTER,
-  CMARK_EVENT_EXIT
-} cmark_event_type;
-
 /**
  * ## Creating and Destroying Nodes
  */
@@ -178,6 +171,13 @@ CMARK_EXPORT cmark_node *cmark_node_last_child(cmark_node *node);
  * leaf nodes.
  */
 
+typedef enum {
+  CMARK_EVENT_NONE,
+  CMARK_EVENT_DONE,
+  CMARK_EVENT_ENTER,
+  CMARK_EVENT_EXIT
+} cmark_event_type;
+
 /** Creates a new iterator starting at 'root'.  The current node and event
  * type are undefined until `cmark_iter_next` is called for the first time.
  */