10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +01:00

Version:1.1.39

Version:1.1.40
This commit is contained in:
Anthony Scemama 2009-10-21 23:44:09 +02:00
parent 640f09d46a
commit 5fc51c6efb
2 changed files with 8 additions and 2 deletions

View File

@ -339,6 +339,7 @@ def build_sub_needs():
subname = find_subname(line)
sub = subroutines[subname]
sub.needs = []
sub.to_provide = vars
elif isinstance(line,End):
sub.needs = make_single(sub.needs)
sub = None
@ -355,7 +356,7 @@ def add_subroutine_needs():
for vars,line in text:
if isinstance(line,Call):
subname = find_subname(line)
vars = subroutines[subname].needs
vars = subroutines[subname].to_provide
result.append( (vars,line) )
main_result.append( (filename, result) )
return main_result
@ -400,6 +401,11 @@ def build_needs():
var = None
if var is not None:
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():
main = variables[v].same_as
if main != v:

View File

@ -1 +1 @@
version = "1.1.38"
version = "1.1.40"