summaryrefslogtreecommitdiff
path: root/lib9p/core_gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/core_gen')
-rw-r--r--lib9p/core_gen/c.py6
-rw-r--r--lib9p/core_gen/h.py8
2 files changed, 7 insertions, 7 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):
diff --git a/lib9p/core_gen/h.py b/lib9p/core_gen/h.py
index ff070c6..3c857c1 100644
--- a/lib9p/core_gen/h.py
+++ b/lib9p/core_gen/h.py
@@ -201,10 +201,10 @@ def gen_h(versions: set[str], typs: list[idl.UserType]) -> str:
enum {c9util.ident('version')} {{
"""
- xversions = [
- "unknown = 0",
- *sorted(v for v in versions if v != "unknown"),
- ] # SPECIAL (initialization)
+ xversions = [ # SPECIAL (initialization)
+ "uninitialized = 0",
+ *sorted(v for v in versions if v != "uninitialized"),
+ ]
verwidth = max(len(v) for v in xversions)
for ver in xversions:
if ver in versions: