# translate-c: use global scope for typedef/record/enum type translation if needed · gitcafe/zig

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

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

Visibility: public

Requested revision: 4074e79748ad9ecc39a4127cd1c28c115efff56a

Requested commit: 4074e79748ad9ecc39a4127cd1c28c115efff56a

Commit: 4074e79748ad9ecc39a4127cd1c28c115efff56a

Tree: 4cbf2a7ba6e12926aa9be0e16a2ff8819ee82bcc

Author: Veikka Tuominen

Committer: Veikka Tuominen

## Message

```
translate-c: use global scope for typedef/record/enum type translation if needed

If the type is a reference to a global declaration that has not yet
been translated we need to use the global scope for translation
so that other functions can also reference it.

```

## Parents

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

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