Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
501cad69
Commit
501cad69
authored
Dec 28, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Moved new_boolean_literal to lex.c.
parent
0f36ef09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
engine.h
dlls/jscript/engine.h
+1
-0
lex.c
dlls/jscript/lex.c
+10
-0
parser.y
dlls/jscript/parser.y
+0
-11
No files found.
dlls/jscript/engine.h
View file @
501cad69
...
...
@@ -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
;
...
...
dlls/jscript/lex.c
View file @
501cad69
...
...
@@ -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
;
...
...
dlls/jscript/parser.y
View file @
501cad69
...
...
@@ -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));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment