# InternPool: implement getStructType · gitcafe/zig

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

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

Visibility: public

Requested revision: fa1beba74fe2c5104bea16a90daa314ba713f287

Requested commit: fa1beba74fe2c5104bea16a90daa314ba713f287

Commit: fa1beba74fe2c5104bea16a90daa314ba713f287

Tree: dadbd1d18e0940edcad6dc3d6d066e6a7de18d68

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
InternPool: implement getStructType

This also modifies AstGen so that struct types use 1 bit each from the
flags to communicate if there are nonzero inits, alignments, or comptime
fields. This allows adding a struct type to the InternPool without
looking ahead in memory to find out the answers to these questions,
which is easier for CPUs as well as for me, coding this logic right now.

```

## Parents

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

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