summaryrefslogtreecommitdiff
path: root/lib9p/9p.gen
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-07 15:29:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-07 15:29:21 -0600
commit28486154a1b3763992548bc085070f3f09e4bf09 (patch)
treeebbe770c7dea2044e9db91275b316b10957716c6 /lib9p/9p.gen
parentb160e07ac1cb13bef89c248c555a00287c7574b9 (diff)
lib9p: add DM_PERM, more newlines in bitfield headers
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: