瀏覽代碼

Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.

Karl Zylinski 10 月之前
父節點
當前提交
19f0127e55
共有 100 個文件被更改,包括 147 次插入147 次删除
  1. 1 1
      base/intrinsics/intrinsics.odin
  2. 1 1
      base/runtime/core.odin
  3. 3 3
      base/runtime/entry_unix.odin
  4. 3 3
      base/runtime/entry_wasm.odin
  5. 3 3
      base/runtime/entry_windows.odin
  6. 2 2
      base/runtime/heap_allocator_orca.odin
  7. 2 2
      base/runtime/heap_allocator_other.odin
  8. 2 2
      base/runtime/heap_allocator_unix.odin
  9. 1 1
      base/runtime/internal.odin
  10. 2 2
      base/runtime/os_specific_bsd.odin
  11. 2 2
      base/runtime/os_specific_darwin.odin
  12. 2 2
      base/runtime/os_specific_freestanding.odin
  13. 2 2
      base/runtime/os_specific_haiku.odin
  14. 2 2
      base/runtime/os_specific_js.odin
  15. 1 1
      base/runtime/os_specific_linux.odin
  16. 2 2
      base/runtime/os_specific_orca.odin
  17. 2 2
      base/runtime/os_specific_wasi.odin
  18. 2 2
      base/runtime/os_specific_windows.odin
  19. 1 1
      base/runtime/procs_darwin.odin
  20. 1 1
      base/runtime/procs_js.odin
  21. 1 1
      base/runtime/procs_wasm.odin
  22. 2 2
      base/runtime/procs_windows_amd64.odin
  23. 2 2
      base/runtime/procs_windows_i386.odin
  24. 1 1
      base/runtime/wasm_allocator.odin
  25. 1 1
      core/compress/zlib/zlib.odin
  26. 1 1
      core/crypto/_aes/hw_intel/api.odin
  27. 1 1
      core/crypto/_aes/hw_intel/ghash.odin
  28. 1 1
      core/crypto/_aes/hw_intel/hw_intel_keysched.odin
  29. 1 1
      core/crypto/_chacha20/simd256/chacha20_simd256.odin
  30. 1 1
      core/crypto/_chacha20/simd256/chacha20_simd256_stub.odin
  31. 1 1
      core/crypto/aes/aes_ctr_hw_intel.odin
  32. 1 1
      core/crypto/aes/aes_ecb_hw_intel.odin
  33. 1 1
      core/crypto/aes/aes_gcm_hw_intel.odin
  34. 1 1
      core/crypto/aes/aes_impl_hw_gen.odin
  35. 1 1
      core/crypto/aes/aes_impl_hw_intel.odin
  36. 1 1
      core/crypto/rand_bsd.odin
  37. 7 7
      core/crypto/rand_generic.odin
  38. 2 2
      core/debug/trace/trace_cpp.odin
  39. 3 3
      core/debug/trace/trace_nil.odin
  40. 2 2
      core/debug/trace/trace_windows.odin
  41. 2 2
      core/dynlib/lib_js.odin
  42. 2 2
      core/dynlib/lib_unix.odin
  43. 2 2
      core/dynlib/lib_windows.odin
  44. 1 1
      core/flags/errors_bsd.odin
  45. 2 2
      core/flags/errors_nonbsd.odin
  46. 1 1
      core/flags/internal_assignment.odin
  47. 1 1
      core/flags/internal_parsing.odin
  48. 1 1
      core/flags/internal_rtti.odin
  49. 3 3
      core/flags/internal_rtti_nonbsd.odin
  50. 1 1
      core/flags/internal_validation.odin
  51. 1 1
      core/fmt/example.odin
  52. 1 1
      core/fmt/fmt_js.odin
  53. 3 3
      core/fmt/fmt_os.odin
  54. 1 1
      core/image/bmp/bmp_js.odin
  55. 1 1
      core/image/bmp/bmp_os.odin
  56. 1 1
      core/image/general_js.odin
  57. 1 1
      core/image/general_os.odin
  58. 1 1
      core/image/netpbm/netpbm.odin
  59. 1 1
      core/image/netpbm/netpbm_js.odin
  60. 1 1
      core/image/netpbm/netpbm_os.odin
  61. 1 1
      core/image/png/png.odin
  62. 1 1
      core/image/png/png_js.odin
  63. 1 1
      core/image/png/png_os.odin
  64. 1 1
      core/image/qoi/qoi_js.odin
  65. 1 1
      core/image/qoi/qoi_os.odin
  66. 1 1
      core/image/tga/tga_js.odin
  67. 1 1
      core/image/tga/tga_os.odin
  68. 2 2
      core/log/file_console_logger.odin
  69. 1 1
      core/math/big/tune.odin
  70. 1 1
      core/math/math_basic.odin
  71. 1 1
      core/math/math_basic_js.odin
  72. 1 1
      core/math/noise/internal.odin
  73. 1 1
      core/mem/mutex_allocator.odin
  74. 1 1
      core/mem/tracking_allocator.odin
  75. 2 2
      core/mem/virtual/virtual_linux.odin
  76. 7 7
      core/mem/virtual/virtual_other.odin
  77. 1 1
      core/mem/virtual/virtual_platform.odin
  78. 2 2
      core/mem/virtual/virtual_posix.odin
  79. 2 2
      core/mem/virtual/virtual_windows.odin
  80. 1 1
      core/net/addr.odin
  81. 1 1
      core/net/common.odin
  82. 1 1
      core/net/dns.odin
  83. 1 1
      core/net/dns_unix.odin
  84. 1 1
      core/net/dns_windows.odin
  85. 1 1
      core/net/errors_darwin.odin
  86. 1 1
      core/net/errors_freebsd.odin
  87. 1 1
      core/net/errors_linux.odin
  88. 1 1
      core/net/errors_windows.odin
  89. 1 1
      core/net/interface.odin
  90. 1 1
      core/net/interface_darwin.odin
  91. 1 1
      core/net/interface_freebsd.odin
  92. 1 1
      core/net/interface_linux.odin
  93. 1 1
      core/net/interface_windows.odin
  94. 1 1
      core/net/socket.odin
  95. 1 1
      core/net/socket_darwin.odin
  96. 1 1
      core/net/socket_freebsd.odin
  97. 1 1
      core/net/socket_linux.odin
  98. 1 1
      core/net/socket_windows.odin
  99. 1 1
      core/os/dir_unix.odin
  100. 1 1
      core/os/os2/allocators.odin

