Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiting for the fix of Zig : zero length array should be allowed #9

Open
hiroakitakada opened this issue Aug 16, 2020 · 0 comments
Open
Assignees
Labels
waiting Waiting for bug fix or enhancement of Zig

Comments

@hiroakitakada
Copy link
Member

hiroakitakada commented Aug 16, 2020

Zigでは,サイズが0の配列は,定義できるがアクセスできないという制限(ziglang/zig#5515 )があるため,それを回避するコードにしている。例えば,以下のコード。

        // Zigの制限の回避:BIND_CFG != nullの場合に,サイズ0の配列が
        // 出ないようにする
        pub export var _kernel_semcb_table:
            [if (option.BIND_CFG == null or tnum_sem > 0) tnum_sem
                 else 1]SEMCB = undefined;
@hiroakitakada hiroakitakada self-assigned this Aug 16, 2020
@hiroakitakada hiroakitakada added the waiting Waiting for bug fix or enhancement of Zig label Aug 16, 2020
@hiroakitakada hiroakitakada changed the title Zigの制限の解除待ち:サイズが0の配列へのアクセスを許してほしい Waiting for the fix of Zig : zero length array should be allowed Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting for bug fix or enhancement of Zig
Projects
None yet
Development

No branches or pull requests

1 participant