aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/extern_function_pointer_mismatch.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-09-28 02:10:25 +0100
committermlugg <mlugg@mlugg.co.uk>2024-10-19 19:08:59 +0100
commit51706af908e0c6acb822ef36760b7fe31faf62a6 (patch)
treed814bcfcfd83ebc5fd50da11f18a9a6427a54859 /test/cases/compile_errors/extern_function_pointer_mismatch.zig
parent8573836892ba1b7cd34d377b46258930161256c3 (diff)
downloadzig-51706af908e0c6acb822ef36760b7fe31faf62a6.tar.gz
zig-51706af908e0c6acb822ef36760b7fe31faf62a6.zip
compiler: introduce new `CallingConvention`
This commit begins implementing accepted proposal #21209 by making `std.builtin.CallingConvention` a tagged union. The stage1 dance here is a little convoluted. This commit introduces the new type as `NewCallingConvention`, keeping the old `CallingConvention` around. The compiler uses `std.builtin.NewCallingConvention` exclusively, but when fetching the type from `std` when running the compiler (e.g. with `getBuiltinType`), the name `CallingConvention` is used. This allows a prior build of Zig to be used to build this commit. The next commit will update `zig1.wasm`, and then the compiler and standard library can be updated to completely replace `CallingConvention` with `NewCallingConvention`. The second half of #21209 is to remove `@setAlignStack`, which will be implemented in another commit after updating `zig1.wasm`.
Diffstat (limited to 'test/cases/compile_errors/extern_function_pointer_mismatch.zig')
0 files changed, 0 insertions, 0 deletions