# translate-c: correct translation of global variables · gitcafe/zig

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

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

Visibility: public

Requested revision: adc5bce5e8487cf9507ab5dd2b1b60dd7f54cc3d

Requested commit: adc5bce5e8487cf9507ab5dd2b1b60dd7f54cc3d

Commit: adc5bce5e8487cf9507ab5dd2b1b60dd7f54cc3d

Tree: 542edd9771b0a550642497108ab75fbc779f71db

Author: Vexu

Committer: Vexu

## Message

```
translate-c: correct translation of global variables

* externs with intializers are translated as exports
* non extern without explicit initialization are zero initalized

```

## Parents

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

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