summaryrefslogtreecommitdiff
path: root/net9p_defs.gen
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-20 16:07:20 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-20 16:07:47 -0600
commite236836a97cea92ec463ce60cd45ca50856ce56d (patch)
treeb7699e2b7306264c571f8feeb753c5920a6e4f0e /net9p_defs.gen
parent409242d2ee048fa6a5be4d893cce9a58d7fd73cb (diff)
reorganize files
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))