diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-20 16:07:20 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-20 16:07:47 -0600 |
commit | e236836a97cea92ec463ce60cd45ca50856ce56d (patch) | |
tree | b7699e2b7306264c571f8feeb753c5920a6e4f0e /net9p_defs.gen | |
parent | 409242d2ee048fa6a5be4d893cce9a58d7fd73cb (diff) |
reorganize files
Diffstat (limited to 'net9p_defs.gen')
-rwxr-xr-x | net9p_defs.gen | 6 |
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)) |