henesy / henesy/kencc-errors

Array declared and set in header

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
(1053) DATA opdict+96(SB)/8,$.string<2>+48(SB)
getpid: multiple initialization
```

> #include
> #include
>
> enum {
> Add,
> Sub,
> };
>
> typedef struct Dict Dict;
> struct Dict {
> Rune* key;
> int id;
> };
>
> Dict opdict[] = {
> L"+", Add,
> L"-", Sub,
> nil, -1
> };
>
> void
> main(int, char*[])
> {
> print("zero ⇒ %S\n", opdict[0].key);
>
> exits(nil);
> }

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.