Jeroen van Rijn
a62039882e
Merge pull request #2867 from flysand7/linux-asm
...
Implement foreign asm (x86) imports for linux and osx
2023-10-15 12:53:32 +02:00
flysand7
a2a05e40e6
implemented foreign asm imports on linux/osx
2023-10-15 21:25:55 +11:00
gingerBill
45d08ea992
Merge pull request #2861 from seventh-chord/master
...
llvm: specify calling convention on call
2023-10-15 11:24:42 +01:00
gingerBill
c9c7aa2e90
Merge pull request #2838 from GoNZooo/gonz.return-out-of-memory-in-json-parse
...
fix(json): return `.Out_Of_Memory` when out of memory on parse
2023-10-15 11:23:34 +01:00
gingerBill
2783461e69
Merge pull request #2847 from thetarnav/js-runtime-patch
...
Update wasm `runtime.js`
2023-10-14 19:58:28 +01:00
Morten Hauke Solvang
fb5bb1cd83
llvm: specify calling convention on call
...
Looks like the compiler only was specifying the calling convention on
function declarations, but not on function calls.
But LLVM seems to produce "bad" code when optimizing with level -O2
unless you specify the same calling convention on the call too.
2023-10-13 21:21:54 +02:00
gingerBill
23c4615f5e
Disallow direct return a compound literal of a slice with elements
2023-10-13 12:19:48 +01:00
gingerBill
ec2635131b
Merge pull request #2853 from RehkitzDev/master
...
added webgl GetParameter
2023-10-10 16:03:06 +01:00
gingerBill
6b3cfdfb2b
Merge pull request #2856 from fabiansperber/fix-odin-parser-or_branch
...
core/odin Add `or_break` and `or_continue` semicolon handling
2023-10-10 16:02:56 +01:00
Fabian Sperber
bce66e3b42
Add or_break and or_continue to the list of tokens that have an automatic semicolon added at the end of the line
2023-10-09 21:48:04 +02:00
gingerBill
cffa035c1b
Add ERROR_BLOCK() to check_unique_package_names
2023-10-09 13:36:15 +01:00
Rehkitzdev
1097192554
added webgl GetParameter
2023-10-08 04:02:55 +02:00
Jeroen van Rijn
0c10b951a9
Merge pull request #2833 from simonwashere/darwin_net_interface
...
darwin enumerate_interfaces
2023-10-07 15:47:21 +02:00
Damian Tarnawski
ab2907cd51
Correct stripNewline function
2023-10-06 20:11:25 +02:00
Damian Tarnawski
ea8d3d4531
Define stripNewline function
2023-10-06 20:06:43 +02:00
Damian Tarnawski
256e4a0081
Don't pass true for littleEndian where it's not needed.
2023-10-06 20:03:26 +02:00
simon
e7adfff9bf
bugfix: darwin net flags
2023-10-06 16:41:13 +01:00
Damian Tarnawski
721c9e2c97
Fix typo
2023-10-06 17:26:39 +02:00
Damian Tarnawski
42c7e39c99
Update wasm runtime.js
...
- polyfill `Math.ldexp` method
- pass Math mathods streight through to exports object
(they don't use `this`)
- Don't pass `"utf-8"` encodings to `TextEncoder` and `TextDecoder`
(encoder doesn't take params and decoder has utf-8 as default)
2023-10-06 17:18:31 +02:00
gingerBill
96778c69bc
Merge pull request #2836 from jakubtomsu/fix-zero-length-enum-array
...
Allow zero-length enum array (to stay consistent with `[0]T`)
2023-10-06 15:06:40 +01:00
gingerBill
2cca005056
Merge branch 'master' of https://github.com/odin-lang/Odin
dev-2023-10
2023-10-02 20:59:49 +01:00
gingerBill
d27109640e
Partial pseudo-revert
2023-10-02 20:59:43 +01:00
Rickard Andersson
931e0d4687
cleanup: remove unused import
2023-10-02 15:21:09 +03:00
Rickard Andersson
2e3224a138
testing: add test for Out_Of_Memory return
2023-10-02 15:17:06 +03:00
Rickard Andersson
cfa3765d50
fix: guard against empty key value in parse_object_body
2023-10-02 15:10:12 +03:00
Jeroen van Rijn
1287e8c734
Merge pull request #2839 from Tetralux/aprintf-ally
...
[fmt] Add allocator parameter to `fmt.aprintf`
2023-10-02 11:23:26 +02:00
Rickard Andersson
11e884aec5
docs: add note about checking for alloc error
2023-10-02 12:20:18 +03:00
Rickard Andersson
55a1ba710b
fix: use runtime.map_insert to not overallocate
2023-10-02 11:59:37 +03:00
Rickard Andersson
0a8b266c71
fix(json): return .Out_Of_Memory when out of memory on parse
...
Previously this would silently simply not do anything and the object
would be empty/incomplete when parsed instead.
2023-10-02 11:50:16 +03:00
Tetralux
7a6ac3ea92
[fmt] Add allocator parameter to fmt.aprintf
...
This allows you to do `fmt.aprintf("Hello, %v!", name, allocator = ally)`.
2023-10-02 02:46:26 +00:00
jakubtomsu
394c12f68d
Remove unnecessary check zero fields check
2023-10-01 13:13:09 +02:00
jakubtomsu
1a57ad233d
Fix field count in enumerated array type info
2023-10-01 13:09:08 +02:00
jakubtomsu
c268463413
Allow zero-length enumerated arrays
2023-10-01 12:21:44 +02:00
Jeroen van Rijn
81fe93127d
Make core:net test os.exit(1) on failure.
2023-09-30 22:47:49 +02:00
Jeroen van Rijn
aa5716d3f9
Allow any order of query strings in net.join_url tests.
2023-09-30 22:36:50 +02:00
gingerBill
f9c6f6856b
Fix #2261
2023-09-30 20:32:24 +01:00
gingerBill
b9cc2606f2
Remove default value
2023-09-30 20:26:52 +01:00
gingerBill
5023313c03
Minor cleanups to the core library
2023-09-30 20:26:04 +01:00
simon
98f9f7d42e
darwin _enumerate_interfaces
2023-09-30 20:09:29 +01:00
gingerBill
3e0fd63682
Fix or_break code generation issue
2023-09-30 18:58:28 +01:00
gingerBill
1f643b5816
Remove -vet-extra
2023-09-30 18:29:18 +01:00
gingerBill
14adcb9db8
Use or_break and or_continue where appropriate in the core library
2023-09-30 15:34:39 +01:00
gingerBill
41a22bd83d
or_break and or_continue to core:odin packages
2023-09-30 15:09:59 +01:00
gingerBill
648b83d6ea
Add or_break and or_continue constructs
2023-09-30 15:04:17 +01:00
Jeroen van Rijn
4e97b83312
Merge pull request #2832 from Kelimion/big_int_literal_hex
...
Change large math/big test literals to hex.
2023-09-30 11:30:31 +02:00
Jeroen van Rijn
07cd6cd670
Change large math/big test literals to hex.
...
In September 2022, the Python team addressed a possible DoS issue converting big integers to and from base 10 strings: https://github.com/python/cpython/issues/95778
Converting to/from base 10 is a quadratic operation, so they limited it to 4300 digits: https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889/83
Github CI still uses an old Python version which parsed our test suite just fine. This patch converts them to hex literals to ensure our test doesn't break when Github does update to a non-vulnerable Python version released after September 2022.
2023-09-30 11:16:36 +02:00
gingerBill
3fae38a2f8
Correct get_file_line_as_string to fix #2829
2023-09-29 12:17:15 +01:00
gingerBill
23054138c2
Remove debug message
2023-09-29 12:12:14 +01:00
gingerBill
63f755554b
Rename simd bitwise operations from intrinsics.simd_and to intrinsics.simd_bit_and etc
2023-09-28 16:42:08 +01:00
gingerBill
2ac463f003
Rename bitwise operations to bit_or etc
2023-09-28 16:40:01 +01:00