Commit Graph

3823 Commits

Author SHA1 Message Date
gingerBill
9841b11a54 Merge pull request #2597 from odin-lang/ordered-named-arguments
Allowing for Positional and Named Arguments in Procedure Calls
2023-06-23 12:11:46 +01:00
Rehkitzdev
e3b43b6e1c fixed dynlib wasm stub 2023-06-22 13:35:22 +02:00
gingerBill
b0d801f629 Merge pull request #2582 from ftphikari/master
[core:thread] Added self_cleanup flag to properly auto-clean threads
2023-06-21 18:21:48 +01:00
gingerBill
9b54b99bf6 Use positional and named arguments within the core library 2023-06-21 01:17:05 +01:00
gingerBill
3998d0c81e Make error checks diverging where possible 2023-06-20 22:55:47 +01:00
Rickard Andersson
37469dc9c2 fix(poll): make interface more odinary
We take `fds` as a normal slice and get the length from it instead of
bothering with a second parameter.
2023-06-15 16:10:00 +03:00
Rickard Andersson
dce57627c9 fix: remove redefinition of timespec
They are in the same package, so it's accessible anyway.
2023-06-15 08:54:42 +03:00
Rickard Andersson
a5ed5883c7 cleanup: more tabs 2023-06-14 23:59:09 +03:00
Rickard Andersson
0036509f74 cleanup(os_linux/poll): use tabs everywhere
:(
2023-06-14 23:51:33 +03:00
Rickard Andersson
003c470a4d fix(os_linux): make when for arm64 check correct order
Also remove `sys_select` since we aren't using it anyway
2023-06-14 23:38:00 +03:00
Rickard Andersson
d6540d9077 fix(os_linux): call ppoll instead on arm64 2023-06-14 23:26:43 +03:00
Rickard Andersson
091c515fea cleanup(os_linux): remove select 2023-06-14 22:34:57 +03:00
Rickard Andersson
4f2b9835f5 feat(unix): add poll 2023-06-14 22:13:36 +03:00
José Rey Méndez
10f2136675 fix: read file from windows was not returning platform error correctly 2023-06-12 19:28:41 -03:00
Jeroen van Rijn
d97dd99d91 Merge pull request #2588 from laytan/fix-darwin-fcntl
fix fcntl binding on darwin
2023-06-12 16:16:49 +02:00
gingerBill
296674e18b Rename ODIN_DISALLOW_RTTI to ODIN_NO_RTTI; Remove dead command line flags 2023-06-12 14:53:05 +01:00
Laytan Laats
d38ea63c78 fix fcntl binding on darwin 2023-06-12 15:37:39 +02:00
gingerBill
e16c6c1b6b Replace procedure strings.concatenate 2023-06-12 12:58:47 +01:00
Rickard Andersson
454709559b fix(dns): don't exit early on no hosts in hosts file
If we don't have any hosts specified we'll still not generate any
overrides which is fine, but we'll continue onto actually trying to
resolve the hostname we came into the function for initially.
2023-06-12 13:38:12 +03:00
James Duran
fed0c2ea26 Fix Timeval for darwin and linux 2023-06-07 21:55:08 -07:00
gingerBill
d37699f51a Add bsd to mem/virtual 2023-06-07 23:07:31 +01:00
gingerBill
9b15bda055 Add missing packages to examples/all 2023-06-07 22:48:39 +01:00
gingerBill
635842b322 Add more text packages to examples/all 2023-06-07 22:40:46 +01:00
hikari
3b8515beb0 [core:thread] Seeing if this fixes network tests 2023-06-07 20:52:41 +03:00
hikari
7b62b81ebd [core:thread] Fix compilation 2023-06-07 20:03:19 +03:00
hikari
dcf4e51787 [core:thread] Added self_cleanup flag to properly auto-clean threads 2023-06-07 19:11:16 +03:00
gingerBill
0c477f2c6b Merge pull request #2289 from Lperlind/staging/fix_os_args
Fix out of range error with _alloc_command_line_arguments in darwin
2023-06-07 12:06:43 +01:00
gingerBill
8441c0c51e Merge pull request #2577 from Tetralux/refactor-init-context
[thread] Refactor handling of 'init_context' + add doc comments for it
2023-06-07 11:51:30 +01:00
gingerBill
ae7bf468d1 Merge pull request #2573 from inbelic/inbelic/fmt-zero-padding
[fmt] fix zero-padding behaviour of numbers
2023-06-07 11:44:53 +01:00
gingerBill
d75df7fd8a Rename procs 2023-06-07 00:12:54 +01:00
gingerBill
4a75a1e839 Merge branch 'master' into separate-int-word-sizes 2023-06-06 22:42:04 +01:00
gingerBill
6a2ff3a371 Merge pull request #2571 from jakubtomsu/builtin-soa-procs-improvements
Update SOA dynamic array procs to match non-SOA
2023-06-06 22:40:27 +01:00
gingerBill
d6f45e4d76 Fix fmt for js 2023-06-06 22:38:43 +01:00
Axel Pahl
1cdb0abf80 Update core/mem/doc.odin 2023-06-06 15:17:18 +02:00
gingerBill
0defd1d141 Correct printing in fmt for ODIN_ERROR_POS_STYLE 2023-06-06 11:17:34 +01:00
gingerBill
24ed07b6d5 Add error requiring an explicit calling convention for foreign procedures 2023-06-06 11:12:14 +01:00
gingerBill
ecad730945 Fix map_get typo 2023-06-06 11:08:09 +01:00
Tetralux
5d6b923244 [thread] Refactor handling of 'init_context' + add doc comments for it 2023-06-03 08:08:18 +00:00
finn
6952124988 [fmt] fix zero-padding behaviour of numbers
- when formatting a negative number with left zero-padding we expect the
  padding to be placed between the minus (-) sign and the number
- currently the padding is placed before the sign
2023-06-01 16:04:07 +02:00
jakubtomsu
a6c93e2c41 Update SOA dynamic array procs to match non-SOA 2023-06-01 13:42:26 +02:00
gingerBill
788f3c22bf Merge branch 'master' of https://github.com/odin-lang/Odin 2023-05-31 22:23:53 +01:00
gingerBill
c194dfbdf7 Remove thread.init_context = context 2023-05-31 22:23:47 +01:00
Lucas Perlind
ebe5636307 Document core:math/rand and add 'possible output'
Possible output allows us to just type check a test
and have some sort of output field in the docs but
not actually verify it matches stdout
2023-05-31 09:49:12 +10:00
gingerBill
6fe2df1d7d Add more documentation to numerous @builtin procedures in package runtime 2023-05-30 23:42:21 +01:00
gingerBill
3562a38f8c Merge pull request #2558 from laytan/implement-set-blocking-darwin
implement non blocking sockets for darwin
2023-05-30 02:15:20 +01:00
gingerBill
c241edaa30 Add missing procedure for #reverse on strings 2023-05-30 00:05:24 +01:00
gingerBill
c1eb536726 Change to "contextless" from "c"` 2023-05-29 23:30:48 +01:00
gingerBill
c38842ecb2 Merge pull request #2535 from jasonKercher/fix2515
Fix #2515 - Implement backward shift on `map` on insert and reseed hashes on resize
2023-05-29 22:41:46 +01:00
Jeroen van Rijn
508d7c3336 Merge pull request #2557 from laytan/fix-weird-errno-on-darwin
fix weird errno returned on darwin
2023-05-27 23:26:45 +02:00
Laytan Laats
2b31d85cd4 implement non blocking sockets for darwin 2023-05-27 22:40:05 +02:00