Zig bindings for orca (still WIP) #140

Open
rdunnington wants to merge 24 commits from zig_ffi into main
1 changed files with 6 additions and 21 deletions
Showing only changes of commit d46c00f0ec - Show all commits

View File

@ -436,32 +436,17 @@ fn stringType(comptime CharType: type) type {
};
}
fn stringListEltType(comptime StringType: type) type {
return extern struct {
list_elt: ListElt,
string: StringType,
};
}
fn stringListType() type {
return extern struct {
list: List,
elt_count: u64,
len: u64,
};
}
pub const Str8 = stringType(u8);
pub const Str16 = stringType(u16);
pub const Str32 = stringType(u32);
pub const Str8ListElt = stringListEltType(Str8);
pub const Str16ListElt = stringListEltType(Str16);
pub const Str32ListElt = stringListEltType(Str32);
pub const Str8ListElt = Str8.StrListElt;
pub const Str16ListElt = Str16.StrListElt;
pub const Str32ListElt = Str32.StrListElt;
pub const Str8List = stringListType(Str8);
pub const Str16List = stringListType(Str8);
pub const Str32List = stringListType(Str8);
pub const Str8List = Str8.StrList;
pub const Str16List = Str16.StrList;
pub const Str32List = Str32.StrList;
//------------------------------------------------------------------------------------------
// [UTF8]