# translate-c: better mangling strategy · gitcafe/zig

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

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

Visibility: public

Requested revision: 42945a269ad5d746eed1acb20696723d18ec8653

Requested commit: 42945a269ad5d746eed1acb20696723d18ec8653

Commit: 42945a269ad5d746eed1acb20696723d18ec8653

Tree: 5f243d0d9ecf6330f6bbca0872f6fa37f8ff6176

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
translate-c: better mangling strategy

Block-local identifiers have block-local mangling numbers, and more
consistent mangling is applied within blocks. Parameters, for example,
are treated the same as other block-local variables, and are not mangled
unless they conflict with another name in scope.

```

## Parents

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

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