mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 04:13:33 +01:00
Version:1.1.39
Version:1.1.40
This commit is contained in:
parent
640f09d46a
commit
5fc51c6efb
@ -339,6 +339,7 @@ def build_sub_needs():
|
|||||||
subname = find_subname(line)
|
subname = find_subname(line)
|
||||||
sub = subroutines[subname]
|
sub = subroutines[subname]
|
||||||
sub.needs = []
|
sub.needs = []
|
||||||
|
sub.to_provide = vars
|
||||||
elif isinstance(line,End):
|
elif isinstance(line,End):
|
||||||
sub.needs = make_single(sub.needs)
|
sub.needs = make_single(sub.needs)
|
||||||
sub = None
|
sub = None
|
||||||
@ -355,7 +356,7 @@ def add_subroutine_needs():
|
|||||||
for vars,line in text:
|
for vars,line in text:
|
||||||
if isinstance(line,Call):
|
if isinstance(line,Call):
|
||||||
subname = find_subname(line)
|
subname = find_subname(line)
|
||||||
vars = subroutines[subname].needs
|
vars = subroutines[subname].to_provide
|
||||||
result.append( (vars,line) )
|
result.append( (vars,line) )
|
||||||
main_result.append( (filename, result) )
|
main_result.append( (filename, result) )
|
||||||
return main_result
|
return main_result
|
||||||
@ -400,6 +401,11 @@ def build_needs():
|
|||||||
var = None
|
var = None
|
||||||
if var is not None:
|
if var is not None:
|
||||||
var.needs += vars
|
var.needs += vars
|
||||||
|
if isinstance(line,Call):
|
||||||
|
subname = find_subname(line)
|
||||||
|
var.needs += subroutines[subname].needs
|
||||||
|
# Need to do the same for functions. Variables inside if blocks of the
|
||||||
|
# function are not seen in tree.
|
||||||
for v in variables.keys():
|
for v in variables.keys():
|
||||||
main = variables[v].same_as
|
main = variables[v].same_as
|
||||||
if main != v:
|
if main != v:
|
||||||
|
@ -1 +1 @@
|
|||||||
version = "1.1.38"
|
version = "1.1.40"
|
||||||
|
Loading…
Reference in New Issue
Block a user