From 296939bb656892ab7c7aff83226abf61dfb8e981 Mon Sep 17 00:00:00 2001 From: reugenio Date: Tue, 9 Dec 2025 23:01:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20FIX:=20Compatibilidad=20Zig=200.?= =?UTF-8?q?15.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build.zig.zon: .name = .zcatgui (enum literal, no string) - examples/widgets_demo.zig: A帽adido try en Context.init - examples/table_demo.zig: A帽adido try en Context.init - ZIG_VERSION_NOTES.md: Referencia a sistema notas versiones 馃 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- ZIG_VERSION_NOTES.md | 38 ++++++++++++++++++++++++++++++++++++++ build.zig.zon | 2 +- examples/table_demo.zig | 2 +- examples/widgets_demo.zig | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 ZIG_VERSION_NOTES.md diff --git a/ZIG_VERSION_NOTES.md b/ZIG_VERSION_NOTES.md new file mode 100644 index 0000000..837a869 --- /dev/null +++ b/ZIG_VERSION_NOTES.md @@ -0,0 +1,38 @@ +# Notas de Versi贸n Zig + +## Versi贸n actual: Zig 0.15.2 + +Este proyecto est谩 compilado con **Zig 0.15.2**. + +## Sistema de notas compartido + +El equipo mantiene documentaci贸n centralizada sobre cambios entre versiones de Zig en: + +``` +/mnt/cello2/arno/re/recode/TEAM_STANDARDS/ZIG_VERSIONS/ +``` + +### Archivos disponibles: +- `README.md` - Explicaci贸n del sistema +- `ZIG_0.15.2.md` - Cambios espec铆ficos de Zig 0.15.2 vs versiones anteriores + +## Para Claude/IA + +**Al inicio de cada conversaci贸n sobre este proyecto:** + +1. Leer este archivo +2. Leer `/mnt/cello2/arno/re/recode/TEAM_STANDARDS/ZIG_VERSIONS/ZIG_0.15.2.md` +3. Aplicar las diferencias documentadas (tu entrenamiento fue con Zig 0.14) + +## Por qu茅 existe esto + +Los modelos de lenguaje fueron entrenados con versiones anteriores de Zig. Cada versi贸n nueva trae cambios de sintaxis y API. Este sistema asegura que cualquier conversaci贸n tenga acceso a las diferencias relevantes. + +## Contribuir + +Si durante el trabajo descubres un cambio no documentado entre versiones: +1. A帽谩delo a `TEAM_STANDARDS/ZIG_VERSIONS/ZIG_X.Y.Z.md` +2. Incluye ejemplo de c贸digo antes/despu茅s + +--- +*脷ltima actualizaci贸n: 2025-12-09* diff --git a/build.zig.zon b/build.zig.zon index 772fe0e..a358aa2 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .fingerprint = 0x30a5cd33d0b0066c, - .name = "zcatgui", + .name = .zcatgui, .version = "0.1.0", .minimum_zig_version = "0.15.0", diff --git a/examples/table_demo.zig b/examples/table_demo.zig index 730c1a7..77955ba 100644 --- a/examples/table_demo.zig +++ b/examples/table_demo.zig @@ -96,7 +96,7 @@ pub fn main() !void { var renderer = SoftwareRenderer.init(&fb); // Create context - var ctx = Context.init(allocator, 1024, 768); + var ctx = try Context.init(allocator, 1024, 768); defer ctx.deinit(); // Widget state diff --git a/examples/widgets_demo.zig b/examples/widgets_demo.zig index b1afe19..b1f7b26 100644 --- a/examples/widgets_demo.zig +++ b/examples/widgets_demo.zig @@ -30,7 +30,7 @@ pub fn main() !void { defer _ = gpa.deinit(); const allocator = gpa.allocator(); - var ctx = Context.init(allocator, 800, 600); + var ctx = try Context.init(allocator, 800, 600); defer ctx.deinit(); // Widget state