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
0e7897a9a2Evan Haas committed on 6/23/2021, 5:44:25 AM· committed by Veikka Tuominenparentd1f99ea
8 files changedLine totals unavailable