mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-24 00:17:54 +00:00
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
// This could change at a later date if the all these data structures are
|
||||
// implemented within the compiler rather than in this "preload" file
|
||||
//
|
||||
//+no-instrumentation
|
||||
#+no-instrumentation
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//+private
|
||||
//+build linux, darwin, freebsd, openbsd, netbsd, haiku
|
||||
//+no-instrumentation
|
||||
#+private
|
||||
#+build linux, darwin, freebsd, openbsd, netbsd, haiku
|
||||
#+no-instrumentation
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//+private
|
||||
//+build wasm32, wasm64p32
|
||||
//+no-instrumentation
|
||||
#+private
|
||||
#+build wasm32, wasm64p32
|
||||
#+no-instrumentation
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//+private
|
||||
//+build windows
|
||||
//+no-instrumentation
|
||||
#+private
|
||||
#+build windows
|
||||
#+no-instrumentation
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build orca
|
||||
//+private
|
||||
#+build orca
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build js, wasi, freestanding, essence
|
||||
//+private
|
||||
#+build js, wasi, freestanding, essence
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
_heap_alloc :: proc "contextless" (size: int, zero_memory := true) -> rawptr {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build linux, darwin, freebsd, openbsd, netbsd, haiku
|
||||
//+private
|
||||
#+build linux, darwin, freebsd, openbsd, netbsd, haiku
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
when ODIN_OS == .Darwin {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+vet !cast
|
||||
#+vet !cast
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build freebsd, openbsd, netbsd
|
||||
//+private
|
||||
#+build freebsd, openbsd, netbsd
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign import libc "system:c"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build darwin
|
||||
//+private
|
||||
#+build darwin
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build freestanding
|
||||
//+private
|
||||
#+build freestanding
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
// TODO(bill): reimplement `os.write`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build haiku
|
||||
//+private
|
||||
#+build haiku
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign import libc "system:c"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build js
|
||||
//+private
|
||||
#+build js
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign import "odin_env"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+private
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build orca
|
||||
//+private
|
||||
#+build orca
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build wasi
|
||||
//+private
|
||||
#+build wasi
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign import wasi "wasi_snapshot_preview1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build windows
|
||||
//+private
|
||||
#+build windows
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+private
|
||||
#+private
|
||||
package runtime
|
||||
|
||||
foreign import "system:Foundation.framework"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build js
|
||||
#+build js
|
||||
package runtime
|
||||
|
||||
init_default_context_for_js: Context
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build wasm32, wasm64p32
|
||||
#+build wasm32, wasm64p32
|
||||
package runtime
|
||||
|
||||
@(private="file")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+private
|
||||
//+no-instrumentation
|
||||
#+private
|
||||
#+no-instrumentation
|
||||
package runtime
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+private
|
||||
//+no-instrumentation
|
||||
#+private
|
||||
#+no-instrumentation
|
||||
package runtime
|
||||
|
||||
@require foreign import "system:int64.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build wasm32, wasm64p32
|
||||
#+build wasm32, wasm64p32
|
||||
package runtime
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
Reference in New Issue
Block a user