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
33a81218
Commit
33a81218
authored
Sep 19, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added interp_lteq implementation.
parent
ac5db68d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
interp.c
dlls/vbscript/interp.c
+12
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+2
-0
No files found.
dlls/vbscript/interp.c
View file @
33a81218
...
@@ -991,8 +991,18 @@ static HRESULT interp_lt(exec_ctx_t *ctx)
...
@@ -991,8 +991,18 @@ static HRESULT interp_lt(exec_ctx_t *ctx)
static
HRESULT
interp_lteq
(
exec_ctx_t
*
ctx
)
static
HRESULT
interp_lteq
(
exec_ctx_t
*
ctx
)
{
{
FIXME
(
"
\n
"
);
VARIANT
v
;
return
E_NOTIMPL
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
hres
=
cmp_oper
(
ctx
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
&
v
)
=
VT_BOOL
;
V_BOOL
(
&
v
)
=
hres
==
VARCMP_LT
||
hres
==
VARCMP_EQ
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
stack_push
(
ctx
,
&
v
);
}
}
static
HRESULT
interp_concat
(
exec_ctx_t
*
ctx
)
static
HRESULT
interp_concat
(
exec_ctx_t
*
ctx
)
...
...
dlls/vbscript/tests/lang.vbs
View file @
33a81218
...
@@ -126,6 +126,8 @@ Call ok(not (true > 0), "true > 0")
...
@@ -126,6 +126,8 @@ Call ok(not (true > 0), "true > 0")
Call
ok
(
not
(
0
>
1
=
1
),
"0 > 1 = 1"
)
Call
ok
(
not
(
0
>
1
=
1
),
"0 > 1 = 1"
)
Call
ok
(
1
<
2
,
"! 1 < 2"
)
Call
ok
(
1
<
2
,
"! 1 < 2"
)
Call
ok
(
1
=
1
<
0
,
"! 1 = 1 < 0"
)
Call
ok
(
1
=
1
<
0
,
"! 1 = 1 < 0"
)
Call
ok
(
1
<=
2
,
"! 1 <= 2"
)
Call
ok
(
2
<=
2
,
"! 2 <= 2"
)
x
=
3
x
=
3
Call
ok
(
2
+
2
=
4
,
"2+2 = "
&
(
2
+
2
))
Call
ok
(
2
+
2
=
4
,
"2+2 = "
&
(
2
+
2
))
...
...
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