Skip to content

ts_ffi: document the required layout of config.tags for ts_init - #392

Merged
danderson merged 2 commits into
mainfrom
push-rnlkmonwlqwo
Sep 2, 2026
Merged

danderson merged 2 commits into
mainfrom
push-rnlkmonwlqwo

Conversation

@danderson

Copy link
Copy Markdown
Member

The tags field is a simple nul-terminated array of strings, which would be familiar to any C developer. However, since ts_init already has a safety comment that explicitly spells out the invariants for other fields, also spell out what nul-terminated arrays look like.

Fixes #337

The tags field is a simple nul-terminated array of strings, which would be
familiar to any C developer. However, since `ts_init` already has a safety
comment that explicitly spells out the invariants for other fields, also
spell out what nul-terminated arrays look like.

Fixes #337

Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: I8cefdbc3e93b42b30d71ba8d338456846a6a6964
Signed-off-by: David Anderson <danderson@tailscale.com>
Change-Id: I3fe5645d5744853a0e0f1422d9cbc3556a6a6964
@danderson

Copy link
Copy Markdown
Member Author

nightly cargo fmt demanded a change to the formatting of a file in ts_peercapability. I threw that in as a separate commit.

@danderson
danderson merged commit 3c48610 into main Sep 2, 2026
28 of 29 checks passed
@danderson
danderson deleted the push-rnlkmonwlqwo branch September 2, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ts_ffi: unbounded sentinel array iteration

3 participants