Commit 6ffe4cb5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Moved return_type_t declaration to engine.c.

parent 4b6ad8c2
......@@ -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);
......
......@@ -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*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment