Jeroen van Rijn and GitHub
9cfd4a953e
Merge pull request #3132 from KyleNBurke/patch-1
...
Remove mention of `map` in builtin resize proc group
2024-01-24 16:41:27 +01:00
Jeroen van Rijn and GitHub
5a542c7ad5
Merge pull request #3119 from Kelimion/location_call
...
Clarify #location error message when not a call.
2024-01-20 14:42:42 +01:00
Jeroen van Rijn
73f57c5933
Clarify #location error message when not a call.
2024-01-20 14:27:50 +01:00
Jeroen van Rijn and GitHub
2071d7ba84
Merge pull request #3116 from Kelimion/hot_reload
...
Add hot reload support to `dynlib.initialize_symbols`
2024-01-19 18:51:34 +01:00
Jeroen van Rijn
e8102a40d0
Add hot reload support to dynlib.initialize_symbols
2024-01-19 18:43:02 +01:00
Jeroen van Rijn
fc047a8043
Expand -subsystem option on Windows
...
W:\Odin>odin run sketch.odin -file -subsystem:foo
Invalid -subsystem string, got oo. Expected one of:
BOOT_APPLICATION, CONSOLE (default), EFI_APPLICATION, EFI_BOOT_SERVICE_DRIVER, EFI_ROM, EFI_RUNTIME_DRIVER, NATIVE, POSIX, WINDOWS (or WINDOW), WINDOWSCE
We now also set the constant ODIN_WINDOWS_SUBSYSTEM, which is "" for non-Windows targets.
2024-01-18 19:12:39 +01:00
Jeroen van Rijn
ae52e245ea
Add WINDOWS_SUBSYSTEM constant bool
...
true when -subsystem:windows for Windows targets, false otherwise.
2024-01-18 17:42:03 +01:00
Jeroen van Rijn and GitHub
ea43c030aa
Merge pull request #3107 from ktsiligkiris/documentation/fix_xml_docs
...
Fix comments for proper rendering in documentation in encoding/xml
2024-01-17 21:10:49 +01:00
Jeroen van Rijn and GitHub
1b83f4a18b
Merge pull request #3082 from edyu/master
...
Fix math/fixed floor/ceil/round
2024-01-17 19:13:22 +01:00
Jeroen van Rijn and GitHub
1c9ec27d36
Merge pull request #3105 from FourteenBrush/patch-1
...
Fix typo in bytes.scrub
2024-01-17 13:54:37 +01:00
Jeroen van Rijn and GitHub
ae0be9c785
Merge pull request #3096 from ktsiligkiris/documentation/fix-format
...
[DOC] Fix documentation formatting in site
2024-01-14 16:03:57 +01:00
Jeroen van Rijn and GitHub
c58eeca1b2
Merge pull request #3095 from laytan/macos-add-common-library-paths
...
darwin: add library paths for default Homebrew and MacPorts locations
2024-01-13 21:51:07 +01:00
Jeroen van Rijn and GitHub
2b1d85968d
Merge pull request #3094 from laytan/fix-miniaudio-import
...
vendor/miniaudio: fix import for MacOS
2024-01-13 21:31:13 +01:00
Jeroen van Rijn
5e7b031a1d
Add RAD Debugger file to .gitignore.
2024-01-13 16:10:32 +01:00
Jeroen van Rijn and GitHub
b13aa5db37
Merge pull request #3085 from Platin21/fix/macos-versions
...
Adds new MacOS Versions and Fixes Kernel Matching
2024-01-10 18:31:17 +01:00
Jeroen van Rijn
2990747cf8
Reindent and align and f ix Ventura kernel+version swap.
2024-01-10 18:26:14 +01:00
Jeroen van Rijn and GitHub
efb2b05040
Merge pull request #3078 from Kelimion/pq_peek
...
Add `peek` to priority queue.
2024-01-08 19:39:57 +01:00
Jeroen van Rijn
656e62d724
Add peek to priority queue.
2024-01-08 19:33:30 +01:00
Jeroen van Rijn and GitHub
7d3dfb1046
Merge pull request #3006 from hwchen/hwchen/last_index_any
...
fix strings.last_index_any for single char
2024-01-08 15:57:36 +01:00
Jeroen van Rijn and GitHub
2784e8ea51
Merge pull request #3072 from laytan/add-dynlib-last_error
...
dynlib: add last_error procedure
2024-01-06 02:13:53 +01:00
Jeroen van Rijn
649b5fa528
Add bool return to dynlib.initialize_symbols.
2024-01-06 02:04:09 +01:00
Jeroen van Rijn and GitHub
d6a89d667d
Add dynlib.initialize_symbols ( #3071 )
...
```
package example
import "core:dynlib"
import "core:fmt"
Symbols :: struct {
// `foo_` is prefixed, so we look for the symbol `foo_add`.
add: proc "c" (int, int) -> int,
// We use the tag here to override the symbol to look for, namely `bar_sub`.
sub: proc "c" (int, int) -> int `dynlib:"bar_sub"`,
// Exported global (if exporting an i32, the type must be ^i32 because the symbol is a pointer to the export.)
// If it's not a pointer or procedure type, we'll skip the struct field.
hellope: ^i32,
// Handle to free library.
// We can have more than one of these so we can match symbols for more than one DLL with one struct.
_my_lib_handle: dynlib.Library,
}
main :: proc() {
sym: Symbols
// Load symbols from `lib.dll` into Symbols struct.
// Each struct field is prefixed with `foo_` before lookup in the DLL's symbol table.
// The library's Handle (to unload) will be stored in `sym._my_lib_handle`. This way you can load multiple DLLs in one struct.
count := dynlib.initialize_symbols(&sym, "lib.dll", "foo_", "_my_lib_handle")
defer dynlib.unload_library(sym._my_lib_handle)
fmt.printf("%v symbols loaded from lib.dll (%p).\n", count, sym._my_lib_handle)
if count > 0 {
fmt.println("42 + 42 =", sym.add(42, 42))
fmt.println("84 - 13 =", sym.sub(84, 13))
fmt.println("hellope =", sym.hellope^)
}
}
```
2024-01-06 01:31:27 +01:00
Jeroen van Rijn and GitHub
b59c80d6fd
Merge pull request #3068 from laytan/json-unmarshal-union
...
encoding/json: try to unmarshal into union variants
2024-01-03 19:13:36 +01:00
Jeroen van Rijn and GitHub
cb1c10ce83
Merge pull request #3067 from Platin21/fix/macos-no-duplicated-linkage
...
Fix/macos no duplicated linkage
2024-01-02 21:35:41 +01:00
Jeroen van Rijn and GitHub
ee97c5958f
Merge pull request #3065 from Platin21/fix/macos-min-version
...
Removes macOS min version and supports default latest
2024-01-02 20:07:26 +01:00
Jeroen van Rijn
4efef08c94
Update core:encoding to Unicode 15.1 table.
2024-01-02 18:03:32 +01:00
Jeroen van Rijn
89084befb0
Remove unnecessary []byte -> []byte conversion.
2023-12-30 21:59:33 +01:00
Jeroen van Rijn and GitHub
252fd0e928
Merge pull request #3052 from laytan/fix-type-assign-at
...
fix typo in assign_at_elems
2023-12-28 17:44:20 +01:00
Jeroen van Rijn and GitHub
33d85adf34
Merge pull request #3051 from laytan/fix-double-execution-of-tests
...
fix double execution of tests
2023-12-27 15:58:19 +01:00
Jeroen van Rijn
68d2b7bb89
Disable doc tests for now.
2023-12-27 15:29:40 +01:00
Jeroen van Rijn and GitHub
d667809e0a
Merge pull request #3050 from laytan/fix-load-directive-with-absolute-paths
...
fix load directive with absolute paths
2023-12-27 15:21:43 +01:00
Jeroen van Rijn
e52cc73d50
Fix generic_float.odin
2023-12-21 22:37:26 +01:00
Jeroen van Rijn and GitHub
ac0ed13b35
Merge pull request #3039 from chikega/patch-1
...
Update demo.odin
2023-12-21 22:32:09 +01:00
Jeroen van Rijn and GitHub
49fb0acfc9
Merge pull request #3037 from laytan/fix-wrong-string-type-assert
...
fix wrong string type assert
2023-12-20 01:05:10 +01:00
Jeroen van Rijn and GitHub
6f80d2dc36
Merge pull request #3033 from laytan/use-stack-buffer-for-log-allocator
...
use stack buffer for log allocator to avoid logging it's own allocations
2023-12-20 00:06:51 +01:00
Jeroen van Rijn and GitHub
d4df3f6383
Merge pull request #3025 from laytan/log-allocator-memory-format
...
log allocator: use %m to format size and fix formatting bugs
2023-12-16 01:32:18 +01:00
Jeroen van Rijn and GitHub
040b90ce76
Merge pull request #3011 from xtactis/binary_search_by_fix/3007
...
Fix for bug in binary_search_by implementation
2023-12-07 18:26:34 +01:00
Jeroen van Rijn
c5c46c5073
Silence writable string warnings when compiling Odin on Linux.
2023-12-03 18:08:18 +01:00
Jeroen van Rijn
4aa8834d39
Add os.args to demo.
2023-11-27 21:01:27 +01:00
Jeroen van Rijn
f79efd43e4
Fix missing clamp in core:math/big random.
2023-11-27 12:43:24 +01:00
Jeroen van Rijn and GitHub
e8e3501443
Merge pull request #2979 from rope-hmg/master
...
Binary search improvements
2023-11-25 17:48:09 +01:00
Jeroen van Rijn and GitHub
cabaac5a68
Merge pull request #2976 from mtarik34b/improve-command-line-help-and-usage
...
Improve command line help/usage and its formatting
2023-11-25 11:06:34 +01:00
Jeroen van Rijn and GitHub
2bb5c4cafc
Merge pull request #2973 from flysand7/dial_tcp_bug
...
[net]: Fix passing the wrong socket to `linux.connect` on linux
2023-11-25 10:39:14 +01:00
Jeroen van Rijn and GitHub
3c021f9c52
Merge pull request #2923 from flysand7/raylib-fix
...
Pre-compiled raygui on linux
2023-11-24 14:18:49 +01:00
Jeroen van Rijn and GitHub
9ea88f1353
Merge pull request #2918 from flysand7/math-doc
...
[math]: Fix the doc comments on `F64_*` constants
2023-11-24 14:16:19 +01:00
Jeroen van Rijn and GitHub
4d89249caf
Merge pull request #2939 from laytan/allow-larger-thread-poly-data
...
Allow larger thread poly data
2023-11-24 14:06:24 +01:00
Jeroen van Rijn and GitHub
0df1645422
Merge pull request #2942 from flga/master
...
core:sys/linux: make Perf_Read_Format a bitset
2023-11-24 13:53:14 +01:00
Jeroen van Rijn and GitHub
bb6d73953c
Merge pull request #2972 from flysand7/net-socket-any
...
[net]: Add send_any, recv_any variants to proc groups for Any_Socket
2023-11-24 13:42:48 +01:00
Jeroen van Rijn and GitHub
c9c14bab8a
Merge pull request #2946 from laytan/fix-test-name-flag
...
fix -test-name flag
2023-11-24 13:42:10 +01:00
Jeroen van Rijn and GitHub
7c6117bb8f
Merge pull request #2947 from flysand7/vendor-x11
...
[vendor/x11]: Add most of the basic xlib bindings
2023-11-24 13:41:28 +01:00
Jeroen van Rijn and GitHub
ae40946198
Merge pull request #2950 from laytan/fix-nil-exceptions-with-incomplete-code-parse
...
fix nil exceptions with incomplete code parse
2023-11-24 13:39:58 +01:00
Jeroen van Rijn and GitHub
dab72d5615
Merge pull request #2952 from Pingar5/master
...
Add various missing windows procedures
2023-11-24 13:23:47 +01:00
Jeroen van Rijn and GitHub
89493b70a9
Merge pull request #2966 from evertonse/master
...
Check for llvm-config14 on unix
2023-11-24 13:20:25 +01:00
Jeroen van Rijn and GitHub
f6308ab5b9
Merge pull request #2899 from jakubtomsu/more-sys-windows
...
More `core:sys/windows` bindings (primarily MiniDump and SHGetKnownFolderPath)
2023-11-23 16:26:29 +01:00
Jeroen van Rijn and GitHub
8a56bb3b5f
Merge pull request #2944 from Kelimion/microarch-help
...
Add -microarch:?
2023-11-22 14:13:57 +01:00
Jeroen van Rijn
63b6e8216c
Fix errant tab in alignment.
2023-11-22 02:57:43 +01:00
Jeroen van Rijn and GitHub
924039c01b
Merge pull request #2965 from Skytrias/master
...
win32 add ToUnicode conversion
2023-11-21 21:09:46 +01:00
Jeroen van Rijn
25e9255157
Fix string_extension_position
2023-11-21 16:53:14 +01:00
Jeroen van Rijn and GitHub
0424404140
Merge pull request #2961 from Kelimion/unhandled_eof
...
Fix unhandled EOF in streaming io on Windows
2023-11-18 18:18:31 +01:00
Jeroen van Rijn
db89c2ccd0
Remap EOF for Windows in stream proc
2023-11-18 18:13:56 +01:00
Jeroen van Rijn
0c97f6aa4e
Fix unhandled EOF in streaming io on Windows
2023-11-18 18:01:14 +01:00
Jeroen van Rijn and GitHub
af78ad2a87
Merge pull request #2956 from Yawning/feature/crypto-cleanup
...
core/crypto: cleanup and bugfixes
2023-11-17 12:55:47 +01:00
Jeroen van Rijn and GitHub
8028033513
Merge pull request #2957 from laytan/no-crt-and-compile-assembly-on-darwin
...
-no-crt on darwin_arm64 and assembly compilation on darwin
2023-11-15 18:46:35 +01:00
Jeroen van Rijn
04c928fb9e
Clear up core:container/queue
2023-11-15 15:20:52 +01:00
Jeroen van Rijn and GitHub
354d00963c
Merge pull request #2954 from laytan/add-suggestion-passing-slice-into-variadic-arg
...
checker: suggest ..[]T when passing a slice to variadic arg ..T
2023-11-14 17:08:24 +01:00
Jeroen van Rijn and GitHub
8a849bd1bd
Merge pull request #2953 from Yawning/feature/endian-use-intrinsics
...
feature/endian: use intrinsics
2023-11-14 15:34:04 +01:00
Jeroen van Rijn
3e1791aa5c
Fix typos
2023-11-13 20:54:19 +01:00
Jeroen van Rijn and GitHub
b9a813a69d
Merge pull request #2951 from FourteenBrush/master
...
Expose strings.ascii_set_* functions
2023-11-12 17:56:44 +01:00
Jeroen van Rijn
dd9b0ae4e5
Make pow2_f{16,32,64} contextless for consistency.
2023-11-11 14:06:48 +01:00
Jeroen van Rijn and GitHub
3b5d28f0ee
Merge pull request #2948 from flysand7/fix-do
...
[core]: Remove `do` keyword from the core library
2023-11-11 13:16:12 +01:00
Jeroen van Rijn
0ca39c70a5
Add -microarch:? to help text.
2023-11-11 13:07:12 +01:00
Jeroen van Rijn
f6f4734fee
Re-add break.
2023-11-10 20:22:20 +01:00
Jeroen van Rijn
f903951016
Facored out get_default_microarchitecture
...
Moved `generic` -> `x86-64-v2` selection into its own procedure so that `llvm_backend.cpp` and `main.cpp` can share the same logic.
2023-11-10 20:14:00 +01:00
Jeroen van Rijn
e19460cbd7
Add -microarch:?
2023-11-10 19:37:08 +01:00
Jeroen van Rijn and GitHub
70c1f9d0e1
Merge pull request #2937 from Kelimion/fix_net_split
...
Fix net.split_url
2023-11-09 17:02:48 +01:00
Jeroen van Rijn
761a079789
Fix net.split_url
...
Resolves issue #2924
2023-11-09 16:56:54 +01:00
Jeroen van Rijn and GitHub
4116d66c59
Merge pull request #2936 from laytan/fix-linux-accept
...
fix linux.accept, addrlen should be a pointer to the length
2023-11-09 14:36:00 +01:00
Jeroen van Rijn and GitHub
9834ceed42
Merge pull request #2933 from flga/master
...
sys/linux: munmap was not using the correct syscall
2023-11-08 00:37:32 +01:00
Jeroen van Rijn and GitHub
639cc9faa8
Merge pull request #2932 from laytan/use-verb-for-fmt-bit-set
...
allow integer verbs in fmt_bit_set
2023-11-07 21:22:11 +01:00
Jeroen van Rijn
8714fd77a0
Temporarily disable vendor tests on macOS (botan)
2023-11-06 22:24:02 +01:00
Jeroen van Rijn and GitHub
59675949da
Merge pull request #2926 from karl-zylinski/raylib-shared-use-shared-runtime
...
RAYLIB_SHARED: use /NODEFAULTLIB:msvcrt
2023-11-06 15:11:25 +01:00
Jeroen van Rijn
744eb7c6d8
Delete test artifact.
2023-11-04 22:47:59 +01:00
Jeroen van Rijn and GitHub
1b79e2ca5f
Merge pull request #2921 from Kelimion/pow2
...
Add math.pow2_f{16,32,64}
2023-11-04 22:46:24 +01:00
Jeroen van Rijn
4cb0edc90b
Work around LLVM idiocy.
2023-11-04 22:42:32 +01:00
Jeroen van Rijn
6201280468
Add math.pow2_f{16,32,64}, fast floating point 2^x where x is an integer.
2023-11-04 22:14:44 +01:00
Jeroen van Rijn and GitHub
4d498b668a
Merge pull request #2910 from laytan/fix-empty-pass-because-trailing-comma
...
Fix empty pass because of trailing comma
2023-11-01 12:11:37 +01:00
Jeroen van Rijn and GitHub
62d0b0ae72
Merge pull request #2911 from flysand7/sys-unix-net-fix
...
sys/linux: Fix EFAULT on recvfrom
2023-11-01 00:14:23 +01:00
Jeroen van Rijn
f5febb633c
Temporarily disable RTTI test on Windows.
2023-10-31 13:12:17 +01:00
Jeroen van Rijn
82cd30a145
Add test for RTTI
2023-10-30 13:06:45 +01:00
Jeroen van Rijn and GitHub
8caae16113
Merge pull request #2902 from flysand7/vendor-darwin
...
Only build vendor:darwin on darwin
2023-10-30 10:12:36 +01:00
Jeroen van Rijn and GitHub
dc789c43b6
Merge pull request #2904 from AquaGeneral/master
...
Fixed typo "fot" and clarified slashpath.ext
2023-10-30 10:12:19 +01:00
Jeroen van Rijn and GitHub
2e73fb25af
Merge pull request #2903 from flysand7/i386-syscall-asm-fix
...
Fix-up inline asm for i386 syscalls emit
2023-10-30 10:07:56 +01:00
Jeroen van Rijn and GitHub
292398dbe2
Merge pull request #2896 from thetarnav/js-rand
...
Add system_random and random_bytes for js target
2023-10-27 12:52:27 +02:00
Jeroen van Rijn
962d599996
Fix reading from /sys/ pseudo fx
2023-10-26 14:30:04 +02:00
Jeroen van Rijn and GitHub
12c316cd6b
Merge pull request #2889 from jakubtomsu/fix-simd-bit-and-not-typo
...
Fix bit_* calls in `core:simd/x86`
2023-10-22 22:24:28 +02:00
Jeroen van Rijn
75a2015260
Add clear_soa (for #soa[dynamic]T)
2023-10-22 13:21:22 +02:00
Jeroen van Rijn and GitHub
18776aa6b9
Merge pull request #2887 from SentientCoffee/map-shrink-return-values
...
Fix a `shrink(map[T]U)` bug in the core lib
2023-10-21 20:17:35 +02:00
Jeroen van Rijn and GitHub
566a11a585
Merge pull request #2884 from flysand7/editor-config
...
Editor config
2023-10-20 15:46:14 +02:00
Jeroen van Rijn and GitHub
f9da0a59e4
Merge pull request #2882 from thetarnav/js-time
...
Fix calling `time.now()` in wasm js runtime
2023-10-19 19:23:18 +02:00
Jeroen van Rijn and GitHub
840459bdb0
Merge pull request #2879 from jcmdln/license-audit
...
Ensure required licenses are in distributable bundles
2023-10-19 00:45:01 +02:00