[pypy-svn] r50803 - pypy/branch/asmgcroot/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Sun Jan 20 17:04:46 CET 2008
Author: arigo
Date: Sun Jan 20 17:04:45 2008
New Revision: 50803
Modified:
pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py
Log:
Typo.
Modified: pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py
==============================================================================
--- pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py (original)
+++ pypy/branch/asmgcroot/pypy/translator/c/trackgcroot.py Sun Jan 20 17:04:45 2008
@@ -111,12 +111,10 @@
def process(self, iterlines, newfile, entrypoint='main', filename='?'):
for in_function, lines in self.enum_function(iterlines):
if in_function:
- self.process_function(functionlines, newfile, entrypoint,
- filename)
- else:
- newfile.writelines(lines) # unmodified
+ lines = self.process_function(lines, entrypoint, filename)
+ newfile.writelines(lines)
- def process_function(self, lines, newfile, entrypoint, filename):
+ def process_function(self, lines, entrypoint, filename):
tracker = FunctionGcRootTracker(lines)
tracker.is_main = tracker.funcname == entrypoint
if self.verbose:
@@ -130,7 +128,7 @@
fp = tracker.uses_frame_pointer
table = self.fixup_entrypoint_table(table, fp)
self.gcmaptable.extend(table)
- newfile.writelines(tracker.lines)
+ return tracker.lines
def fixup_entrypoint_table(self, table, uses_frame_pointer):
self.seen_main = True
More information about the Pypy-commit
mailing list