lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [lucy-commits] svn commit: r1183198 - /incubator/lucy/trunk/core/Lucy/Object/VArray.cfh
Date Fri, 14 Oct 2011 02:02:58 GMT
Author: marvin
Date: Fri Oct 14 02:02:58 2011
New Revision: 1183198

URL: http://svn.apache.org/viewvc?rev=1183198&view=rev
Log:
Make it possible to store(), push() and unshift() undef elements into VArrays
from Perl, the way it's always been possible to perform similar actions with
NULLs from C.  (Needed by LUCY-180)

Modified:
    incubator/lucy/trunk/core/Lucy/Object/VArray.cfh

Modified: incubator/lucy/trunk/core/Lucy/Object/VArray.cfh
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Object/VArray.cfh?rev=1183198&r1=1183197&r2=1183198&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Object/VArray.cfh (original)
+++ incubator/lucy/trunk/core/Lucy/Object/VArray.cfh Fri Oct 14 02:02:58 2011
@@ -48,7 +48,7 @@ class Lucy::Object::VArray cnick VA inhe
     /** Push an item onto the end of a VArray.
      */
     void
-    Push(VArray *self, decremented Obj *element);
+    Push(VArray *self, decremented Obj *element = NULL);
 
     /** Push all the elements of another VArray onto the end of this one.
      */
@@ -63,7 +63,7 @@ class Lucy::Object::VArray cnick VA inhe
     /** Unshift an item onto the front of a VArray.
      */
     void
-    Unshift(VArray *self, decremented Obj *element);
+    Unshift(VArray *self, decremented Obj *element = NULL);
 
     /** Shift an item off of the front of a VArray.
      */
@@ -85,7 +85,7 @@ class Lucy::Object::VArray cnick VA inhe
      * existing element.
      */
     void
-    Store(VArray *self, uint32_t tick, decremented Obj *elem);
+    Store(VArray *self, uint32_t tick, decremented Obj *elem = NULL);
 
     /** Replace an element in the VArray with NULL and return it.
      *



Mime
View raw message