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
eedc6dc7
Commit
eedc6dc7
authored
Sep 10, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added IActiveScriptParseProcedure2::ParseProcedureText implementation.
parent
44333104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
jscript.c
dlls/jscript/jscript.c
+25
-3
No files found.
dlls/jscript/jscript.c
View file @
eedc6dc7
...
...
@@ -576,7 +576,7 @@ static const IActiveScriptParseVtbl JScriptParseVtbl = {
JScriptParse_ParseScriptText
};
#define ASPARSEPROC_THIS(iface) DEFINE_THIS(JScript, IActiveScriptParse, iface)
#define ASPARSEPROC_THIS(iface) DEFINE_THIS(JScript, IActiveScriptParse
Procedure2
, iface)
static
HRESULT
WINAPI
JScriptParseProcedure_QueryInterface
(
IActiveScriptParseProcedure2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -602,8 +602,30 @@ static HRESULT WINAPI JScriptParseProcedure_ParseProcedureText(IActiveScriptPars
DWORD
dwSourceContextCookie
,
ULONG
ulStartingLineNumber
,
DWORD
dwFlags
,
IDispatch
**
ppdisp
)
{
JScript
*
This
=
ASPARSEPROC_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
parser_ctx_t
*
parser_ctx
;
DispatchEx
*
dispex
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %s %s %s %p %s %x %u %x %p)
\n
"
,
This
,
debugstr_w
(
pstrCode
),
debugstr_w
(
pstrFormalParams
),
debugstr_w
(
pstrProcedureName
),
debugstr_w
(
pstrItemName
),
punkContext
,
debugstr_w
(
pstrDelimiter
),
dwSourceContextCookie
,
ulStartingLineNumber
,
dwFlags
,
ppdisp
);
if
(
This
->
thread_id
!=
GetCurrentThreadId
()
||
This
->
ctx
->
state
==
SCRIPTSTATE_CLOSED
)
return
E_UNEXPECTED
;
hres
=
script_parse
(
This
->
ctx
,
pstrCode
,
&
parser_ctx
);
if
(
FAILED
(
hres
))
{
WARN
(
"Parse failed %08x
\n
"
,
hres
);
return
hres
;
}
hres
=
create_source_function
(
parser_ctx
,
NULL
,
parser_ctx
->
source
,
NULL
,
&
dispex
);
parser_release
(
parser_ctx
);
if
(
FAILED
(
hres
))
return
hres
;
*
ppdisp
=
(
IDispatch
*
)
_IDispatchEx_
(
dispex
);
return
S_OK
;
}
#undef ASPARSEPROC_THIS
...
...
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