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
da186c3c
Commit
da186c3c
authored
May 03, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Rename PROPF_ENUM to PROPF_ENUMERABLE.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6b86fd79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
dispex.c
dlls/jscript/dispex.c
+6
-6
jscript.h
dlls/jscript/jscript.h
+1
-1
No files found.
dlls/jscript/dispex.c
View file @
da186c3c
...
...
@@ -221,7 +221,7 @@ static HRESULT find_prop_name(jsdisp_t *This, unsigned hash, const WCHAR *name,
flags
|=
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
;
else
if
(
builtin
->
setter
)
flags
|=
PROPF_WRITABLE
;
flags
&=
PROPF_ENUM
|
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
;
flags
&=
PROPF_ENUM
ERABLE
|
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
;
prop
=
alloc_prop
(
This
,
name
,
PROP_BUILTIN
,
flags
);
if
(
!
prop
)
return
E_OUTOFMEMORY
;
...
...
@@ -490,7 +490,7 @@ static HRESULT prop_put(jsdisp_t *This, dispex_prop_t *prop, jsval_t val)
/* fall through */
case
PROP_PROTREF
:
prop
->
type
=
PROP_JSVAL
;
prop
->
flags
=
PROPF_ENUM
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
;
prop
->
flags
=
PROPF_ENUM
ERABLE
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
;
prop
->
u
.
val
=
jsval_undefined
();
break
;
case
PROP_JSVAL
:
...
...
@@ -850,7 +850,7 @@ static HRESULT WINAPI DispatchEx_GetNextDispID(IDispatchEx *iface, DWORD grfdex,
}
while
(
iter
<
This
->
props
+
This
->
prop_cnt
)
{
if
(
iter
->
name
&&
(
get_flags
(
This
,
iter
)
&
PROPF_ENUM
)
&&
iter
->
type
!=
PROP_DELETED
)
{
if
(
iter
->
name
&&
(
get_flags
(
This
,
iter
)
&
PROPF_ENUM
ERABLE
)
&&
iter
->
type
!=
PROP_DELETED
)
{
*
pid
=
prop_to_id
(
This
,
iter
);
return
S_OK
;
}
...
...
@@ -1040,7 +1040,7 @@ HRESULT jsdisp_get_id(jsdisp_t *jsdisp, const WCHAR *name, DWORD flags, DISPID *
HRESULT
hres
;
if
(
flags
&
fdexNameEnsure
)
hres
=
ensure_prop_name
(
jsdisp
,
name
,
TRUE
,
PROPF_ENUM
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
,
hres
=
ensure_prop_name
(
jsdisp
,
name
,
TRUE
,
PROPF_ENUM
ERABLE
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
,
&
prop
);
else
hres
=
find_prop_name_prot
(
jsdisp
,
string_hash
(
name
),
name
,
&
prop
);
...
...
@@ -1313,7 +1313,7 @@ HRESULT jsdisp_propput(jsdisp_t *obj, const WCHAR *name, DWORD flags, jsval_t va
HRESULT
jsdisp_propput_name
(
jsdisp_t
*
obj
,
const
WCHAR
*
name
,
jsval_t
val
)
{
return
jsdisp_propput
(
obj
,
name
,
PROPF_ENUM
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
,
val
);
return
jsdisp_propput
(
obj
,
name
,
PROPF_ENUM
ERABLE
|
PROPF_CONFIGURABLE
|
PROPF_WRITABLE
,
val
);
}
HRESULT
jsdisp_propput_const
(
jsdisp_t
*
obj
,
const
WCHAR
*
name
,
jsval_t
val
)
...
...
@@ -1611,6 +1611,6 @@ HRESULT jsdisp_is_enumerable(jsdisp_t *obj, const WCHAR *name, BOOL *ret)
if
(
FAILED
(
hres
))
return
hres
;
*
ret
=
prop
&&
(
prop
->
flags
&
PROPF_ENUM
)
&&
prop
->
type
!=
PROP_PROTREF
;
*
ret
=
prop
&&
(
prop
->
flags
&
PROPF_ENUM
ERABLE
)
&&
prop
->
type
!=
PROP_PROTREF
;
return
S_OK
;
}
dlls/jscript/jscript.h
View file @
da186c3c
...
...
@@ -89,7 +89,7 @@ extern HINSTANCE jscript_hinstance DECLSPEC_HIDDEN;
#define PROPF_ARGMASK 0x00ff
#define PROPF_METHOD 0x0100
#define PROPF_ENUM
0x0200
#define PROPF_ENUM
ERABLE
0x0200
#define PROPF_CONSTR 0x0400
#define PROPF_WRITABLE 0x0800
#define PROPF_CONFIGURABLE 0x1000
...
...
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