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
5cf0d974
Commit
5cf0d974
authored
Nov 27, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Nov 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Accept private and public const global declarations.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53783
parent
ac5e7fab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
parser.y
dlls/vbscript/parser.y
+3
-1
lang.vbs
dlls/vbscript/tests/lang.vbs
+6
-0
No files found.
dlls/vbscript/parser.y
View file @
5cf0d974
...
...
@@ -175,7 +175,9 @@ SourceElements
| SourceElements ClassDeclaration { source_add_class(ctx, $2); }
GlobalDimDeclaration
: tPRIVATE DimDeclList { $$ = new_dim_statement(ctx, @$, $2); CHECK_ERROR; }
: tPRIVATE tCONST ConstDeclList { $$ = new_const_statement(ctx, @$, $3); CHECK_ERROR; }
| tPUBLIC tCONST ConstDeclList { $$ = new_const_statement(ctx, @$, $3); CHECK_ERROR; }
| tPRIVATE DimDeclList { $$ = new_dim_statement(ctx, @$, $2); CHECK_ERROR; }
| tPUBLIC DimDeclList { $$ = new_dim_statement(ctx, @$, $2); CHECK_ERROR; }
ExpressionNl_opt
...
...
dlls/vbscript/tests/lang.vbs
View file @
5cf0d974
...
...
@@ -1210,10 +1210,16 @@ Call ok(getVT(test) = "VT_DISPATCH", "getVT(test) = " & getVT(test))
Call
ok
(
Me
is
Test
,
"Me is not Test"
)
Const
c1
=
1
,
c2
=
2
,
c3
=
-
3
Private
Const
c4
=
4
Public
Const
c5
=
5
Call
ok
(
c1
=
1
,
"c1 = "
&
c1
)
Call
ok
(
getVT
(
c1
)
=
"VT_I2"
,
"getVT(c1) = "
&
getVT
(
c1
))
Call
ok
(
c3
=
-
3
,
"c3 = "
&
c3
)
Call
ok
(
getVT
(
c3
)
=
"VT_I2"
,
"getVT(c3) = "
&
getVT
(
c3
))
Call
ok
(
c4
=
4
,
"c4 = "
&
c4
)
Call
ok
(
getVT
(
c4
)
=
"VT_I2"
,
"getVT(c4) = "
&
getVT
(
c4
))
Call
ok
(
c5
=
5
,
"c5 = "
&
c5
)
Call
ok
(
getVT
(
c5
)
=
"VT_I2"
,
"getVT(c5) = "
&
getVT
(
c5
))
Const
cb
=
True
,
cs
=
"test"
,
cnull
=
null
Call
ok
(
cb
,
"cb = "
&
cb
)
...
...
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