aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/Condition.zig
diff options
context:
space:
mode:
authorEvan Haas <evan@lagerdata.com>2021-01-26 09:08:05 -0800
committerAndrew Kelley <andrew@ziglang.org>2021-01-26 21:13:06 -0800
commit1ed8c54cd349497adb264b0502783a6422e4f2d1 (patch)
tree813be35e4f0e0745451c97474970322acdc79e40 /lib/std/Thread/Condition.zig
parent79730e6f5cdf13b2514781881e69c557fd52eaea (diff)
downloadzig-1ed8c54cd349497adb264b0502783a6422e4f2d1.tar.gz
zig-1ed8c54cd349497adb264b0502783a6422e4f2d1.zip
translate-c: add wide string literal support
Adds support for wide, UTF-16, and UTF-32 string literals. If used to initialize an incomplete array, the same logic as narrow strings is used. Otherwise they are translated as global "anonymous" arrays of the relevant underlying char type. A dot is used in the name to ensure the generated names do not conflict with any other names in the translated program. For example: ```c void my_fn() { const uint32_t *foo = U"foo"; } ``` becomes: ```zig const @"zig.UTF32_string_2" = [4]c_uint{ '\u{66}', '\u{6f}', '\u{6f}', 0, }; pub export fn my_fn() void { var foo: [*c]const u32 = &@"zig.UTF32_string_2"; } ```
Diffstat (limited to 'lib/std/Thread/Condition.zig')
0 files changed, 0 insertions, 0 deletions