summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/node.h b/src/node.h
index ee0ff41..6bf6677 100644
--- a/src/node.h
+++ b/src/node.h
@@ -8,15 +8,11 @@ extern "C" {
#include <stdio.h>
#include <stdint.h>
+#include "config.h"
#include "cmark.h"
#include "buffer.h"
typedef struct {
- unsigned char *data;
- bufsize_t len;
-} cmark_literal;
-
-typedef struct {
int marker_offset;
int padding;
int start;
@@ -28,7 +24,6 @@ typedef struct {
typedef struct {
unsigned char *info;
- unsigned char *literal;
uint8_t fence_length;
uint8_t fence_offset;
unsigned char fence_char;
@@ -57,7 +52,7 @@ enum cmark_node__internal_flags {
};
struct cmark_node {
- cmark_strbuf content;
+ cmark_mem *mem;
struct cmark_node *next;
struct cmark_node *prev;
@@ -67,6 +62,9 @@ struct cmark_node {
void *user_data;
+ unsigned char *data;
+ bufsize_t len;
+
int start_line;
int start_column;
int end_line;
@@ -76,7 +74,6 @@ struct cmark_node {
uint16_t flags;
union {
- cmark_literal literal;
cmark_list list;
cmark_code code;
cmark_heading heading;
@@ -86,9 +83,6 @@ struct cmark_node {
} as;
};
-static CMARK_INLINE cmark_mem *cmark_node_mem(cmark_node *node) {
- return node->content.mem;
-}
CMARK_EXPORT int cmark_node_check(cmark_node *node, FILE *out);
#ifdef __cplusplus