Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9193b9f5
Commit
9193b9f5
authored
Nov 30, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Rename prop_val_t to property_definition_t.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c7335204
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
compile.c
dlls/jscript/compile.c
+2
-2
parser.h
dlls/jscript/parser.h
+4
-4
parser.y
dlls/jscript/parser.y
+6
-6
No files found.
dlls/jscript/compile.c
View file @
9193b9f5
...
...
@@ -888,7 +888,7 @@ static HRESULT compile_array_literal(compiler_ctx_t *ctx, array_literal_expressi
static
HRESULT
compile_object_literal
(
compiler_ctx_t
*
ctx
,
property_value_expression_t
*
expr
)
{
prop
_val
_t
*
iter
;
prop
erty_definition
_t
*
iter
;
unsigned
instr
;
BSTR
name
;
HRESULT
hres
;
...
...
@@ -1999,7 +1999,7 @@ static HRESULT visit_expression(compiler_ctx_t *ctx, expression_t *expr)
hres
=
visit_expression
(
ctx
,
((
member_expression_t
*
)
expr
)
->
expression
);
break
;
case
EXPR_PROPVAL
:
{
prop
_val
_t
*
iter
;
prop
erty_definition
_t
*
iter
;
for
(
iter
=
((
property_value_expression_t
*
)
expr
)
->
property_list
;
iter
;
iter
=
iter
->
next
)
{
hres
=
visit_expression
(
ctx
,
iter
->
value
);
if
(
FAILED
(
hres
))
...
...
dlls/jscript/parser.h
View file @
9193b9f5
...
...
@@ -358,16 +358,16 @@ typedef struct {
int
length
;
}
array_literal_expression_t
;
typedef
struct
_prop
_val
_t
{
typedef
struct
_prop
erty_definition
_t
{
literal_t
*
name
;
expression_t
*
value
;
struct
_prop
_val
_t
*
next
;
}
prop
_val
_t
;
struct
_prop
erty_definition
_t
*
next
;
}
prop
erty_definition
_t
;
typedef
struct
{
expression_t
expr
;
prop
_val
_t
*
property_list
;
prop
erty_definition
_t
*
property_list
;
}
property_value_expression_t
;
BOOL
try_parse_ccval
(
parser_ctx_t
*
,
ccval_t
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/jscript/parser.y
View file @
9193b9f5
...
...
@@ -41,8 +41,8 @@ static literal_t *new_string_literal(parser_ctx_t*,const WCHAR*);
static literal_t *new_null_literal(parser_ctx_t*);
typedef struct _property_list_t {
prop
_val
_t *head;
prop
_val
_t *tail;
prop
erty_definition
_t *head;
prop
erty_definition
_t *tail;
} property_list_t;
static property_list_t *new_property_list(parser_ctx_t*,literal_t*,expression_t*);
...
...
@@ -921,9 +921,9 @@ static literal_t *new_null_literal(parser_ctx_t *ctx)
return ret;
}
static prop
_val_t *new_prop_val
(parser_ctx_t *ctx, literal_t *name, expression_t *value)
static prop
erty_definition_t *new_property_definition
(parser_ctx_t *ctx, literal_t *name, expression_t *value)
{
prop
_val_t *ret = parser_alloc(ctx, sizeof(prop_val
_t));
prop
erty_definition_t *ret = parser_alloc(ctx, sizeof(property_definition
_t));
ret->name = name;
ret->value = value;
...
...
@@ -936,14 +936,14 @@ static property_list_t *new_property_list(parser_ctx_t *ctx, literal_t *name, ex
{
property_list_t *ret = parser_alloc_tmp(ctx, sizeof(property_list_t));
ret->head = ret->tail = new_prop
_val
(ctx, name, value);
ret->head = ret->tail = new_prop
erty_definition
(ctx, name, value);
return ret;
}
static property_list_t *property_list_add(parser_ctx_t *ctx, property_list_t *list, literal_t *name, expression_t *value)
{
list->tail = list->tail->next = new_prop
_val
(ctx, name, value);
list->tail = list->tail->next = new_prop
erty_definition
(ctx, name, value);
return list;
}
...
...
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