mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//+build !freestanding
|
||||
#+build !freestanding
|
||||
package mem
|
||||
|
||||
import "core:sync"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build !freestanding
|
||||
#+build !freestanding
|
||||
package mem
|
||||
|
||||
import "base:runtime"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build linux
|
||||
//+private
|
||||
#+build linux
|
||||
#+private
|
||||
package mem_virtual
|
||||
|
||||
import "core:sys/linux"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
//+private
|
||||
//+build !darwin
|
||||
//+build !freebsd
|
||||
//+build !openbsd
|
||||
//+build !netbsd
|
||||
//+build !linux
|
||||
//+build !windows
|
||||
#+private
|
||||
#+build !darwin
|
||||
#+build !freebsd
|
||||
#+build !openbsd
|
||||
#+build !netbsd
|
||||
#+build !linux
|
||||
#+build !windows
|
||||
package mem_virtual
|
||||
|
||||
_reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+private
|
||||
#+private
|
||||
package mem_virtual
|
||||
|
||||
Platform_Memory_Block :: struct {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build darwin, netbsd, freebsd, openbsd
|
||||
//+private
|
||||
#+build darwin, netbsd, freebsd, openbsd
|
||||
#+private
|
||||
package mem_virtual
|
||||
|
||||
import "core:sys/posix"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build windows
|
||||
//+private
|
||||
#+build windows
|
||||
#+private
|
||||
package mem_virtual
|
||||
|
||||
foreign import Kernel32 "system:Kernel32.lib"
|
||||
|
||||
Reference in New Issue
Block a user