Commit Graph

175 Commits

Author SHA1 Message Date
gingerBill
21e637d2b3 Allow %q with enums 2022-06-13 23:30:10 +01:00
gingerBill
6c196931d2 Increase record_level on displaying map values 2022-06-13 14:46:03 +01:00
gingerBill
65b8cfae82 Minor code clean up 2022-06-12 16:49:15 +01:00
gingerBill
4055c31cf0 Update utf-32 printing 2022-06-12 16:48:06 +01:00
gingerBill
e88af4e458 Support UTF-16 printing with []u16 and [^]u16 related types 2022-06-12 16:36:55 +01:00
gingerBill
d04f732e68 Add fmt:"s,0" to allow arrays and multi-pointers to be printed with NUL termination 2022-06-12 13:07:43 +01:00
gingerBill
bd502d16bc Correct distinction between indirection and record level 2022-06-11 15:24:35 +01:00
gingerBill
a11e17fbc3 Disable again 2022-06-11 15:18:51 +01:00
gingerBill
8b3b659433 Re-enable string quoting within records 2022-06-11 15:16:17 +01:00
gingerBill
f33228fd6e Merge branch 'master' of https://github.com/odin-lang/Odin 2022-06-11 15:13:13 +01:00
gingerBill
df5b693de8 Refactor fmt_value 2022-06-11 15:13:07 +01:00
gingerBill
c75dd14308 Fix typo 2022-06-11 02:03:54 +01:00
gingerBill
c166b6a21d Support optional length parameter on struct tags for multi-pointers 2022-06-11 01:40:58 +01:00
gingerBill
6ed5cbee12 Refactor to fmt_array 2022-06-11 01:38:14 +01:00
gingerBill
5b200ccdf8 Correct #soa printing 2022-06-11 01:32:52 +01:00
gingerBill
cf0f0c4b31 Clean up trailing comma 2022-06-11 01:23:41 +01:00
gingerBill
1399ecb41c Refactor with fmt_struct 2022-06-11 01:22:18 +01:00
gingerBill
339d6cfd41 Check for in_bad 2022-06-11 01:17:33 +01:00
gingerBill
7bded4f189 Default to q for strings within structs 2022-06-11 01:09:42 +01:00
gingerBill
c7269b9ef0 Allow for fmt:"s" and fmt:"s,field_length" 2022-06-11 01:06:47 +01:00
gingerBill
85688015aa Add fmt:"-" to ignore fields in a struct 2022-06-11 00:55:10 +01:00
gingerBill
33895b6d92 Convert all uses of *_from_slice to *_from_bytes where appropriate 2022-05-16 01:43:43 +01:00
Lucas Perlind
507722954c Improve core:fmt formatting
* Strings will respect widths smaller than the string's length
* Strings are right justified by default like integers
* Strings accept '-' flag to be left justified
* Booleans will be formatted like strings
* Enums will be formatted like strings
2022-03-02 16:22:16 +11:00
gingerBill
14cb19c2df Update fmt to record the bytes written in the fmt.Info 2022-02-20 22:31:13 +00:00
Colin Davidson
ddf9c4a65b switch to passing total_size to the io.writers 2022-02-19 16:38:33 -08:00
Colin Davidson
b3d797598e fprintf tweaked to avoid calling file_size 2022-02-19 15:51:11 -08:00
gingerBill
21864d8d51 Improve BAD ENUM VALUE message in fmt #1496 2022-02-15 16:25:28 +00:00
gingerBill
f20105ddfe Update docs for packages fmt and io 2022-01-24 23:07:06 +00:00
gingerBill
c85ac955f7 Simplify docs to hide the copyright 2022-01-17 19:00:47 +00:00
gingerBill
f0529535e0 ODIN_ENDIAN changed to an enum constant; ODIN_ENUM_STRING is the new string version of the old constant 2022-01-15 17:53:18 +00:00
gingerBill
f55fc4cd08 Add complex32 and quaternion64 for the 16-bit float types to fmt 2021-11-15 17:25:29 +00:00
gingerBill
321d93bff1 Merge branch 'master' into target-js_wasm32 2021-11-09 18:06:19 +00:00
gingerBill
a674e842d0 Improve matrix indices to offset logic 2021-11-08 12:15:57 +00:00
gingerBill
518460af66 Begin work in semi-standardized js_wasm32 target 2021-11-07 19:56:01 +00:00
gingerBill
8a626ef564 Minor comments about matrix printing 2021-11-03 11:34:47 +00:00
gingerBill
8429943569 Represent matrices in fmt as expected 2021-11-03 11:27:21 +00:00
gingerBill
edd12d505d Correct fmt for matrices 2021-11-03 11:20:04 +00:00
gingerBill
0d2c8dfeec Separate os-specific things to separate file 2021-10-31 13:44:21 +00:00
gingerBill
f454ac3150 Fix %#v for matrices 2021-10-20 00:43:07 +01:00
gingerBill
82b6772ea4 Support matrix literals 2021-10-20 00:40:03 +01:00
gingerBill
1556fad65a Change syntax for matrices to matrix[R, C]T 2021-10-19 11:31:11 +01:00
gingerBill
243e2e2b8a Basic support for matrix*vector, vector*matrix operations 2021-10-19 11:24:26 +01:00
gingerBill
ba331024af Very basic matrix support in backend 2021-10-18 18:16:52 +01:00
gingerBill
4c655865e5 Begin work on matrix type 2021-10-18 16:52:19 +01:00
gingerBill
1d6e398f20 Add io.Error to fmt.fprintf_typeid 2021-09-29 14:49:58 +01:00
gingerBill
94a27224b2 Deprecate strings.write_quoted_* in favour of io.write_quoted_*; make reflect.write_type a little more robust with io.Error handling 2021-09-29 13:42:58 +01:00
gingerBill
b2164b5da6 Make the io/conv.odin utilities be #optional_ok 2021-09-29 13:24:42 +01:00
gingerBill
aa382959a7 Make empty arrays work on a single line with %#v 2021-09-25 21:12:10 +01:00
gingerBill
720884e0f1 Strip even more semicolons if followed by a } or ) on the same line 2021-08-31 23:47:57 +01:00
gingerBill
f57201bbd1 Remove unneeded semicolons from the core library 2021-08-31 22:32:53 +01:00