diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-18 10:53:12 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-07 22:45:26 -0600 |
commit | 85a4545c213f1643d3b7a6dd83235b5559733023 (patch) | |
tree | c379bb04d1636ab2c802c464fb800785ceac211c /lib9p/core_gen/c9util.py | |
parent | 53d0b11262177cd212803fc9330e055871c348b3 (diff) |
wip: lib9p: Multi-iovec replieslukeshu/9p-read-multi-iovec
Diffstat (limited to 'lib9p/core_gen/c9util.py')
-rw-r--r-- | lib9p/core_gen/c9util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib9p/core_gen/c9util.py b/lib9p/core_gen/c9util.py index 84fdee4..a304ff4 100644 --- a/lib9p/core_gen/c9util.py +++ b/lib9p/core_gen/c9util.py @@ -91,6 +91,8 @@ def typename(typ: idl.Type, parent: idl.StructMember | None = None) -> str: match typ: case idl.Primitive(): if typ.value == 1 and parent and parent.cnt: # SPECIAL (string) + if parent.membname == "data": # SPECIAL (iovec) + return f"struct {ident('_iovec')}" return "[[gnu::nonstring]] char" return f"uint{typ.value*8}_t" case idl.Number(): |