Commit Graph

4001 Commits

Author SHA1 Message Date
Zac Nowicki
363b701925 Improve Mutex struct documentation 2023-07-09 08:30:16 -04:00
ramn
5f53d815d1 fix: make -vet not complain 2023-07-09 00:15:01 +02:00
ramn
7b89f25818 Fix #2637
where testing.expect_value can't compare nils
2023-07-08 23:46:51 +02:00
gingerBill
17562e476f Remove math usage of raw LLVM intrinsic prototypes 2023-07-07 23:13:37 +01:00
Laytan Laats
38d71e668d add ADDRESS_FAMILY to darwin (currently only available in linux) 2023-07-03 19:56:56 +02:00
gingerBill
1ecb4aa9aa Begin work on core:math/cmplx
`complex*` types only at the moment, `quaternion*` types coming later
2023-06-28 13:20:23 +01:00
gingerBill
a2b3c72647 Improve accuracy of abs or complex* types 2023-06-28 13:18:36 +01:00
gingerBill
0180a4fcd4 Add math.sincos 2023-06-28 12:57:09 +01:00
gingerBill
866a9fdf19 Actually add math.hypot 2023-06-28 12:19:45 +01:00
gingerBill
20e954a864 Add math.hypot 2023-06-28 12:16:49 +01:00
gingerBill
03e40b333a Merge branch 'master' of https://github.com/odin-lang/Odin 2023-06-28 11:57:43 +01:00
gingerBill
d50a844720 Replace mem with runtime in core:slice 2023-06-28 11:04:51 +01:00
Rickard Andersson
f048ad13b5 fix(set_env): use clone_to_cstring instead of unsafe_to_cstring 2023-06-27 21:48:53 +03:00
Rickard Andersson
d03d5d8f03 style: use tabs
:[
2023-06-27 21:46:00 +03:00
Rickard Andersson
6ff0ce15e7 cleanup: remove leftover line 2023-06-27 21:42:20 +03:00
Rickard Andersson
330b393e16 fix(os): use setenv instead of putenv
`setenv` doesn't copy the value that is put, which means that the
previous code had a bug where we free'd the temporary memory and the
environment was accidentally cleared right after the function finished.
2023-06-27 21:37:10 +03:00
gingerBill
3d9328fd79 Default to panic allocator for wasm targets 2023-06-26 15:55:52 +01:00
gingerBill
6c6f9f7d25 Fix fmt implementation for js 2023-06-26 15:55:35 +01:00
gingerBill
3dec55f009 Replace x in &y Use &v in y syntax through core & vendor for switch/for statements 2023-06-26 15:42:57 +01:00
gingerBill
19ea090633 Merge pull request #2584 from odin-lang/new-io
New and Improved `io.Stream` interface
2023-06-23 12:12:17 +01:00
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
gingerBill
a78d6fe0b3 Use i64 instead of int for internal procedures 2023-06-14 12:31:57 +01:00
gingerBill
08e466938f Merge branch 'master' into new-io 2023-06-14 12:07:04 +01: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
gingerBill
420f93ce78 Ignore BSD's for stream.odin 2023-06-08 22:38:15 +01:00
gingerBill
2a212a7556 Put stream into the impl 2023-06-08 17:00:38 +01:00
gingerBill
145a7a24e8 Use io.Stream as the internal interface for os2.File 2023-06-08 16:55:01 +01:00
gingerBill
6c040497ef Update os2 to new io.Stream 2023-06-08 16:45:13 +01:00
gingerBill
9ee4b76cd9 Just make the io.Reader etc aliases 2023-06-08 16:38:57 +01:00
gingerBill
3f6775e29b Update to new io interface 2023-06-08 16:35:24 +01: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