diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 160a67b9675..130fe41b5c1 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -32,6 +32,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript); #define EXPR_NEWREF 0x0002 #define EXPR_STRREF 0x0004 +struct _return_type_t { + enum{ + RT_NORMAL, + RT_RETURN, + RT_BREAK, + RT_CONTINUE + } type; + jsexcept_t ei; +}; + static inline HRESULT stat_eval(script_ctx_t *ctx, statement_t *stat, return_type_t *rt, VARIANT *ret) { return stat->eval(ctx, stat, rt, ret); diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h index 306e962daac..9b2e2b51077 100644 --- a/dlls/jscript/engine.h +++ b/dlls/jscript/engine.h @@ -156,15 +156,7 @@ typedef struct _variable_declaration_t { struct _variable_declaration_t *next; } variable_declaration_t; -typedef struct { - enum{ - RT_NORMAL, - RT_RETURN, - RT_BREAK, - RT_CONTINUE - } type; - jsexcept_t ei; -} return_type_t; +typedef struct _return_type_t return_type_t; typedef HRESULT (*statement_eval_t)(script_ctx_t*,statement_t*,return_type_t*,VARIANT*);