ftphikari
2b4fce8684
Merge branch 'odin-lang:master' into master
2022-10-04 09:10:00 +03:00
matias
d13dc7eca7
Add a few Fiber functions to kernel32.odin
...
This is not the complete set, but a start.
2022-10-03 11:35:27 -04:00
Ricardo Silva
1c9aad4d7b
Update Darwin release map
2022-10-03 14:49:35 +01:00
gingerBill
35ee7f3cba
Add system:legacy_stdio_definitions.lib to .odin for Windows
2022-10-02 11:58:17 +01:00
gingerBill
4c2e86b063
Merge pull request #2102 from yay/darwin-read-write
...
Darwin: allow reading/writing files larger than max(i32)
2022-10-02 11:51:00 +01:00
Vitalii Kravchenko
d52a9b61af
Fix indentation
2022-10-02 07:47:22 +01:00
Vitalii Kravchenko
8a5b39f734
Darwin: allow reading/writing files larger than max(i32)
2022-10-02 07:40:28 +01:00
hikari
ce09cb0bdb
sys/windows: add comctl32
2022-10-01 17:13:17 +03:00
hikari
b7fd91817e
Merge remote-tracking branch 'origin/master'
2022-10-01 17:12:57 +03:00
hikari
a728047281
sys/windows: add a bunch of stuff
2022-10-01 17:12:23 +03:00
Michael Kutowski
f65bdf5733
else statement to allow skipping unused struct fields
2022-09-30 19:40:41 +02:00
Jeroen van Rijn
cd910b1512
[strconv] Add parsing of Inf & NaN
2022-09-28 16:41:26 +02:00
gingerBill
efa86ddf46
Merge pull request #2085 from matias-eduardo/patch-2
...
Add WSATRY_AGAIN to windows/types.odin
2022-09-27 23:08:24 +01:00
gingerBill
d8f60cd7f2
Merge pull request #2090 from ftphikari/master
...
sys/windows: add a couple of functions and constants, fix formatting
2022-09-27 23:08:07 +01:00
gingerBill
c4d19dfa92
Use uint instead of int to improve code generation for bounds checking
2022-09-27 22:31:46 +01:00
ftphikari
eb6c388f13
Merge branch 'odin-lang:master' into master
2022-09-27 11:06:05 +03:00
hikari
42144d957b
Merge remote-tracking branch 'origin/master'
2022-09-27 11:05:46 +03:00
hikari
d1c778680b
sys/windows: add a couple of functions and constants, fix formatting
2022-09-27 11:05:01 +03:00
matias
162e86663f
Add WSATRY_AGAIN to windows/types.odin
...
Not sure if the intent is to only add the defines that are commonly used in this file in order to keep things lean, rather than the complete list of WSA error codes from winerror.h into winerror.odin. I can close this and redo by adding all the WSA codes into winerror.odin and deleting these instead if preferred.
2022-09-26 01:54:27 -04:00
gingerBill
83ffb68bb7
Fix typo in map_insert
2022-09-23 12:09:46 +01:00
Jeroen van Rijn
4705321988
Merge pull request #2074 from Tetralux/serial-dcb
...
[sys/windows] Add DCB structure, SetCommState, GetCommState
2022-09-22 17:20:54 +02:00
Tetralux
37a2356485
[sys/windows] Add DCB structure, SetCommState, GetCommState
...
These are the procedures for configuring a serial port.
You simply open the port with CreateFile (os.open), followed by a call to GetCommState,
setting the DCB as desired, followed by a SetCommState call.
The DCB structure uses C bitfields, so a configuration struct is provided along with a helper procedure to make it easier
to initialize in Odin code.
This makes it possible to initialize a DCB structure with one call to the helper:
```
dcb: DCB
windows.init_dcb_with_config(&dcb, {
BaudRate = 115200,
ByteSize = 8,
Parity = .None,
StopBits = .One,
})
```
(The parity and the stopbits are actually optional in this example, as their zero-values are None and One, respectively.)
2022-09-22 15:14:14 +00:00
gingerBill
eb0d7465e2
Fix libc.aligned_alloc for Windows (thanks Microsoft(!))
2022-09-22 01:22:48 +01:00
gingerBill
07d798c61a
Fix libc.aligned_alloc on Windows
2022-09-22 01:17:58 +01:00
gingerBill
c056a0d108
Add slice.enumerated_array
2022-09-22 00:52:37 +01:00
gingerBill
4b73438833
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-09-22 00:05:46 +01:00
gingerBill
0380601bb4
Fix map_insert
2022-09-21 23:47:33 +01:00
13419596
4b4c2a2abd
Correcting libc pow bindings
...
Adding tests that libc pow(f) functions
- have two arguments
- behave as expected for simple inputs.
2022-09-21 17:15:28 -05:00
Jeroen van Rijn
b1542d4e98
Merge pull request #2065 from yay/core-os-indent-fix
...
Fix indent
2022-09-21 18:39:24 +02:00
Vitaly Kravchenko
d469c2da48
Fix indent
2022-09-21 17:31:37 +01:00
gingerBill
a6d3cbe824
Correct json.unmarshal for maps
2022-09-21 13:10:06 +01:00
gingerBill
831620bfc4
Remove header cache code
2022-09-21 13:06:02 +01:00
gingerBill
ff97a73152
Reduce unnecessary map gets
2022-09-21 13:03:13 +01:00
gingerBill
769d8dd038
Simplify __get_map_header stuff
2022-09-21 12:13:05 +01:00
gingerBill
1d793ea338
Split header table data and the map pointer
2022-09-21 12:09:05 +01:00
gingerBill
729ffeee09
Begin work on core:debug/pe
2022-09-17 18:45:33 +01:00
gingerBill
3fb69d59bb
Minor correction to __get_map_header
2022-09-17 17:48:38 +01:00
gingerBill
cb207afdf3
Merge pull request #2055 from odin-lang/map-index-internal
...
Map Internals Improvements
2022-09-17 15:30:53 +01:00
gingerBill
756c1b7bcb
Correct slice/ptr.odin calls
2022-09-17 15:12:32 +01:00
gingerBill
cd484979a8
General clean up minor with rearrangements and removing unneeded procedures
2022-09-17 15:09:39 +01:00
gingerBill
9e3ea92829
Inline many calls and delete unused procedures
2022-09-17 14:59:16 +01:00
gingerBill
c37de9459e
Minor refactor of the dynamic_map_internal.odin stuff
2022-09-17 14:46:52 +01:00
gingerBill
81f10f53ad
Correct delete_key
2022-09-17 13:22:23 +01:00
gingerBill
fbf036a654
Wrap __dynamic_map_find for certain cases
2022-09-17 13:11:29 +01:00
gingerBill
40bcfc7c8d
Update json/unmarshal.odin for the new runtime.__dynamic_map_set
2022-09-17 13:05:14 +01:00
gingerBill
bfe0ffd6e6
Minor clean up
2022-09-17 13:02:06 +01:00
gingerBill
8ee6bb5d4b
Add contextless where possible in dynamic_map_internal.odin
2022-09-17 13:00:19 +01:00
gingerBill
7840c1b89f
Change __dynamic_map_get and __dynamic_map_set to use separate parameters rather than take a singular struct
2022-09-17 12:48:12 +01:00
gingerBill
0428d5ae2e
Catch missing areas of Map_Index usage
2022-09-17 12:27:34 +01:00
gingerBill
b967ae2739
Change internal map indices to use a distinct uint rather than just int
2022-09-17 12:21:23 +01:00