From 5f6ec190137c2c4ad0f5345e491da3bc6c9d467f Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 23 Jun 2024 19:01:59 +0300 Subject: [PATCH] Remove unnecessary forward reference for OpCodeEnum --- quickjs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/quickjs.c b/quickjs.c index 52abc9e..9f5b83c 100644 --- a/quickjs.c +++ b/quickjs.c @@ -209,8 +209,6 @@ typedef enum { JS_GC_PHASE_REMOVE_CYCLES, } JSGCPhaseEnum; -__extension__ typedef enum OPCodeEnum OPCodeEnum; - struct JSRuntime { JSMallocFunctions mf; JSMallocState malloc_state; @@ -990,7 +988,7 @@ typedef enum OPCodeFormat { #undef FMT } OPCodeFormat; -enum OPCodeEnum { +typedef enum OPCodeEnum { #define FMT(f) #define DEF(id, size, n_pop, n_push, f) OP_ ## id, #define def(id, size, n_pop, n_push, f) @@ -1010,7 +1008,7 @@ enum OPCodeEnum { #undef DEF #undef FMT OP_TEMP_END, -}; +} OPCodeEnum; static int JS_InitAtoms(JSRuntime *rt); static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,