Module: wine Branch: master Commit: 061592a205b031b41aca7404e54f87965ef72d15 URL: http://source.winehq.org/git/wine.git/?a=commit;h=061592a205b031b41aca7404e5...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Mar 24 14:28:08 2016 +0100
jscript: Removed no longer used argument from exec_source.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/jscript/engine.c | 2 +- dlls/jscript/engine.h | 2 +- dlls/jscript/function.c | 2 +- dlls/jscript/global.c | 2 +- dlls/jscript/jscript.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 687b06c..214d8fe 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2543,7 +2543,7 @@ static HRESULT bind_event_target(script_ctx_t *ctx, function_code_t *func, jsdis return hres; }
-HRESULT exec_source(exec_ctx_t *ctx, bytecode_t *code, function_code_t *func, BOOL from_eval, jsval_t *ret) +HRESULT exec_source(exec_ctx_t *ctx, bytecode_t *code, function_code_t *func, jsval_t *ret) { exec_ctx_t *prev_ctx; jsval_t val; diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h index dd8ed4c..3943c9a 100644 --- a/dlls/jscript/engine.h +++ b/dlls/jscript/engine.h @@ -218,5 +218,5 @@ static inline void exec_addref(exec_ctx_t *ctx)
void exec_release(exec_ctx_t*) DECLSPEC_HIDDEN; HRESULT create_exec_ctx(script_ctx_t*,IDispatch*,jsdisp_t*,scope_chain_t*,BOOL,exec_ctx_t**) DECLSPEC_HIDDEN; -HRESULT exec_source(exec_ctx_t*,bytecode_t*,function_code_t*,BOOL,jsval_t*) DECLSPEC_HIDDEN; +HRESULT exec_source(exec_ctx_t*,bytecode_t*,function_code_t*,jsval_t*) DECLSPEC_HIDDEN; HRESULT create_source_function(script_ctx_t*,bytecode_t*,function_code_t*,scope_chain_t*,jsdisp_t**) DECLSPEC_HIDDEN; diff --git a/dlls/jscript/function.c b/dlls/jscript/function.c index dcddf59..0d30fdb 100644 --- a/dlls/jscript/function.c +++ b/dlls/jscript/function.c @@ -247,7 +247,7 @@ static HRESULT invoke_source(script_ctx_t *ctx, FunctionInstance *function, IDis
prev_args = function->arguments; function->arguments = arg_disp; - hres = exec_source(exec_ctx, function->code, function->func_code, FALSE, r); + hres = exec_source(exec_ctx, function->code, function->func_code, r); function->arguments = prev_args;
exec_release(exec_ctx); diff --git a/dlls/jscript/global.c b/dlls/jscript/global.c index 03a26302..0755844 100644 --- a/dlls/jscript/global.c +++ b/dlls/jscript/global.c @@ -222,7 +222,7 @@ static HRESULT JSGlobal_eval(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, uns return throw_syntax_error(ctx, hres, NULL); }
- hres = exec_source(ctx->exec_ctx, code, &code->global_code, TRUE, r); + hres = exec_source(ctx->exec_ctx, code, &code->global_code, r); release_bytecode(code); return hres; } diff --git a/dlls/jscript/jscript.c b/dlls/jscript/jscript.c index 9519479..b1d4472 100644 --- a/dlls/jscript/jscript.c +++ b/dlls/jscript/jscript.c @@ -110,7 +110,7 @@ static HRESULT exec_global_code(JScript *This, bytecode_t *code) IActiveScriptSite_OnEnterScript(This->site);
clear_ei(This->ctx); - hres = exec_source(exec_ctx, code, &code->global_code, FALSE, NULL); + hres = exec_source(exec_ctx, code, &code->global_code, NULL); exec_release(exec_ctx);
IActiveScriptSite_OnLeaveScript(This->site); @@ -781,7 +781,7 @@ static HRESULT WINAPI JScriptParse_ParseScriptText(IActiveScriptParse *iface, IActiveScriptSite_OnEnterScript(This->site);
clear_ei(This->ctx); - hres = exec_source(exec_ctx, code, &code->global_code, TRUE, &r); + hres = exec_source(exec_ctx, code, &code->global_code, &r); if(SUCCEEDED(hres)) { if(pvarResult) hres = jsval_to_variant(r, pvarResult);