# C backend: improved Decl name lowering · gitcafe/zig

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

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

Visibility: public

Requested revision: c41b989ab8c553bdba8e1aab606edbe27d730a3a

Requested commit: c41b989ab8c553bdba8e1aab606edbe27d730a3a

Commit: c41b989ab8c553bdba8e1aab606edbe27d730a3a

Tree: 574a7ced579139e4f9613f420224be18ead52370

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
C backend: improved Decl name lowering

Decl names are now rendered fully qualified, so that e.g. "main" in two
different files does not conflict with each other.

Additionally, they are now mangled so as to not generate invalid C
identifier names.

```

## Parents

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

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