# Mangle field names with a local counter in records · gitcafe/zig

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

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

Visibility: public

Requested revision: 83d2d7ab8afed6d24238dbb2696fb5bc35cdb05d

Requested commit: 83d2d7ab8afed6d24238dbb2696fb5bc35cdb05d

Commit: 83d2d7ab8afed6d24238dbb2696fb5bc35cdb05d

Tree: 2897cb95bbd65f5fa091fbbd84515ff7ad988754

Author: Tadeo Kondrak

Committer: Tadeo Kondrak

## Message

```
Mangle field names with a local counter in records

See https://github.com/ifreund/river/issues/17 for an issue that occurs
because the field names are mangled globally. When using the generated
bindings, you have no choice but to use the unstable names or redeclare
the entire struct. This commit changes the behaviour to use a local
counter per record declaration, so the names are predictable each time.

```

## Parents

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

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