Carl Åstholm a02bd81760 Make @typeInfo return null-terminated strings
Changes the types of `std.builtin.Type` `name` fields from `[]const u8`
to `[:0]const u8`, which should make them easier to pass to C APIs
expecting null-terminated strings.

This will break code that reifies types using `[]const u8` strings, such
as code that uses `std.mem.tokenize()` to construct types from strings
at comptime. Luckily, the fix is simple: simply concatenate the
`[]const u8` string with an empty string literal (`name ++ ""`) to
explicitly coerce it to `[:0]const u8`.

Co-authored-by: Krzysztof Wolicki <der.teufel.mail@gmail.com>
2024-01-07 15:35:18 +01:00
..
2023-11-25 12:28:19 +02:00
2023-11-22 19:08:55 -07:00
2023-11-22 13:24:27 -05:00
2023-12-19 12:01:09 -07:00
2024-01-03 12:34:10 +02:00
2023-11-26 14:28:22 -05:00
2023-11-22 13:24:27 -05:00
2023-11-22 19:08:55 -07:00
2024-01-04 18:47:28 -05:00
2023-11-25 12:28:19 +02:00
2023-10-23 22:42:18 -04:00
2023-11-09 17:41:14 +01:00
2024-01-02 20:28:55 +02:00
2023-11-22 15:24:57 -07:00
2023-10-31 21:37:35 -04:00
2023-10-25 04:28:30 -04:00
2024-01-04 17:54:56 +02:00
2023-11-03 23:18:21 -04:00
2023-12-11 17:48:18 +02:00
2023-11-19 09:55:07 +00:00
2023-11-22 13:24:27 -05:00
2023-10-27 03:33:49 -04:00
2024-01-01 17:51:18 -07:00
2023-12-20 20:05:16 -08:00
2024-01-01 17:51:18 -07:00
2023-10-21 21:24:55 +00:00
2023-10-21 21:24:55 +00:00