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
f3e1f700
Commit
f3e1f700
authored
Nov 13, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Store variables in declaration order.
parent
cf514355
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
compile.c
dlls/vbscript/compile.c
+7
-4
No files found.
dlls/vbscript/compile.c
View file @
f3e1f700
...
...
@@ -54,6 +54,7 @@ typedef struct {
unsigned
prop_end_label
;
dim_decl_t
*
dim_decls
;
dim_decl_t
*
dim_decls_tail
;
dynamic_var_t
*
global_vars
;
const_decl_t
*
const_decls
;
...
...
@@ -945,8 +946,11 @@ static HRESULT compile_dim_statement(compile_ctx_t *ctx, dim_statement_t *stat)
dim_decl
=
dim_decl
->
next
;
}
dim_decl
->
next
=
ctx
->
dim_decls
;
ctx
->
dim_decls
=
stat
->
dim_decls
;
if
(
ctx
->
dim_decls_tail
)
ctx
->
dim_decls_tail
->
next
=
stat
->
dim_decls
;
else
ctx
->
dim_decls
=
stat
->
dim_decls
;
ctx
->
dim_decls_tail
=
dim_decl
;
return
S_OK
;
}
...
...
@@ -1239,7 +1243,7 @@ static HRESULT compile_func(compile_ctx_t *ctx, statement_t *stat, function_t *f
}
ctx
->
func
=
func
;
ctx
->
dim_decls
=
NULL
;
ctx
->
dim_decls
=
ctx
->
dim_decls_tail
=
NULL
;
ctx
->
const_decls
=
NULL
;
hres
=
compile_statement
(
ctx
,
NULL
,
stat
);
ctx
->
func
=
NULL
;
...
...
@@ -1668,7 +1672,6 @@ HRESULT compile_script(script_ctx_t *script, const WCHAR *src, const WCHAR *deli
ctx
.
funcs
=
NULL
;
ctx
.
func_decls
=
NULL
;
ctx
.
global_vars
=
NULL
;
ctx
.
dim_decls
=
NULL
;
ctx
.
classes
=
NULL
;
ctx
.
labels
=
NULL
;
ctx
.
global_consts
=
NULL
;
...
...
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