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
81fc9ade
Commit
81fc9ade
authored
Sep 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Code clean up.
parent
c444a490
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
array.c
dlls/jscript/array.c
+1
-1
function.c
dlls/jscript/function.c
+2
-3
string.c
dlls/jscript/string.c
+6
-6
No files found.
dlls/jscript/array.c
View file @
81fc9ade
...
...
@@ -315,7 +315,7 @@ static HRESULT Array_join(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS
if
(
arg_cnt
(
dp
))
{
BSTR
sep
;
hres
=
to_string
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
1
,
ei
,
&
sep
);
hres
=
to_string
(
dispex
->
ctx
,
get_arg
(
dp
,
0
)
,
ei
,
&
sep
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/function.c
View file @
81fc9ade
...
...
@@ -70,12 +70,11 @@ static HRESULT init_parameters(DispatchEx *var_disp, FunctionInstance *function,
HRESULT
hres
;
V_VT
(
&
var_empty
)
=
VT_EMPTY
;
cargs
=
dp
->
cArgs
-
dp
->
cNamedArgs
;
cargs
=
arg_cnt
(
dp
)
;
for
(
param
=
function
->
parameters
;
param
;
param
=
param
->
next
)
{
hres
=
jsdisp_propput_name
(
var_disp
,
param
->
identifier
,
lcid
,
i
<
cargs
?
dp
->
rgvarg
+
dp
->
cArgs
-
1
-
i
:
&
var_empty
,
ei
,
caller
);
i
<
cargs
?
get_arg
(
dp
,
i
)
:
&
var_empty
,
ei
,
caller
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/string.c
View file @
81fc9ade
...
...
@@ -1066,7 +1066,7 @@ static HRESULT String_slice(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAM
}
if
(
arg_cnt
(
dp
))
{
hres
=
to_integer
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
1
,
ei
,
&
v
);
hres
=
to_integer
(
dispex
->
ctx
,
get_arg
(
dp
,
0
)
,
ei
,
&
v
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
val_str
);
return
hres
;
...
...
@@ -1089,7 +1089,7 @@ static HRESULT String_slice(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAM
}
if
(
arg_cnt
(
dp
)
>=
2
)
{
hres
=
to_integer
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
2
,
ei
,
&
v
);
hres
=
to_integer
(
dispex
->
ctx
,
get_arg
(
dp
,
1
)
,
ei
,
&
v
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
val_str
);
return
hres
;
...
...
@@ -1325,7 +1325,7 @@ static HRESULT String_substring(DispatchEx *dispex, LCID lcid, WORD flags, DISPP
}
if
(
arg_cnt
(
dp
)
>=
1
)
{
hres
=
to_integer
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
1
,
ei
,
&
v
);
hres
=
to_integer
(
dispex
->
ctx
,
get_arg
(
dp
,
0
)
,
ei
,
&
v
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
val_str
);
return
hres
;
...
...
@@ -1343,7 +1343,7 @@ static HRESULT String_substring(DispatchEx *dispex, LCID lcid, WORD flags, DISPP
}
if
(
arg_cnt
(
dp
)
>=
2
)
{
hres
=
to_integer
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
2
,
ei
,
&
v
);
hres
=
to_integer
(
dispex
->
ctx
,
get_arg
(
dp
,
1
)
,
ei
,
&
v
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
val_str
);
return
hres
;
...
...
@@ -1412,7 +1412,7 @@ static HRESULT String_substr(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARA
}
if
(
arg_cnt
(
dp
)
>=
1
)
{
hres
=
to_integer
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
1
,
ei
,
&
v
);
hres
=
to_integer
(
dispex
->
ctx
,
get_arg
(
dp
,
0
)
,
ei
,
&
v
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
val_str
);
return
hres
;
...
...
@@ -1430,7 +1430,7 @@ static HRESULT String_substr(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARA
}
if
(
arg_cnt
(
dp
)
>=
2
)
{
hres
=
to_integer
(
dispex
->
ctx
,
dp
->
rgvarg
+
dp
->
cArgs
-
2
,
ei
,
&
v
);
hres
=
to_integer
(
dispex
->
ctx
,
get_arg
(
dp
,
1
)
,
ei
,
&
v
);
if
(
FAILED
(
hres
))
{
SysFreeString
(
val_str
);
return
hres
;
...
...
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