Jeroen van Rijn and GitHub
1183f4794b
Merge pull request #3579 from Kelimion/test_string_compare
...
Test string compare
2024-05-12 23:52:39 +02:00
Jeroen van Rijn
23545c3f37
Enable in Makefile
2024-05-12 23:47:42 +02:00
Jeroen van Rijn
41b8f06f51
Add 1 more each for < and >
2024-05-12 23:43:05 +02:00
Jeroen van Rijn
55d21f4c2f
Test string compare
...
To avoid regression of the bug fixed in f8581537e4 .
2024-05-12 23:38:17 +02:00
Jeroen van Rijn
3a3ae6d0df
Fix and re-enable .doc tests.
2024-05-11 19:25:35 +02:00
Jeroen van Rijn
2250eb3e78
Enable core:fmt tests.
2024-05-10 17:05:18 +02:00
Jeroen van Rijn and GitHub
41bd8cf714
Merge pull request #3563 from laytan/fix-duplicate-suggestions
...
fix duplicate suggestions and add missing newline
2024-05-09 20:20:18 +02:00
Jeroen van Rijn and GitHub
1604f37cb8
Merge pull request #3564 from laytan/fix-some-vet-style-failures
...
fix a couple of `-vet-style` failures
2024-05-09 20:19:46 +02:00
Jeroen van Rijn and GitHub
8a1e7bb6fb
Merge pull request #3562 from Kelimion/bitset_to_enum_slice
...
Bitset to enum slice
2024-05-09 18:03:42 +02:00
Jeroen van Rijn
8f706a14f8
Add allocator param.
2024-05-09 17:58:48 +02:00
Jeroen van Rijn
e5af98eabe
Simplify bitset_to_enum_slice
2024-05-09 17:55:50 +02:00
Jeroen van Rijn
858c78b844
Pass new -vet-style check.
2024-05-09 17:47:19 +02:00
Jeroen van Rijn
a61d8daec1
Add make version of bitset to slice.
2024-05-09 17:44:39 +02:00
Jeroen van Rijn and GitHub
113feacbc7
Merge pull request #3559 from Kelimion/bitset_to_enum_slice
...
Add slice.enum_slice_to_bitset & slice.bitset_to_enum_slice
2024-05-09 17:21:04 +02:00
Jeroen van Rijn
7bcf3b1a0d
Add slice.enum_slice_to_bitset & slice.bitset_to_enum_slice
2024-05-09 17:15:45 +02:00
Jeroen van Rijn and GitHub
2b1afa0762
Merge pull request #3521 from Su3h7aM/correct-clang++
...
Uses correct `clang++` binary for non-standard versions
2024-05-07 13:25:59 +02:00
Jeroen van Rijn and GitHub
96abe8627c
Merge pull request #3551 from Feoramund/fix-max-bitfield-size
...
Fix lack of adding to `total_bit_size`
2024-05-07 00:47:15 +02:00
Jeroen van Rijn
fd582015fe
Remove stray binary.
2024-04-30 20:58:36 +02:00
Jeroen van Rijn and GitHub
58e12f0b17
Merge pull request #3520 from flysand7/sys-linux-oflags
...
[sys/linux]: Fix bit numbers for open flags
2024-04-30 20:40:24 +02:00
Jeroen van Rijn and GitHub
8fd318ea7a
Merge pull request #3492 from DreepyYunky/Add-SetMenu
...
Add `SetMenu()`
2024-04-27 20:04:15 +02:00
Jeroen van Rijn and GitHub
caa8863c97
Merge pull request #3455 from Hyrtwol/normalize-path
...
Normalize ODIN_ROOT path
2024-04-20 12:08:12 +02:00
Jeroen van Rijn and GitHub
1b143b9fa3
Merge pull request #3452 from mgavioli/Fix_i18n_get-section_number_default
...
Fix #3451 - `core:text/i18n` default `number` value in `get_*_section`
2024-04-19 09:24:17 +02:00
Jeroen van Rijn and GitHub
fd1eb17771
Merge pull request #3437 from Feoramund/fisher-yates-shuffle
...
Implement Fisher-Yates shuffle
2024-04-16 10:28:35 +02:00
Jeroen van Rijn and GitHub
436c5dc40c
Merge pull request #3436 from karl-zylinski/fix-vet-unused-in-dynlib
...
Fix for dynlib:initialize_symbols not passing -vet-unused
2024-04-15 21:55:12 +02:00
Jeroen van Rijn and GitHub
6def86bb4b
Merge pull request #3431 from Feoramund/fix-randprime-2ndmsb
...
Fix `big.internal_random_prime` with `Second_MSB_On`
2024-04-15 16:30:16 +02:00
Jeroen van Rijn and GitHub
d510d5e49f
Merge pull request #3426 from Kelimion/crlf
...
Tell Git to always treat Makefile and build_odin.sh as Nix EOL
2024-04-14 16:51:42 +02:00
Jeroen van Rijn
9591eb2ed5
Tell Git to always treat Makefile and build_odin.sh as Nix EOL
2024-04-14 16:41:10 +02:00
Jeroen van Rijn and GitHub
f086b4710a
Merge pull request #3418 from blob1807/add-url-fragment-to-split-join-url
...
core:net Add support for URL fragments
2024-04-12 17:19:29 +02:00
Jeroen van Rijn and GitHub
95bc1892f5
Merge pull request #3413 from hodgka/trig_funcs_doc
...
Added docs for trig function procedure groups
2024-04-11 19:02:41 +02:00
Jeroen van Rijn and GitHub
532d477705
Merge pull request #3121 from RilleP/parsing-package-fixes
...
core:odin parsing fixes
2024-04-11 15:19:10 +02:00
Jeroen van Rijn and GitHub
2ba2bc1fec
Merge pull request #3288 from Yawning/feature/even-moar-crypto
...
core/crypto: Even more improvments
2024-04-10 14:19:25 +02:00
Jeroen van Rijn and GitHub
8a6a3e883c
Merge pull request #3406 from laytan/bit-field-core-parser
...
add bit_field to `core:odin`
2024-04-10 03:12:40 +02:00
Jeroen van Rijn and GitHub
0a73ed0799
Merge pull request #3390 from Lperlind/master
...
Update "core:runtime" to "base:runtime"
2024-04-07 01:09:47 +02:00
Jeroen van Rijn and GitHub
cd6153a125
Merge pull request #3385 from blob1807/fixed-removed-undefined-var
...
core:math/fixed Removed undefined & usused vars in init_from_parts
2024-04-06 14:01:25 +02:00
Jeroen van Rijn and GitHub
280adc8a85
Merge pull request #3381 from Yawning/fix/chacha20poly1305
...
core/crypto/poly1305: The final addition is NOT mod p
2024-04-05 16:57:31 +02:00
Jeroen van Rijn and GitHub
f9f6fbfe1f
Merge pull request #3360 from laytan/debug-info-fixes
...
fix wrong type in map debug info
2024-04-01 19:12:24 +02:00
Jeroen van Rijn and GitHub
6b7e9f0a2d
Merge pull request #3359 from Kelimion/tests_digests
...
Add SHA3-512 digests verification to test assets.
2024-04-01 18:24:36 +02:00
Jeroen van Rijn
b3580fa63a
Make it a HMAC.
2024-04-01 18:20:14 +02:00
Jeroen van Rijn
b2f432c223
Add SHA3-512 digests verification to test assets.
2024-04-01 17:18:31 +02:00
Jeroen van Rijn and GitHub
0d8dadb084
Merge pull request #3357 from DragosPopse/win32-coinit-fix
...
Fixed windows.COINIT.MULTITHREADED declaration.
2024-03-31 20:41:13 +02:00
Jeroen van Rijn and GitHub
8899f42478
Merge pull request #3347 from harold-b/macos-timing-fix
...
Fix incorrect timings on macOS
2024-03-29 10:15:16 +01:00
Jeroen van Rijn and GitHub
d325c8ad23
Merge pull request #3346 from laytan/add-macos-14.4.1
...
add MacOS 14.4.1 to sys/info and odin report
2024-03-28 19:43:57 +01:00
Jeroen van Rijn and GitHub
7325120ca9
Merge pull request #3345 from laytan/speed-up-path-to-fullpath
...
fix not setting ok in cached code path
2024-03-28 19:27:31 +01:00
Jeroen van Rijn and GitHub
9b43aa3c94
Merge pull request #3344 from laytan/speed-up-path-to-fullpath
...
compiler: speed up path_to_fullpath on Linux/MacOS
2024-03-28 19:02:39 +01:00
Jeroen van Rijn and GitHub
8f0d74c08d
Merge pull request #3292 from Kelimion/rfc3339
...
Add WiP datetime package and tests.
2024-03-20 23:23:27 +01:00
Jeroen van Rijn
fda283c55e
More better validation.
2024-03-20 23:09:09 +01:00
Jeroen van Rijn
ed5fd15f6e
Ensmallen Date struct.
2024-03-20 18:13:29 +01:00
Jeroen van Rijn
89ca15014c
Ensmallen Time struct.
2024-03-20 18:09:07 +01:00
Jeroen van Rijn
9c144dd24f
Change Ordinal from int to i64
2024-03-20 17:56:22 +01:00
Jeroen van Rijn and GitHub
89ba8b4139
Merge pull request #3298 from laytan/update-macos-releases
...
update macOS releases for `core:sys/info` and `odin report`
2024-03-20 00:23:53 +01:00
Jeroen van Rijn
07ef969546
Fix test label.
2024-03-18 17:05:40 +01:00
Jeroen van Rijn
72c15d7699
Add WiP datetime package and tests.
...
A new package `core:time/datetime` has been added which can represent moments much further in the past and future than `core:time`.
It is based on *the* reference work on the subject, Calendrical Calculations Ultimate Edition, Reingold & Dershowitz.
More procedures will be added to it in the future, to for example calculate the 3rd Thursday in March to figure out holidays.
The package has been tested for more than a year and can handle dates 25 quadrillion years into the past and future with 64-bit day ordinals, or 5 million with 32-bit ones.
This also fixes a longstanding bug where converting between YYYY-MM:DD hh:mm:ss and `time.Time` and back could result in a mismatch.
RFC 3339 timestamps can now also be parsed using the `core:time` package.
2024-03-18 16:47:16 +01:00
Jeroen van Rijn and GitHub
23f3898b4e
Merge pull request #3270 from edyu/master
...
Expose internal invmod and int_exponent_mod with more consistent naming
2024-03-12 19:06:10 +01:00
Jeroen van Rijn
fc9d3ec5a7
Merge branch 'master' of github.com:odin-lang/Odin
2024-03-08 18:06:13 +01:00
Jeroen van Rijn
db03c86544
Fix typo in big.internal_invmod
...
Fixes #3253
2024-03-08 18:05:34 +01:00
Jeroen van Rijn
4c35633e01
math.big constants were no longer initialized
...
Fixes #3243
2024-03-03 15:09:38 +01:00
Jeroen van Rijn and GitHub
20e75cd463
Merge pull request #3221 from Tetralux/net/reservedports
...
[net] Better error code for binding a privileged port without root access
2024-02-22 16:23:15 +01:00
Jeroen van Rijn and GitHub
4e300ff90a
Merge pull request #3167 from Murtagy/patch-1
...
Typo in comment in raylib
2024-02-03 17:04:10 +01:00
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