Remove unnecessary forward reference for OpCodeEnum
This commit is contained in:
parent
a28c53cd38
commit
5f6ec19013
1 changed files with 2 additions and 4 deletions
|
@ -209,8 +209,6 @@ typedef enum {
|
||||||
JS_GC_PHASE_REMOVE_CYCLES,
|
JS_GC_PHASE_REMOVE_CYCLES,
|
||||||
} JSGCPhaseEnum;
|
} JSGCPhaseEnum;
|
||||||
|
|
||||||
__extension__ typedef enum OPCodeEnum OPCodeEnum;
|
|
||||||
|
|
||||||
struct JSRuntime {
|
struct JSRuntime {
|
||||||
JSMallocFunctions mf;
|
JSMallocFunctions mf;
|
||||||
JSMallocState malloc_state;
|
JSMallocState malloc_state;
|
||||||
|
@ -990,7 +988,7 @@ typedef enum OPCodeFormat {
|
||||||
#undef FMT
|
#undef FMT
|
||||||
} OPCodeFormat;
|
} OPCodeFormat;
|
||||||
|
|
||||||
enum OPCodeEnum {
|
typedef enum OPCodeEnum {
|
||||||
#define FMT(f)
|
#define FMT(f)
|
||||||
#define DEF(id, size, n_pop, n_push, f) OP_ ## id,
|
#define DEF(id, size, n_pop, n_push, f) OP_ ## id,
|
||||||
#define def(id, size, n_pop, n_push, f)
|
#define def(id, size, n_pop, n_push, f)
|
||||||
|
@ -1010,7 +1008,7 @@ enum OPCodeEnum {
|
||||||
#undef DEF
|
#undef DEF
|
||||||
#undef FMT
|
#undef FMT
|
||||||
OP_TEMP_END,
|
OP_TEMP_END,
|
||||||
};
|
} OPCodeEnum;
|
||||||
|
|
||||||
static int JS_InitAtoms(JSRuntime *rt);
|
static int JS_InitAtoms(JSRuntime *rt);
|
||||||
static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,
|
static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,
|
||||||
|
|
Loading…
Reference in a new issue