Consolidate boilerplate in C headers
This commit is contained in:
parent
3f4cde7488
commit
9231fa6095
3 changed files with 8 additions and 10 deletions
|
|
@ -1,13 +1,12 @@
|
|||
#ifndef __tree_sitter_document_h__
|
||||
#define __tree_sitter_document_h__
|
||||
|
||||
#include "./tree.h"
|
||||
#include "./parse_config.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "./tree.h"
|
||||
#include "./parse_config.h"
|
||||
|
||||
typedef struct TSDocument TSDocument;
|
||||
|
||||
TSDocument * TSDocumentMake();
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
#ifndef __tree_sitter_parse_config_h__
|
||||
#define __tree_sitter_parse_config_h__
|
||||
|
||||
#include "tree.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "tree.h"
|
||||
|
||||
typedef enum {
|
||||
TSParseErrorTypeNone,
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
#ifndef __tree_sitter_tree_h__
|
||||
#define __tree_sitter_tree_h__
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef size_t TSSymbol;
|
||||
typedef struct TSTree {
|
||||
TSSymbol value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue