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
b866c7f5
Commit
b866c7f5
authored
Apr 25, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Make parser a temporary compiler object.
parent
97b44da7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
compile.c
dlls/jscript/compile.c
+1
-5
engine.h
dlls/jscript/engine.h
+0
-2
No files found.
dlls/jscript/compile.c
View file @
b866c7f5
...
...
@@ -1732,9 +1732,6 @@ void release_bytecode(bytecode_t *code)
if
(
--
code
->
ref
)
return
;
if
(
code
->
parser
)
parser_release
(
code
->
parser
);
for
(
i
=
0
;
i
<
code
->
bstr_cnt
;
i
++
)
SysFreeString
(
code
->
bstr_pool
[
i
]);
...
...
@@ -1878,9 +1875,8 @@ HRESULT compile_script(script_ctx_t *ctx, const WCHAR *code, const WCHAR *delimi
return
hres
;
}
compiler
.
code
->
parser
=
compiler
.
parser
;
hres
=
compile_function
(
&
compiler
,
compiler
.
parser
->
source
,
NULL
,
from_eval
,
&
compiler
.
code
->
global_code
);
parser_release
(
compiler
.
parser
);
if
(
FAILED
(
hres
))
{
release_bytecode
(
compiler
.
code
);
return
hres
;
...
...
dlls/jscript/engine.h
View file @
b866c7f5
...
...
@@ -197,8 +197,6 @@ typedef struct _bytecode_t {
unsigned
bstr_pool_size
;
unsigned
bstr_cnt
;
parser_ctx_t
*
parser
;
struct
_bytecode_t
*
next
;
}
bytecode_t
;
...
...
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