# refactored gen_h_file to improve maintainability and output · gitcafe/zig

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

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

Visibility: public

Requested revision: 104b6f16297812b1578262a5b5b4a091a6fc480d

Requested commit: 104b6f16297812b1578262a5b5b4a091a6fc480d

Commit: 104b6f16297812b1578262a5b5b4a091a6fc480d

Tree: 415fbda958356c99758bfdec2c5aa4dafef076c0

Author: Sahnvour

Committer: Sahnvour

## Message

```
refactored gen_h_file to improve maintainability and output

- extracted functions
- factorised extern "C" into a block containing all function prototypes instead of writing macros all over the place
- using intermediate buffers instead of writing directly to the output file

```

## Parents

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

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