From e236836a97cea92ec463ce60cd45ca50856ce56d Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Fri, 20 Sep 2024 16:07:20 -0600 Subject: reorganize files --- net9p_defs.gen | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net9p_defs.gen') 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)) -- cgit v1.2.3-2-g168b