File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,7 @@ pub const Root = struct {
289289
290290 const last_index = std .mem .lastIndexOf (u8 , func_name , "_" );
291291 const last_name = if (last_index ) | index | func_name [index + 1 .. ] else continue ;
292+ if (last_name .len == 0 ) continue ;
292293 var same_count : u32 = 0 ;
293294 const gop = try member_names .getOrPutValue (gpa , last_name , same_count );
294295 if (gop .found_existing ) {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ int baz(Foo *foo);
88int libsomething_quux (Foo * foo );
99int foo1_bar (Foo * foo );
1010int foo2_bar (Foo * foo );
11+ int foo3_ (Foo * foo );
1112
1213typedef union {
1314 int foo ;
@@ -39,6 +40,7 @@ int opa_foo2_bar(OpaFoo *foo);
3940// pub extern fn libsomething_quux(foo: [*c]Foo) c_int;
4041// pub extern fn foo1_bar(foo: [*c]Foo) c_int;
4142// pub extern fn foo2_bar(foo: [*c]Foo) c_int;
43+ // pub extern fn foo3_(foo: [*c]Foo) c_int;
4244// pub const UFoo = extern union {
4345// foo: c_int,
4446// numb: f32,
You can’t perform that action at this time.
0 commit comments