+ 1 - 1
base/intrinsics/intrinsics.odin

@@ -1,5 +1,5 @@
 // This is purely for documentation
 // This is purely for documentation
-//+build ignore
+#+build ignore
 package intrinsics
 package intrinsics
 
 
 // Package-Related
 // Package-Related

+ 1 - 1
base/runtime/core.odin

@@ -18,7 +18,7 @@
 // This could change at a later date if the all these data structures are
 // This could change at a later date if the all these data structures are
 // implemented within the compiler rather than in this "preload" file
 // implemented within the compiler rather than in this "preload" file
 //
 //
-//+no-instrumentation
+#+no-instrumentation
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 3 - 3
base/runtime/entry_unix.odin

@@ -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
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 3 - 3
base/runtime/entry_wasm.odin

@@ -1,6 +1,6 @@
-//+private
-//+build wasm32, wasm64p32
-//+no-instrumentation
+#+private
+#+build wasm32, wasm64p32
+#+no-instrumentation
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 3 - 3
base/runtime/entry_windows.odin

@@ -1,6 +1,6 @@
-//+private
-//+build windows
-//+no-instrumentation
+#+private
+#+build windows
+#+no-instrumentation
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 2 - 2
base/runtime/heap_allocator_orca.odin

@@ -1,5 +1,5 @@
-//+build orca
-//+private
+#+build orca
+#+private
 package runtime
 package runtime
 
 
 foreign {
 foreign {

+ 2 - 2
base/runtime/heap_allocator_other.odin

@@ -1,5 +1,5 @@
-//+build js, wasi, freestanding, essence
-//+private
+#+build js, wasi, freestanding, essence
+#+private
 package runtime
 package runtime
 
 
 _heap_alloc :: proc "contextless" (size: int, zero_memory := true) -> rawptr {
 _heap_alloc :: proc "contextless" (size: int, zero_memory := true) -> rawptr {

+ 2 - 2
base/runtime/heap_allocator_unix.odin

@@ -1,5 +1,5 @@
-//+build linux, darwin, freebsd, openbsd, netbsd, haiku
-//+private
+#+build linux, darwin, freebsd, openbsd, netbsd, haiku
+#+private
 package runtime
 package runtime
 
 
 when ODIN_OS == .Darwin {
 when ODIN_OS == .Darwin {

+ 1 - 1
base/runtime/internal.odin

@@ -1,4 +1,4 @@
-//+vet !cast
+#+vet !cast
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 2 - 2
base/runtime/os_specific_bsd.odin

@@ -1,5 +1,5 @@
-//+build freebsd, openbsd, netbsd
-//+private
+#+build freebsd, openbsd, netbsd
+#+private
 package runtime
 package runtime
 
 
 foreign import libc "system:c"
 foreign import libc "system:c"

+ 2 - 2
base/runtime/os_specific_darwin.odin

@@ -1,5 +1,5 @@
-//+build darwin
-//+private
+#+build darwin
+#+private
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 2 - 2
base/runtime/os_specific_freestanding.odin

@@ -1,5 +1,5 @@
-//+build freestanding
-//+private
+#+build freestanding
+#+private
 package runtime
 package runtime
 
 
 // TODO(bill): reimplement `os.write`
 // TODO(bill): reimplement `os.write`

+ 2 - 2
base/runtime/os_specific_haiku.odin

@@ -1,5 +1,5 @@
-//+build haiku
-//+private
+#+build haiku
+#+private
 package runtime
 package runtime
 
 
 foreign import libc "system:c"
 foreign import libc "system:c"

+ 2 - 2
base/runtime/os_specific_js.odin

@@ -1,5 +1,5 @@
-//+build js
-//+private
+#+build js
+#+private
 package runtime
 package runtime
 
 
 foreign import "odin_env"
 foreign import "odin_env"

+ 1 - 1
base/runtime/os_specific_linux.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 2 - 2
base/runtime/os_specific_orca.odin

@@ -1,5 +1,5 @@
-//+build orca
-//+private
+#+build orca
+#+private
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 2 - 2
base/runtime/os_specific_wasi.odin

@@ -1,5 +1,5 @@
-//+build wasi
-//+private
+#+build wasi
+#+private
 package runtime
 package runtime
 
 
 foreign import wasi "wasi_snapshot_preview1"
 foreign import wasi "wasi_snapshot_preview1"

+ 2 - 2
base/runtime/os_specific_windows.odin

@@ -1,5 +1,5 @@
-//+build windows
-//+private
+#+build windows
+#+private
 package runtime
 package runtime
 
 
 foreign import kernel32 "system:Kernel32.lib"
 foreign import kernel32 "system:Kernel32.lib"

+ 1 - 1
base/runtime/procs_darwin.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package runtime
 package runtime
 
 
 foreign import "system:Foundation.framework"
 foreign import "system:Foundation.framework"

+ 1 - 1
base/runtime/procs_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package runtime
 package runtime
 
 
 init_default_context_for_js: Context
 init_default_context_for_js: Context

+ 1 - 1
base/runtime/procs_wasm.odin

@@ -1,4 +1,4 @@
-//+build wasm32, wasm64p32
+#+build wasm32, wasm64p32
 package runtime
 package runtime
 
 
 @(private="file")
 @(private="file")

+ 2 - 2
base/runtime/procs_windows_amd64.odin

@@ -1,5 +1,5 @@
-//+private
-//+no-instrumentation
+#+private
+#+no-instrumentation
 package runtime
 package runtime
 
 
 foreign import kernel32 "system:Kernel32.lib"
 foreign import kernel32 "system:Kernel32.lib"

+ 2 - 2
base/runtime/procs_windows_i386.odin

@@ -1,5 +1,5 @@
-//+private
-//+no-instrumentation
+#+private
+#+no-instrumentation
 package runtime
 package runtime
 
 
 @require foreign import "system:int64.lib"
 @require foreign import "system:int64.lib"

+ 1 - 1
base/runtime/wasm_allocator.odin

@@ -1,4 +1,4 @@
-//+build wasm32, wasm64p32
+#+build wasm32, wasm64p32
 package runtime
 package runtime
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/compress/zlib/zlib.odin

@@ -1,4 +1,4 @@
-//+vet !using-param
+#+vet !using-param
 package compress_zlib
 package compress_zlib
 
 
 /*
 /*

+ 1 - 1
core/crypto/_aes/hw_intel/api.odin

@@ -1,4 +1,4 @@
-//+build amd64
+#+build amd64
 package aes_hw_intel
 package aes_hw_intel
 
 
 import "core:sys/info"
 import "core:sys/info"

+ 1 - 1
core/crypto/_aes/hw_intel/ghash.odin

@@ -20,7 +20,7 @@
 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
-//+build amd64
+#+build amd64
 package aes_hw_intel
 package aes_hw_intel
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/_aes/hw_intel/hw_intel_keysched.odin

@@ -20,7 +20,7 @@
 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
-//+build amd64
+#+build amd64
 package aes_hw_intel
 package aes_hw_intel
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/_chacha20/simd256/chacha20_simd256.odin

@@ -1,4 +1,4 @@
-//+build amd64
+#+build amd64
 package chacha20_simd256
 package chacha20_simd256
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/_chacha20/simd256/chacha20_simd256_stub.odin

@@ -1,4 +1,4 @@
-//+build !amd64
+#+build !amd64
 package chacha20_simd256
 package chacha20_simd256
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/aes/aes_ctr_hw_intel.odin

@@ -1,4 +1,4 @@
-//+build amd64
+#+build amd64
 package aes
 package aes
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/aes/aes_ecb_hw_intel.odin

@@ -1,4 +1,4 @@
-//+build amd64
+#+build amd64
 package aes
 package aes
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/aes/aes_gcm_hw_intel.odin

@@ -1,4 +1,4 @@
-//+build amd64
+#+build amd64
 package aes
 package aes
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/crypto/aes/aes_impl_hw_gen.odin

@@ -1,4 +1,4 @@
-//+build !amd64
+#+build !amd64
 package aes
 package aes
 
 
 @(private = "file")
 @(private = "file")

+ 1 - 1
core/crypto/aes/aes_impl_hw_intel.odin

@@ -1,4 +1,4 @@
-//+build amd64
+#+build amd64
 package aes
 package aes
 
 
 import "core:crypto/_aes/hw_intel"
 import "core:crypto/_aes/hw_intel"

+ 1 - 1
core/crypto/rand_bsd.odin

@@ -1,4 +1,4 @@
-//+build freebsd, openbsd, netbsd
+#+build freebsd, openbsd, netbsd
 package crypto
 package crypto
 
 
 foreign import libc "system:c"
 foreign import libc "system:c"

+ 7 - 7
core/crypto/rand_generic.odin

@@ -1,10 +1,10 @@
-//+build !linux
-//+build !windows
-//+build !openbsd
-//+build !freebsd
-//+build !netbsd
-//+build !darwin
-//+build !js
+#+build !linux
+#+build !windows
+#+build !openbsd
+#+build !freebsd
+#+build !netbsd
+#+build !darwin
+#+build !js
 package crypto
 package crypto
 
 
 HAS_RAND_BYTES :: false
 HAS_RAND_BYTES :: false

+ 2 - 2
core/debug/trace/trace_cpp.odin

@@ -1,5 +1,5 @@
-//+private file
-//+build linux, darwin
+#+private file
+#+build linux, darwin
 package debug_trace
 package debug_trace
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 3 - 3
core/debug/trace/trace_nil.odin

@@ -1,6 +1,6 @@
-//+build !windows
-//+build !linux
-//+build !darwin
+#+build !windows
+#+build !linux
+#+build !darwin
 package debug_trace
 package debug_trace
 
 
 import "base:runtime"
 import "base:runtime"

+ 2 - 2
core/debug/trace/trace_windows.odin

@@ -1,5 +1,5 @@
-//+private
-//+build windows
+#+private
+#+build windows
 package debug_trace
 package debug_trace
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 2 - 2
core/dynlib/lib_js.odin

@@ -1,5 +1,5 @@
-//+build js
-//+private
+#+build js
+#+private
 package dynlib
 package dynlib
 
 
 _load_library :: proc(path: string, global_symbols := false) -> (Library, bool) {
 _load_library :: proc(path: string, global_symbols := false) -> (Library, bool) {

+ 2 - 2
core/dynlib/lib_unix.odin

@@ -1,5 +1,5 @@
-//+build linux, darwin, freebsd, openbsd, netbsd
-//+private
+#+build linux, darwin, freebsd, openbsd, netbsd
+#+private
 package dynlib
 package dynlib
 
 
 import "core:os"
 import "core:os"

+ 2 - 2
core/dynlib/lib_windows.odin

@@ -1,5 +1,5 @@
-//+build windows
-//+private
+#+build windows
+#+private
 package dynlib
 package dynlib
 
 
 import win32 "core:sys/windows"
 import win32 "core:sys/windows"

+ 1 - 1
core/flags/errors_bsd.odin

@@ -1,4 +1,4 @@
-//+build netbsd, openbsd
+#+build netbsd, openbsd
 package flags
 package flags
 
 
 import "base:runtime"
 import "base:runtime"

+ 2 - 2
core/flags/errors_nonbsd.odin

@@ -1,5 +1,5 @@
-//+build !netbsd
-//+build !openbsd
+#+build !netbsd
+#+build !openbsd
 package flags
 package flags
 
 
 import "base:runtime"
 import "base:runtime"

+ 1 - 1
core/flags/internal_assignment.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package flags
 package flags
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/flags/internal_parsing.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package flags
 package flags
 
 
 import "core:container/bit_array"
 import "core:container/bit_array"

+ 1 - 1
core/flags/internal_rtti.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package flags
 package flags
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 3 - 3
core/flags/internal_rtti_nonbsd.odin

@@ -1,6 +1,6 @@
-//+private
-//+build !netbsd
-//+build !openbsd
+#+private
+#+build !netbsd
+#+build !openbsd
 package flags
 package flags
 
 
 import "core:net"
 import "core:net"

+ 1 - 1
core/flags/internal_validation.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package flags
 package flags
 
 
 @require import "base:runtime"
 @require import "base:runtime"

+ 1 - 1
core/fmt/example.odin

@@ -1,4 +1,4 @@
-//+build ignore
+#+build ignore
 package custom_formatter_example
 package custom_formatter_example
 import "core:fmt"
 import "core:fmt"
 import "core:io"
 import "core:io"

+ 1 - 1
core/fmt/fmt_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package fmt
 package fmt
 
 
 import "core:bufio"
 import "core:bufio"

+ 3 - 3
core/fmt/fmt_os.odin

@@ -1,6 +1,6 @@
-//+build !freestanding
-//+build !js
-//+build !orca
+#+build !freestanding
+#+build !js
+#+build !orca
 package fmt
 package fmt
 
 
 import "base:runtime"
 import "base:runtime"

+ 1 - 1
core/image/bmp/bmp_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package core_image_bmp
 package core_image_bmp
 
 
 load :: proc{load_from_bytes, load_from_context}
 load :: proc{load_from_bytes, load_from_context}

+ 1 - 1
core/image/bmp/bmp_os.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package core_image_bmp
 package core_image_bmp
 
 
 import "core:os"
 import "core:os"

+ 1 - 1
core/image/general_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package image
 package image
 
 
 load :: proc{
 load :: proc{

+ 1 - 1
core/image/general_os.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package image
 package image
 
 
 import "core:os"
 import "core:os"

+ 1 - 1
core/image/netpbm/netpbm.odin

@@ -1,4 +1,4 @@
-//+vet !using-stmt
+#+vet !using-stmt
 package netpbm
 package netpbm
 
 
 import "core:bytes"
 import "core:bytes"

+ 1 - 1
core/image/netpbm/netpbm_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package netpbm
 package netpbm
 
 
 load :: proc {
 load :: proc {

+ 1 - 1
core/image/netpbm/netpbm_os.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package netpbm
 package netpbm
 
 
 import "core:os"
 import "core:os"

+ 1 - 1
core/image/png/png.odin

@@ -8,7 +8,7 @@
 */
 */
 
 
 
 
-//+vet !using-stmt
+#+vet !using-stmt
 package png
 package png
 
 
 import "core:compress"
 import "core:compress"

+ 1 - 1
core/image/png/png_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package png
 package png
 
 
 load :: proc{load_from_bytes, load_from_context}
 load :: proc{load_from_bytes, load_from_context}

+ 1 - 1
core/image/png/png_os.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package png
 package png
 
 
 import "core:os"
 import "core:os"

+ 1 - 1
core/image/qoi/qoi_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package qoi
 package qoi
 
 
 save :: proc{save_to_buffer}
 save :: proc{save_to_buffer}

+ 1 - 1
core/image/qoi/qoi_os.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package qoi
 package qoi
 
 
 import "core:os"
 import "core:os"

+ 1 - 1
core/image/tga/tga_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package tga
 package tga
 
 
 save :: proc{save_to_buffer}
 save :: proc{save_to_buffer}

+ 1 - 1
core/image/tga/tga_os.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package tga
 package tga
 
 
 import "core:os"
 import "core:os"

+ 2 - 2
core/log/file_console_logger.odin

@@ -1,5 +1,5 @@
-//+build !freestanding
-//+build !orca
+#+build !freestanding
+#+build !orca
 package log
 package log
 
 
 import "core:encoding/ansi"
 import "core:encoding/ansi"

+ 1 - 1
core/math/big/tune.odin

@@ -7,7 +7,7 @@
 	The code started out as an idiomatic source port of libTomMath, which is in the public domain, with thanks.
 	The code started out as an idiomatic source port of libTomMath, which is in the public domain, with thanks.
 */
 */
 
 
-//+build ignore
+#+build ignore
 package math_big
 package math_big
 
 
 import "core:time"
 import "core:time"

+ 1 - 1
core/math/math_basic.odin

@@ -1,4 +1,4 @@
-//+build !js
+#+build !js
 package math
 package math
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/math/math_basic_js.odin

@@ -1,4 +1,4 @@
-//+build js
+#+build js
 package math
 package math
 
 
 import "base:intrinsics"
 import "base:intrinsics"

+ 1 - 1
core/math/noise/internal.odin

@@ -4,7 +4,7 @@
 	Ported from https://github.com/KdotJPG/OpenSimplex2.
 	Ported from https://github.com/KdotJPG/OpenSimplex2.
 	Copyright 2022 Yuki2 (https://github.com/NoahR02)
 	Copyright 2022 Yuki2 (https://github.com/NoahR02)
 */
 */
-//+private
+#+private
 package math_noise
 package math_noise
 
 
 /*
 /*

+ 1 - 1
core/mem/mutex_allocator.odin

@@ -1,4 +1,4 @@
-//+build !freestanding
+#+build !freestanding
 package mem
 package mem
 
 
 import "core:sync"
 import "core:sync"

+ 1 - 1
core/mem/tracking_allocator.odin

@@ -1,4 +1,4 @@
-//+build !freestanding
+#+build !freestanding
 package mem
 package mem
 
 
 import "base:runtime"
 import "base:runtime"

+ 2 - 2
core/mem/virtual/virtual_linux.odin

@@ -1,5 +1,5 @@
-//+build linux
-//+private
+#+build linux
+#+private
 package mem_virtual
 package mem_virtual
 
 
 import "core:sys/linux"
 import "core:sys/linux"

+ 7 - 7
core/mem/virtual/virtual_other.odin

@@ -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
 package mem_virtual
 
 
 _reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {
 _reserve :: proc "contextless" (size: uint) -> (data: []byte, err: Allocator_Error) {

+ 1 - 1
core/mem/virtual/virtual_platform.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package mem_virtual
 package mem_virtual
 
 
 Platform_Memory_Block :: struct {
 Platform_Memory_Block :: struct {

+ 2 - 2
core/mem/virtual/virtual_posix.odin

@@ -1,5 +1,5 @@
-//+build darwin, netbsd, freebsd, openbsd
-//+private
+#+build darwin, netbsd, freebsd, openbsd
+#+private
 package mem_virtual
 package mem_virtual
 
 
 import "core:sys/posix"
 import "core:sys/posix"

+ 2 - 2
core/mem/virtual/virtual_windows.odin

@@ -1,5 +1,5 @@
-//+build windows
-//+private
+#+build windows
+#+private
 package mem_virtual
 package mem_virtual
 
 
 foreign import Kernel32 "system:Kernel32.lib"
 foreign import Kernel32 "system:Kernel32.lib"

+ 1 - 1
core/net/addr.odin

@@ -1,4 +1,4 @@
-// +build windows, linux, darwin, freebsd
+#+build windows, linux, darwin, freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/common.odin

@@ -1,4 +1,4 @@
-// +build windows, linux, darwin, freebsd
+#+build windows, linux, darwin, freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/dns.odin

@@ -1,4 +1,4 @@
-// +build windows, linux, darwin, freebsd
+#+build windows, linux, darwin, freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/dns_unix.odin

@@ -1,4 +1,4 @@
-//+build linux, darwin, freebsd
+#+build linux, darwin, freebsd
 package net
 package net
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/dns_windows.odin

@@ -1,4 +1,4 @@
-//+build windows
+#+build windows
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/errors_darwin.odin

@@ -1,5 +1,5 @@
 package net
 package net
-// +build darwin
+#+build darwin
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/errors_freebsd.odin

@@ -1,4 +1,4 @@
-//+build freebsd
+#+build freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/errors_linux.odin

@@ -1,5 +1,5 @@
 package net
 package net
-// +build linux
+#+build linux
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/errors_windows.odin

@@ -1,5 +1,5 @@
 package net
 package net
-// +build windows
+#+build windows
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/interface.odin

@@ -1,4 +1,4 @@
-// +build windows, linux, darwin, freebsd
+#+build windows, linux, darwin, freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/interface_darwin.odin

@@ -1,5 +1,5 @@
 package net
 package net
-//+build darwin
+#+build darwin
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/interface_freebsd.odin

@@ -1,4 +1,4 @@
-//+build freebsd
+#+build freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/interface_linux.odin

@@ -1,5 +1,5 @@
 package net
 package net
-//+build linux
+#+build linux
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/interface_windows.odin

@@ -1,5 +1,5 @@
 package net
 package net
-//+build windows
+#+build windows
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/socket.odin

@@ -1,4 +1,4 @@
-// +build windows, linux, darwin, freebsd
+#+build windows, linux, darwin, freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/socket_darwin.odin

@@ -1,5 +1,5 @@
 package net
 package net
-// +build darwin
+#+build darwin
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/socket_freebsd.odin

@@ -1,4 +1,4 @@
-//+build freebsd
+#+build freebsd
 package net
 package net
 
 
 /*
 /*

+ 1 - 1
core/net/socket_linux.odin

@@ -1,5 +1,5 @@
 package net
 package net
-// +build linux
+#+build linux
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/net/socket_windows.odin

@@ -1,5 +1,5 @@
 package net
 package net
-// +build windows
+#+build windows
 
 
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.

+ 1 - 1
core/os/dir_unix.odin

@@ -1,4 +1,4 @@
-//+build darwin, linux, netbsd, freebsd, openbsd
+#+build darwin, linux, netbsd, freebsd, openbsd
 package os
 package os
 
 
 import "core:strings"
 import "core:strings"

+ 1 - 1
core/os/os2/allocators.odin

@@ -1,4 +1,4 @@
-//+private
+#+private
 package os2
 package os2
 
 
 import "base:runtime"
 import "base:runtime"

部分文件因文件數量過多而無法顯示