aboutsummaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:35:03 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:39:07 -0800
commit829b089c80895d9a78938c5bc7747aea1cd48eb6 (patch)
tree53bd534741a90c547c5d87039efa5ee625da8081 /src/node.h
parent5ef31853d5161d4b5a2dfc0df94e6eaaeb3215d0 (diff)
Removed implementation-specific material from repository.
The C and JS implementations are being split off into different repositories. This repository will just have the spec itself.
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/node.h b/src/node.h
deleted file mode 100644
index 74eddd4..0000000
--- a/src/node.h
+++ /dev/null
@@ -1,79 +0,0 @@
-#ifndef CMARK_NODE_H
-#define CMARK_NODE_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <stdio.h>
-
-#include "cmark.h"
-#include "buffer.h"
-#include "chunk.h"
-
-typedef struct {
- cmark_list_type list_type;
- int marker_offset;
- int padding;
- int start;
- cmark_delim_type delimiter;
- unsigned char bullet_char;
- bool tight;
-} cmark_list;
-
-typedef struct {
- bool fenced;
- int fence_length;
- int fence_offset;
- unsigned char fence_char;
- cmark_chunk info;
- cmark_chunk literal;
-} cmark_code;
-
-typedef struct {
- int level;
- bool setext;
-} cmark_header;
-
-typedef struct {
- unsigned char *url;
- unsigned char *title;
-} cmark_link;
-
-struct cmark_node {
- cmark_node_type type;
-
- struct cmark_node *next;
- struct cmark_node *prev;
- struct cmark_node *parent;
- struct cmark_node *first_child;
- struct cmark_node *last_child;
-
- void *user_data;
-
- int start_line;
- int start_column;
- int end_line;
- int end_column;
- bool open;
- bool last_line_blank;
-
- cmark_strbuf string_content;
-
- union {
- cmark_chunk literal;
- cmark_list list;
- cmark_code code;
- cmark_header header;
- cmark_link link;
- } as;
-};
-
-CMARK_EXPORT int
-cmark_node_check(cmark_node *node, FILE *out);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif