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
76eeca22
Commit
76eeca22
authored
Oct 18, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added support for hex literals not ending with '&'.
parent
b5a031d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
lex.c
dlls/vbscript/lex.c
+4
-2
lang.vbs
dlls/vbscript/tests/lang.vbs
+2
-0
No files found.
dlls/vbscript/lex.c
View file @
76eeca22
...
...
@@ -294,12 +294,14 @@ static int parse_hex_literal(parser_ctx_t *ctx, LONG *ret)
while
((
d
=
hex_to_int
(
*++
ctx
->
ptr
))
!=
-
1
)
l
=
l
*
16
+
d
;
if
(
begin
+
9
/* max digits+1 */
<
ctx
->
ptr
||
*
ctx
->
ptr
!=
'&'
)
{
if
(
begin
+
9
/* max digits+1 */
<
ctx
->
ptr
||
(
*
ctx
->
ptr
!=
'&'
&&
is_identifier_char
(
*
ctx
->
ptr
))
)
{
FIXME
(
"invalid literal
\n
"
);
return
0
;
}
ctx
->
ptr
++
;
if
(
*
ctx
->
ptr
==
'&'
)
ctx
->
ptr
++
;
*
ret
=
l
;
return
(
short
)
l
==
l
?
tShort
:
tLong
;
}
...
...
dlls/vbscript/tests/lang.vbs
View file @
76eeca22
...
...
@@ -43,6 +43,8 @@ Call ok(--1 = 1, "--1 = " & --1)
Call
ok
(
-
empty
=
0
,
"-empty = "
&
(
-
empty
))
Call
ok
(
true
=
-
1
,
"! true = -1"
)
Call
ok
(
false
=
0
,
"false <> 0"
)
Call
ok
(
&
hff
=
255
,
"&hff <> 255"
)
Call
ok
(
&
Hff
=
255
,
"&Hff <> 255"
)
x
=
"xx"
Call
ok
(
x
=
"xx"
,
"x = "
&
x
&
" expected
""
xx
""
"
)
...
...
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