1.1 --- a/simplify.py Sun Jan 21 17:56:01 2007 +0100
1.2 +++ b/simplify.py Mon Jan 22 01:29:15 2007 +0100
1.3 @@ -5,7 +5,7 @@
1.4 this module processes AST trees originating from the compiler module and
1.5 produces a result tree consisting of instruction-oriented program nodes.
1.6
1.7 -Copyright (C) 2006 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2006, 2007 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This software is free software; you can redistribute it and/or
1.11 modify it under the terms of the GNU General Public License as
1.12 @@ -823,7 +823,7 @@
1.13 """
1.14
1.15 subprogram = Subprogram(name=function.name, module=self.module, structures=self.current_structures[:],
1.16 - internal=0, returns_value=1, star=None, dstar=None, is_method=self.within_class)
1.17 + internal=0, returns_value=1, star=None, dstar=None, is_method=self.within_class, original_def=function)
1.18
1.19 self.current_subprograms.append(subprogram)
1.20 within_class = self.within_class
1.21 @@ -934,7 +934,7 @@
1.22 # Make a subprogram for the function and record it outside the main
1.23 # tree.
1.24
1.25 - subprogram = Subprogram(name=None, module=self.module, internal=0, returns_value=1, star=None, dstar=None)
1.26 + subprogram = Subprogram(name=None, module=self.module, internal=0, returns_value=1, star=None, dstar=None, original_def=lambda_)
1.27 self.current_subprograms.append(subprogram)
1.28 subprogram.code = [ReturnFromFunction(expr=self.dispatch(lambda_.code))]
1.29 self.current_subprograms.pop()