Huang Zhaobin

Results comments of Huang Zhaobin

Hi, I just posted 2 issues #295 #294 to ask for _Defer and _Countof supports, and it seems you have already supported _Countof. Thank you for your effort! For your...

> Hey! Perhaps _Countof should not be a part of this PR at all? With a separate PR for C2Y support with _Defer, _Countof? Yes I think so.

> Note that, flexible array member are already implemented > > http://cakecc.org/playground.html?code=CiNpbmNsdWRlIDxzdGRpby5oPgojaW5jbHVkZSA8c3RkbGliLmg%2BCgpzdHJ1Y3QgWCB7CiAgICBpbnQgY291bnQ7CiAgICBkb3VibGUgdmFsdWVzW107IC8vIGZsZXhpYmxlIGFycmF5Cn07CgovKgogICAgVGhlIHNpemUgb2YgYSBzdHJ1Y3R1cmUgd2l0aCBhIGZsZXhpYmxlIGFycmF5IG1lbWJlciBpcwogICAgZGV0ZXJtaW5lZCBhcyBpZiB0aGUgZmxleGlibGUgYXJyYXkgbWVtYmVyIHdlcmUgb21pdHRlZCwKICAgIEVYQ0VQVCB0aGF0IGl0IG1heSBoYXZlIG1vcmUgdHJhaWxpbmcgcGFkZGluZyB0aGFuIHRoZQogICAgb21pc3Npb24gd291bGQgaW1wbHkKKi8KCmludCBtYWluKCkgewoKICAgIGludCBuID0gMzsKCiAgICBwcmludGYoInNpemVvZihzdHJ1Y3QgWCkgPSAlZFxcbiIsIChpbnQpIHNpemVvZihzdHJ1Y3QgWCkpOwogICAgcHJpbnRmKCJhbGxvY2F0ZWQgPSAlZFxcbiIsIChpbnQpIHNpemVvZihzdHJ1Y3QgWCkgKyBuICogc2l6ZW9mKGRvdWJsZSkpOwoKICAgIHN0cnVjdCBYKiBwID0gbWFsbG9jKHNpemVvZihzdHJ1Y3QgWCkgKyBuICogc2l6ZW9mKGRvdWJsZSkpOwogICAgaWYgKHAgPT0gTlVMTCkgcmV0dXJuIDA7CgogICAgcC0%2BY291bnQgPSBuOwogICAgcC0%2BdmFsdWVzWzBdID0gMTAuMDsKICAgIHAtPnZhbHVlc1sxXSA9IDIwLjA7CiAgICBwLT52YWx1ZXNbMl0gPSAzMC4wOwoKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgcC0%2BY291bnQ7ICsraSkKICAgICAgICBwcmludGYoIiVmXFxuIiwgcC0%2BdmFsdWVzW2ldKTsKCiAgICBmcmVlKHApOwoKICAgIHJldHVybiAwOwp9Cgo%3D&to=-2&options= This works, but it's not perfect/equivalent. For example, `sizeof(struct X)` changes after the compilation. This may causes issues,...

> This was one of the reasons why cake don't have sizeof out its output. I don't see any problem at this moment. Cake output is fixed for one target/platform....

> VLA are implemented. (missing some details) But, C89 also makes easier to port the backbend to asm. So that means currently no plan for C99 support?

> We have supported LM Studio in our desktop app. Please refer to this guide: https://appflowy.com/guide/appFlowy-local-ai-lm-studio I don't think supporting LM Studio closes this issue. What we want is to...

@annieappflowy Could we please reopen this issue?

Another use case here, I've just implemented a clang plugin that provides custom attribute, but the clangd complains with "Unknown attribute".

我是有时候能连有时候报这个错误