diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-21 16:54:18 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-21 16:54:18 -0600 |
commit | 05f170fc9382dc619a6a3f7ea22c423456a96580 (patch) | |
tree | 8f694f207c92c2d56645c898fc79197200b89138 /lib9p/core_gen/c.py | |
parent | b64e86dc24b7b976d1af14280d740c4d278f575c (diff) |
lib9p_core: Rename the "unknown" version to "uninitialized"
Diffstat (limited to 'lib9p/core_gen/c.py')
-rw-r--r-- | lib9p/core_gen/c.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/core_gen/c.py b/lib9p/core_gen/c.py index a300404..998031b 100644 --- a/lib9p/core_gen/c.py +++ b/lib9p/core_gen/c.py @@ -79,9 +79,9 @@ def gen_c(versions: set[str], typs: list[idl.UserType]) -> str: if not isinstance(typ, idl.Bitfield): continue ret += "\n" - ret += cutil.ifdef_push( - 1, c9util.ver_ifdef(typ.in_versions - {"unknown"}) - ) # SPECIAL (initialization) + ret += cutil.ifdef_push( # SPECIAL (initialization) + 1, c9util.ver_ifdef(typ.in_versions - {"uninitialized"}) + ) ret += f"static const {c9util.typename(typ)} {typ.typname}_masks[{c9util.ver_enum('NUM')}] = {{\n" verwidth = max(len(ver) for ver in versions) for ver in sorted(versions): |