Fix -vet-tabs issues

This commit is contained in:
gingerBill
2024-08-24 13:56:41 +01:00
parent 8ba87e01bd
commit eb799393d5
24 changed files with 2252 additions and 2252 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
package runtime package runtime
nil_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode, nil_allocator_proc :: proc(allocator_data: rawptr, mode: Allocator_Mode,
size, alignment: int, size, alignment: int,
old_memory: rawptr, old_size: int, loc := #caller_location) -> ([]byte, Allocator_Error) { old_memory: rawptr, old_size: int, loc := #caller_location) -> ([]byte, Allocator_Error) {
switch mode { switch mode {
case .Alloc, .Alloc_Non_Zeroed: case .Alloc, .Alloc_Non_Zeroed:
return nil, .Out_Of_Memory return nil, .Out_Of_Memory
+9 -9
View File
@@ -19,15 +19,15 @@ xxh_u64 :: u64
XXH64_DEFAULT_SEED :: XXH64_hash(0) XXH64_DEFAULT_SEED :: XXH64_hash(0)
XXH64_state :: struct { XXH64_state :: struct {
total_len: XXH64_hash, /*!< Total length hashed. This is always 64-bit. */ total_len: XXH64_hash, /*!< Total length hashed. This is always 64-bit. */
v1: XXH64_hash, /*!< First accumulator lane */ v1: XXH64_hash, /*!< First accumulator lane */
v2: XXH64_hash, /*!< Second accumulator lane */ v2: XXH64_hash, /*!< Second accumulator lane */
v3: XXH64_hash, /*!< Third accumulator lane */ v3: XXH64_hash, /*!< Third accumulator lane */
v4: XXH64_hash, /*!< Fourth accumulator lane */ v4: XXH64_hash, /*!< Fourth accumulator lane */
mem64: [4]XXH64_hash, /*!< Internal buffer for partial reads. Treated as unsigned char[32]. */ mem64: [4]XXH64_hash, /*!< Internal buffer for partial reads. Treated as unsigned char[32]. */
memsize: XXH32_hash, /*!< Amount of data in @ref mem64 */ memsize: XXH32_hash, /*!< Amount of data in @ref mem64 */
reserved32: XXH32_hash, /*!< Reserved field, needed for padding anyways*/ reserved32: XXH32_hash, /*!< Reserved field, needed for padding anyways*/
reserved64: XXH64_hash, /*!< Reserved field. Do not read or write to it, it may be removed. */ reserved64: XXH64_hash, /*!< Reserved field. Do not read or write to it, it may be removed. */
} }
XXH64_canonical :: struct { XXH64_canonical :: struct {
+1 -1
View File
@@ -195,7 +195,7 @@ Error_String :: #sparse[Error]string{
} }
Primality_Flag :: enum u8 { Primality_Flag :: enum u8 {
Blum_Blum_Shub = 0, // Make prime congruent to 3 mod 4 Blum_Blum_Shub = 0, // Make prime congruent to 3 mod 4
Safe = 1, // Make sure (p-1)/2 is prime as well (implies .Blum_Blum_Shub) Safe = 1, // Make sure (p-1)/2 is prime as well (implies .Blum_Blum_Shub)
Second_MSB_On = 3, // Make the 2nd highest bit one Second_MSB_On = 3, // Make the 2nd highest bit one
} }
+3 -3
View File
@@ -395,9 +395,9 @@ SIOCGIFFLAG :: enum c.int {
PORTSEL = 13, /* Can set media type. */ PORTSEL = 13, /* Can set media type. */
AUTOMEDIA = 14, /* Auto media select active. */ AUTOMEDIA = 14, /* Auto media select active. */
DYNAMIC = 15, /* Dialup device with changing addresses. */ DYNAMIC = 15, /* Dialup device with changing addresses. */
LOWER_UP = 16, LOWER_UP = 16,
DORMANT = 17, DORMANT = 17,
ECHO = 18, ECHO = 18,
} }
SIOCGIFFLAGS :: bit_set[SIOCGIFFLAG; c.int] SIOCGIFFLAGS :: bit_set[SIOCGIFFLAG; c.int]
+129 -129
View File
@@ -28,135 +28,135 @@ StringBuiltInEncodings :: enum StringEncoding {
} }
StringEncodings :: enum Index { StringEncodings :: enum Index {
MacJapanese = 1, MacJapanese = 1,
MacChineseTrad = 2, MacChineseTrad = 2,
MacKorean = 3, MacKorean = 3,
MacArabic = 4, MacArabic = 4,
MacHebrew = 5, MacHebrew = 5,
MacGreek = 6, MacGreek = 6,
MacCyrillic = 7, MacCyrillic = 7,
MacDevanagari = 9, MacDevanagari = 9,
MacGurmukhi = 10, MacGurmukhi = 10,
MacGujarati = 11, MacGujarati = 11,
MacOriya = 12, MacOriya = 12,
MacBengali = 13, MacBengali = 13,
MacTamil = 14, MacTamil = 14,
MacTelugu = 15, MacTelugu = 15,
MacKannada = 16, MacKannada = 16,
MacMalayalam = 17, MacMalayalam = 17,
MacSinhalese = 18, MacSinhalese = 18,
MacBurmese = 19, MacBurmese = 19,
MacKhmer = 20, MacKhmer = 20,
MacThai = 21, MacThai = 21,
MacLaotian = 22, MacLaotian = 22,
MacGeorgian = 23, MacGeorgian = 23,
MacArmenian = 24, MacArmenian = 24,
MacChineseSimp = 25, MacChineseSimp = 25,
MacTibetan = 26, MacTibetan = 26,
MacMongolian = 27, MacMongolian = 27,
MacEthiopic = 28, MacEthiopic = 28,
MacCentralEurRoman = 29, MacCentralEurRoman = 29,
MacVietnamese = 30, MacVietnamese = 30,
MacExtArabic = 31, MacExtArabic = 31,
MacSymbol = 33, MacSymbol = 33,
MacDingbats = 34, MacDingbats = 34,
MacTurkish = 35, MacTurkish = 35,
MacCroatian = 36, MacCroatian = 36,
MacIcelandic = 37, MacIcelandic = 37,
MacRomanian = 38, MacRomanian = 38,
MacCeltic = 39, MacCeltic = 39,
MacGaelic = 40, MacGaelic = 40,
MacFarsi = 0x8C, MacFarsi = 0x8C,
MacUkrainian = 0x98, MacUkrainian = 0x98,
MacInuit = 0xEC, MacInuit = 0xEC,
MacVT100 = 0xFC, MacVT100 = 0xFC,
MacHFS = 0xFF, MacHFS = 0xFF,
ISOLatin2 = 0x0202, ISOLatin2 = 0x0202,
ISOLatin3 = 0x0203, ISOLatin3 = 0x0203,
ISOLatin4 = 0x0204, ISOLatin4 = 0x0204,
ISOLatinCyrillic = 0x0205, ISOLatinCyrillic = 0x0205,
ISOLatinArabic = 0x0206, ISOLatinArabic = 0x0206,
ISOLatinGreek = 0x0207, ISOLatinGreek = 0x0207,
ISOLatinHebrew = 0x0208, ISOLatinHebrew = 0x0208,
ISOLatin5 = 0x0209, ISOLatin5 = 0x0209,
ISOLatin6 = 0x020A, ISOLatin6 = 0x020A,
ISOLatinThai = 0x020B, ISOLatinThai = 0x020B,
ISOLatin7 = 0x020D, ISOLatin7 = 0x020D,
ISOLatin8 = 0x020E, ISOLatin8 = 0x020E,
ISOLatin9 = 0x020F, ISOLatin9 = 0x020F,
ISOLatin10 = 0x0210, ISOLatin10 = 0x0210,
DOSLatinUS = 0x0400, DOSLatinUS = 0x0400,
DOSGreek = 0x0405, DOSGreek = 0x0405,
DOSBalticRim = 0x0406, DOSBalticRim = 0x0406,
DOSLatin1 = 0x0410, DOSLatin1 = 0x0410,
DOSGreek1 = 0x0411, DOSGreek1 = 0x0411,
DOSLatin2 = 0x0412, DOSLatin2 = 0x0412,
DOSCyrillic = 0x0413, DOSCyrillic = 0x0413,
DOSTurkish = 0x0414, DOSTurkish = 0x0414,
DOSPortuguese = 0x0415, DOSPortuguese = 0x0415,
DOSIcelandic = 0x0416, DOSIcelandic = 0x0416,
DOSHebrew = 0x0417, DOSHebrew = 0x0417,
DOSCanadianFrench = 0x0418, DOSCanadianFrench = 0x0418,
DOSArabic = 0x0419, DOSArabic = 0x0419,
DOSNordic = 0x041A, DOSNordic = 0x041A,
DOSRussian = 0x041B, DOSRussian = 0x041B,
DOSGreek2 = 0x041C, DOSGreek2 = 0x041C,
DOSThai = 0x041D, DOSThai = 0x041D,
DOSJapanese = 0x0420, DOSJapanese = 0x0420,
DOSChineseSimplif = 0x0421, DOSChineseSimplif = 0x0421,
DOSKorean = 0x0422, DOSKorean = 0x0422,
DOSChineseTrad = 0x0423, DOSChineseTrad = 0x0423,
WindowsLatin2 = 0x0501, WindowsLatin2 = 0x0501,
WindowsCyrillic = 0x0502, WindowsCyrillic = 0x0502,
WindowsGreek = 0x0503, WindowsGreek = 0x0503,
WindowsLatin5 = 0x0504, WindowsLatin5 = 0x0504,
WindowsHebrew = 0x0505, WindowsHebrew = 0x0505,
WindowsArabic = 0x0506, WindowsArabic = 0x0506,
WindowsBalticRim = 0x0507, WindowsBalticRim = 0x0507,
WindowsVietnamese = 0x0508, WindowsVietnamese = 0x0508,
WindowsKoreanJohab = 0x0510, WindowsKoreanJohab = 0x0510,
ANSEL = 0x0601, ANSEL = 0x0601,
JIS_X0201_76 = 0x0620, JIS_X0201_76 = 0x0620,
JIS_X0208_83 = 0x0621, JIS_X0208_83 = 0x0621,
JIS_X0208_90 = 0x0622, JIS_X0208_90 = 0x0622,
JIS_X0212_90 = 0x0623, JIS_X0212_90 = 0x0623,
JIS_C6226_78 = 0x0624, JIS_C6226_78 = 0x0624,
ShiftJIS_X0213 = 0x0628, ShiftJIS_X0213 = 0x0628,
ShiftJIS_X0213_MenKuTen = 0x0629, ShiftJIS_X0213_MenKuTen = 0x0629,
GB_2312_80 = 0x0630, GB_2312_80 = 0x0630,
GBK_95 = 0x0631, GBK_95 = 0x0631,
GB_18030_2000 = 0x0632, GB_18030_2000 = 0x0632,
KSC_5601_87 = 0x0640, KSC_5601_87 = 0x0640,
KSC_5601_92_Johab = 0x0641, KSC_5601_92_Johab = 0x0641,
CNS_11643_92_P1 = 0x0651, CNS_11643_92_P1 = 0x0651,
CNS_11643_92_P2 = 0x0652, CNS_11643_92_P2 = 0x0652,
CNS_11643_92_P3 = 0x0653, CNS_11643_92_P3 = 0x0653,
ISO_2022_JP = 0x0820, ISO_2022_JP = 0x0820,
ISO_2022_JP_2 = 0x0821, ISO_2022_JP_2 = 0x0821,
ISO_2022_JP_1 = 0x0822, ISO_2022_JP_1 = 0x0822,
ISO_2022_JP_3 = 0x0823, ISO_2022_JP_3 = 0x0823,
ISO_2022_CN = 0x0830, ISO_2022_CN = 0x0830,
ISO_2022_CN_EXT = 0x0831, ISO_2022_CN_EXT = 0x0831,
ISO_2022_KR = 0x0840, ISO_2022_KR = 0x0840,
EUC_JP = 0x0920, EUC_JP = 0x0920,
EUC_CN = 0x0930, EUC_CN = 0x0930,
EUC_TW = 0x0931, EUC_TW = 0x0931,
EUC_KR = 0x0940, EUC_KR = 0x0940,
ShiftJIS = 0x0A01, ShiftJIS = 0x0A01,
KOI8_R = 0x0A02, KOI8_R = 0x0A02,
Big5 = 0x0A03, Big5 = 0x0A03,
MacRomanLatin1 = 0x0A04, MacRomanLatin1 = 0x0A04,
HZ_GB_2312 = 0x0A05, HZ_GB_2312 = 0x0A05,
Big5_HKSCS_1999 = 0x0A06, Big5_HKSCS_1999 = 0x0A06,
VISCII = 0x0A07, VISCII = 0x0A07,
KOI8_U = 0x0A08, KOI8_U = 0x0A08,
Big5_E = 0x0A09, Big5_E = 0x0A09,
NextStepJapanese = 0x0B02, NextStepJapanese = 0x0B02,
EBCDIC_US = 0x0C01, EBCDIC_US = 0x0C01,
EBCDIC_CP037 = 0x0C02, EBCDIC_CP037 = 0x0C02,
UTF7 = 0x04000100, UTF7 = 0x04000100,
UTF7_IMAP = 0x0A10, UTF7_IMAP = 0x0A10,
ShiftJIS_X0213_00 = 0x0628, // Deprecated. Use `ShiftJIS_X0213` instead. ShiftJIS_X0213_00 = 0x0628, // Deprecated. Use `ShiftJIS_X0213` instead.
} }
@(link_prefix = "CF", default_calling_convention = "c") @(link_prefix = "CF", default_calling_convention = "c")
+3 -3
View File
@@ -15,9 +15,9 @@ sys_write_string :: proc (fd: c.int, message: string) -> bool {
Offset_From :: enum c.int { Offset_From :: enum c.int {
SEEK_SET = 0, // the offset is set to offset bytes. SEEK_SET = 0, // the offset is set to offset bytes.
SEEK_CUR = 1, // the offset is set to its current location plus offset bytes. SEEK_CUR = 1, // the offset is set to its current location plus offset bytes.
SEEK_END = 2, // the offset is set to the size of the file plus offset bytes. SEEK_END = 2, // the offset is set to the size of the file plus offset bytes.
SEEK_HOLE = 3, // the offset is set to the start of the next hole greater than or equal to the supplied offset. SEEK_HOLE = 3, // the offset is set to the start of the next hole greater than or equal to the supplied offset.
SEEK_DATA = 4, // the offset is set to the start of the next non-hole file region greater than or equal to the supplied offset. SEEK_DATA = 4, // the offset is set to the start of the next non-hole file region greater than or equal to the supplied offset.
} }
Open_Flags_Enum :: enum u8 { Open_Flags_Enum :: enum u8 {
+29 -29
View File
@@ -192,43 +192,43 @@ _STRUCT_TIMEVAL :: struct {
/* pwd.h */ /* pwd.h */
_Password_Entry :: struct { _Password_Entry :: struct {
pw_name: cstring, /* username */ pw_name: cstring, /* username */
pw_passwd: cstring, /* user password */ pw_passwd: cstring, /* user password */
pw_uid: i32, /* user ID */ pw_uid: i32, /* user ID */
pw_gid: i32, /* group ID */ pw_gid: i32, /* group ID */
pw_change: u64, /* password change time */ pw_change: u64, /* password change time */
pw_class: cstring, /* user access class */ pw_class: cstring, /* user access class */
pw_gecos: cstring, /* full user name */ pw_gecos: cstring, /* full user name */
pw_dir: cstring, /* home directory */ pw_dir: cstring, /* home directory */
pw_shell: cstring, /* shell program */ pw_shell: cstring, /* shell program */
pw_expire: u64, /* account expiration */ pw_expire: u64, /* account expiration */
pw_fields: i32, /* filled fields */ pw_fields: i32, /* filled fields */
} }
/* processinfo.h */ /* processinfo.h */
_Proc_Bsdinfo :: struct { _Proc_Bsdinfo :: struct {
pbi_flags: u32, /* if is 64bit; emulated etc */ pbi_flags: u32, /* if is 64bit; emulated etc */
pbi_status: u32, pbi_status: u32,
pbi_xstatus: u32, pbi_xstatus: u32,
pbi_pid: u32, pbi_pid: u32,
pbi_ppid: u32, pbi_ppid: u32,
pbi_uid: u32, pbi_uid: u32,
pbi_gid: u32, pbi_gid: u32,
pbi_ruid: u32, pbi_ruid: u32,
pbi_rgid: u32, pbi_rgid: u32,
pbi_svuid: u32, pbi_svuid: u32,
pbi_svgid: u32, pbi_svgid: u32,
res: u32, res: u32,
pbi_comm: [DARWIN_MAXCOMLEN]u8, pbi_comm: [DARWIN_MAXCOMLEN]u8,
pbi_name: [2 * DARWIN_MAXCOMLEN]u8, /* empty if no name is registered */ pbi_name: [2 * DARWIN_MAXCOMLEN]u8, /* empty if no name is registered */
pbi_nfiles: u32, pbi_nfiles: u32,
pbi_pgid: u32, pbi_pgid: u32,
pbi_pjobc: u32, pbi_pjobc: u32,
e_tdev: u32, /* controlling tty dev */ e_tdev: u32, /* controlling tty dev */
e_tpgid: u32, /* tty process group id */ e_tpgid: u32, /* tty process group id */
pbi_nice: i32, pbi_nice: i32,
pbi_start_tvsec: u64, pbi_start_tvsec: u64,
pbi_start_tvusec: u64, pbi_start_tvusec: u64,
} }
/*--==========================================================================--*/ /*--==========================================================================--*/
+6 -6
View File
@@ -695,12 +695,12 @@ Record_Lock_Flag :: enum c.int {
// struct flock // struct flock
File_Lock :: struct { File_Lock :: struct {
start: off_t, /* starting offset */ start: off_t, /* starting offset */
len: off_t, /* len = 0 means until end of file */ len: off_t, /* len = 0 means until end of file */
pid: pid_t, /* lock owner */ pid: pid_t, /* lock owner */
type: Record_Lock_Flag, /* lock type: read/write, etc. */ type: Record_Lock_Flag, /* lock type: read/write, etc. */
whence: c.short, /* type of l_start */ whence: c.short, /* type of l_start */
sysid: c.int, /* remote system id or zero for local */ sysid: c.int, /* remote system id or zero for local */
} }
/* /*
+1 -1
View File
@@ -28,7 +28,7 @@ DWMWINDOWATTRIBUTE :: enum {
DWMWA_TEXT_COLOR, DWMWA_TEXT_COLOR,
DWMWA_VISIBLE_FRAME_BORDER_THICKNESS, DWMWA_VISIBLE_FRAME_BORDER_THICKNESS,
DWMWA_SYSTEMBACKDROP_TYPE, DWMWA_SYSTEMBACKDROP_TYPE,
DWMWA_LAST, DWMWA_LAST,
} }
DWMNCRENDERINGPOLICY :: enum { DWMNCRENDERINGPOLICY :: enum {
+8 -8
View File
@@ -1175,17 +1175,17 @@ SYSTEM_POWER_STATUS :: struct {
} }
AC_Line_Status :: enum BYTE { AC_Line_Status :: enum BYTE {
Offline = 0, Offline = 0,
Online = 1, Online = 1,
Unknown = 255, Unknown = 255,
} }
Battery_Flag :: enum BYTE { Battery_Flag :: enum BYTE {
High = 0, High = 0,
Low = 1, Low = 1,
Critical = 2, Critical = 2,
Charging = 3, Charging = 3,
No_Battery = 7, No_Battery = 7,
} }
Battery_Flags :: bit_set[Battery_Flag; BYTE] Battery_Flags :: bit_set[Battery_Flag; BYTE]
+26 -26
View File
@@ -3546,11 +3546,11 @@ SIGDN :: enum c_int {
} }
SIATTRIBFLAGS :: enum c_int { SIATTRIBFLAGS :: enum c_int {
AND = 0x1, AND = 0x1,
OR = 0x2, OR = 0x2,
APPCOMPAT = 0x3, APPCOMPAT = 0x3,
MASK = 0x3, MASK = 0x3,
ALLITEMS = 0x4000, ALLITEMS = 0x4000,
} }
FDAP :: enum c_int { FDAP :: enum c_int {
@@ -4503,35 +4503,35 @@ DNS_INFO_NO_RECORDS :: 9501
DNS_QUERY_NO_RECURSION :: 0x00000004 DNS_QUERY_NO_RECURSION :: 0x00000004
DNS_RECORD :: struct { // aka DNS_RECORDA DNS_RECORD :: struct { // aka DNS_RECORDA
pNext: ^DNS_RECORD, pNext: ^DNS_RECORD,
pName: cstring, pName: cstring,
wType: WORD, wType: WORD,
wDataLength: USHORT, wDataLength: USHORT,
Flags: DWORD, Flags: DWORD,
dwTtl: DWORD, dwTtl: DWORD,
_: DWORD, _: DWORD,
Data: struct #raw_union { Data: struct #raw_union {
CNAME: DNS_PTR_DATAA, CNAME: DNS_PTR_DATAA,
A: u32be, // Ipv4 Address A: u32be, // Ipv4 Address
AAAA: u128be, // Ipv6 Address AAAA: u128be, // Ipv6 Address
TXT: DNS_TXT_DATAA, TXT: DNS_TXT_DATAA,
NS: DNS_PTR_DATAA, NS: DNS_PTR_DATAA,
MX: DNS_MX_DATAA, MX: DNS_MX_DATAA,
SRV: DNS_SRV_DATAA, SRV: DNS_SRV_DATAA,
}, },
} }
DNS_TXT_DATAA :: struct { DNS_TXT_DATAA :: struct {
dwStringCount: DWORD, dwStringCount: DWORD,
pStringArray: cstring, pStringArray: cstring,
} }
DNS_PTR_DATAA :: cstring DNS_PTR_DATAA :: cstring
DNS_MX_DATAA :: struct { DNS_MX_DATAA :: struct {
pNameExchange: cstring, // the hostname pNameExchange: cstring, // the hostname
wPreference: WORD, // lower values preferred wPreference: WORD, // lower values preferred
_: WORD, // padding. _: WORD, // padding.
} }
DNS_SRV_DATAA :: struct { DNS_SRV_DATAA :: struct {
pNameTarget: cstring, pNameTarget: cstring,
+1 -1
View File
@@ -56,7 +56,7 @@ Decorations :: struct {
// Connecting decorations: // Connecting decorations:
nw, n, ne, nw, n, ne,
w, x, e, w, x, e,
sw, s, se: string, sw, s, se: string,
// Straight lines: // Straight lines:
+4 -4
View File
@@ -3459,10 +3459,10 @@ DRED_DEVICE_STATE :: enum i32 {
} }
DRED_PAGE_FAULT_OUTPUT2 :: struct { DRED_PAGE_FAULT_OUTPUT2 :: struct {
PageFaultVA: GPU_VIRTUAL_ADDRESS, PageFaultVA: GPU_VIRTUAL_ADDRESS,
pHeadExistingAllocationNode: ^DRED_ALLOCATION_NODE1, pHeadExistingAllocationNode: ^DRED_ALLOCATION_NODE1,
pHeadRecentFreedAllocationNode: ^DRED_ALLOCATION_NODE1, pHeadRecentFreedAllocationNode: ^DRED_ALLOCATION_NODE1,
PageFaultFlags: DRED_PAGE_FAULT_FLAGS, PageFaultFlags: DRED_PAGE_FAULT_FLAGS,
} }
DEVICE_REMOVED_EXTENDED_DATA1 :: struct { DEVICE_REMOVED_EXTENDED_DATA1 :: struct {
+2 -2
View File
@@ -476,8 +476,8 @@ IVersionInfo3_VTable :: struct {
} }
ArgPair :: struct { ArgPair :: struct {
pName: wstring, pName: wstring,
pValue: wstring, pValue: wstring,
} }
IPdbUtils_UUID_STRING :: "E6C9647E-9D6A-4C3B-B94C-524B5A6C343D" IPdbUtils_UUID_STRING :: "E6C9647E-9D6A-4C3B-B94C-524B5A6C343D"
+1 -1
View File
@@ -575,7 +575,7 @@ PRELOAD_TABLE :: "_PRELOAD"
L_Reg :: struct { L_Reg :: struct {
name: cstring, name: cstring,
func: CFunction, func: CFunction,
} }
L_NUMSIZES :: size_of(Integer)*16 + size_of(Number) L_NUMSIZES :: size_of(Integer)*16 + size_of(Number)
+3 -3
View File
@@ -69,9 +69,9 @@ decoder :: struct {
outputSampleRate: u32, outputSampleRate: u32,
converter: data_converter, /* <-- Data conversion is achieved by running frames through this. */ converter: data_converter, /* <-- Data conversion is achieved by running frames through this. */
pInputCache: rawptr, /* In input format. Can be null if it's not needed. */ pInputCache: rawptr, /* In input format. Can be null if it's not needed. */
inputCacheCap: u64, /* The capacity of the input cache. */ inputCacheCap: u64, /* The capacity of the input cache. */
inputCacheConsumed: u64, /* The number of frames that have been consumed in the cache. Used for determining the next valid frame. */ inputCacheConsumed: u64, /* The number of frames that have been consumed in the cache. Used for determining the next valid frame. */
inputCacheRemaining: u64, /* The number of valid frames remaining in the cahce. */ inputCacheRemaining: u64, /* The number of valid frames remaining in the cahce. */
allocationCallbacks: allocation_callbacks, allocationCallbacks: allocation_callbacks,
data: struct #raw_union { data: struct #raw_union {
vfs: struct { vfs: struct {
+3 -3
View File
@@ -381,7 +381,7 @@ device_config :: struct {
noPreSilencedOutputBuffer: b8, /* When set to true, the contents of the output buffer passed into the data callback will be left undefined rather than initialized to zero. */ noPreSilencedOutputBuffer: b8, /* When set to true, the contents of the output buffer passed into the data callback will be left undefined rather than initialized to zero. */
noClip: b8, /* When set to true, the contents of the output buffer passed into the data callback will not be clipped after returning. Only applies when the playback sample format is f32. */ noClip: b8, /* When set to true, the contents of the output buffer passed into the data callback will not be clipped after returning. Only applies when the playback sample format is f32. */
noDisableDenormals: b8, /* Do not disable denormals when firing the data callback. */ noDisableDenormals: b8, /* Do not disable denormals when firing the data callback. */
noFixedSizedCallback: b8, /* Disables strict fixed-sized data callbacks. Setting this to true will result in the period size being treated only as a hint to the backend. This is an optimization for those who don't need fixed sized callbacks. */ noFixedSizedCallback: b8, /* Disables strict fixed-sized data callbacks. Setting this to true will result in the period size being treated only as a hint to the backend. This is an optimization for those who don't need fixed sized callbacks. */
dataCallback: device_data_proc, dataCallback: device_data_proc,
notificationCallback: device_notification_proc, notificationCallback: device_notification_proc,
stopCallback: stop_proc, stopCallback: stop_proc,
@@ -813,7 +813,7 @@ context_type :: struct {
/*pa_mainloop**/ pMainLoop: rawptr, /*pa_mainloop**/ pMainLoop: rawptr,
/*pa_context**/ pPulseContext: rawptr, /*pa_context**/ pPulseContext: rawptr,
pApplicationName: cstring, /* Set when the context is initialized. Used by devices for their local pa_context objects. */ pApplicationName: cstring, /* Set when the context is initialized. Used by devices for their local pa_context objects. */
pServerName: cstring, /* Set when the context is initialized. Used by devices for their local pa_context objects. */ pServerName: cstring, /* Set when the context is initialized. Used by devices for their local pa_context objects. */
} when SUPPORT_PULSEAUDIO else struct {}), } when SUPPORT_PULSEAUDIO else struct {}),
jack: (struct { jack: (struct {
@@ -1140,7 +1140,7 @@ device :: struct {
pulse: (struct { pulse: (struct {
/*pa_mainloop**/ pMainLoop: rawptr, /*pa_mainloop**/ pMainLoop: rawptr,
/*pa_context**/ pPulseContext: rawptr, /*pa_context**/ pPulseContext: rawptr,
/*pa_stream**/ pStreamPlayback: rawptr, /*pa_stream**/ pStreamPlayback: rawptr,
/*pa_stream**/ pStreamCapture: rawptr, /*pa_stream**/ pStreamCapture: rawptr,
} when SUPPORT_PULSEAUDIO else struct {}), } when SUPPORT_PULSEAUDIO else struct {}),
+3 -3
View File
@@ -447,9 +447,9 @@ VrStereoConfig :: struct #align(4) {
// File path list // File path list
FilePathList :: struct { FilePathList :: struct {
capacity: c.uint, // Filepaths max entries capacity: c.uint, // Filepaths max entries
count: c.uint, // Filepaths entries count count: c.uint, // Filepaths entries count
paths: [^]cstring, // Filepaths entries paths: [^]cstring, // Filepaths entries
} }
// Automation event // Automation event
+4 -4
View File
@@ -171,9 +171,9 @@ KeyboardEvent :: struct {
TEXTEDITINGEVENT_TEXT_SIZE :: 32 TEXTEDITINGEVENT_TEXT_SIZE :: 32
TextEditingEvent :: struct { TextEditingEvent :: struct {
type: EventType, /**< ::SDL_TEXTEDITING */ type: EventType, /**< ::SDL_TEXTEDITING */
timestamp: u32, /**< In milliseconds, populated using SDL_GetTicks() */ timestamp: u32, /**< In milliseconds, populated using SDL_GetTicks() */
windowID: u32, /**< The window with keyboard focus, if any */ windowID: u32, /**< The window with keyboard focus, if any */
text: [TEXTEDITINGEVENT_TEXT_SIZE]u8, /**< The editing text */ text: [TEXTEDITINGEVENT_TEXT_SIZE]u8, /**< The editing text */
start: i32, /**< The start cursor of selected editing text */ start: i32, /**< The start cursor of selected editing text */
length: i32, /**< The length of selected editing text */ length: i32, /**< The length of selected editing text */
} }
@@ -184,7 +184,7 @@ TextInputEvent :: struct {
type: EventType, /**< ::SDL_TEXTINPUT */ type: EventType, /**< ::SDL_TEXTINPUT */
timestamp: u32, /**< In milliseconds, populated using SDL_GetTicks() */ timestamp: u32, /**< In milliseconds, populated using SDL_GetTicks() */
windowID: u32, /**< The window with keyboard focus, if any */ windowID: u32, /**< The window with keyboard focus, if any */
text: [TEXTINPUTEVENT_TEXT_SIZE]u8, /**< The input text */ text: [TEXTINPUTEVENT_TEXT_SIZE]u8, /**< The input text */
} }
MouseMotionEvent :: struct { MouseMotionEvent :: struct {
+23 -23
View File
@@ -54,29 +54,29 @@ GameControllerAxis :: enum c.int {
} }
GameControllerButton :: enum c.int { GameControllerButton :: enum c.int {
INVALID = -1, INVALID = -1,
A, A,
B, B,
X, X,
Y, Y,
BACK, BACK,
GUIDE, GUIDE,
START, START,
LEFTSTICK, LEFTSTICK,
RIGHTSTICK, RIGHTSTICK,
LEFTSHOULDER, LEFTSHOULDER,
RIGHTSHOULDER, RIGHTSHOULDER,
DPAD_UP, DPAD_UP,
DPAD_DOWN, DPAD_DOWN,
DPAD_LEFT, DPAD_LEFT,
DPAD_RIGHT, DPAD_RIGHT,
MISC1, /* Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button */ MISC1, /* Xbox Series X share button, PS5 microphone button, Nintendo Switch Pro capture button, Amazon Luna microphone button */
PADDLE1, /* Xbox Elite paddle P1 */ PADDLE1, /* Xbox Elite paddle P1 */
PADDLE2, /* Xbox Elite paddle P3 */ PADDLE2, /* Xbox Elite paddle P3 */
PADDLE3, /* Xbox Elite paddle P2 */ PADDLE3, /* Xbox Elite paddle P2 */
PADDLE4, /* Xbox Elite paddle P4 */ PADDLE4, /* Xbox Elite paddle P4 */
TOUCHPAD, /* PS4/PS5 touchpad button */ TOUCHPAD, /* PS4/PS5 touchpad button */
MAX, MAX,
} }
+4 -4
View File
@@ -19,10 +19,10 @@ TouchDeviceType :: enum c.int {
} }
Finger :: struct { Finger :: struct {
id: FingerID, id: FingerID,
x: f32, x: f32,
y: f32, y: f32,
pressure: f32, pressure: f32,
} }
TOUCH_MOUSEID :: ~u32(0) TOUCH_MOUSEID :: ~u32(0)
+1 -1
View File
@@ -166,7 +166,7 @@ datatype :: enum c.int {
UINT32, UINT32,
FLOAT, FLOAT,
MAX_TYPES, MAX_TYPES,
} }
@(default_calling_convention="c", link_prefix="stbir_") @(default_calling_convention="c", link_prefix="stbir_")
+1675 -1675
View File
File diff suppressed because it is too large Load Diff
+311 -311
View File
@@ -47,9 +47,9 @@ XExtCodes :: struct {
} }
XPixmapFormatValues :: struct { XPixmapFormatValues :: struct {
depth: i32, depth: i32,
bits_per_pixel: i32, bits_per_pixel: i32,
scanline_pad: i32, scanline_pad: i32,
} }
XGCValues :: struct { XGCValues :: struct {
@@ -130,47 +130,47 @@ ScreenFormat :: struct {
} }
XSetWindowAttributes :: struct { XSetWindowAttributes :: struct {
background_pixmap: Pixmap, background_pixmap: Pixmap,
background_pixel: uint, background_pixel: uint,
border_pixmap: Pixmap, border_pixmap: Pixmap,
border_pixel: uint, border_pixel: uint,
bit_gravity: Gravity, bit_gravity: Gravity,
win_gravity: Gravity, win_gravity: Gravity,
backing_store: BackingStore, backing_store: BackingStore,
backing_planes: uint, backing_planes: uint,
backing_pixel: uint, backing_pixel: uint,
save_under: b32, save_under: b32,
event_mask: EventMask, event_mask: EventMask,
do_not_propagate_mask: EventMask, do_not_propagate_mask: EventMask,
override_redirect: b32, override_redirect: b32,
colormap: Colormap, colormap: Colormap,
cursor: Cursor, cursor: Cursor,
} }
XWindowAttributes :: struct { XWindowAttributes :: struct {
x: i32, x: i32,
y: i32, y: i32,
width: i32, width: i32,
height: i32, height: i32,
border_width: i32, border_width: i32,
depth: i32, depth: i32,
visual: ^Visual, visual: ^Visual,
root: Window, root: Window,
class: WindowClass, class: WindowClass,
bit_gravity: Gravity, bit_gravity: Gravity,
win_gravity: Gravity, win_gravity: Gravity,
backing_store: BackingStore, backing_store: BackingStore,
backing_planes: uint, backing_planes: uint,
backing_pixel: uint, backing_pixel: uint,
save_under: b32, save_under: b32,
colormap: Colormap, colormap: Colormap,
map_installed: b32, map_installed: b32,
map_state: WindowMapState, map_state: WindowMapState,
all_event_masks: EventMask, all_event_masks: EventMask,
your_event_mask: EventMask, your_event_mask: EventMask,
do_not_propagate_mask: EventMask, do_not_propagate_mask: EventMask,
override_redirect: b32, override_redirect: b32,
screen: ^Screen, screen: ^Screen,
} }
XHostAddress :: struct { XHostAddress :: struct {
@@ -187,50 +187,50 @@ XServerInterpretedAddress :: struct {
} }
XImage :: struct { XImage :: struct {
width: i32, width: i32,
height: i32, height: i32,
xoffset: i32, xoffset: i32,
format: ImageFormat, format: ImageFormat,
data: rawptr, data: rawptr,
byte_order: i32, byte_order: i32,
bitmap_unit: i32, bitmap_unit: i32,
bitmap_bit_order: ByteOrder, bitmap_bit_order: ByteOrder,
bitmap_pad: i32, bitmap_pad: i32,
depth: i32, depth: i32,
bytes_per_line: i32, bytes_per_line: i32,
bits_per_pixel: i32, bits_per_pixel: i32,
red_mask: uint, red_mask: uint,
green_mask: uint, green_mask: uint,
blue_mask: uint, blue_mask: uint,
obdata: rawptr, obdata: rawptr,
f: struct { f: struct {
create_image: proc "c" ( create_image: proc "c" (
display: ^Display, display: ^Display,
visual: ^Visual, visual: ^Visual,
depth: u32, depth: u32,
format: i32, format: i32,
offset: i32, offset: i32,
data: rawptr, data: rawptr,
width: u32, width: u32,
height: u32, height: u32,
pad: i32, pad: i32,
stride: i32) -> ^XImage, stride: i32) -> ^XImage,
destroy_image: proc "c" (image: ^XImage) -> i32, destroy_image: proc "c" (image: ^XImage) -> i32,
get_pixel: proc "c" (image: ^XImage) -> uint, get_pixel: proc "c" (image: ^XImage) -> uint,
put_pixel: proc "c" (image: ^XImage, x: i32, y: i32, pixel: uint) -> i32, put_pixel: proc "c" (image: ^XImage, x: i32, y: i32, pixel: uint) -> i32,
sub_image: proc "c" (image: ^XImage, x: i32, y: i32, w: u32, h: u32) -> ^XImage, sub_image: proc "c" (image: ^XImage, x: i32, y: i32, w: u32, h: u32) -> ^XImage,
add_pixel: proc "c" (image: ^XImage, val: int) -> i32, add_pixel: proc "c" (image: ^XImage, val: int) -> i32,
}, },
} }
XWindowChanges :: struct { XWindowChanges :: struct {
x: i32, x: i32,
y: i32, y: i32,
width: i32, width: i32,
height: i32, height: i32,
border_width: i32, border_width: i32,
sibling: Window, sibling: Window,
stack_mode: WindowStacking, stack_mode: WindowStacking,
} }
XColor :: struct { XColor :: struct {
@@ -243,42 +243,42 @@ XColor :: struct {
} }
XSegment :: struct { XSegment :: struct {
x1: i16, x1: i16,
y1: i16, y1: i16,
x2: i16, x2: i16,
y2: i16, y2: i16,
} }
XPoint :: struct { XPoint :: struct {
x: i16, x: i16,
y: i16, y: i16,
} }
XRectangle :: struct { XRectangle :: struct {
x: i16, x: i16,
y: i16, y: i16,
width: u16, width: u16,
height: u16, height: u16,
} }
XArc :: struct { XArc :: struct {
x: i16, x: i16,
y: i16, y: i16,
width: u16, width: u16,
height: u16, height: u16,
angle1: i16, angle1: i16,
angle2: i16, angle2: i16,
} }
XKeyboardControl :: struct { XKeyboardControl :: struct {
key_click_percent: i32, key_click_percent: i32,
bell_percent: i32, bell_percent: i32,
bell_pitch: i32, bell_pitch: i32,
bell_duration: i32, bell_duration: i32,
led: i32, led: i32,
led_mode: KeyboardLedMode, led_mode: KeyboardLedMode,
key: i32, key: i32,
auto_repeat_mode: KeyboardAutoRepeatMode, auto_repeat_mode: KeyboardAutoRepeatMode,
} }
XKeyboardState :: struct { XKeyboardState :: struct {
@@ -700,23 +700,23 @@ XAnyEvent :: struct {
} }
XGenericEvent :: struct { XGenericEvent :: struct {
type: EventType, type: EventType,
serial: uint, serial: uint,
send_event: b32, send_event: b32,
display: ^Display, display: ^Display,
extension: i32, extension: i32,
evtype: i32, evtype: i32,
} }
XGenericEventCookie :: struct { XGenericEventCookie :: struct {
type: EventType, type: EventType,
serial: uint, serial: uint,
send_event: b32, send_event: b32,
display: ^Display, display: ^Display,
extension: i32, extension: i32,
evtype: i32, evtype: i32,
cookie: u32, cookie: u32,
data: rawptr, data: rawptr,
} }
XEvent :: struct #raw_union { XEvent :: struct #raw_union {
@@ -758,55 +758,55 @@ XEvent :: struct #raw_union {
} }
XCharStruct :: struct { XCharStruct :: struct {
lbearing: i16, lbearing: i16,
rbearing: i16, rbearing: i16,
width: i16, width: i16,
ascent: i16, ascent: i16,
descent: i16, descent: i16,
attributes: u16, attributes: u16,
} }
XFontProp :: struct { XFontProp :: struct {
name: Atom, name: Atom,
card32: uint, card32: uint,
} }
XFontStruct :: struct { XFontStruct :: struct {
ext_data: ^XExtData, ext_data: ^XExtData,
fid: Font, fid: Font,
direction: u32, direction: u32,
min_char_or_byte2: u32, min_char_or_byte2: u32,
max_char_or_byte2: u32, max_char_or_byte2: u32,
min_byte1: u32, min_byte1: u32,
max_byte1: u32, max_byte1: u32,
all_chars_exist: i32, all_chars_exist: i32,
default_char: u32, default_char: u32,
n_properties: i32, n_properties: i32,
properties: ^XFontProp, properties: ^XFontProp,
min_bounds: XCharStruct, min_bounds: XCharStruct,
max_bounds: XCharStruct, max_bounds: XCharStruct,
per_char: ^XCharStruct, per_char: ^XCharStruct,
ascent: i32, ascent: i32,
descent: i32, descent: i32,
} }
XTextItem :: struct { XTextItem :: struct {
chars: [^]u8, chars: [^]u8,
nchars: i32, nchars: i32,
delta: i32, delta: i32,
font: Font, font: Font,
} }
XChar2b :: struct { XChar2b :: struct {
byte1: u8, byte1: u8,
byte2: u8, byte2: u8,
} }
XTextItem16 :: struct { XTextItem16 :: struct {
chars: ^XChar2b, chars: ^XChar2b,
nchars: i32, nchars: i32,
delta: i32, delta: i32,
font: Font, font: Font,
} }
XEDataObject :: struct #raw_union { XEDataObject :: struct #raw_union {
@@ -819,8 +819,8 @@ XEDataObject :: struct #raw_union {
} }
XFontSetExtents :: struct { XFontSetExtents :: struct {
max_ink_extent: XRectangle, max_ink_extent: XRectangle,
max_logical_extent: XRectangle, max_logical_extent: XRectangle,
} }
XOM :: distinct rawptr XOM :: distinct rawptr
@@ -828,41 +828,41 @@ XOC :: distinct rawptr
XFontSet :: XOC XFontSet :: XOC
XmbTextItem :: struct { XmbTextItem :: struct {
chars: [^]u8, chars: [^]u8,
nchars: i32, nchars: i32,
delta: i32, delta: i32,
font_set: XFontSet, font_set: XFontSet,
} }
XwcTextItem :: struct { XwcTextItem :: struct {
chars: [^]rune, chars: [^]rune,
nchars: i32, nchars: i32,
delta: i32, delta: i32,
font_set: XFontSet, font_set: XFontSet,
} }
XOMCharSetList :: struct { XOMCharSetList :: struct {
charset_count: i32, charset_count: i32,
charset_list: [^]cstring, charset_list: [^]cstring,
} }
XOrientation :: enum i32 { XOrientation :: enum i32 {
XOMOrientation_LTR_TTB = 0, XOMOrientation_LTR_TTB = 0,
XOMOrientation_RTL_TTB = 1, XOMOrientation_RTL_TTB = 1,
XOMOrientation_TTB_LTR = 2, XOMOrientation_TTB_LTR = 2,
XOMOrientation_TTB_RTL = 3, XOMOrientation_TTB_RTL = 3,
XOMOrientation_Context = 4, XOMOrientation_Context = 4,
} }
XOMOrientation :: struct { XOMOrientation :: struct {
num_orientation: i32, num_orientation: i32,
orientation: [^]XOrientation, orientation: [^]XOrientation,
} }
XOMFontInfo :: struct { XOMFontInfo :: struct {
num_font: i32, num_font: i32,
font_struct_list: [^]^XFontStruct, font_struct_list: [^]^XFontStruct,
font_name_list: [^]cstring, font_name_list: [^]cstring,
} }
XIM :: distinct rawptr XIM :: distinct rawptr
@@ -875,38 +875,38 @@ XIDProc :: #type proc "c" (xim: XIM, client_data: rawptr, call_data: rawptr)
XIMStyle :: uint XIMStyle :: uint
XIMStyles :: struct { XIMStyles :: struct {
count_styles: u16, count_styles: u16,
supported_styles: [^]XIMStyle, supported_styles: [^]XIMStyle,
} }
XVaNestedList :: distinct rawptr XVaNestedList :: distinct rawptr
XIMCallback :: struct { XIMCallback :: struct {
client_data: rawptr, client_data: rawptr,
callback: XIMProc, callback: XIMProc,
} }
XICCallback :: struct { XICCallback :: struct {
client_data: rawptr, client_data: rawptr,
callback: XICProc, callback: XICProc,
} }
XIMFeedback :: uint XIMFeedback :: uint
XIMText :: struct { XIMText :: struct {
length: u16, length: u16,
feedback: ^XIMFeedback, feedback: ^XIMFeedback,
encoding_is_wchar: b32, encoding_is_wchar: b32,
string: struct #raw_union { string: struct #raw_union {
multi_byte: [^]u8, multi_byte: [^]u8,
wide_char: [^]rune, wide_char: [^]rune,
}, },
} }
XIMPreeditState :: uint XIMPreeditState :: uint
XIMPreeditStateNotifyCallbackStruct :: struct { XIMPreeditStateNotifyCallbackStruct :: struct {
state: XIMPreeditState, state: XIMPreeditState,
} }
XIMResetState :: uint XIMResetState :: uint
@@ -914,13 +914,13 @@ XIMResetState :: uint
XIMStringConversionFeedback :: uint XIMStringConversionFeedback :: uint
XIMStringConversionText :: struct { XIMStringConversionText :: struct {
length: u16, length: u16,
feedback: ^XIMStringConversionFeedback, feedback: ^XIMStringConversionFeedback,
encoding_is_wchar: b32, encoding_is_wchar: b32,
string: struct #raw_union { string: struct #raw_union {
mbs: [^]u8, mbs: [^]u8,
wcs: [^]rune, wcs: [^]rune,
}, },
} }
XIMStringConversionPosition :: u16 XIMStringConversionPosition :: u16
@@ -928,76 +928,76 @@ XIMStringConversionType :: u16
XIMStringConversionOperation :: u16 XIMStringConversionOperation :: u16
XIMCaretDirection :: enum i32 { XIMCaretDirection :: enum i32 {
XIMForwardChar = 0, XIMForwardChar = 0,
XIMBackwardChar = 1, XIMBackwardChar = 1,
XIMForwardWord = 2, XIMForwardWord = 2,
XIMBackwardWord = 3, XIMBackwardWord = 3,
XIMCaretUp = 4, XIMCaretUp = 4,
XIMCaretDown = 5, XIMCaretDown = 5,
XIMNextLine = 6, XIMNextLine = 6,
XIMPreviousLine = 7, XIMPreviousLine = 7,
XIMLineStart = 8, XIMLineStart = 8,
XIMLineEnd = 9, XIMLineEnd = 9,
XIMAbsolutePosition = 10, XIMAbsolutePosition = 10,
XIMDontChang = 11, XIMDontChang = 11,
} }
XIMStringConversionCallbackStruct :: struct { XIMStringConversionCallbackStruct :: struct {
position: XIMStringConversionPosition, position: XIMStringConversionPosition,
direction: XIMCaretDirection, direction: XIMCaretDirection,
operation: XIMStringConversionOperation, operation: XIMStringConversionOperation,
factor: u16, factor: u16,
text: ^XIMStringConversionText, text: ^XIMStringConversionText,
} }
XIMPreeditDrawCallbackStruct :: struct { XIMPreeditDrawCallbackStruct :: struct {
caret: i32, caret: i32,
chg_first: i32, chg_first: i32,
chg_length: i32, chg_length: i32,
text: ^XIMText, text: ^XIMText,
} }
XIMCaretStyle :: enum i32 { XIMCaretStyle :: enum i32 {
XIMIsInvisible, XIMIsInvisible,
XIMIsPrimary, XIMIsPrimary,
XIMIsSecondary, XIMIsSecondary,
} }
XIMPreeditCaretCallbackStruct :: struct { XIMPreeditCaretCallbackStruct :: struct {
position: i32, position: i32,
direction: XIMCaretDirection, direction: XIMCaretDirection,
style: XIMCaretStyle, style: XIMCaretStyle,
} }
XIMStatusDataType :: enum { XIMStatusDataType :: enum {
XIMTextType, XIMTextType,
XIMBitmapType, XIMBitmapType,
} }
XIMStatusDrawCallbackStruct :: struct { XIMStatusDrawCallbackStruct :: struct {
type: XIMStatusDataType, type: XIMStatusDataType,
data: struct #raw_union { data: struct #raw_union {
text: ^XIMText, text: ^XIMText,
bitmap: Pixmap, bitmap: Pixmap,
}, },
} }
XIMHotKeyTrigger :: struct { XIMHotKeyTrigger :: struct {
keysym: KeySym, keysym: KeySym,
modifier: i32, modifier: i32,
modifier_mask: i32, modifier_mask: i32,
} }
XIMHotKeyTriggers :: struct { XIMHotKeyTriggers :: struct {
num_hot_key: i32, num_hot_key: i32,
key: [^]XIMHotKeyTrigger, key: [^]XIMHotKeyTrigger,
} }
XIMHotKeyState :: uint XIMHotKeyState :: uint
XIMValuesList :: struct { XIMValuesList :: struct {
count_values: u16, count_values: u16,
supported_values: [^]cstring, supported_values: [^]cstring,
} }
XConnectionWatchProc :: #type proc "c" ( XConnectionWatchProc :: #type proc "c" (
@@ -1775,62 +1775,62 @@ XcmsColorFormat :: uint
XcmsFloat :: f64 XcmsFloat :: f64
XcmsRGB :: struct { XcmsRGB :: struct {
red: u16, red: u16,
green: u16, green: u16,
blue: u16, blue: u16,
} }
XcmsRGBi :: struct { XcmsRGBi :: struct {
red: XcmsFloat, red: XcmsFloat,
green: XcmsFloat, green: XcmsFloat,
blue: XcmsFloat, blue: XcmsFloat,
} }
XcmsCIEXYZ :: struct { XcmsCIEXYZ :: struct {
X: XcmsFloat, X: XcmsFloat,
Y: XcmsFloat, Y: XcmsFloat,
Z: XcmsFloat, Z: XcmsFloat,
} }
XcmsCIEuvY :: struct { XcmsCIEuvY :: struct {
u_prime: XcmsFloat, u_prime: XcmsFloat,
v_prime: XcmsFloat, v_prime: XcmsFloat,
Y: XcmsFloat, Y: XcmsFloat,
} }
XcmsCIExyY :: struct { XcmsCIExyY :: struct {
x: XcmsFloat, x: XcmsFloat,
y: XcmsFloat, y: XcmsFloat,
Y: XcmsFloat, Y: XcmsFloat,
} }
XcmsCIELab :: struct { XcmsCIELab :: struct {
L_star: XcmsFloat, L_star: XcmsFloat,
a_star: XcmsFloat, a_star: XcmsFloat,
b_star: XcmsFloat, b_star: XcmsFloat,
} }
XcmsCIELuv :: struct { XcmsCIELuv :: struct {
L_star: XcmsFloat, L_star: XcmsFloat,
u_star: XcmsFloat, u_star: XcmsFloat,
v_star: XcmsFloat, v_star: XcmsFloat,
} }
XcmsTekHVC :: struct { XcmsTekHVC :: struct {
H: XcmsFloat, H: XcmsFloat,
V: XcmsFloat, V: XcmsFloat,
C: XcmsFloat, C: XcmsFloat,
} }
XcmsPad :: struct { XcmsPad :: struct {
_: XcmsFloat, _: XcmsFloat,
_: XcmsFloat, _: XcmsFloat,
_: XcmsFloat, _: XcmsFloat,
_: XcmsFloat, _: XcmsFloat,
} }
XcmsColor :: struct { XcmsColor :: struct {
spec: struct #raw_union { spec: struct #raw_union {
RGB: XcmsRGB, RGB: XcmsRGB,
RGBi: XcmsRGBi, RGBi: XcmsRGBi,
CIEXYZ: XcmsCIEXYZ, CIEXYZ: XcmsCIEXYZ,
@@ -1840,17 +1840,17 @@ XcmsColor :: struct {
CIELuv: XcmsCIELuv, CIELuv: XcmsCIELuv,
TekHVC: XcmsTekHVC, TekHVC: XcmsTekHVC,
_: XcmsPad, _: XcmsPad,
}, },
pixel: uint, pixel: uint,
format: XcmsColorFormat, format: XcmsColorFormat,
} }
XcmsPerScrnInfo :: struct { XcmsPerScrnInfo :: struct {
screenWhitePt: XcmsColor, screenWhitePt: XcmsColor,
functionSet: rawptr, functionSet: rawptr,
screenData: rawptr, screenData: rawptr,
state: u8, state: u8,
_: [3]u8, _: [3]u8,
} }
XcmsCCC :: distinct rawptr XcmsCCC :: distinct rawptr
@@ -1872,15 +1872,15 @@ XcmsWhiteAdjustProc :: #type proc "c" (
compression: [^]b32) -> Status compression: [^]b32) -> Status
XcmsCCCRec :: struct { XcmsCCCRec :: struct {
dpy: ^Display, dpy: ^Display,
screenNumber: i32, screenNumber: i32,
visual: ^Visual, visual: ^Visual,
clientWhitePt: XcmsColor, clientWhitePt: XcmsColor,
gamutCompProc: XcmsCompressionProc, gamutCompProc: XcmsCompressionProc,
gamutCompClientData: rawptr, gamutCompClientData: rawptr,
whitePtAdjProc: XcmsWhiteAdjustProc, whitePtAdjProc: XcmsWhiteAdjustProc,
whitePtAdjClientData: rawptr, whitePtAdjClientData: rawptr,
pPerScrnInfo: ^XcmsPerScrnInfo, pPerScrnInfo: ^XcmsPerScrnInfo,
} }
XcmsScreenInitProc :: #type proc "c" ( XcmsScreenInitProc :: #type proc "c" (
@@ -1909,18 +1909,18 @@ XcmsFuncListPtr :: [^]XcmsConversionProc
XcmsParseStringProc :: #type proc "c" (color_string: cstring, color: ^XcmsColor) -> i32 XcmsParseStringProc :: #type proc "c" (color_string: cstring, color: ^XcmsColor) -> i32
XcmsColorSpace :: struct { XcmsColorSpace :: struct {
prefix: cstring, prefix: cstring,
id: XcmsColorFormat, id: XcmsColorFormat,
parseString: XcmsParseStringProc, parseString: XcmsParseStringProc,
to_CIEXYZ: XcmsFuncListPtr, to_CIEXYZ: XcmsFuncListPtr,
from_CIEXYZ: XcmsFuncListPtr, from_CIEXYZ: XcmsFuncListPtr,
inverse_flag: i32, inverse_flag: i32,
} }
XcmsFunctionSet :: struct { XcmsFunctionSet :: struct {
DDColorSpaces: [^]^XcmsColorSpace, DDColorSpaces: [^]^XcmsColorSpace,
screenInitProc: XcmsScreenInitProc, screenInitProc: XcmsScreenInitProc,
screenFreeProc: XcmsScreenFreeProc, screenFreeProc: XcmsScreenFreeProc,
} }
@@ -1958,18 +1958,18 @@ XWMHints :: struct {
} }
XTextProperty :: struct { XTextProperty :: struct {
value: [^]u8, value: [^]u8,
encoding: Atom, encoding: Atom,
format: int, format: int,
nitems: uint, nitems: uint,
} }
XICCEncodingStyle :: enum i32 { XICCEncodingStyle :: enum i32 {
XStringStyle, XStringStyle,
XCompoundTextStyle, XCompoundTextStyle,
XTextStyle, XTextStyle,
XStdICCTextStyle, XStdICCTextStyle,
XUTF8StringStyle, XUTF8StringStyle,
} }
XIconSize :: struct { XIconSize :: struct {
@@ -1987,8 +1987,8 @@ XClassHint :: struct {
} }
XComposeStatus :: struct { XComposeStatus :: struct {
compose_ptr: rawptr, compose_ptr: rawptr,
chars_matched: i32, chars_matched: i32,
} }
Region :: distinct rawptr Region :: distinct rawptr
@@ -2041,8 +2041,8 @@ XrmClassList :: XrmQuarkList
XrmRepresentation :: XrmQuark XrmRepresentation :: XrmQuark
XrmValue :: struct { XrmValue :: struct {
size: u32, size: u32,
addr: rawptr, addr: rawptr,
} }
XrmValuePtr :: [^]XrmValue XrmValuePtr :: [^]XrmValue
@@ -2052,21 +2052,21 @@ XrmSearchList :: [^]XrmHashTable
XrmDatabase :: distinct rawptr XrmDatabase :: distinct rawptr
XrmOptionKind :: enum { XrmOptionKind :: enum {
XrmoptionNoArg, XrmoptionNoArg,
XrmoptionIsArg, XrmoptionIsArg,
XrmoptionStickyArg, XrmoptionStickyArg,
XrmoptionSepArg, XrmoptionSepArg,
XrmoptionResArg, XrmoptionResArg,
XrmoptionSkipArg, XrmoptionSkipArg,
XrmoptionSkipLine, XrmoptionSkipLine,
XrmoptionSkipNArgs, XrmoptionSkipNArgs,
} }
XrmOptionDescRec :: struct { XrmOptionDescRec :: struct {
option: cstring, option: cstring,
specifier: cstring, specifier: cstring,
argKind: XrmOptionKind, argKind: XrmOptionKind,
value: rawptr, value: rawptr,
} }
XrmOptionDescList :: [^]XrmOptionDescRec XrmOptionDescList :: [^]XrmOptionDescRec