aboutsummaryrefslogtreecommitdiff
path: root/doc/langref
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-08-26 21:50:14 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2024-08-27 06:43:40 +0100
commit93cb44c80582dd02b63b02e7bb7e54d7ad8a4ebc (patch)
treeae7e7763301389f86890d011c2818000125ed1ac /doc/langref
parentd3c6f7179c7a6086ab9cdbaed231da9a1f0b4dee (diff)
downloadzig-93cb44c80582dd02b63b02e7bb7e54d7ad8a4ebc.tar.gz
zig-93cb44c80582dd02b63b02e7bb7e54d7ad8a4ebc.zip
translate-c: support GCC/Clang pointer subtraction extension
Pointer subtraction on `void *` or function pointers is UB by the C spec, but is permitted by GCC and Clang as an extension. So, avoid crashing translate-c in such cases, and follow the extension behavior -- there's nothing else that could really be intended.
Diffstat (limited to 'doc/langref')
0 files changed, 0 insertions, 0 deletions