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
d7edf016
Commit
d7edf016
authored
Oct 27, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Store a copy of code in parser_ctx_t.
parent
911e923f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
engine.h
dlls/jscript/engine.h
+2
-2
parser.y
dlls/jscript/parser.y
+9
-2
No files found.
dlls/jscript/engine.h
View file @
d7edf016
...
...
@@ -43,9 +43,9 @@ typedef struct _func_stack {
typedef
struct
_parser_ctx_t
{
LONG
ref
;
const
WCHAR
*
ptr
;
const
WCHAR
*
begin
;
WCHAR
*
begin
;
const
WCHAR
*
end
;
const
WCHAR
*
ptr
;
script_ctx_t
*
script
;
source_elements_t
*
source
;
...
...
dlls/jscript/parser.y
View file @
d7edf016
...
...
@@ -1594,6 +1594,7 @@ void parser_release(parser_ctx_t *ctx)
if(--ctx->ref)
return;
heap_free(ctx->begin);
jsheap_free(&ctx->heap);
heap_free(ctx);
}
...
...
@@ -1615,8 +1616,14 @@ HRESULT script_parse(script_ctx_t *ctx, const WCHAR *code, const WCHAR *delimite
parser_ctx->hres = JSCRIPT_ERROR|IDS_SYNTAX_ERROR;
parser_ctx->is_html = delimiter && !strcmpiW(delimiter, html_tagW);
parser_ctx->begin = parser_ctx->ptr = code;
parser_ctx->end = code + strlenW(code);
parser_ctx->begin = heap_strdupW(code);
if(!parser_ctx->begin) {
heap_free(parser_ctx);
return E_OUTOFMEMORY;
}
parser_ctx->ptr = parser_ctx->begin;
parser_ctx->end = parser_ctx->begin + strlenW(parser_ctx->begin);
script_addref(ctx);
parser_ctx->script = ctx;
...
...
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