Use stdbool.h

This commit is contained in:
Max Brunsfeld 2014-10-03 16:06:08 -07:00
parent 808b003f1a
commit e5ea4efb0b
7 changed files with 25 additions and 22 deletions

View file

@ -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) {