# translate-c: Remove usage of \`extern enum\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 0e7897a9a2e8dff1ce869b78d5b6fda56f86bb05

Requested commit: 0e7897a9a2e8dff1ce869b78d5b6fda56f86bb05

Commit: 0e7897a9a2e8dff1ce869b78d5b6fda56f86bb05

Tree: ee37a14f5b1d6a7a06eb5860d87d3eda9403035d

Author: Evan Haas

Committer: Veikka Tuominen

## Message

```
translate-c: Remove usage of `extern enum`

Translate enum types as the underlying integer type. Translate enum constants
as top-level integer constants of the correct type (which does not necessarily
match the enum integer type).

If an enum constant's type cannot be translated for some reason, omit it.

See discussion https://github.com/ziglang/zig/issues/2115#issuecomment-827968279

Fixes #9153

```

## Parents

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

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