File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 11/* automatically generated by rust-bindgen 0.59.1 */
22
3- pub type __darwin_size_t = :: std:: os:: raw:: c_ulong ;
4- pub type FILE = [ u64 ; 19usize ] ;
53pub type TSSymbol = u16 ;
64pub type TSFieldId = u16 ;
75#[ repr( C ) ]
@@ -359,10 +357,6 @@ extern "C" {
359357 length : * mut u32 ,
360358 ) -> * mut TSRange ;
361359}
362- extern "C" {
363- #[ doc = " Write a DOT graph describing the syntax tree to the given file." ]
364- pub fn ts_tree_print_dot_graph ( arg1 : * const TSTree , arg2 : * mut FILE ) ;
365- }
366360extern "C" {
367361 #[ doc = " Get the node's type as a null-terminated string." ]
368362 pub fn ts_node_type ( arg1 : TSNode ) -> * const :: std:: os:: raw:: c_char ;
Original file line number Diff line number Diff line change 33output_path=lib/binding_rust/bindings.rs
44header_path=' lib/include/tree_sitter/api.h'
55
6- bindgen \
7- --no-layout-tests \
8- --whitelist-type ' ^TS.*' \
9- --whitelist-function ' ^ts_.*' \
10- --opaque-type FILE \
11- --size_t-is-usize \
12- --translate-enum-integer-types \
13- --distrust-clang-mangling \
6+ bindgen \
7+ --no-layout-tests \
8+ --whitelist-type ' ^TS.*' \
9+ --whitelist-function ' ^ts_.*' \
10+ --opaque-type FILE \
11+ --blocklist-type FILE \
12+ --blocklist-type ' ^__.*' \
13+ --blocklist-function ts_tree_print_dot_graph \
14+ --size_t-is-usize \
1415 $header_path > $output_path
1516
1617echo " " >> $output_path
You can’t perform that action at this time.
0 commit comments