gingerBill
13cb894b30
Update core:odin for union #shared_nil
2022-03-24 12:00:27 +00:00
gingerBill
3f935bea25
union #shared_nil
...
This adds a feature to `union` which requires all the variants to have a `nil` value and on assign to the union, checks whether that value is `nil` or not. If the value is `nil`, the union will be `nil` (thus sharing the `nil` value)
2022-03-24 11:55:03 +00:00
gingerBill
3e66eec735
Merge pull request #1653 from ftphikari/master
...
sys/windows: add virtual keycodes and a couple of constants
2022-03-24 11:29:28 +00:00
hikari
2ccfaa7d4e
sys/windows: add virtual keycodes
2022-03-23 23:39:26 +02:00
hikari
4bd5de34ea
sys/windows: add several of constants
2022-03-23 23:39:09 +02:00
gitlost
374e71e9b0
Fix issue #1537 "filepath.split_list requires a trailing separator"
...
Does `make()` with `count + 1` and appends final component (note a
trailing separator will now result in an empty final component)
Adds test "tests/core/path/filepath/test_core_filepath.odin"
2022-03-23 17:44:35 +00:00
hikari
b9efd09d17
sys/windows: fixed calling conventions, added several bindings
2022-03-23 17:37:38 +02:00
Holger Lindner
3d389ee028
sys/windows: Add icon resource constants
2022-03-23 15:02:01 +01:00
Holger Lindner
64601ac439
Merge remote-tracking branch 'origin/master'
2022-03-22 17:24:40 +01:00
Holger Lindner
edce27812f
Nixify line endings
2022-03-22 16:41:07 +01:00
Holger Lindner
193822b45d
Merge remote-tracking branch 'ftphikari/master'
2022-03-22 16:36:50 +01:00
Holger Lindner
43640a8b59
Add SendMessageA/W to sys/windows/user32.odin
2022-03-22 16:23:38 +01:00
gingerBill
0446d9721b
Merge pull request #1626 from gitlost/hxa_fixes
...
Fix some core:encoding/hxa stuff (error handling, header, max -> min)
2022-03-22 15:21:40 +00:00
Holger Lindner
bae13b6387
Fix incorrect type for wndproc callback procedure
2022-03-21 20:06:50 +01:00
hikari
e48c0eee74
sys/windows: added rudimentary User32.lib bindings
2022-03-21 18:44:31 +02:00
Holger Lindner
47e9857eb7
Add user32.odin with most basic procedures to core:sys/windows
2022-03-21 17:20:43 +01:00
Lucas Perlind
6d354524e2
* Add split_by_byte_iterator. It functions exactly like split_iterator but takes in a byte seperator rather than a string seperator.
...
The intention is to provide a faster split parsing if the seperator is known to be byte size.
2022-03-21 21:39:30 +11:00
gingerBill
ae6441182d
Add core:unicode/utf8/utf8string to examples/all
2022-03-18 23:32:37 +00:00
Jeroen van Rijn
df233f72a9
Merge pull request #1629 from Lperlind/more-window-bindings
...
Add unregister_class_a and unregister_class_w for windows bindings
2022-03-18 13:29:53 +01:00
Tetralux
4f9df50dc1
Remove incorrect #packed from sys/windows.STARTUPINFO
2022-03-18 11:42:25 +00:00
Lucas Perlind
34187424b8
Add unregister_class_a and unregister_class_w for windows bindings
2022-03-18 19:35:36 +11:00
Stanislav Ch. Nikolov
5e04ddd653
Fix #1627 : Remove wrong return type in cumsum_inplace
2022-03-17 04:20:39 +02:00
gitlost
4f5203e661
Fix some core:encoding/hxa stuff (error handling, header, max -> min)
...
Also add missing f16 case to core:reflect as_u64 & as_f64
Add tests for above & add previous tests missing from test/core/build.bat
2022-03-16 19:12:00 +00:00
gingerBill
d9ca4eb4d6
Add nil check on ast.walk
2022-03-16 11:59:28 +00:00
Jeroen van Rijn
19dc84e300
Reinstate NBC.
2022-03-15 19:37:04 +01:00
Jeroen van Rijn
a932168f50
[runtime] fix insert_at procedure group.
2022-03-15 19:35:00 +01:00
gingerBill
633157f4f8
Merge pull request #1613 from semarie/linux_arm64
...
fix Linux arm64 support
2022-03-14 11:37:45 +00:00
gingerBill
9fa69c3d3b
Merge pull request #1599 from gitlost/fract_trunc_classify_#1574
...
Fix for trunc_f16/32/64 (#1574 )
2022-03-14 11:37:11 +00:00
gingerBill
743a461aa9
Merge pull request #1614 from semarie/openbsd-fpos_t
...
use distinct type for fpos_t on OpenBSD
2022-03-14 11:11:29 +00:00
gingerBill
fc0291d745
Merge pull request #1526 from odin-lang/freestanding_amd64
...
Freestanding target for amd64
2022-03-14 11:09:52 +00:00
gingerBill
a7adb2fb6e
Merge branch 'master' into freestanding_amd64
2022-03-14 11:02:59 +00:00
Sébastien Marie
036900da51
fix mode_t on darwin
...
- fix mkdir() prototype (mode_t is u16)
- remove explicit cast
2022-03-13 12:41:03 +00:00
Sébastien Marie
ca67cf032c
freebsd_amd64 support
2022-03-13 11:42:42 +00:00
gingerBill
c12c7d5370
Remove tag
2022-03-12 10:47:52 +00:00
Sébastien Marie
f7c8b40ea2
use distinct type for fpos_t on OpenBSD
2022-03-12 09:40:55 +00:00
Sébastien Marie
8982ae34e3
fix linux_arm64
...
- SYS_fork doesn't exist, uses SYS_clone
- properly cast AT_FDCWD to uintptr
2022-03-12 09:19:52 +00:00
gingerBill
e6d3e893a5
Merge pull request #1602 from hoanga/freebsd-build-support
...
update to build for freebsd
2022-03-12 08:45:53 +00:00
gingerBill
c6dc517004
Correct: murmur32
2022-03-11 08:52:16 +00:00
gitlost
7dbcaf792d
Merge branch 'master' into fract_trunc_classify_#1574
...
Resolve conflicts with [9848e88 ] & sameify Makefile & tests/common/common.odin
2022-03-09 16:09:04 +00:00
gingerBill
6d1a91f5b3
Fix typo
2022-03-09 15:11:38 +00:00
gingerBill
17eebf338c
Fix #1606 (Call runtime._cleanup_runtime_contextless() for os.exit)
2022-03-09 15:05:51 +00:00
Al Hoang
0278ac85a0
update to build for FreeBSD
2022-03-08 23:48:25 -06:00
Jeroen van Rijn
64705ddd1d
[varint] Add doc.odin
2022-03-08 20:08:56 +01:00
Jeroen van Rijn
2a41814985
[varint] Tighten max input bounds.
2022-03-08 19:56:42 +01:00
Jeroen van Rijn
26ffec845b
[crypto] Remove unused mem import for siphash.
2022-03-08 19:38:36 +01:00
Jeroen van Rijn
76b10b5f5d
[varint] Add additional LEB128 tests.
2022-03-08 19:28:55 +01:00
gitlost
b94a7a87fa
Fix issue #1574 "fract in linalg/glm is broken" by fixing
...
trunc_f16/32/64 in "math.odin" (~ typos on expressions)
Fix classify_f16 Inf test (would fail for subnormal 0h0001)
by changing multiplier 0.5 -> 0.25
Add some useful consts to "math.odin" (INF_F16 etc)
Add comment to "demo.odin" mentioning that -0.0 must be used
to specify negative zero
2022-03-08 18:06:25 +00:00
Jeroen van Rijn
e76a5d8e12
[varint] Add signed LEB128 encoding.
2022-03-08 18:07:16 +01:00
Jeroen van Rijn
6d7217f37a
[varint] Add LEB128 decoding + tests
...
Also make tests in general less spammy: Don't print [PASS] for each successful test, only report failures and progress.
2022-03-08 15:40:00 +01:00
gingerBill
29e660b16f
Add more things to package slice
...
min_max
any_of(_proc)
none_of(_proc)
all_of(_proc)
count(_proc)
2022-03-08 10:02:40 +00:00