zig-0.17 #1

Merged
peterino merged 2 commits from zig-0.17 into integration 2026-11-13 04:50:14 +00:00

2 Commits

Author SHA1 Message Date
Peterino2 fa4d485d29 Add bindings for SDL 3.4.2 through 3.4.20
castholm: v0.4.1+3.4.2, v0.4.2+3.4.4, v0.5.0+3.4.8, v0.5.1+3.4.10,
v0.5.2+3.4.12, v0.5.3+3.4.14, v0.5.4+3.4.16, v0.6.0+3.4.18,
v0.6.1+3.4.20

official: release-3.4.2, 3.4.4, 3.4.6, 3.4.8, 3.4.10, 3.4.12, 3.4.14,
3.4.16, 3.4.18, 3.4.20
2026-11-13 02:56:42 +00:00
Peterino2 de6fb1b466 Regenerate bindings for Zig 0.17 with fixed generator
Regenerates every existing release directory with the Zig 0.17 port of
sdlparser-scrap, including its codegen fixes:

- enums: all enumerators are present and numbered as in C (previously
  members written as `NAME = value,` without a comment were dropped,
  e.g. most of Scancode and PixelFormat); duplicate values are aliases
- flags: packed struct fields sit on the bit the header assigns (flags
  after a gap, such as SDL_WINDOW_VULKAN, were on the wrong bit)
- structs: fields followed by a multi-line comment are no longer dropped
  (VirtualJoystickDesc, HapticPeriodic had wrong layouts)
- wrappers: casts follow how each type is declared, so the inline
  functions type-check against the translated C API
- uses @backingInt/@fromBackingInt and callconv(.c)
- new modules: guid, pen, iostream, keyboard, scancode, power, process,
  opengl, tray plus the c.zig/stdinc.zig bridge files
- castholm v0.1.0 (SDL 3.1.6) now generates; stale debug output removed

Verified per release on Linux against that release's headers: wrapper
bodies compile, struct layouts and field offsets, enum values and flag
bits match C. Only Windows/GDK-only symbols are unavailable there.
2026-11-13 02:56:42 +00:00