jscript: Moved return_type_t declaration to engine.c.

This commit is contained in:
Jacek Caban 2011-10-25 11:56:36 +02:00 committed by Alexandre Julliard
parent 4b6ad8c219
commit 6ffe4cb59f
2 changed files with 11 additions and 9 deletions

View File

@ -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);

View File

@ -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*);