Commit Graph

3626 Commits

Author SHA1 Message Date
Jon Lipstate
194fa7cd98 rename nul to null, allocation clarifications 2023-03-28 11:51:39 -07:00
Jon Lipstate
6dce07790a add backticks on variables, code review comments 2023-03-28 11:07:33 -07:00
Jon Lipstate
203ae32b79 pr pickups 2023-03-28 10:24:41 -07:00
Jon Lipstate
937e5de1d8 add missing eof newline 2023-03-27 22:23:13 -07:00
Jon Lipstate
7de67f8c1b markdown compliant spaces 2023-03-27 22:20:24 -07:00
Jon Lipstate
f5d66bcb6f transform into odin-site parsable format 2023-03-27 22:00:53 -07:00
Jon Lipstate
bf82c40964 string code docs 2023-03-27 20:09:51 -07:00
Jeroen van Rijn
7ffca8ed58 Fix caprintf comment 2023-03-27 11:12:21 +02:00
Jeroen van Rijn
030405dbb6 Update fmt.odin
Fix hardcoded 64 bit, use assert instead of branched panic.
2023-03-27 11:06:29 +02:00
jon lipstate
34b037f19b Update fmt.odin
Update example to use set/register procs.
2023-03-26 11:23:37 -07:00
Jon Lipstate
0892d84c17 corrected bprint 2023-03-25 23:55:37 -07:00
Jon Lipstate
2501d50f9c fmt docs 2023-03-25 23:45:53 -07:00
Jeroen van Rijn
1e4a4181e2 Typo 2023-03-25 07:37:43 +01:00
Jeroen van Rijn
4c13dee18f Update types.odin
Use `context.allocator := allocator` idiom.
2023-03-25 07:33:34 +01:00
Igor Dreher
95497626e3 Add allocator parameter to json.detroy_value 2023-03-24 21:01:23 -03:00
Jeroen van Rijn
a86386d882 Merge pull request #2404 from Kelimion/save_to_buffer
Rename `save_to_memory` for consistency.
2023-03-24 11:06:05 +01:00
Jeroen van Rijn
bbf40bf318 Rename save_to_memory for consistency. 2023-03-24 10:47:33 +01:00
Jeroen van Rijn
b054585066 Merge pull request #2402 from oskarnp/fix-ada-case
Fix strings.to_ada_case()
2023-03-24 10:40:52 +01:00
gingerBill
90c44c34a9 Make core:image packages work on js platform (wasm32) by not requiring core:os 2023-03-23 20:53:19 +00:00
oskarnp
e449cc9e2d Fix strings.to_ada_case() 2023-03-23 21:30:24 +01:00
Dragos Popescu
b2ecb37b35 Changed js panics to unimplemented where sensible 2023-03-22 12:10:27 +01:00
Dragos Popescu
ef3d8bdc42 Fixed more compile time errors when including os and thread to js targets 2023-03-21 04:17:31 +01:00
Dragos Popescu
951511704d Responded to PR review. Made dynlib return false on js instead of panic 2023-03-20 21:57:51 +01:00
Dragos Popescu
23aae6ab0f Merge branch 'odin-lang:master' into master 2023-03-20 21:52:03 +01:00
Fabian Sperber
33798b8b80 Need to forward the name of the directive, not the hash token 2023-03-20 20:09:30 +01:00
gingerBill
313b6874b1 Merge pull request #2382 from fabiansperber/freestanding-hide-default-temp-allocator
Remove usage of global_default_temp_allocator_data when not needed
2023-03-20 12:06:34 +00:00
Dragos Popescu
adac039a2b Made most libraries panic on js targets instead of not compiling 2023-03-20 04:08:48 +01:00
WraithGlade
adcc865c70 Fixed incorrect precision value in fmt doc.
It seems like `%.2f` is the correct implementation of "precision 2" for displaying floats, not `$.3f`. It prints two decimal places.

Either that or the next case (`%8.3f`) would be wrong instead, if it's the other way around. 

So, there's a mistake here one way or the other at the least.
2023-03-19 22:06:39 -04:00
Christian Seibold
852c8b533c Add SetConsoleCursorInfo and GetConsoleCursorInfo to sys/windows package 2023-03-18 15:43:31 -05:00
Jeroen van Rijn
b020ba2b5f Merge pull request #2391 from ftphikari/master
sys/windows: added some functions and types for input hooks and tray …
2023-03-18 08:06:55 +01:00
hikari
03c6862d51 sys/windows: added some functions and types for input hooks and tray icons 2023-03-18 06:44:16 +02:00
gingerBill
b7f953b2ee Merge branch 'master' of https://github.com/odin-lang/Odin 2023-03-17 11:48:04 +00:00
gingerBill
0b064765c9 Add reflect.struct_field_value 2023-03-17 11:47:39 +00:00
Mostafa Saad
5fdc9fa3b6 Fix #2389 2023-03-17 00:29:50 +02:00
gingerBill
74fb74d9cb Keep -vet happy 2023-03-16 16:41:22 +00:00
gingerBill
97d7e295dd Fix to split_multi_iterator 2023-03-16 16:35:30 +00:00
gingerBill
0727e91aeb Simplify the implementation of strings.split_multi; add strings.index_multi 2023-03-16 16:30:48 +00:00
gingerBill
2cf8a9da6f Merge branch 'master' of https://github.com/odin-lang/Odin 2023-03-16 15:05:06 +00:00
Jeroen van Rijn
0e9ef50e63 Update build flag 2023-03-16 15:16:09 +01:00
gingerBill
e05944601a Minor fixes 2023-03-16 13:35:38 +00:00
gingerBill
09a0dad115 Add contextless to internal parse_hex call 2023-03-16 12:43:10 +00:00
Jeroen van Rijn
243a3f5006 Fix #2386 2023-03-16 12:35:05 +01:00
Jeroen van Rijn
28eebc14d0 Merge pull request #2387 from elusivePorpoise/main
add SetConsoleOutputCP
2023-03-16 07:15:20 +01:00
Elusive Porpoise
4210aa9ab9 add SetConsoleOuputCP 2023-03-15 17:15:25 -07:00
gingerBill
5bbdbadc25 Remove where ORD(E) on procedures that don't need it 2023-03-14 14:05:23 +00:00
Fabian Sperber
830d2007a6 Remove usage of global_default_temp_allocator_data when there is no default allocator (freestanding, JS or --default-to-nil-allocator) 2023-03-13 20:12:54 +01:00
Jon Lipstate
ac0f3c8433 resolve doc/spall package name conflict 2023-03-10 19:24:11 -08:00
William Roe
63b5d472fa Fix documentation example of strings.to_upper
This looks like it was a copy/paste mistake
2023-03-10 16:07:06 +00:00
Jeroen van Rijn
233e3c76fd Merge pull request #2373 from colrdavidson/spall_flushes
log buffer flushes to trace
2023-03-10 08:04:46 +01:00
Colin Davidson
2334dadb6a add main scope 2023-03-09 16:34:43 -08:00