aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorEvan Haas <evan@lagerdata.com>2021-01-19 23:42:48 -0800
committerAndrew Kelley <andrew@ziglang.org>2021-01-25 10:37:23 -0800
commit57b2176e28fd336309922cc9182cffcf084c1879 (patch)
treefe2b08e3caadde89b3b276ecf59d59c652c11adc /src/codegen
parent68a040aec7125adca64a16276ae1b088f2c6ba15 (diff)
downloadzig-57b2176e28fd336309922cc9182cffcf084c1879.tar.gz
zig-57b2176e28fd336309922cc9182cffcf084c1879.zip
translate-c: Improve array support
1. For incomplete arrays with initializer list (`int x[] = {1};`) use the initializer size as the array size. 2. For arrays initialized with a string literal translate it as an array of character literals instead of `[*c]const u8` 3. Don't crash if an empty initializer is used for an incomplete array. 4. Add a test for multi-character character constants Additionally lay some groundwork for supporting wide string literals. fixes #4831 #7832 #7842
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions