diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-11 10:23:14 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-11 10:23:14 -0800 |
commit | 6938efa76d516462483506d66c68df4287cefbda (patch) | |
tree | 9da5519d2df0d27d3071d3899c69c11da33ec98d /src/cmark.h | |
parent | b1dd05c53e677348f3e9722da2429e96a5861e2b (diff) |
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 (limited to 'src/cmark.h')
-rw-r--r-- | src/cmark.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmark.h b/src/cmark.h index 6b5c385..dcd7e2c 100644 --- 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. */ |