mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +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 darwin
|
||||
#+build darwin
|
||||
package darwin
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build haiku
|
||||
#+build haiku
|
||||
package sys_haiku
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build haiku
|
||||
#+build haiku
|
||||
package sys_haiku
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build haiku
|
||||
#+build haiku
|
||||
package sys_haiku
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build haiku
|
||||
#+build haiku
|
||||
package sys_haiku
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build arm32, arm64
|
||||
#+build arm32, arm64
|
||||
package sysinfo
|
||||
|
||||
import "core:sys/unix"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build i386, amd64
|
||||
#+build i386, amd64
|
||||
package sysinfo
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build arm32, arm64
|
||||
//+build linux
|
||||
#+build arm32, arm64
|
||||
#+build linux
|
||||
package sysinfo
|
||||
|
||||
import "core:sys/linux"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build riscv64
|
||||
//+build linux
|
||||
#+build riscv64
|
||||
#+build linux
|
||||
package sysinfo
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build openbsd, netbsd
|
||||
#+build openbsd, netbsd
|
||||
package sysinfo
|
||||
|
||||
import sys "core:sys/unix"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build darwin, netbsd, openbsd, freebsd
|
||||
#+build darwin, netbsd, openbsd, freebsd
|
||||
package kqueue
|
||||
|
||||
when ODIN_OS == .Darwin {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//+build linux
|
||||
//+no-instrumentation
|
||||
#+build linux
|
||||
#+no-instrumentation
|
||||
package linux
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+no-instrumentation
|
||||
#+no-instrumentation
|
||||
package linux
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build amd64
|
||||
#+build amd64
|
||||
package linux
|
||||
|
||||
// AMD64 uses the new way to define syscalls, i.e. one that
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build arm32
|
||||
#+build arm32
|
||||
package linux
|
||||
|
||||
// This file was taken and transformed from
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build arm64
|
||||
#+build arm64
|
||||
package linux
|
||||
|
||||
// Syscalls for arm64 are defined using the new way, i.e. differently from
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build i386
|
||||
#+build i386
|
||||
package linux
|
||||
|
||||
// The numbers are taken from
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build riscv64
|
||||
#+build riscv64
|
||||
package linux
|
||||
|
||||
// https://github.com/riscv-collab/riscv-gnu-toolchain/blob/master/linux-headers/include/asm-generic/unistd.h
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build linux
|
||||
#+build linux
|
||||
package linux
|
||||
|
||||
/// Low 8 bits of the exit code
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build darwin
|
||||
#+build darwin
|
||||
package unix
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build freebsd
|
||||
#+build freebsd
|
||||
package unix
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build linux
|
||||
#+build linux
|
||||
package unix
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build openbsd
|
||||
#+build openbsd
|
||||
package unix
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build linux, darwin, freebsd, openbsd, netbsd, haiku
|
||||
#+build linux, darwin, freebsd, openbsd, netbsd, haiku
|
||||
package unix
|
||||
|
||||
foreign import "system:pthread"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build darwin
|
||||
#+build darwin
|
||||
package unix
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build freebsd
|
||||
#+build freebsd
|
||||
package unix
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build openbsd
|
||||
#+build openbsd
|
||||
package unix
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build amd64
|
||||
#+build amd64
|
||||
package sys_valgrind
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build amd64
|
||||
#+build amd64
|
||||
package sys_valgrind
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build amd64
|
||||
#+build amd64
|
||||
package sys_valgrind
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build amd64
|
||||
#+build amd64
|
||||
package sys_valgrind
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build wasm32
|
||||
#+build wasm32
|
||||
package sys_wasi
|
||||
|
||||
foreign import wasi "wasi_snapshot_preview1"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import advapi32 "system:Advapi32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import bcrypt "system:Bcrypt.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import "system:bthprops.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
// https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import "system:Comctl32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import "system:Comdlg32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import "system:Dbghelp.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import "system:Dnsapi.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import dwmapi "system:Dwmapi.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
import "core:math/fixed"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
import "core:c"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
USAGE :: distinct USHORT
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import "system:iphlpapi.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
// https://docs.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
FOLDERID_NetworkFolder :: GUID {0xD20BEEC4, 0x5CA8, 0x4905, {0xAE, 0x3B, 0xBF, 0x25, 0x1E, 0xA0, 0x9B, 0x53}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import netapi32 "system:Netapi32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import ntdll_lib "system:ntdll.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import shcore "system:Shcore.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import shell32 "system:Shell32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import shlwapi "system:shlwapi.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import Synchronization "system:Synchronization.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
// Parameter for SystemParametersInfo.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
import "base:intrinsics"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import userenv "system:Userenv.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
import "base:runtime"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import uxtheme "system:UxTheme.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
import "core:c"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
// WGL_ARB_buffer_region
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
WM_NULL :: 0x0000
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
// https://learn.microsoft.com/en-us/windows/win32/api/winerror/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import winmm "system:Winmm.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
LCTYPE :: distinct DWORD
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import version "system:version.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//+build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build windows
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
// Define flags to be used with the WSAAsyncSelect() call.
|
||||
|
||||
Reference in New Issue
Block a user