- Commit
- 3554759dbe4a0cb937556226d621bb71efd188e7
- Parent
- 2c7b83042fea3c970e5b1a1914880bc60acf6174
- Author
- Nick Wellnhofer <wellnhofer@aevum.de>
- Date
Rename ast.h to parser.h
My personal build of CMark ✏️
Rename ast.h to parser.h
10 files changed, 31 insertions, 37 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 2 | 1 | 1 |
Deleted | src/ast.h | 29 | 0 | 29 |
Modified | src/blocks.c | 2 | 1 | 1 |
Modified | src/cmark.c | 1 | 0 | 1 |
Modified | src/html/html.c | 1 | 0 | 1 |
Modified | src/inlines.c | 2 | 1 | 1 |
Added | src/parser.h | 27 | 27 | 0 |
Modified | src/print.c | 1 | 0 | 1 |
Modified | src/references.c | 2 | 1 | 1 |
Modified | src/references.h | 1 | 0 | 1 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8) set(LIBRARY "libcmark") set(HEADERS cmark.h - ast.h + parser.h buffer.h node.h chunk.h
diff --git a/src/ast.h b/src/ast.h @@ -1,29 +0,0 @@ -#ifndef CMARK_AST_H -#define CMARK_AST_H - -#include <stdio.h> -#include "config.h" -#include "node.h" -#include "buffer.h" -#include "chunk.h" -#include "cmark.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define MAX_LINK_LABEL_LENGTH 1000 - -struct cmark_doc_parser { - struct cmark_reference_map *refmap; - struct cmark_node* root; - struct cmark_node* current; - int line_number; - cmark_strbuf *curline; -}; - -#ifdef __cplusplus -} -#endif - -#endif
diff --git a/src/blocks.c b/src/blocks.c @@ -4,7 +4,7 @@ #include <ctype.h> #include "config.h" -#include "ast.h" +#include "parser.h" #include "cmark.h" #include "node.h" #include "references.h"
diff --git a/src/cmark.c b/src/cmark.c @@ -6,7 +6,6 @@ #include "html/houdini.h" #include "cmark.h" #include "buffer.h" -#include "ast.h" unsigned char *cmark_markdown_to_html(unsigned char *text, int len) {
diff --git a/src/html/html.c b/src/html/html.c @@ -7,7 +7,6 @@ #include "cmark.h" #include "node.h" #include "buffer.h" -#include "ast.h" #include "debug.h" #include "html/houdini.h"
diff --git a/src/inlines.c b/src/inlines.c @@ -5,7 +5,7 @@ #include "config.h" #include "node.h" -#include "ast.h" +#include "parser.h" #include "references.h" #include "cmark.h" #include "html/houdini.h"
diff --git a/src/parser.h b/src/parser.h @@ -0,0 +1,27 @@ +#ifndef CMARK_AST_H +#define CMARK_AST_H + +#include <stdio.h> +#include "node.h" +#include "references.h" +#include "buffer.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define MAX_LINK_LABEL_LENGTH 1000 + +struct cmark_doc_parser { + struct cmark_reference_map *refmap; + struct cmark_node* root; + struct cmark_node* current; + int line_number; + cmark_strbuf *curline; +}; + +#ifdef __cplusplus +} +#endif + +#endif
diff --git a/src/print.c b/src/print.c @@ -1,7 +1,6 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include "ast.h" #include "cmark.h" #include "node.h" #include "debug.h"
diff --git a/src/references.c b/src/references.c @@ -1,6 +1,6 @@ #include "cmark.h" #include "utf8.h" -#include "ast.h" +#include "parser.h" #include "references.h" #include "inlines.h" #include "chunk.h"
diff --git a/src/references.h b/src/references.h @@ -2,7 +2,6 @@ #define CMARK_REFERENCES_H #include "chunk.h" -#include "ast.h" #ifdef __cplusplus extern "C" {