summaryrefslogtreecommitdiff
path: root/lib9p/9p.gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/9p.gen')
-rwxr-xr-xlib9p/9p.gen5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib9p/9p.gen b/lib9p/9p.gen
index 4a8e4d1..4dff97d 100755
--- a/lib9p/9p.gen
+++ b/lib9p/9p.gen
@@ -401,11 +401,16 @@ enum {idprefix}version {{
ret += f"typedef uint{bf.static_size*8}_t {c_typename(idprefix, bf)};\n"
names = [
*reversed([bf.bits[n] or f"_UNUSED_{n}" for n in range(0, len(bf.bits))]),
+ "",
*[k for k in bf.names if k not in bf.bits],
]
namewidth = max(len(name) for name in names)
+ ret += "\n"
for name in names:
+ if name == "":
+ ret += "\n"
+ continue
if name.startswith("_"):
cname = f"_{idprefix.upper()}{bf.name.upper()}_{name[1:]}"
else: