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
9f77009a
Commit
9f77009a
authored
Nov 24, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Accept "><" as inequality operator.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
6f1d38bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lex.c
dlls/vbscript/lex.c
+5
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+4
-0
No files found.
dlls/vbscript/lex.c
View file @
9f77009a
...
...
@@ -500,9 +500,13 @@ static int parse_next_token(void *lval, unsigned *loc, parser_ctx_t *ctx)
}
return
'<'
;
case
'>'
:
if
(
*++
ctx
->
ptr
==
'='
)
{
switch
(
*++
ctx
->
ptr
)
{
case
'='
:
ctx
->
ptr
++
;
return
tGTEQ
;
case
'<'
:
ctx
->
ptr
++
;
return
tNEQ
;
}
return
'>'
;
default:
...
...
dlls/vbscript/tests/lang.vbs
View file @
9f77009a
...
...
@@ -181,6 +181,10 @@ Call ok(1 <= 2, "! 1 <= 2")
Call ok(2 <= 2, "
!
2
<=
2
")
Call ok(1 =< 2, "
!
1
=<
2
")
Call ok(2 =< 2, "
!
2
=<
2
")
Call ok(not (2 >< 2), "
2
><
2
")
Call ok(2 >< 1, "
!
2
><
1
")
Call ok(not (2 <> 2), "
2
<>
2
")
Call ok(2 <> 1, "
!
2
<>
1
")
Call ok(isNull(0 = null), "
'(0 = null)' is not null")
Call
ok
(
isNull
(
null
=
1
),
"'(null = 1)' is not 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