Jeroen van Rijn and GitHub
e12ff63b16
Merge pull request #3657 from laytan/fix-wasm64p32-procs
...
wasm: fix target wasm64p32 runtime procs
2024-05-31 17:03:52 +02:00
Jeroen van Rijn and GitHub
23852c16be
Merge pull request #3647 from Feoramund/fix-core-data-comments
...
Make `ODIN_OS`, `ODIN_BUILD_MODE` comments congruent to underlying data
2024-05-28 09:14:44 +02:00
Jeroen van Rijn and GitHub
4c6b824658
Merge pull request #3648 from Feoramund/rem-unused-prime-code
...
Remove unused code in `internal_random_prime`
2024-05-28 08:55:04 +02:00
Jeroen van Rijn and GitHub
75f1215ed2
Merge pull request #3639 from yay/destroy-file-logger-no-pointer
...
Make destroy_file_logger take logger instead of logger pointer.
2024-05-27 17:25:59 +02:00
Jeroen van Rijn and GitHub
cfadca04f9
Merge pull request #3628 from IllusionMan1212/bitset-json-marshalling-fix
...
fix(core/encoding/json): remove Unsupported_Type return when marshalling bit_set
2024-05-25 08:34:59 +02:00
Jeroen van Rijn and GitHub
fb22c59d1b
Merge pull request #3625 from Kelimion/iso8061
...
Add dedicated ISO 8601 parser.
2024-05-24 23:56:20 +02:00
Jeroen van Rijn
b945e3e708
Limit to max of 9 fraction second digits, part deux.
2024-05-24 23:48:18 +02:00
Jeroen van Rijn
1473374bba
Limit to max of 9 fraction second digits.
2024-05-24 23:45:46 +02:00
Jeroen van Rijn
3526042f1e
Add dedicated ISO 8601 parser.
2024-05-24 23:40:14 +02:00
Jeroen van Rijn
e1c4b9b06a
Allow lowercase z TZ indicator.
2024-05-24 19:16:24 +02:00
Jeroen van Rijn and GitHub
ff34970d79
Merge pull request #3623 from yay/allow-space-in-rfc-3339
...
Allow space (in addition to T and t) as RFC 3339 date/time separator.
2024-05-24 19:10:04 +02:00
Jeroen van Rijn and GitHub
d698d4cdae
Merge pull request #3621 from laytan/enable-default-temp-allocator-wasm
...
wasm: enable default temp allocator
2024-05-24 15:42:51 +02:00
Jeroen van Rijn and GitHub
d99e1616cf
Merge pull request #3620 from Kelimion/deprecate_odin_printer
...
Deprecate `core:odin/printer` in favor of OLS.
2024-05-24 15:02:59 +02:00
Jeroen van Rijn
b7cecc5762
Keep -vet happy.
2024-05-24 14:57:48 +02:00
Jeroen van Rijn
5c06480ce0
Add core:container/rbtree to examples/all
2024-05-24 14:55:21 +02:00
Jeroen van Rijn
dc744411c5
Deprecate core:odin/printer + format in favor of OLS.
2024-05-24 14:49:11 +02:00
Jeroen van Rijn and GitHub
e2af3652c5
Merge pull request #3619 from Kelimion/csv_iterator
...
Add iterator_next(&r) to CSV.
2024-05-24 14:06:42 +02:00
Jeroen van Rijn and GitHub
479d301e92
Merge pull request #3614 from Kelimion/rbtree
...
Add `core:container/rbtree`
2024-05-24 14:04:56 +02:00
Jeroen van Rijn
11e57fd3fd
Address concerns.
2024-05-24 13:58:30 +02:00
Jeroen van Rijn
2a4ddbb7be
Remove core:mem import in example.
2024-05-24 13:35:32 +02:00
Jeroen van Rijn
3b739dc5cc
Add iterator_next(&r) to CSV.
2024-05-24 13:26:12 +02:00
Jeroen van Rijn
c43d189a33
Fix package line.
2024-05-24 01:43:17 +02:00
Jeroen van Rijn
410876b36a
Add core:container/rbtree
...
Add a red-black tree with configurable $Key and $Value.
Also includes tests that verify it maintains RB invariants, doesn't leak.
Originally based on the CC0 implementation from literateprograms.org.
But reworked to the same API used by @Yawning's excellent `core:container/avl` for ease of use.
2024-05-23 23:00:00 +02:00
Jeroen van Rijn
e0d3d68ce5
Fix the way '%32b' and other prefixed numbers are written.
2024-05-20 14:42:13 +02:00
Jeroen van Rijn and GitHub
c091b0d060
Merge pull request #3602 from Kelimion/qoifix
...
Apply fix to QOI decoder as well.
2024-05-18 19:48:37 +02:00
Jeroen van Rijn
58a1bb32e5
Apply fix to QOI decoder as well.
2024-05-18 19:41:07 +02:00
Jeroen van Rijn and GitHub
5b92425e93
Merge pull request #3601 from Kelimion/qoifix
...
Fix qoi encoding bug.
2024-05-18 14:06:25 +02:00
Jeroen van Rijn
7955f4ddf1
Fix qoi encode bug.
2024-05-18 13:59:50 +02:00
Jeroen van Rijn and GitHub
cf10c6d993
Merge pull request #3598 from Kelimion/i18n-fix
...
i18n: Add section merge + duplicate key detection to gettext.
2024-05-17 15:57:17 +02:00
Jeroen van Rijn
f8c4ee3d3c
i18n: Add section merge + duplicate key detection to gettext.
2024-05-17 15:50:37 +02:00
Jeroen van Rijn and GitHub
419641ad8f
Merge pull request #3596 from Kelimion/i18n-fix
...
Fix .mo contexts
2024-05-17 14:26:57 +02:00
Jeroen van Rijn
6139da3d41
Fix .mo contexts
...
Fixes #3590
- `get("key")`
- `get("context", "key")`
2024-05-17 14:15:56 +02:00
Jeroen van Rijn and GitHub
b51eb53d04
Merge pull request #3595 from Kelimion/i18n-fix
...
Fix .mo parser: Number of plurals
2024-05-17 12:15:40 +02:00
Jeroen van Rijn
5a76b3c7c5
Fix .mo parser: Number of plurals
...
Fixes #3591
Added plur.mo to tests
2024-05-17 12:00:20 +02:00
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