[pypy-svn] r25950 - pypy/dist/pypy/translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Tue Apr 18 16:08:51 CEST 2006


Author: antocuni
Date: Tue Apr 18 16:08:41 2006
New Revision: 25950

Modified:
   pypy/dist/pypy/translator/cli/src/pypylib.cs
Log:
Added the _ll_resize method.



Modified: pypy/dist/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/pypylib.cs	Tue Apr 18 16:08:41 2006
@@ -29,6 +29,14 @@
             this[index] = item;
         }
 
+        public void _ll_resize(int length)
+        {
+            if (length > this.Count)
+                this._ll_resize_ge(length);
+            else if (length < this.Count)
+                this._ll_resize_le(length);
+        }
+
         public void _ll_resize_ge(int length)
         {
             if (this.Count < length) 
@@ -50,6 +58,7 @@
             }
         }
 
+        /*
         public void append(T item)
         {
             this.Add(item);
@@ -69,5 +78,6 @@
         {
             return this.IndexOf(item);
         }
+        */
     }
 }



More information about the Pypy-commit mailing list