Skip to content

fix: Recognize __uint128_t in the C lexer and parser.#1

Merged
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:uint128-parser
May 20, 2026
Merged

fix: Recognize __uint128_t in the C lexer and parser.#1
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:uint128-parser

Conversation

@iphydf
Copy link
Copy Markdown
Member

@iphydf iphydf commented May 16, 2026

The signed __int128_t was already handled, but the unsigned __uint128_t keyword was missing, so buildlib failed to parse system headers that use it (e.g. aarch64-linux-musl bits/signal.h, used transitively via aio.h).

The uint128_type it maps to already exists in absyn — only the lexer keyword and the grammar token + rule were missing.

This unblocks cross-compiling the Cyclone libc bindings for arm64.


This change is Reviewable

@iphydf iphydf added this to the master milestone May 16, 2026
The signed __int128_t was already handled, but the unsigned __uint128_t
keyword was missing, so buildlib failed to parse system headers that use
it (e.g. aarch64-linux-musl bits/signal.h). The uint128_type it maps to
already exists in absyn.
@iphydf iphydf merged commit c19c449 into TokTok:master May 20, 2026
3 of 4 checks passed
@iphydf iphydf deleted the uint128-parser branch May 20, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant