gingerBill
83d3bc74b0
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-04-06 16:59:07 +01:00
gingerBill
fbf01543d1
Remove duplicate table
2024-04-06 16:59:02 +01:00
blob1807
fde4e8c905
Removed undefined & usused vars
...
Removed undefined& usused vars in init_from_parts
2024-04-06 21:49:50 +10:00
Yawning Angel
a45721e9ad
core/crypto/poly1305: The final addition is NOT mod p
2024-04-05 23:45:41 +09:00
gingerBill
510574aa7f
Merge pull request #3373 from laytan/add-some-windows-wsa-symbols
...
add some wsa based additions to `core:sys/windows`
2024-04-04 20:40:31 +01:00
gingerBill
3fd3bf2d4d
Merge pull request #3371 from mailgerigk/windows-setevent
...
Add windows.SetEvent
2024-04-04 18:09:21 +01:00
Laytan Laats
1af84e082c
add some wsa based additions to core:sys/windows
2024-04-04 17:09:12 +02:00
gingerBill
d248cddf90
Remove dead newline
2024-04-04 16:07:55 +01:00
gerigk
62cebe1bc9
Add windows.SetEvent
2024-04-04 16:00:01 +02:00
gingerBill
5fe0788cff
Minimize code duplication in core:mem by using the base:runtime calls
2024-04-03 11:47:39 +01:00
Laytan Laats
3a0df80066
correct newly found vets
2024-04-03 00:52:58 +02:00
gingerBill
397c2aa201
Merge pull request #3318 from flysand7/os2-file-pipe-read
...
[core/os2]: Fix read_entire_file for reads from pipe and console.
2024-04-01 13:38:10 +01:00
flysand7
3ee9184537
[core/os2]: Fix memory leak on read_entire_file
2024-04-01 23:32:16 +11:00
gingerBill
2938def707
Remove dead comment
2024-04-01 13:27:51 +01:00
gingerBill
030b8d3f66
Merge pull request #3354 from serberoth/issue-3349
...
Patch for #3349 to address API concerns for Darwin platform in core:os
2024-04-01 12:25:17 +01:00
Dragos Popescu
d0674cb70f
Fixed windows.COINIT.MULTITHREADED declaration. It's supposed to be 0 rather than 3
2024-03-31 21:29:49 +03:00
nicola
3975b5e736
:Updated core:os for darwin to include flush function and match close to api documentation returning errno
2024-03-30 16:48:52 -04:00
Laytan Laats
b7fd51a251
add MacOS 14.4.1 to sys/info and odin report
2024-03-28 19:39:18 +01:00
FrancisTheCat
29e4e85152
Merge branch 'odin-lang:master' into master
2024-03-27 16:43:02 +01:00
Franz Höltermann
a422aba578
Json: improved unmarshalling of using _: T fields.
...
`using _: T` fields will now have their members unmarshalled to their
parent types reflecting the new behaviour of json.marshall.
Example:
```go
A :: struct {
using _: B,
}
B :: struct {
field: string,
}
data := `{"field": "Hello World"}`
a: A
json.unmarshal_string(data, &a)
```
2024-03-27 15:46:44 +01:00
gingerBill
b378eb2df3
Fix free bug not using the correct allocator
2024-03-27 12:54:52 +00:00
gingerBill
6422c090f2
Make hash procedures contextless where possible
2024-03-27 12:54:37 +00:00
gingerBill
3bc7c51325
Merge pull request #3283 from laytan/darwin-new-wait-on-address-api
...
darwin: use new wait on address API if possible
2024-03-27 11:20:32 +00:00
Franz Höltermann
92a5666c1c
Json: fields on structs like 'using _: T' will now have T's fields
...
marshalled directly into the parent type without an '"_":{ ... }'.
This seems like desirable behavior to me, since you can't access the
fields with 'Parent_Type._.field' either.
2024-03-26 20:22:51 +01:00
blob1807
8eed65ad4c
Update time.odin
2024-03-26 11:20:05 +10:00
blob1807
bc0a2b8d39
Update time.odin
2024-03-26 11:17:44 +10:00
blob1807
a405c72d4d
Updated windows time period call
...
Updated win32.time_begin_period to windows.timeBeginPeriod
Added a note about calling windows.timeEndPeriod once you don't need accurate_sleep, as per MS's docs https://learn.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timebeginperiod#remarks
2024-03-26 11:13:27 +10:00
flysand7
c843002d07
[core/os2]: Move .Broken_Pipe to General_Error enum
2024-03-25 23:35:01 +11:00
gingerBill
670fc70f1f
Remove private attributes for #3227
2024-03-24 13:46:26 +00:00
gingerBill
398af659e5
Fix #3323
2024-03-24 13:33:30 +00:00
flysand7
0f944bc0a1
[core/os2]: Reading from unsized files
2024-03-24 10:52:48 +11:00
gingerBill
6d7afd3fa9
Update format version
2024-03-21 11:59:45 +00:00
gingerBill
006ea11c56
Update doc-format for #by_ptr and #no_broadcast parameters
2024-03-21 11:58:32 +00:00
gingerBill
29e5f94c2a
Add #no_broadcast procedure parameter to disallow automatic array programming broadcasting on procedure arguments
2024-03-21 11:52:48 +00:00
Jeroen van Rijn
8f0d74c08d
Merge pull request #3292 from Kelimion/rfc3339
...
Add WiP datetime package and tests.
2024-03-20 23:23:27 +01:00
Jeroen van Rijn
fda283c55e
More better validation.
2024-03-20 23:09:09 +01:00
Jeroen van Rijn
ed5fd15f6e
Ensmallen Date struct.
2024-03-20 18:13:29 +01:00
Jeroen van Rijn
89ca15014c
Ensmallen Time struct.
2024-03-20 18:09:07 +01:00
Jeroen van Rijn
9c144dd24f
Change Ordinal from int to i64
2024-03-20 17:56:22 +01:00
gingerBill
56004c56fc
Merge pull request #3295 from kavalee/parser-newline-fix
...
Fixed issue #3264 regarding `core:odin/parser` compound literal not allowing a newline
2024-03-20 10:09:55 +00:00
Laytan Laats
d0b3b18e26
update macOS releases for core:sys/info and odin report
2024-03-20 00:14:01 +01:00
gingerBill
a750fc0ba6
Add #row_major matrix[R, C]T
...
As well as `#column_major matrix[R, C]T` as an alias for just `matrix[R, C]T`.
This is because some libraries require a row_major internal layout but still want to be used with row or major oriented vectors.
2024-03-19 21:05:23 +00:00
Aaron Kavaler
096b4f5454
fixed issue #3264 regarding core:odin/parser not allowing a newline at the end of a compound literal
2024-03-18 20:33:02 -07:00
Laytan Laats
dd92d3054d
add ODIN_ prefix to the new constant
2024-03-18 17:22:58 +01:00
Jeroen van Rijn
72c15d7699
Add WiP datetime package and tests.
...
A new package `core:time/datetime` has been added which can represent moments much further in the past and future than `core:time`.
It is based on *the* reference work on the subject, Calendrical Calculations Ultimate Edition, Reingold & Dershowitz.
More procedures will be added to it in the future, to for example calculate the 3rd Thursday in March to figure out holidays.
The package has been tested for more than a year and can handle dates 25 quadrillion years into the past and future with 64-bit day ordinals, or 5 million with 32-bit ones.
This also fixes a longstanding bug where converting between YYYY-MM:DD hh:mm:ss and `time.Time` and back could result in a mismatch.
RFC 3339 timestamps can now also be parsed using the `core:time` package.
2024-03-18 16:47:16 +01:00
Laytan Laats
9c455b2213
darwin: use new wait on address API if possible
2024-03-15 21:43:16 +01:00
gingerBill
04f0fbf23a
Merge pull request #3272 from iansimonson/add_getrusage_darwin
...
Add getrusage syscall for mac/darwin
2024-03-14 19:45:25 +00:00
Ian Simonson
835effdef1
Use c.long rather than int
2024-03-14 09:36:57 -07:00
Ian Simonson
c7bec2962e
Fix __darwin_suseconds_t definition
...
__darwin_suseconds_t is defined as long which on macos
64 bit systems is equivalent to 8 bytes. It is equivalent
to Odin int type _not_ i32
2024-03-14 07:21:26 -07:00
Aaron Kavaler
ac634acd4b
fixed slice.unique and slice.unique_proc
2024-03-13 19:19:31 -07:00