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
8de5db60
Commit
8de5db60
authored
Sep 15, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added stop statement semi-stub implementation.
parent
1e01a176
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
1 deletion
+18
-1
compile.c
dlls/vbscript/compile.c
+3
-0
interp.c
dlls/vbscript/interp.c
+8
-0
parse.h
dlls/vbscript/parse.h
+2
-1
parser.y
dlls/vbscript/parser.y
+1
-0
lang.vbs
dlls/vbscript/tests/lang.vbs
+3
-0
vbscript.h
dlls/vbscript/vbscript.h
+1
-0
No files found.
dlls/vbscript/compile.c
View file @
8de5db60
...
...
@@ -615,6 +615,9 @@ static HRESULT compile_statement(compile_ctx_t *ctx, statement_t *stat)
case
STAT_SET
:
hres
=
compile_assign_statement
(
ctx
,
(
assign_statement_t
*
)
stat
,
TRUE
);
break
;
case
STAT_STOP
:
hres
=
push_instr
(
ctx
,
OP_stop
)
==
-
1
?
E_OUTOFMEMORY
:
S_OK
;
break
;
default:
FIXME
(
"Unimplemented statement type %d
\n
"
,
stat
->
type
);
hres
=
E_NOTIMPL
;
...
...
dlls/vbscript/interp.c
View file @
8de5db60
...
...
@@ -576,6 +576,14 @@ static HRESULT interp_ret(exec_ctx_t *ctx)
return
S_OK
;
}
static
HRESULT
interp_stop
(
exec_ctx_t
*
ctx
)
{
WARN
(
"
\n
"
);
/* NOTE: this should have effect in debugging mode (that we don't support yet) */
return
S_OK
;
}
static
HRESULT
interp_bool
(
exec_ctx_t
*
ctx
)
{
const
VARIANT_BOOL
arg
=
ctx
->
instr
->
arg1
.
lng
;
...
...
dlls/vbscript/parse.h
View file @
8de5db60
...
...
@@ -97,7 +97,8 @@ typedef enum {
STAT_EXITSUB
,
STAT_FUNC
,
STAT_IF
,
STAT_SET
STAT_SET
,
STAT_STOP
}
statement_type_t
;
typedef
struct
_statement_t
{
...
...
dlls/vbscript/parser.y
View file @
8de5db60
...
...
@@ -157,6 +157,7 @@ Statement
| tEXIT tSUB { $$ = new_statement(ctx, STAT_EXITSUB, 0); CHECK_ERROR; }
| tSET MemberExpression Arguments_opt '=' Expression
{ $2->args = $3; $$ = new_set_statement(ctx, $2, $5); CHECK_ERROR; }
| tSTOP { $$ = new_statement(ctx, STAT_STOP, 0); CHECK_ERROR; }
MemberExpression
: tIdentifier { $$ = new_member_expression(ctx, NULL, $1); CHECK_ERROR; }
...
...
dlls/vbscript/tests/lang.vbs
View file @
8de5db60
...
...
@@ -376,6 +376,9 @@ Private Function TestPrivateFunc
End
Function
Call
TestPrivateFunc
' Stop has an effect only in debugging mode
Stop
set
x
=
testObj
Call
ok
(
getVT
(
x
)
=
"VT_DISPATCH*"
,
"getVT(x=testObj) = "
&
getVT
(
x
))
...
...
dlls/vbscript/vbscript.h
View file @
8de5db60
...
...
@@ -169,6 +169,7 @@ typedef enum {
X(set_ident, 1, ARG_BSTR, 0) \
X(set_member, 1, ARG_BSTR, 0) \
X(short, 1, ARG_INT, 0) \
X(stop, 1, 0, 0) \
X(string, 1, ARG_STR, 0) \
X(sub, 1, 0, 0) \
X(xor, 1, 0, 0)
...
...
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