gingerBill
9099bc0b6e
Merge pull request #2599 from RehkitzDev/master
...
fixed dynlib wasm stub
2023-06-22 12:56:23 +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
Jeroen van Rijn
c1fb8eaf1a
Merge pull request #2591 from GoNZooo/g.add-poll-for-unix
...
feat(os_linux): add `poll` & `ppoll`
2023-06-17 08:27:42 +02: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
gingerBill
3a761395be
Add basic optimization for comparisons against the empty string ""
2023-06-14 12:49:33 +01:00
gingerBill
e036155bdb
Merge pull request #2586 from thetarnav/patch-1
...
Replace `0` with `os.ERROR_NONE` in `demo.odin`
2023-06-14 12:05:52 +01:00
gingerBill
2149afabe1
Merge pull request #2590 from inbelic/inbelic/fix-no_nil-variants-err
...
[check-type] fix faulty #no_nil variants error
2023-06-14 12:05:34 +01:00
finn
ec32967daa
[check-type] fix faulty #no_nil variants error
...
- when checking the variants of a union type we will skip adding
the variants if we have an unspecialized polymorphic, hence our
union_type variants will be empty and have a count of 0
- so when checking if we violate the #no_nil error, if we are in the
unspecialized polymorphic case and there exists at least one variant
in the original variants then we should not raise this error
- test checks that we do not raise the error anymore, and that we still
detect the #no_nil error in the described circumstances
2023-06-13 22:07:01 +02:00
gingerBill
fc4a5e61c2
Add ODIN_IGNORE_MSVC_CHECK check to build.bat
2023-06-13 13:21:15 +01:00
gingerBill
e9608c9d05
Merge branch 'master' of https://github.com/odin-lang/Odin
2023-06-13 13:15:05 +01:00
gingerBill
581eebb197
Fix a race condition when produced anonymous procedure literals with -use-separate-modules
2023-06-13 13:14:59 +01:00
Jeroen van Rijn
10fa67fdaa
Merge pull request #2589 from jlreymendez/master
...
fix: read file from windows was not returning platform error correctly
2023-06-13 09:48:50 +02: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
gingerBill
52a926dd90
Deprecate -disallow-rtti in favour of -no-rtti
2023-06-12 14:49:00 +01:00
Laytan Laats
d38ea63c78
fix fcntl binding on darwin
2023-06-12 15:37:39 +02:00
gingerBill
2022a7615a
Make all id suffixes use atomics where possible
2023-06-12 14:10:18 +01:00
gingerBill
dca0fae781
Improve lb_generate_anonymous_proc_lit (again)
2023-06-12 13:42:51 +01:00
gingerBill
e16c6c1b6b
Replace procedure strings.concatenate
2023-06-12 12:58:47 +01:00
gingerBill
ede9881458
Keep compilers happy
2023-06-12 12:54:36 +01:00
gingerBill
a7f8c78358
Change how "$anon" mangling works to use an atomic value instead
2023-06-12 12:52:17 +01:00
Jeroen van Rijn
3a90b40425
Merge pull request #2587 from GoNZooo/g.fix-early-exit-on-no-hosts
...
fix(dns): don't exit early on no hosts in hosts file
2023-06-12 12:51:37 +02: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
Damian Tarnawski
c3933cead4
Replace 0 with os.ERROR_NONE in demo.odin
2023-06-11 23:41:26 +02:00
gingerBill
4c17e2e97e
Merge pull request #2552 from jcmoyer/fix-2466
...
Use compound literal storage for ValueDecl lvals
2023-06-08 12:34:40 +01:00
Jeroen van Rijn
eac53fed59
Merge pull request #2583 from JamesDSource/master
...
Correct Timeval struct to use microseconds on darwin and linux (Issue #2489 )
2023-06-08 09:39:25 +02:00
James Duran
fed0c2ea26
Fix Timeval for darwin and linux
2023-06-07 21:55:08 -07:00
gingerBill
21c1618d94
Add botan libraries to all/all_vendor.odin
2023-06-08 00:28:35 +01:00
gingerBill
d37699f51a
Add bsd to mem/virtual
2023-06-07 23:07:31 +01:00
gingerBill
d82bfa98a7
Remove redundant comments
2023-06-07 23:01:08 +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
7dc09ed450
Add ODIN_COMPILE_TIMESTAMP (unix timestamp in nanoseconds)
2023-06-07 15:49:12 +01:00
gingerBill
349641e95f
Fix #2572
2023-06-07 13:08:15 +01:00
gingerBill
9941ec85d8
Fix #2578 (check for fallthrough)
2023-06-07 12:18:21 +01:00
gingerBill
ef944b903b
"Fix" #2580
2023-06-07 12:13:20 +01: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
151396507e
Merge pull request #1309 from Yawning/fix/freebsd-syscall
...
src: "Fix" the system call intrinsic for FreeBSD
2023-06-07 12:04:57 +01:00