From ecadcb5e36ba522f4b85582b59c95bb06f3f49fb Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 20 Jun 2024 02:24:23 +0100 Subject: [PATCH] Remove an include and define BYTE_SIZE --- lib/base.h | 1 + lib/inst.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.h b/lib/base.h index 1c05a7d..3a396a6 100644 --- a/lib/base.h +++ b/lib/base.h @@ -54,6 +54,7 @@ typedef u64 word_t; typedef i64 sword_t; /* Macros for the sizes of common base data types. */ +#define BYTE_SIZE 1 #define SHORT_SIZE sizeof(short_t) #define HWORD_SIZE sizeof(hword_t) #define WORD_SIZE sizeof(word_t) diff --git a/lib/inst.c b/lib/inst.c index b3e4772..bf7a635 100644 --- a/lib/inst.c +++ b/lib/inst.c @@ -16,7 +16,6 @@ #include #include #include -#include const char *opcode_as_cstr(opcode_t code) {