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
4916c1b2
Commit
4916c1b2
authored
Sep 14, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added interp_or implementation.
parent
fae7352f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
interp.c
dlls/vbscript/interp.c
+20
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+6
-0
No files found.
dlls/vbscript/interp.c
View file @
4916c1b2
...
...
@@ -590,8 +590,26 @@ static HRESULT interp_and(exec_ctx_t *ctx)
static
HRESULT
interp_or
(
exec_ctx_t
*
ctx
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
variant_val_t
r
,
l
;
VARIANT
v
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
hres
=
stack_pop_val
(
ctx
,
&
r
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
stack_pop_val
(
ctx
,
&
l
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
VarOr
(
l
.
v
,
r
.
v
,
&
v
);
release_val
(
&
l
);
}
release_val
(
&
r
);
if
(
FAILED
(
hres
))
return
hres
;
return
stack_push
(
ctx
,
&
v
);
}
static
HRESULT
cmp_oper
(
exec_ctx_t
*
ctx
)
...
...
dlls/vbscript/tests/lang.vbs
View file @
4916c1b2
...
...
@@ -91,6 +91,12 @@ call ok(true and not false, "true and not false is not true")
call
ok
(
not
(
false
and
true
),
"not (false and true) is not true"
)
call
ok
(
getVT
(
null
and
true
)
=
"VT_NULL"
,
"getVT(null and true) = "
&
getVT
(
null
and
true
))
call
ok
(
false
or
true
,
"false or uie is false?"
)
call
ok
(
not
(
false
or
false
),
"false or false is not false?"
)
call
ok
(
false
and
false
or
true
,
"false and false or true is false?"
)
call
ok
(
true
or
false
and
false
,
"true or false and false is false?"
)
call
ok
(
null
or
true
,
"null or true is false"
)
x
=
3
Call
ok
(
2
+
2
=
4
,
"2+2 = "
&
(
2
+
2
))
Call
ok
(
false
+
6
+
true
=
5
,
"false + 6 + true <> 5"
)
...
...
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