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
ded37832
Commit
ded37832
authored
Sep 08, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added compiler support for string literals.
parent
23c1fea0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
compile.c
dlls/vbscript/compile.c
+14
-0
interp.c
dlls/vbscript/interp.c
+6
-0
vbscript.h
dlls/vbscript/vbscript.h
+2
-1
No files found.
dlls/vbscript/compile.c
View file @
ded37832
...
...
@@ -73,6 +73,18 @@ static HRESULT push_instr_int(compile_ctx_t *ctx, vbsop_t op, LONG arg)
return
S_OK
;
}
static
HRESULT
push_instr_str
(
compile_ctx_t
*
ctx
,
vbsop_t
op
,
const
WCHAR
*
arg
)
{
unsigned
ret
;
ret
=
push_instr
(
ctx
,
op
);
if
(
ret
==
-
1
)
return
E_OUTOFMEMORY
;
instr_ptr
(
ctx
,
ret
)
->
arg1
.
str
=
arg
;
return
S_OK
;
}
static
BSTR
alloc_bstr_arg
(
compile_ctx_t
*
ctx
,
const
WCHAR
*
str
)
{
if
(
!
ctx
->
code
->
bstr_pool_size
)
{
...
...
@@ -158,6 +170,8 @@ static HRESULT compile_expression(compile_ctx_t *ctx, expression_t *expr)
switch
(
expr
->
type
)
{
case
EXPR_BOOL
:
return
push_instr_int
(
ctx
,
OP_bool
,
((
bool_expression_t
*
)
expr
)
->
value
);
case
EXPR_STRING
:
return
push_instr_str
(
ctx
,
OP_string
,
((
string_expression_t
*
)
expr
)
->
value
);
default:
FIXME
(
"Unimplemented expression type %d
\n
"
,
expr
->
type
);
return
E_NOTIMPL
;
...
...
dlls/vbscript/interp.c
View file @
ded37832
...
...
@@ -119,6 +119,12 @@ static HRESULT interp_bool(exec_ctx_t *ctx)
return
E_NOTIMPL
;
}
static
HRESULT
interp_string
(
exec_ctx_t
*
ctx
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
const
instr_func_t
op_funcs
[]
=
{
#define X(x,n,a,b) interp_ ## x,
OP_LIST
...
...
dlls/vbscript/vbscript.h
View file @
ded37832
...
...
@@ -77,7 +77,8 @@ typedef enum {
#define OP_LIST \
X(bool, 1, ARG_INT, 0) \
X(icallv, 1, ARG_BSTR, ARG_UINT) \
X(ret, 0, 0, 0)
X(ret, 0, 0, 0) \
X(string, 1, ARG_STR, 0)
typedef
enum
{
#define X(x,n,a,b) OP_##x,
...
...
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