# stage2: add new Decl subtype, ExternFn · gitcafe/zig

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

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

Visibility: public

Requested revision: 556f0ce5bfb962764bb68d9d9c16765cf9e1b9ba

Requested commit: 556f0ce5bfb962764bb68d9d9c16765cf9e1b9ba

Commit: 556f0ce5bfb962764bb68d9d9c16765cf9e1b9ba

Tree: e3ddbc2240c99a089906a10c4c40dcc83a883f17

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
stage2: add new Decl subtype, ExternFn

`ExternFn` will contain a maybe-lib-name if it was defined with
the `extern` keyword like so

```zig
extern "c" fn write(usize, usize, usize) usize;
```

`lib_name` will live as long as `ExternFn` decl does.

````

## Parents

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

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