You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/10/14 04:11:19 UTC

[lucy-commits] svn commit: r1183201 - in /incubator/lucy/branches/0.2: ./ core/Lucy/Object/VArray.cfh

Author: marvin
Date: Fri Oct 14 02:11:19 2011
New Revision: 1183201

URL: http://svn.apache.org/viewvc?rev=1183201&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/branches/0.2/   (props changed)
    incubator/lucy/branches/0.2/core/Lucy/Object/VArray.cfh

Propchange: incubator/lucy/branches/0.2/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Oct 14 02:11:19 2011
@@ -1 +1 @@
-/incubator/lucy/trunk:1148076,1148119,1159913,1164648,1171825,1183066,1183097
+/incubator/lucy/trunk:1148076,1148119,1159913,1164648,1171825,1183066,1183097,1183198

Modified: incubator/lucy/branches/0.2/core/Lucy/Object/VArray.cfh
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/0.2/core/Lucy/Object/VArray.cfh?rev=1183201&r1=1183200&r2=1183201&view=diff
==============================================================================
--- incubator/lucy/branches/0.2/core/Lucy/Object/VArray.cfh (original)
+++ incubator/lucy/branches/0.2/core/Lucy/Object/VArray.cfh Fri Oct 14 02:11:19 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.
      *