# stage2 translate-c: implement functions with no prototype · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/10e9d47b499752f5c40e8ded1bf50385d84912ff)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 10e9d47b499752f5c40e8ded1bf50385d84912ff

Requested commit: 10e9d47b499752f5c40e8ded1bf50385d84912ff

Commit: 10e9d47b499752f5c40e8ded1bf50385d84912ff

Tree: ba14e8208f292d60ea6d834beca3385e8f4fc545

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2 translate-c: implement functions with no prototype

stage1 translate-c actually has this wrong. When exporting a function,
it's ok to use empty parameters. But for prototypes, "no prototype"
means that it has to be emitted as a function that accepts anything,
e.g. extern fn foo(...) void;

See #1964

```

## Parents

- [2ef2f9d71f851823966ae16b45a189657051b8df](https://git.cafe/gitcafe/zig/commit/2ef2f9d71f851823966ae16b45a189657051b8df?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/10e9d47b499752f5c40e8ded1bf50385d84912ff?format=markdown)
