diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-28 11:31:26 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-29 18:25:49 -0600 |
commit | 9096e2d9cb6f438e49aa29aa2cfaef1717466a05 (patch) | |
tree | 3ecce9bac17d3a4b89b11f1df281c0587d4443d4 /lib9p/protogen/c.py | |
parent | fc462d13cb2f49b4c4745742dfaed994596a54b8 (diff) |
lib9p: idl: Rework bitfields, allow full exprs more places
Diffstat (limited to 'lib9p/protogen/c.py')
-rw-r--r-- | lib9p/protogen/c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/protogen/c.py b/lib9p/protogen/c.py index 5e67939..cc1daea 100644 --- a/lib9p/protogen/c.py +++ b/lib9p/protogen/c.py @@ -118,7 +118,7 @@ const char *const {c9util.ident('_table_ver_name')}[{c9util.ver_enum('NUM')}] = + "".join( ( "1" - if bit.cat in (idl.BitCat.USED, idl.BitCat.SUBFIELD) + if (bit.cat == "USED" or isinstance(bit.cat, idl.BitNum)) and ver in bit.in_versions else "0" ) |