Feoramund
971201182a
Fix read_directory() skipping directories on UNIX-likes
2024-05-12 19:52:36 -04:00
Feoramund
1935811b2c
Suggest -all-packages if testing empty directory
2024-05-12 19:51:19 -04:00
Jeroen van Rijn
1183f4794b
Merge pull request #3579 from Kelimion/test_string_compare
...
Test string compare
2024-05-12 23:52:39 +02:00
Jeroen van Rijn
23545c3f37
Enable in Makefile
2024-05-12 23:47:42 +02:00
Jeroen van Rijn
41b8f06f51
Add 1 more each for < and >
2024-05-12 23:43:05 +02:00
Jeroen van Rijn
55d21f4c2f
Test string compare
...
To avoid regression of the bug fixed in f8581537e4 .
2024-05-12 23:38:17 +02:00
gingerBill
f8581537e4
Fix >= for strings
...
How did this not get noticed?!?!
2024-05-12 20:25:13 +01:00
gingerBill
0f76c22c46
Check for illegal use of distinct
2024-05-12 17:48:06 +01:00
gingerBill
6bfaf4a093
Fix another oversight for bit_field endian with 1-byte types
2024-05-11 22:36:17 +01:00
gingerBill
f650690f61
Merge pull request #3574 from jasonKercher/i386-syscall6
...
fix 6 argument syscall on i386
2024-05-11 21:50:49 +01:00
gingerBill
321e4c45b0
Merge pull request #3576 from korvahkh/json-marshal-no-nil
...
encoding/json: Properly marshal `#no_nil` unions
2024-05-11 21:50:26 +01:00
korvahkh
9b759f39fc
encoding/json: Properly marshal #no_nil unions
...
Previously the first variant of a `#no_nil` would always be output as
`null`, and following variants would be treated as the wrong type.
2024-05-11 14:36:56 -05:00
Jeroen van Rijn
3a3ae6d0df
Fix and re-enable .doc tests.
2024-05-11 19:25:35 +02:00
gingerBill
ad0053b798
Make doc writer use the old "Ordered Insertion" based PtrMap
2024-05-11 16:24:37 +01:00
gingerBill
8e263de4aa
Fix error message handling
2024-05-11 13:59:06 +01:00
gingerBill
811d53b305
Generalize to any 1-byte element in bit_field
2024-05-11 13:48:19 +01:00
gingerBill
aea28d5189
Allow edge-case where backing type of a bit_field is (array of) u8, to allow any endian type
2024-05-11 13:47:33 +01:00
jason
20752d904b
fix 6 argument syscall on i386
2024-05-10 23:06:49 -04:00
Jeroen van Rijn
2250eb3e78
Enable core:fmt tests.
dev-2024-05
2024-05-10 17:05:18 +02:00
gingerBill
aebb5a5178
Merge pull request #3506 from IllusionMan1212/windows-hid
...
core/sys/windows: added various procedures and constants for the hid library
2024-05-10 16:03:13 +01:00
gingerBill
b4d0b1d17d
Merge pull request #3544 from ntn9995/fix-parser-empty-or-no-pkg
...
Fix core:odin/parser crashing on empty and/or no package files
2024-05-10 16:01:16 +01:00
gingerBill
20d35acce1
Fix parser
2024-05-10 15:59:14 +01:00
gingerBill
6c4672c158
Merge pull request #3566 from Feoramund/fmt-refactor
...
Refactor `wprintf`
2024-05-10 15:56:26 +01:00
gingerBill
3095f46d7e
Add runtime.Typeid_Bit_Field
2024-05-10 15:50:47 +01:00
ikarus
3add85e7a7
fix typo & free memory when skipping empty files
2024-05-10 14:51:09 +01:00
gingerBill
ad5c9469d8
Fix #3522
2024-05-10 14:22:43 +01:00
gingerBill
710bb4369f
Fix #3567
2024-05-10 13:55:15 +01:00
gingerBill
944fdd11f2
Keep -vet happy
2024-05-10 12:03:08 +01:00
gingerBill
07739b48ee
Merge pull request #3565 from wschiefer/update-d3d12
...
Update d3d12 API
2024-05-10 12:00:39 +01:00
gingerBill
b269fd00f0
Merge pull request #3560 from wschiefer/add-more-win32-console-apis
...
Add more win32 console APIs
2024-05-10 12:00:28 +01:00
gingerBill
04c391074d
Merge pull request #3561 from wschiefer/update-dxgi
...
Adding DXGI 1.5 & 1.6 APIs
2024-05-10 12:00:11 +01:00
Feoramund
fb2549a7da
Extend test suite for fmt
2024-05-09 19:44:16 -04:00
Feoramund
11180e36ae
Amend fmt documentation
2024-05-09 19:38:44 -04:00
Feoramund
8c111f1baf
Fix %e printing incorrect precision
...
For example, `%.2e` with 30.56 as the value would produce `30.60e+01`,
as opposed to C's printf producing `30.6e+01`.
2024-05-09 19:37:17 -04:00
Feoramund
5e149d2cae
Refactor wprintf
...
- Extracts common code between C and Python-like syntax into its own
sub-procedures.
- Fixes Python-like syntax from treating `}` as a verb.
- Makes C-like syntax treat ' ' as a missing verb.
- Fixes EXTRA arguments being formatted with options that were
previously set, instead using default options now.
- Makes error messaging more consistent between C and Python-like
syntax.
- Requires argument index to be specified immediately before the verb
in C-like syntax, per the documentation, instead of after `%` _or_
before the verb.
- Tracks argument usage through a `bit_set`, allowing for reporting of
unused arguments even when reordered.
- Moves exit for C-like syntax if next byte is `%` to beginning of
block instead of needlessly trying to parse through all options.
- Pops next unused argument for unspecified formatters like `%i` or
`{}`, instead of taking the argument after the last one used.
- Fixes unspecified precision `%.f` from not setting precision to zero,
per the documentation.
2024-05-09 19:28:04 -04:00
Jeroen van Rijn
41bd8cf714
Merge pull request #3563 from laytan/fix-duplicate-suggestions
...
fix duplicate suggestions and add missing newline
2024-05-09 20:20:18 +02:00
Jeroen van Rijn
1604f37cb8
Merge pull request #3564 from laytan/fix-some-vet-style-failures
...
fix a couple of `-vet-style` failures
2024-05-09 20:19:46 +02:00
Waldemar Schiefer
935865a978
Update d3d12 API
2024-05-09 19:46:02 +02:00
Laytan
d7fdccb08c
fix a couple of -vet-style failures after f54977336b
2024-05-09 19:39:48 +02:00
Laytan
98827c867d
fix duplicate suggestions and add missing newline
2024-05-09 19:21:39 +02:00
Jeroen van Rijn
8a1e7bb6fb
Merge pull request #3562 from Kelimion/bitset_to_enum_slice
...
Bitset to enum slice
2024-05-09 18:03:42 +02:00
Jeroen van Rijn
8f706a14f8
Add allocator param.
2024-05-09 17:58:48 +02:00
Jeroen van Rijn
e5af98eabe
Simplify bitset_to_enum_slice
2024-05-09 17:55:50 +02:00
Jeroen van Rijn
858c78b844
Pass new -vet-style check.
2024-05-09 17:47:19 +02:00
Jeroen van Rijn
a61d8daec1
Add make version of bitset to slice.
2024-05-09 17:44:39 +02:00
Waldemar Schiefer
cceac781e7
Add DXGI 1.5 & 1.6 APIs
2024-05-09 17:36:26 +02:00
Jeroen van Rijn
113feacbc7
Merge pull request #3559 from Kelimion/bitset_to_enum_slice
...
Add slice.enum_slice_to_bitset & slice.bitset_to_enum_slice
2024-05-09 17:21:04 +02:00
Jeroen van Rijn
7bcf3b1a0d
Add slice.enum_slice_to_bitset & slice.bitset_to_enum_slice
2024-05-09 17:15:45 +02:00
gingerBill
f54977336b
With -vet-style, give suggestion of separating where clauses with a comma rather than '&&'
...
This improves the error messages
2024-05-09 15:56:00 +01:00
gingerBill
b0f0e4d02a
Add intrinsics type_bit_set_elem_type & type_bit_set_underlying_type
2024-05-09 15:47:09 +01:00