summaryrefslogtreecommitdiff
path: root/net9p_defs.gen
diff options
context:
space:
mode:
Diffstat (limited to 'net9p_defs.gen')
-rwxr-xr-xnet9p_defs.gen6
1 files changed, 4 insertions, 2 deletions
diff --git a/net9p_defs.gen b/net9p_defs.gen
index 9582923..dcfb33b 100755
--- a/net9p_defs.gen
+++ b/net9p_defs.gen
@@ -361,5 +361,7 @@ static inline void unmarshal_8(uint32_t net_len, uint8_t *net_bytes UNUSED, uint
if __name__ == "__main__":
structs, msgs = parse_file("net9p_defs.txt")
- #print(gen_h(structs, msgs))
- print(gen_c(structs, msgs))
+ with open('net9p_defs.h', 'w') as fh:
+ fh.write(gen_h(structs, msgs))
+ with open('net9p_defs.c', 'w') as fh:
+ fh.write(gen_c(structs, msgs))