mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge branch 'master' of https://github.com/odin-lang/Odin
This commit is contained in:
@@ -34,8 +34,8 @@ abs :: proc(path: string, allocator := context.allocator) -> (string, bool) {
|
|||||||
defer _unix_free(path_ptr);
|
defer _unix_free(path_ptr);
|
||||||
|
|
||||||
path_cstr := cstring(path_ptr);
|
path_cstr := cstring(path_ptr);
|
||||||
path = strings.clone(string(path_cstr), allocator);
|
path_str := strings.clone(string(path_cstr), allocator);
|
||||||
return path, true;
|
return path_str, true;
|
||||||
}
|
}
|
||||||
|
|
||||||
join :: proc(elems: ..string, allocator := context.allocator) -> string {
|
join :: proc(elems: ..string, allocator := context.allocator) -> string {
|
||||||
|
|||||||
+2
-2
@@ -491,8 +491,8 @@ typedef i32 b32; // NOTE(bill): Prefer this!!!
|
|||||||
#define USIZE_MIX U32_MIN
|
#define USIZE_MIX U32_MIN
|
||||||
#define USIZE_MAX U32_MAX
|
#define USIZE_MAX U32_MAX
|
||||||
|
|
||||||
#define ISIZE_MIX S32_MIN
|
#define ISIZE_MIX I32_MIN
|
||||||
#define ISIZE_MAX S32_MAX
|
#define ISIZE_MAX I32_MAX
|
||||||
#elif defined(GB_ARCH_64_BIT)
|
#elif defined(GB_ARCH_64_BIT)
|
||||||
#define USIZE_MIX U64_MIN
|
#define USIZE_MIX U64_MIN
|
||||||
#define USIZE_MAX U64_MAX
|
#define USIZE_MAX U64_MAX
|
||||||
|
|||||||
Reference in New Issue
Block a user