This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ModuleID = 'odin_package' | |
source_filename = "odin_package" | |
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | |
target triple = "aarch64-unknown-linux-gnu" | |
%runtime.Type_Info = type { i64, i64, i32, i64, { [0 x i64], [120 x i8], i64 } } | |
%..string = type { i8*, i64 } | |
%runtime.Default_Temp_Allocator = type { { i8*, i64 }, i64, i8*, %runtime.Allocator, { { i8*, i64 }*, i64, i64, %runtime.Allocator } } | |
%runtime.Allocator = type { i8*, i8* } | |
%strconv.Float_Info = type { i64, i64, i64 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handle :: distinct rawptr; | |
File :: distinct rawptr; | |
stdin :: Handle; | |
stdout :: Handle; | |
stderr :: Handle; | |
args :: ^[string]; | |
clear_env :: proc(); | |
environ :: proc(); | |
get_env :: proc(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*# Most native proc read_ptr #*/ | |
read_ptr :: proc (file: File, bytes: u64, data: rawptr) -> (bytes: u64, err: Error) | |
read_slice :: proc (file: File, bytes: u64, data: []u8) -> (bytes: u64, err: Error) | |
/*# Extendet procs read_ptr #*/ | |
read_ptr_at :: proc (file: File, bytes: u64, data: rawptr, offset: u64) -> (bytes: u64, err: Error) | |
read_slice_at :: proc (file: File, data: u8[], offset: u64) -> (bytes: u64, err: Error) | |
read :: proc (file: File, bytes: u64) -> (data: []u8, err: Error) | |
read_str :: proc (file: File, runes: u64) -> (str: string, err: Error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let data = { | |
type: "folder", | |
children: [ | |
{ | |
type: "folder", | |
name: "DEPTH2-0", | |
children: [ | |
{ | |
type: "folder", | |
name: "DEPTH3-0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//==@ 3d Spirit! @==\\ | |
enum spType; | |
enum spDrawType; | |
enum spStatus; | |
struct spContext; | |
spContext spCreateContext(); | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __CHAR_UNSIGNED__ | |
using UChar = unsigned char; | |
#else | |
using UChar = char; | |
#endif | |
using i64 = long long; | |
i64 CStrLenghtOf(UChar* text) |