Use stdbool.h
This commit is contained in:
parent
808b003f1a
commit
e5ea4efb0b
7 changed files with 25 additions and 22 deletions
|
|
@ -7,6 +7,7 @@ extern "C" {
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "tree_sitter/runtime.h"
|
||||
|
||||
typedef struct TSTree TSTree;
|
||||
|
|
@ -29,7 +30,7 @@ typedef struct TSLexer {
|
|||
int32_t lookahead;
|
||||
|
||||
TSTree *(*accept_fn)(struct TSLexer *, TSSymbol, int);
|
||||
int (*advance_fn)(struct TSLexer *);
|
||||
bool (*advance_fn)(struct TSLexer *);
|
||||
} TSLexer;
|
||||
|
||||
static inline int32_t ts_lexer_lookahead_char(const TSLexer *lexer) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct {
|
||||
size_t bytes;
|
||||
|
|
@ -43,7 +44,7 @@ const char *ts_node_name(const TSNode *);
|
|||
const char *ts_node_string(const TSNode *);
|
||||
void ts_node_retain(TSNode *node);
|
||||
void ts_node_release(TSNode *node);
|
||||
int ts_node_eq(const TSNode *, const TSNode *);
|
||||
bool ts_node_eq(const TSNode *, const TSNode *);
|
||||
|
||||
typedef struct TSDocument TSDocument;
|
||||
TSDocument *ts_document_make();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue