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
f00a8ec0
Commit
f00a8ec0
authored
Sep 14, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added functions lookup implementation.
parent
190ea000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
interp.c
dlls/vbscript/interp.c
+18
-1
No files found.
dlls/vbscript/interp.c
View file @
f00a8ec0
...
...
@@ -41,7 +41,8 @@ typedef HRESULT (*instr_func_t)(exec_ctx_t*);
typedef
enum
{
REF_NONE
,
REF_DISP
,
REF_VAR
REF_VAR
,
REF_FUNC
}
ref_type_t
;
typedef
struct
{
...
...
@@ -52,6 +53,7 @@ typedef struct {
DISPID
id
;
}
d
;
VARIANT
*
v
;
function_t
*
f
;
}
u
;
}
ref_t
;
...
...
@@ -79,12 +81,21 @@ static BOOL lookup_dynamic_vars(dynamic_var_t *var, const WCHAR *name, ref_t *re
static
HRESULT
lookup_identifier
(
exec_ctx_t
*
ctx
,
BSTR
name
,
ref_t
*
ref
)
{
named_item_t
*
item
;
function_t
*
func
;
DISPID
id
;
HRESULT
hres
;
if
(
lookup_dynamic_vars
(
ctx
->
script
->
global_vars
,
name
,
ref
))
return
S_OK
;
for
(
func
=
ctx
->
script
->
global_funcs
;
func
;
func
=
func
->
next
)
{
if
(
!
strcmpiW
(
func
->
name
,
name
))
{
ref
->
type
=
REF_FUNC
;
ref
->
u
.
f
=
func
;
return
S_OK
;
}
}
LIST_FOR_EACH_ENTRY
(
item
,
&
ctx
->
script
->
named_items
,
named_item_t
,
entry
)
{
if
(
item
->
flags
&
SCRIPTITEM_GLOBALMEMBERS
)
{
hres
=
disp_get_id
(
item
->
disp
,
name
,
&
id
);
...
...
@@ -254,6 +265,9 @@ static HRESULT do_icall(exec_ctx_t *ctx, VARIANT *res)
if
(
FAILED
(
hres
))
return
hres
;
break
;
case
REF_FUNC
:
FIXME
(
"functions not implemented
\n
"
);
return
E_NOTIMPL
;
case
REF_NONE
:
FIXME
(
"%s not found
\n
"
,
debugstr_w
(
identifier
));
return
DISP_E_UNKNOWNNAME
;
...
...
@@ -313,6 +327,9 @@ static HRESULT assign_ident(exec_ctx_t *ctx, BSTR name, VARIANT *val, BOOL own_v
if
(
own_val
)
VariantClear
(
val
);
break
;
case
REF_FUNC
:
FIXME
(
"functions not implemented
\n
"
);
return
E_NOTIMPL
;
case
REF_NONE
:
FIXME
(
"%s not found
\n
"
,
debugstr_w
(
name
));
if
(
own_val
)
...
...
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