-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmdparser_md4c_ast.h
More file actions
30 lines (24 loc) · 1.31 KB
/
Copy pathmdparser_md4c_ast.h
File metadata and controls
30 lines (24 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
+----------------------------------------------------------------------+
| Copyright (c) 2025-2026, Ilia Alshanetsky |
| Copyright (c) 2025-2026, Advanced Internet Designs Inc. |
+----------------------------------------------------------------------+
| This source file is subject to the BSD 3-Clause license that is |
| bundled with this package in the file LICENSE. |
+----------------------------------------------------------------------+
| Author: Ilia Alshanetsky <ilia@ilia.ws> |
+----------------------------------------------------------------------+
*/
#ifndef MDPARSER_MD4C_AST_H
#define MDPARSER_MD4C_AST_H
#include "php.h"
/* Build the PHP-array AST for `src` via md4c with `parser_flags`. On success
* sets *status to 0 and writes the document node array into return_value. On
* failure sets *status non-zero (see mdparser_md4c_ast_status_message) and
* leaves return_value untouched. */
void mdparser_md4c_render_ast(const char *src, size_t len, unsigned parser_flags,
bool validate_utf8, zval *return_value, int *status);
const char *mdparser_md4c_ast_status_message(int status);
/* Intern the recurring per-node hash keys once at module init. */
void mdparser_md4c_ast_minit(void);
#endif