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
8e1ccb8b
Commit
8e1ccb8b
authored
Sep 12, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added interp_neg implementation.
parent
fb5509ec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
interp.c
dlls/vbscript/interp.c
+14
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+6
-0
No files found.
dlls/vbscript/interp.c
View file @
8e1ccb8b
...
...
@@ -393,8 +393,20 @@ static HRESULT interp_concat(exec_ctx_t *ctx)
static
HRESULT
interp_neg
(
exec_ctx_t
*
ctx
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
variant_val_t
val
;
VARIANT
v
;
HRESULT
hres
;
hres
=
stack_pop_val
(
ctx
,
&
val
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
VarNeg
(
val
.
v
,
&
v
);
release_val
(
&
val
);
if
(
FAILED
(
hres
))
return
hres
;
return
stack_push
(
ctx
,
&
v
);
}
static
const
instr_func_t
op_funcs
[]
=
{
...
...
dlls/vbscript/tests/lang.vbs
View file @
8e1ccb8b
...
...
@@ -35,6 +35,10 @@ Call ok(0 = 0.0, "0 <> 0.0")
Call
ok
(
16
=
&
h10&
,
"16 <> &h10&"
)
Call
ok
(
010
=
10
,
"010 <> 10"
)
Call
ok
(
10.
=
10
,
"10. <> 10"
)
Call
ok
(
&
hffFFffFF&
=
-
1
,
"&hffFFffFF& <> -1"
)
Call
ok
(
&
hffFFffFF&
=
-
1
,
"&hffFFffFF& <> -1"
)
Call
ok
(
--
1
=
1
,
"--1 = "
&
--
1
)
Call
ok
(
-
empty
=
0
,
"-empty = "
&
(
-
empty
))
Call
ok
(
getVT
(
false
)
=
"VT_BOOL"
,
"getVT(false) is not VT_BOOL"
)
Call
ok
(
getVT
(
true
)
=
"VT_BOOL"
,
"getVT(true) is not VT_BOOL"
)
...
...
@@ -53,6 +57,8 @@ Call ok(getVT(&h10000&) = "VT_I4", "getVT(&h10000&) is not VT_I4")
Call
ok
(
getVT
(
&
H10000
&
)
=
"VT_I4"
,
"getVT(&H10000&) is not VT_I4"
)
Call
ok
(
getVT
(
&
hffFFffFF&
)
=
"VT_I2"
,
"getVT(&hffFFffFF&) is not VT_I2"
)
Call
ok
(
getVT
(
1
&
100000
)
=
"VT_BSTR"
,
"getVT(1 & 100000) is not VT_BSTR"
)
Call
ok
(
getVT
(
-
empty
)
=
"VT_I2"
,
"getVT(-empty) = "
&
getVT
(
-
empty
))
Call
ok
(
getVT
(
-
null
)
=
"VT_NULL"
,
"getVT(-null) = "
&
getVT
(
-
null
))
Call
ok
(
"ab"
&
"cd"
=
"abcd"
,
"
""
ab
""
&
""
cd
""
<>
""
abcd
""
"
)
Call
ok
(
"ab "
&
null
=
"ab "
,
"
""
ab
""
& null = "
&
(
"ab "
&
null
))
...
...
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