diff options
| author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-15 19:49:26 +0100 | 
|---|---|---|
| committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 21:23:01 +0100 | 
| commit | a3ee335cd94818b47b2499568ef4bbc95efd37bb (patch) | |
| tree | f14780fef6b6bdff66fd13e428dc65eee6c04480 /src/blocks.c | |
| parent | b779a59313850e2b7fad45a6da8ed7acfb58d518 (diff) | |
Use named enum types
Needed for C++ compatibility.
Diffstat (limited to 'src/blocks.c')
| -rw-r--r-- | src/blocks.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blocks.c b/src/blocks.c index f0560ad..c0c2342 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -16,7 +16,7 @@  #define peek_at(i, n) (i)->data[n] -static node_block* make_block(int tag, int start_line, int start_column) +static node_block* make_block(cmark_block_tag tag, int start_line, int start_column)  {  	node_block* e; @@ -85,7 +85,7 @@ static bool is_blank(strbuf *s, int offset)  	return true;  } -static inline bool can_contain(int parent_type, int child_type) +static inline bool can_contain(cmark_block_tag parent_type, cmark_block_tag child_type)  {  	return ( parent_type == BLOCK_DOCUMENT ||  			parent_type == BLOCK_BQUOTE || @@ -251,7 +251,7 @@ static void finalize(node_block* b, int line_number)  // Add a node_block as child of another.  Return pointer to child.  static node_block* add_child(node_block* parent, -		int block_type, int start_line, int start_column) +		cmark_block_tag block_type, int start_line, int start_column)  {  	assert(parent);  | 
