mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
@@ -0,0 +1,75 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
if "%1" == "" (
|
||||||
|
echo Checking darwin_amd64 - expect vendor:cgtlf panic
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:darwin_amd64
|
||||||
|
echo Checking darwin_arm64 - expect vendor:cgtlf panic
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:darwin_arm64
|
||||||
|
echo Checking linux_i386
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_i386
|
||||||
|
echo Checking linux_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_amd64
|
||||||
|
echo Checking linux_arm64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_arm64
|
||||||
|
echo Checking linux_arm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_arm32
|
||||||
|
echo Checking linux_riscv64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_riscv64
|
||||||
|
echo Checking windows_i386
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:windows_i386
|
||||||
|
echo Checking windows_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:windows_amd64
|
||||||
|
echo Checking freebsd_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freebsd_amd64
|
||||||
|
echo Checking freebsd_arm64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freebsd_arm64
|
||||||
|
echo Checking netbsd_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:netbsd_amd64
|
||||||
|
echo Checking netbsd_arm64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:netbsd_arm64
|
||||||
|
echo Checking openbsd_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:openbsd_amd64
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%1" == "freestanding" (
|
||||||
|
echo Checking freestanding_wasm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm32
|
||||||
|
echo Checking freestanding_wasm64p32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm64p32
|
||||||
|
echo Checking freestanding_amd64_sysv
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_amd64_sysv
|
||||||
|
echo Checking freestanding_amd64_win64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_amd64_win64
|
||||||
|
echo Checking freestanding_arm64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_arm64
|
||||||
|
echo Checking freestanding_arm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_arm32
|
||||||
|
echo Checking freestanding_riscv64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_riscv64
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%1" == "rare" (
|
||||||
|
echo Checking essence_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:essence_amd64
|
||||||
|
echo Checking freebsd_i386
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freebsd_i386
|
||||||
|
echo Checking haiku_amd64
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:haiku_amd64
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%1" == "wasm" (
|
||||||
|
echo Checking freestanding_wasm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm32
|
||||||
|
echo Checking freestanding_wasm64p32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm64p32
|
||||||
|
echo Checking wasi_wasm64p32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:wasi_wasm64p32
|
||||||
|
echo Checking wasi_wasm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:wasi_wasm32
|
||||||
|
echo Checking js_wasm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:js_wasm32
|
||||||
|
echo Checking orca_wasm32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:orca_wasm32
|
||||||
|
echo Checking js_wasm64p32
|
||||||
|
odin check examples\all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:js_wasm64p32
|
||||||
|
)
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
freestanding)
|
||||||
|
echo Checking freestanding_wasm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm32
|
||||||
|
echo Checking freestanding_wasm64p32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm64p32
|
||||||
|
echo Checking freestanding_amd64_sysv
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_amd64_sysv
|
||||||
|
echo Checking freestanding_amd64_win64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_amd64_win64
|
||||||
|
echo Checking freestanding_arm64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_arm64
|
||||||
|
echo Checking freestanding_arm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_arm32
|
||||||
|
echo Checking freestanding_riscv64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_riscv64
|
||||||
|
;;
|
||||||
|
|
||||||
|
rare)
|
||||||
|
echo Checking essence_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:essence_amd64
|
||||||
|
echo Checking freebsd_i386
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freebsd_i386
|
||||||
|
echo Checking haiku_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:haiku_amd64
|
||||||
|
;;
|
||||||
|
|
||||||
|
wasm)
|
||||||
|
echo Checking freestanding_wasm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm32
|
||||||
|
echo Checking freestanding_wasm64p32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freestanding_wasm64p32
|
||||||
|
echo Checking wasi_wasm64p32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:wasi_wasm64p32
|
||||||
|
echo Checking wasi_wasm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:wasi_wasm32
|
||||||
|
echo Checking js_wasm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:js_wasm32
|
||||||
|
echo Checking orca_wasm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:orca_wasm32
|
||||||
|
echo Checking js_wasm64p32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:js_wasm64p32
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo Checking darwin_amd64 - expect vendor:cgtlf panic
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:darwin_amd64
|
||||||
|
echo Checking darwin_arm64 - expect vendor:cgtlf panic
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:darwin_arm64
|
||||||
|
echo Checking linux_i386
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_i386
|
||||||
|
echo Checking linux_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_amd64
|
||||||
|
echo Checking linux_arm64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_arm64
|
||||||
|
echo Checking linux_arm32
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_arm32
|
||||||
|
echo Checking linux_riscv64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:linux_riscv64
|
||||||
|
echo Checking windows_i386
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:windows_i386
|
||||||
|
echo Checking windows_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:windows_amd64
|
||||||
|
echo Checking freebsd_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freebsd_amd64
|
||||||
|
echo Checking freebsd_arm64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:freebsd_arm64
|
||||||
|
echo Checking netbsd_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:netbsd_amd64
|
||||||
|
echo Checking netbsd_arm64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:netbsd_arm64
|
||||||
|
echo Checking openbsd_amd64
|
||||||
|
odin check examples/all -vet -vet-tabs -strict-style -vet-style -warnings-as-errors -disallow-do -target:openbsd_amd64
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#+build haiku
|
||||||
|
#+private
|
||||||
|
package dynlib
|
||||||
|
|
||||||
|
import "base:runtime"
|
||||||
|
|
||||||
|
_LIBRARY_FILE_EXTENSION :: ""
|
||||||
|
|
||||||
|
_load_library :: proc(path: string, global_symbols: bool, allocator: runtime.Allocator) -> (Library, bool) {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
|
||||||
|
_unload_library :: proc(library: Library) -> bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
_symbol_address :: proc(library: Library, symbol: string, allocator: runtime.Allocator) -> (ptr: rawptr, found: bool) {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
|
||||||
|
_last_error :: proc() -> string {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
@@ -18,3 +18,10 @@ _last_platform_error_string :: proc() -> string {
|
|||||||
_set_last_platform_error :: proc(err: i32) {
|
_set_last_platform_error :: proc(err: i32) {
|
||||||
_last_error = err
|
_last_error = err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Parse_Endpoint_Error :: enum u32 {
|
||||||
|
None = 0,
|
||||||
|
Bad_Port = 1,
|
||||||
|
Bad_Address,
|
||||||
|
Bad_Hostname,
|
||||||
|
}
|
||||||
+890
-890
File diff suppressed because it is too large
Load Diff
@@ -148,6 +148,11 @@ gb_internal bool does_require_msgSend_stret(Type *return_type) {
|
|||||||
if (return_type == nullptr) {
|
if (return_type == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (build_context.metrics.os != TargetOs_darwin) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (build_context.metrics.arch == TargetArch_i386 || build_context.metrics.arch == TargetArch_amd64) {
|
if (build_context.metrics.arch == TargetArch_i386 || build_context.metrics.arch == TargetArch_amd64) {
|
||||||
i64 struct_limit = type_size_of(t_uintptr) << 1;
|
i64 struct_limit = type_size_of(t_uintptr) << 1;
|
||||||
return type_size_of(return_type) > struct_limit;
|
return type_size_of(return_type) > struct_limit;
|
||||||
|
|||||||
Vendored
+37
@@ -0,0 +1,37 @@
|
|||||||
|
#+build haiku
|
||||||
|
package directx_dxc
|
||||||
|
import "core:c"
|
||||||
|
|
||||||
|
FILETIME :: struct {
|
||||||
|
dwLowDateTime: DWORD,
|
||||||
|
dwHighDateTime: DWORD,
|
||||||
|
}
|
||||||
|
|
||||||
|
GUID :: struct {
|
||||||
|
Data1: DWORD,
|
||||||
|
Data2: WORD,
|
||||||
|
Data3: WORD,
|
||||||
|
Data4: [8]BYTE,
|
||||||
|
}
|
||||||
|
|
||||||
|
BYTE :: distinct u8
|
||||||
|
WORD :: u16
|
||||||
|
DWORD :: u32
|
||||||
|
BOOL :: distinct b32
|
||||||
|
SIZE_T :: uint
|
||||||
|
ULONG :: c.ulong
|
||||||
|
CLSID :: GUID
|
||||||
|
IID :: GUID
|
||||||
|
LONG :: distinct c.long
|
||||||
|
HRESULT :: distinct LONG
|
||||||
|
wstring :: [^]c.wchar_t
|
||||||
|
BSTR :: wstring
|
||||||
|
|
||||||
|
IUnknown :: struct {
|
||||||
|
using _iunknown_vtable: ^IUnknown_VTable,
|
||||||
|
}
|
||||||
|
IUnknown_VTable :: struct {
|
||||||
|
QueryInterface: proc "c" (this: ^IUnknown, riid: ^IID, ppvObject: ^rawptr) -> HRESULT,
|
||||||
|
AddRef: proc "c" (this: ^IUnknown) -> ULONG,
|
||||||
|
Release: proc "c" (this: ^IUnknown) -> ULONG,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user