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 : static API creating notification functions generated by tecsgen cannot be converted mechanically #1

Open
hiroakitakada opened this issue Aug 15, 2020 · 0 comments
Assignees
Labels
limitation Something cannot be used. waiting Waiting for bug fix or enhancement of Zig

Comments

@hiroakitakada
Copy link
Member

tecsgenが生成するコンフィギュレーションファイル(tecsgen.cfg)を,cfg/genTecsCfg.rbによりZigによる記述に変換しているが,周期通知とアラーム通知を生成するための記述の変換に2つの制限がある。

  • 拡張情報に渡すポインタを,Zigの不具合回避のためにimportSymbolを使って取り込む必要があるが,そのための記述を機械的な変換では生成できない。

  • タイムイベントハンドラへのポインタを,Zigの不具合回避のために&を外して取り込む必要があるが,そのための記述を機械的な変換では生成できない。tecsgenのプラグインを変更して回避する方法はある。

そのため,tSample2は,そのままでは動作しない。動作させるためには,genに生成されるtecsgen_cfg.zigを,tecsgen_cfg.zig.gzを展開したものに置き換える必要がある。

@hiroakitakada hiroakitakada self-assigned this Aug 15, 2020
@hiroakitakada hiroakitakada added limitation Something cannot be used. waiting Waiting for bug fix or enhancement of Zig labels Aug 16, 2020
@hiroakitakada hiroakitakada changed the title tecsgenが生成するコンフィギュレーションファイル中の通知機能の生成記述が機械的に変換できない Waiting for the fix of Zig : static API creating notification functions generated by tecsgen cannot be converted mechanically Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
limitation Something cannot be used. waiting Waiting for bug fix or enhancement of Zig
Projects
None yet
Development

No branches or pull requests

1 participant