Refactor term functions and update for Zig 0.17#3
Conversation
使用简单的方式重构这两个函数让构建程序能够顺利运行
cers000
left a comment
There was a problem hiding this comment.
我仔细看了这些代码,没有问题,在Windows 10 64bit,zig 0.17.0-dev.657+2faf8debf,可以正常构建,生成了正常的.\zig-out\bin\mqjs.exe程序,并正常运行
|
Zig 0.17 is the master branch. It is unstable and constantly changing. So I'm not targeting it. |
|
Andrew Kelley自己说的几周内就会发布zig0.17,目前这个库仍有需要完善的地方,尤其是readline_tty.zig似乎可以摆脱c头文件引入,等这些完善了,zig0.17就已经发布了,正好可以承载新版本带了的构建速度优势。 Build System Reworked
|
|
Ok. Well I'm not going to merge this until 0.17 is released, but I guess I'll reopen the pull request until then |
主要是@cImport被移除了,通过addTranslateC自动转义生成的translate_c.zig并不好用,很多翻译的zig代码有问题,比如
这些代码在zig build的compile阶段过不了编译器,因为error: comptime call of extern function