summaryrefslogtreecommitdiff
path: root/lib9p/core_gen/h.py
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-21 16:54:18 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-21 16:54:18 -0600
commit05f170fc9382dc619a6a3f7ea22c423456a96580 (patch)
tree8f694f207c92c2d56645c898fc79197200b89138 /lib9p/core_gen/h.py
parentb64e86dc24b7b976d1af14280d740c4d278f575c (diff)
lib9p_core: Rename the "unknown" version to "uninitialized"
Diffstat (limited to 'lib9p/core_gen/h.py')
-rw-r--r--lib9p/core_gen/h.py8
1 files changed, 4 insertions, 4 deletions
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: