Zigify the Zig code#217
Conversation
|
Also added some agent instructions to improve things for the future. |
|
Great. To me it looks very nice and we can merge it when you want. Issues1.
|
|
It is helpful, will take care of them tomorrow. I will just merge after the fixes are applied and CI passes. |
Great. btw, Github actions had problems all day and the CI is red for the last few commits already. |
…rgonomics These methods: - Adapt the API to be return value oriented rather that out-pointer oriented - Report errors the Zig way
Meaning: - Avoid out-pointers, prefer return values - Distinguish between optional and errors - Propagate and log/handle errors - Use try/catch and error unions, no C error values
|
Merging this although the melpazoid job is still failing. I'm assuming it's due to the issues that you described, which makes sense because the failing command is the package installation, not any test or build. |
This PR adds some light wrappers around the libghostty-vt C API to make it play better with Zig:
This also has the effect that errors are actually propagated all the way and signaled to Emacs so they don't go unnoticed. When built in debug mode, there will also be a stack trace printed to Warnings.