Commit Graph

1502 Commits

Author SHA1 Message Date
Daniel Gavin
5fba548aa0 more fixes with wierd comment placements 2021-04-23 23:22:48 +02:00
Daniel Gavin
aafbf5bac7 odinfmt 2021-04-23 22:55:59 +02:00
Daniel Gavin
951e940470 handle comments in stupid places 2021-04-23 21:52:27 +02:00
Daniel Gavin
3b5b845ea6 refractor 2021-04-23 16:45:55 +02:00
Daniel Gavin
3f9ad6ba09 fix proc group, struct align with internal structs 2021-04-23 16:33:11 +02:00
Daniel Gavin
f10f7ebbf1 Merge remote-tracking branch 'upstream/master' into prototype-fmt 2021-04-23 10:24:05 +02:00
gingerBill
d33350e3a5 Add truncate_to_byte and truncate_to_rune for packages strings and bytes 2021-04-22 15:49:10 +01:00
gingerBill
0a66f8c9a3 Remove intrinsics.x86_mmx type 2021-04-22 10:39:20 +01:00
gingerBill
158e4c0b6c Add @(cold) tag 2021-04-22 10:35:37 +01:00
gingerBill
47c7dc6a9b Add new intrinsics: debug_trap, trap, read_cycle_counter, expect 2021-04-22 10:35:17 +01:00
Daniel Gavin
40ed7e48d0 remove prints 2021-04-22 00:56:31 +02:00
Daniel Gavin
ab53900c95 check comma count in enum instead 2021-04-22 00:55:25 +02:00
Daniel Gavin
43589a56b7 odinfmt on printer 2021-04-22 00:32:36 +02:00
Daniel Gavin
de1838c0cb align not mutable correctly 2021-04-22 00:23:17 +02:00
Daniel Gavin
ca112c0b6d better placing of the end brace 2021-04-22 00:04:01 +02:00
Daniel Gavin
6eb64f2bdc align enum 2021-04-21 23:40:08 +02:00
Daniel Gavin
25c3b6dc95 align value decls 2021-04-21 23:21:45 +02:00
André
22867ec6f0 fix variable name in path_unix
replace the immutable variable "path" (that is a parameter) with a new variable "path_str"
2021-04-20 22:09:10 +02:00
gingerBill
e9b1d4f633 Fix #906 2021-04-20 10:34:41 +01:00
gingerBill
c3b3194a00 Update builtin procedures to support the new allocator features (without breaking other code) 2021-04-19 22:44:20 +01:00
Daniel Gavin
3464784e5e add proc to format multiline 2021-04-19 19:41:53 +02:00
Daniel Gavin
f1dc7c0b27 more work 2021-04-19 19:38:08 +02:00
gingerBill
f98c4d6837 Improve the Allocator interface to support returning Allocator_Error to allow for safer calls
Virtually all code (except for user-written custom allocators) should work as normal. Extra features will need to be added to make the current procedures support the `Allocator_Error` return value (akin to #optional_ok)
2021-04-19 12:31:31 +01:00
Daniel Gavin
c708f649ec Merge remote-tracking branch 'upstream/master' into prototype-fmt 2021-04-19 02:13:29 +02:00
Daniel Gavin
f7b8b3a340 ensure that the comments gets pushed if it's in the beginning before package 2021-04-18 22:06:32 +02:00
Daniel Gavin
2cbb3443d3 ran odinfmt 2021-04-18 21:53:52 +02:00
Daniel Gavin
11bd518f36 fix bugs 2021-04-18 21:52:00 +02:00
gingerBill
ae04af4e4e Add package flags 2021-04-18 20:19:03 +01:00
Daniel Gavin
a721802337 fixing calls in calls 2021-04-18 21:07:58 +02:00
gingerBill
b59e110fec Add calling_convention to Type 2021-04-18 19:26:36 +01:00
gingerBill
2ce9873464 Remove dead comment 2021-04-18 18:53:19 +01:00
gingerBill
986844a0f0 Change elem_counts to i64le from u64 2021-04-18 18:48:56 +01:00
gingerBill
7c1f538c02 Change u32 to u32le 2021-04-18 18:46:29 +01:00
gingerBill
2f1c896290 Add -doc-format command for the new .odin-doc file format (to be used to generate documentation tools) 2021-04-18 18:33:15 +01:00
Daniel Gavin
5a8c7b4f90 support multiline for and if 2021-04-16 02:15:29 +02:00
Daniel Gavin
f17fc05ff2 format call and binary expression 2021-04-16 00:44:16 +02:00
Daniel Gavin
a12db382e0 damn, ran the odinfmt with spaces instead of tabs... 2021-04-15 00:24:00 +02:00
Daniel Gavin
22daa50374 ran the odinfmt - looks good, except for multi line binary operations 2021-04-15 00:19:13 +02:00
Daniel Gavin
a09300fb0e more fixes 2021-04-15 00:11:10 +02:00
gingerBill
8827818b1d Clean-up fallback io.read_at and io.write_at behaviour 2021-04-14 21:25:46 +01:00
Daniel Gavin
bab4e5531a remove print 2021-04-14 21:53:11 +02:00
gingerBill
e19958152a Fix floattidf 2021-04-14 20:45:05 +01:00
gingerBill
05a181d719 Fix style issues; Use new attribute @(cold) where appropriate in the new sync package 2021-04-14 20:19:02 +01:00
gingerBill
d24784074c Add extra error to io.Error 2021-04-14 20:17:54 +01:00
gingerBill
cd2476e084 Add buffer_read_at buffer_write_at 2021-04-14 20:13:26 +01:00
gingerBill
ebbc33fdb5 Mockup of the new package os interface (incomplete and non-functioning) 2021-04-14 19:39:12 +01:00
Daniel Gavin
1de928df78 fixed bug in parser on when 2021-04-14 18:43:04 +02:00
Daniel Gavin
aded272b33 split stmts 2021-04-14 18:04:48 +02:00
Daniel Gavin
b0721f1e0c aligning structs now work 2021-04-14 16:31:31 +02:00
Daniel Gavin
7e90ece84a more switch alignment work 2021-04-14 16:03:36 +02:00