jscript: Moved new_boolean_literal to lex.c.
This commit is contained in:
parent
0f36ef09b1
commit
501cad6920
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue