diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-29 22:25:02 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-06 23:01:30 -0600 |
commit | 945756b1b050bdf09d1119854cc5b22ad15efacd (patch) | |
tree | 8223c149ea0ff2863ffd2e1a90c2ebdfe8eb8b4b /lib9p/core_gen/c.py | |
parent | 8a9fc1704dcf3ec117a3bf37fd70a44a43873659 (diff) |
lib9p_core: Switch to use error.h
Diffstat (limited to 'lib9p/core_gen/c.py')
-rw-r--r-- | lib9p/core_gen/c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/core_gen/c.py b/lib9p/core_gen/c.py index 0947ec2..ab34387 100644 --- a/lib9p/core_gen/c.py +++ b/lib9p/core_gen/c.py @@ -175,7 +175,7 @@ def gen_c(versions: set[str], typs: list[idl.UserType]) -> str: ret += f""" {cutil.ifdef_push(1, c9util.ver_ifdef(next(typ for typ in typs if typ.typname == 'stat').in_versions)).rstrip()} -LM_FLATTEN ssize_t {c9util.ident('_stat_validate')}(struct lib9p_ctx *ctx, uint32_t net_size, uint8_t *net_bytes, uint32_t *ret_net_size) {{ +LM_FLATTEN size_t_or_error {c9util.ident('_stat_validate')}(struct lib9p_ctx *ctx, uint32_t net_size, uint8_t *net_bytes, uint32_t *ret_net_size) {{ \treturn validate_stat(ctx, net_size, net_bytes, ret_net_size); }} LM_FLATTEN void {c9util.ident('_stat_unmarshal')}(struct lib9p_ctx *ctx, uint8_t *net_bytes, void *out) {{ |