diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-25 22:01:22 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-25 22:04:01 -0700 |
| commit | f0ddc7f7a2e2fba2515dfb4f3ad06ea56646eba7 (patch) | |
| tree | 45f70c9e463de4113c1ac64ba689582736a260b9 /src/Module.zig | |
| parent | 618055db50c5354a17f9eefc2cee77ec2de96f6a (diff) | |
| download | zig-f0ddc7f7a2e2fba2515dfb4f3ad06ea56646eba7.tar.gz zig-f0ddc7f7a2e2fba2515dfb4f3ad06ea56646eba7.zip | |
translate-c: update for new function pointer semantics
After #10656, function pointers are represented with e.g.
`*const fn()void` rather than `fn()void`.
This commit adds code to translate-c to emit different code
depending on whether the output zig source code is intended
to be compiled with stage1 or stage2.
Ideally we will have stage1 and stage2 support the exact same
Zig language, but for now they diverge because I would rather
focus on finishing and shipping stage2 than implementing the
features in stage1.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
