From e75d6f6b8f4512a5bbfecbfa8c17f0bb687e3d55 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 24 Dec 2024 21:11:06 -0800 Subject: first commit --- src/opcodes.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/opcodes.c (limited to 'src/opcodes.c') diff --git a/src/opcodes.c b/src/opcodes.c new file mode 100644 index 0000000..66742db --- /dev/null +++ b/src/opcodes.c @@ -0,0 +1,26 @@ +#include +#include +#include + + +void die_lz(int code, const char *msg) { + if (code < 0) { + die(msg); + } +} + +char *decode_client_opcode(int op) { + return "implement me"; +} + +char *decode_server_opcode(int op) { + return "implement me"; +} + +int encode_client_opcode(char *c) { + return -1; +} + +int encode_server_opcode(char *c) { + return -1; +} -- cgit