[pypy-svn] r18981 - in pypy/dist/pypy/translator: c/test goal

pedronis at codespeak.net pedronis at codespeak.net
Wed Oct 26 02:53:59 CEST 2005


Author: pedronis
Date: Wed Oct 26 02:53:57 2005
New Revision: 18981

Modified:
   pypy/dist/pypy/translator/c/test/test_standalone.py
   pypy/dist/pypy/translator/goal/driver.py
Log:
force a var-size list for argv.



Modified: pypy/dist/pypy/translator/c/test/test_standalone.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_standalone.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_standalone.py	Wed Oct 26 02:53:57 2005
@@ -16,6 +16,7 @@
 
     t = Translator(entry_point)
     s_list_of_strings = SomeList(ListDef(None, SomeString()))
+    s_list_of_strings.listdef.resize()
     t.annotate([s_list_of_strings])
     t.specialize()
     cbuilder = t.cbuilder(standalone=True)

Modified: pypy/dist/pypy/translator/goal/driver.py
==============================================================================
--- pypy/dist/pypy/translator/goal/driver.py	(original)
+++ pypy/dist/pypy/translator/goal/driver.py	Wed Oct 26 02:53:57 2005
@@ -89,6 +89,7 @@
 
         if standalone:
             ldef = listdef.ListDef(None, annmodel.SomeString())
+            ldef.resize()
             inputtypes = [annmodel.SomeList(ldef)]
         self.inputtypes = inputtypes
 



More information about the Pypy-commit mailing list