Remove unnecessary forward reference for OpCodeEnum

This commit is contained in:
Andrew Johnson 2024-06-23 19:01:59 +03:00
parent a28c53cd38
commit 5f6ec19013

View file

@ -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,