# translate-c: avoid global state and introduce var decl scopes · gitcafe/zig

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

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

Visibility: public

Requested revision: 687e3592919940bc3c77a22adbee065fb5c1bc7e

Requested commit: 687e3592919940bc3c77a22adbee065fb5c1bc7e

Commit: 687e3592919940bc3c77a22adbee065fb5c1bc7e

Tree: b56205e2196c633fffe4722f549adc4d7cfc5b62

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
translate-c: avoid global state and introduce var decl scopes

in preparation to implement switch and solve variable name collisions

```

## Parents

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

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