mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Make trailing comma usage consistent
This commit is contained in:
@@ -24,7 +24,7 @@ Value :: struct {
|
|||||||
String,
|
String,
|
||||||
Array,
|
Array,
|
||||||
Object,
|
Object,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
Pos :: struct {
|
Pos :: struct {
|
||||||
|
|||||||
+2
-2
@@ -38,7 +38,7 @@ Options :: bit_set[Option];
|
|||||||
|
|
||||||
Full_Timestamp_Opts :: Options{
|
Full_Timestamp_Opts :: Options{
|
||||||
.Date,
|
.Date,
|
||||||
.Time
|
.Time,
|
||||||
};
|
};
|
||||||
Location_Header_Opts :: Options{
|
Location_Header_Opts :: Options{
|
||||||
.Short_File_Path,
|
.Short_File_Path,
|
||||||
@@ -48,7 +48,7 @@ Location_Header_Opts :: Options{
|
|||||||
};
|
};
|
||||||
Location_File_Opts :: Options{
|
Location_File_Opts :: Options{
|
||||||
.Short_File_Path,
|
.Short_File_Path,
|
||||||
.Long_File_Path
|
.Long_File_Path,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ Raw_SOA_Footer_Slice :: struct {
|
|||||||
Raw_SOA_Footer_Dynamic_Array :: struct {
|
Raw_SOA_Footer_Dynamic_Array :: struct {
|
||||||
len: int,
|
len: int,
|
||||||
cap: int,
|
cap: int,
|
||||||
allocator: Allocator
|
allocator: Allocator,
|
||||||
}
|
}
|
||||||
|
|
||||||
raw_soa_footer_slice :: proc(array: ^$T/#soa[]$E) -> (footer: ^Raw_SOA_Footer_Slice) {
|
raw_soa_footer_slice :: proc(array: ^$T/#soa[]$E) -> (footer: ^Raw_SOA_Footer_Slice) {
|
||||||
|
|||||||
@@ -274,16 +274,15 @@ __dynamic_map_set :: proc(h: Map_Header, hash: Map_Hash, value: rawptr, loc := #
|
|||||||
h.m.hashes[fr.hash_index] = index;
|
h.m.hashes[fr.hash_index] = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
|
||||||
e := __dynamic_map_get_entry(h, index);
|
|
||||||
e.hash = hash.hash;
|
|
||||||
|
|
||||||
key := rawptr(uintptr(e) + h.key_offset);
|
e := __dynamic_map_get_entry(h, index);
|
||||||
mem_copy(key, hash.key_ptr, h.key_size);
|
e.hash = hash.hash;
|
||||||
|
|
||||||
val := rawptr(uintptr(e) + h.value_offset);
|
key := rawptr(uintptr(e) + h.key_offset);
|
||||||
mem_copy(val, value, h.value_size);
|
mem_copy(key, hash.key_ptr, h.key_size);
|
||||||
}
|
|
||||||
|
val := rawptr(uintptr(e) + h.value_offset);
|
||||||
|
mem_copy(val, value, h.value_size);
|
||||||
|
|
||||||
if __dynamic_map_full(h) {
|
if __dynamic_map_full(h) {
|
||||||
__dynamic_map_grow(h, loc);
|
__dynamic_map_grow(h, loc);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ Wnd_Class_A :: struct {
|
|||||||
icon: Hicon,
|
icon: Hicon,
|
||||||
cursor: Hcursor,
|
cursor: Hcursor,
|
||||||
background: Hbrush,
|
background: Hbrush,
|
||||||
menu_name, class_name: cstring
|
menu_name, class_name: cstring,
|
||||||
}
|
}
|
||||||
|
|
||||||
Wnd_Class_W :: struct {
|
Wnd_Class_W :: struct {
|
||||||
@@ -55,7 +55,7 @@ Wnd_Class_W :: struct {
|
|||||||
icon: Hicon,
|
icon: Hicon,
|
||||||
cursor: Hcursor,
|
cursor: Hcursor,
|
||||||
background: Hbrush,
|
background: Hbrush,
|
||||||
menu_name, class_name: Wstring
|
menu_name, class_name: Wstring,
|
||||||
}
|
}
|
||||||
|
|
||||||
Wnd_Class_Ex_A :: struct {
|
Wnd_Class_Ex_A :: struct {
|
||||||
@@ -169,7 +169,7 @@ Process_Information :: struct {
|
|||||||
process: Handle,
|
process: Handle,
|
||||||
thread: Handle,
|
thread: Handle,
|
||||||
process_id: u32,
|
process_id: u32,
|
||||||
thread_id: u32
|
thread_id: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
Startup_Info :: struct {
|
Startup_Info :: struct {
|
||||||
@@ -355,7 +355,7 @@ OS_Version_Info_Ex_A :: struct {
|
|||||||
service_pack_minor: u16,
|
service_pack_minor: u16,
|
||||||
suite_mask: u16,
|
suite_mask: u16,
|
||||||
product_type: u8,
|
product_type: u8,
|
||||||
reserved: u8
|
reserved: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
MAPVK_VK_TO_VSC :: 0;
|
MAPVK_VK_TO_VSC :: 0;
|
||||||
@@ -947,7 +947,7 @@ Paint_Struct :: struct {
|
|||||||
rc_paint: Rect,
|
rc_paint: Rect,
|
||||||
restore: Bool,
|
restore: Bool,
|
||||||
inc_update: Bool,
|
inc_update: Bool,
|
||||||
rgb_reserved: [32]byte
|
rgb_reserved: [32]byte,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ call_external_process :: proc(program, command_line: string) -> bool {
|
|||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
&si,
|
&si,
|
||||||
&pi
|
&pi,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user