Jeroen van Rijn
2ba2bc1fec
Merge pull request #3288 from Yawning/feature/even-moar-crypto
...
core/crypto: Even more improvments
2024-04-10 14:19:25 +02:00
gingerBill
af67cc7afe
Merge pull request #3397 from wrapperup/add-movefile-flags
...
Add flags for windows `MoveFileEx`
2024-04-10 12:01:01 +01:00
Jeroen van Rijn
8a6a3e883c
Merge pull request #3406 from laytan/bit-field-core-parser
...
add bit_field to `core:odin`
2024-04-10 03:12:40 +02:00
Laytan Laats
af6d2480fa
add bit_field parsing to core:odin/parser
...
Also adds it to the core type thingy like it is in the compiler.
2024-04-10 01:01:32 +02:00
Chris
60478c0e07
Remove using from validate_datetime
2024-04-09 10:57:51 +01:00
wrapperup
9b496e82f3
add movefile flags
2024-04-09 01:50:16 -04:00
Yawning Angel
893c3bef9a
core/crypto/ed25519: Initial import
2024-04-09 14:37:59 +09:00
Yawning Angel
d96f8bb5c1
core/crypto/ristretto255: Initial import
2024-04-09 14:37:59 +09:00
Yawning Angel
563c527419
core/crypto/_edwards25519: Initial import
2024-04-09 14:37:59 +09:00
Yawning Angel
fec42a6d74
core/crypto/_fiat/field_scalar25519: Initial import
2024-04-09 10:23:58 +09:00
Yawning Angel
4defe88dec
core/crypto/_fiat/field_poly1305: Mark more functions contextless
2024-04-09 10:23:58 +09:00
Yawning Angel
36f3001d59
core/crypto/_fiat/field_poly1305: Use multiply to calculate the mask
2024-04-09 10:23:58 +09:00
Yawning Angel
1ce279e6a1
core/crypto/_fiat/field_curve25519: Mark more functions contextless
2024-04-09 10:23:58 +09:00
Yawning Angel
c951cbdbbc
core/crypto/_fiat: odinfmt (NFC)
2024-04-09 10:23:58 +09:00
Yawning Angel
31aba5a728
core/crypto/_fiat/field_poly1305: Move routines (NFC)
2024-04-09 10:23:58 +09:00
Yawning Angel
9a418fd27b
core/crypto/_fiat/field_curve25519: Move routines (NFC)
2024-04-09 10:23:58 +09:00
Yawning Angel
f9b9521bf0
core/crypto/_fiat/field_curve25519: Use multiply to calculate the mask
...
Largely for consistency with the generic code, either is valid with Odin
semantics, but this is easier to comprehend.
2024-04-09 10:23:58 +09:00
Yawning Angel
b155fdf8c9
core/crypto: Add has_rand_bytes
...
This allows runtime detection as to if `rand_bytes` is supported or not,
and lets us enable the test-case on all of the supported targets.
2024-04-09 10:23:58 +09:00
Yawning Angel
a43a5b053c
core/crypto: Add more documentation about assumptions (NFC)
2024-04-09 10:23:58 +09:00
gingerBill
ef82f3e71e
Move vendor:darwin/Foundation to core:sys/darwin/Foundation
2024-04-08 13:47:46 +01:00
Laytan Laats
667883b3d5
fix js_wasm time.tick_now, performance.now() returns a float
2024-04-08 13:53:16 +02:00
Lucas Perlind
a71cd07b36
Update "core:runtime" to "base:runtime"
2024-04-07 09:02:01 +10:00
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