From b9e3cc56d6fecc57993a3ba824f45460d3a76f96 Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Wed, 2 Aug 2023 00:33:10 +0300 Subject: [PATCH] chore: apply common approach for `api.h` defs --- lib/include/tree_sitter/api.h | 3 --- lib/include/tree_sitter/parser.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/lib/include/tree_sitter/api.h b/lib/include/tree_sitter/api.h index 5ccf4610..d9560f24 100644 --- a/lib/include/tree_sitter/api.h +++ b/lib/include/tree_sitter/api.h @@ -32,10 +32,7 @@ extern "C" { /* Section - Types */ /*******************/ -#ifndef TREE_SITTER_PARSER_H_ typedef uint16_t TSStateId; -#endif - typedef uint16_t TSSymbol; typedef uint16_t TSFieldId; typedef struct TSLanguage TSLanguage; diff --git a/lib/include/tree_sitter/parser.h b/lib/include/tree_sitter/parser.h index c7ad1907..17b4fde9 100644 --- a/lib/include/tree_sitter/parser.h +++ b/lib/include/tree_sitter/parser.h @@ -15,9 +15,6 @@ extern "C" { #ifndef TREE_SITTER_API_H_ typedef uint16_t TSStateId; -#endif - -#ifndef TREE_SITTER_API_H_ typedef uint16_t TSSymbol; typedef uint16_t TSFieldId; typedef struct TSLanguage TSLanguage;