Module: wine Branch: master Commit: 501cad6920e7e4bcb1edc73803b4b0dd09caa0e8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=501cad6920e7e4bcb1edc73803...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Dec 28 15:05:36 2010 +0100
jscript: Moved new_boolean_literal to lex.c.
---
dlls/jscript/engine.h | 1 + dlls/jscript/lex.c | 10 ++++++++++ dlls/jscript/parser.y | 11 ----------- 3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h index d5e2d33..2800c86 100644 --- a/dlls/jscript/engine.h +++ b/dlls/jscript/engine.h @@ -147,6 +147,7 @@ typedef struct { } literal_t;
literal_t *parse_regexp(parser_ctx_t*); +literal_t *new_boolean_literal(parser_ctx_t*,VARIANT_BOOL);
typedef struct _variable_declaration_t { const WCHAR *identifier; diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c index 88fed07..5ac92d9 100644 --- a/dlls/jscript/lex.c +++ b/dlls/jscript/lex.c @@ -374,6 +374,16 @@ static literal_t *alloc_int_literal(parser_ctx_t *ctx, LONG l) return ret; }
+literal_t *new_boolean_literal(parser_ctx_t *ctx, VARIANT_BOOL bval) +{ + literal_t *ret = parser_alloc(ctx, sizeof(literal_t)); + + ret->type = LT_BOOL; + ret->u.bval = bval; + + return ret; +} + static int parse_double_literal(parser_ctx_t *ctx, LONG int_part, literal_t **literal) { LONGLONG d, hlp; diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y index df7a070..dbbd682 100644 --- a/dlls/jscript/parser.y +++ b/dlls/jscript/parser.y @@ -38,7 +38,6 @@ typedef struct _statement_list_t {
static literal_t *new_string_literal(parser_ctx_t*,const WCHAR*); static literal_t *new_null_literal(parser_ctx_t*); -static literal_t *new_boolean_literal(parser_ctx_t*,VARIANT_BOOL);
typedef struct _property_list_t { prop_val_t *head; @@ -855,16 +854,6 @@ static literal_t *new_null_literal(parser_ctx_t *ctx) return ret; }
-static literal_t *new_boolean_literal(parser_ctx_t *ctx, VARIANT_BOOL bval) -{ - literal_t *ret = parser_alloc(ctx, sizeof(literal_t)); - - ret->type = LT_BOOL; - ret->u.bval = bval; - - return ret; -} - static prop_val_t *new_prop_val(parser_ctx_t *ctx, literal_t *name, expression_t *value) { prop_val_t *ret = parser_alloc(ctx, sizeof(prop_val_t));