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 2009/09/15 03:35:10 UTC

svn commit: r814958 - in /lucene/lucy/trunk/core/Lucy/Object: Undefined.bp Undefined.c

Author: marvin
Date: Tue Sep 15 01:35:10 2009
New Revision: 814958

URL: http://svn.apache.org/viewvc?rev=814958&view=rev
Log:
Commit LUCY-47, adding Lucy::Object::Undefined.

Added:
    lucene/lucy/trunk/core/Lucy/Object/Undefined.bp   (with props)
    lucene/lucy/trunk/core/Lucy/Object/Undefined.c   (with props)

Added: lucene/lucy/trunk/core/Lucy/Object/Undefined.bp
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/core/Lucy/Object/Undefined.bp?rev=814958&view=auto
==============================================================================
--- lucene/lucy/trunk/core/Lucy/Object/Undefined.bp (added)
+++ lucene/lucy/trunk/core/Lucy/Object/Undefined.bp Tue Sep 15 01:35:10 2009
@@ -0,0 +1,37 @@
+parcel Lucy;
+
+class Lucy::Object::Undefined extends Lucy::Object::Obj {
+
+    u32_t
+    Get_RefCount(Undefined* self);
+
+    incremented Undefined*
+    Inc_RefCount(Undefined* self);
+
+    u32_t 
+    Dec_RefCount(Undefined* self);
+}
+
+__C__
+extern lucy_Undefined* LUCY_UNDEF;
+
+#ifdef LUCY_USE_SHORT_NAMES
+  #define UNDEF LUCY_UNDEF
+#endif
+__END_C__
+
+/* Copyright 2009 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+

Propchange: lucene/lucy/trunk/core/Lucy/Object/Undefined.bp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/lucy/trunk/core/Lucy/Object/Undefined.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/core/Lucy/Object/Undefined.c?rev=814958&view=auto
==============================================================================
--- lucene/lucy/trunk/core/Lucy/Object/Undefined.c (added)
+++ lucene/lucy/trunk/core/Lucy/Object/Undefined.c Tue Sep 15 01:35:10 2009
@@ -0,0 +1,45 @@
+#define C_LUCY_UNDEFINED
+#define LUCY_USE_SHORT_NAMES
+#define CHY_USE_SHORT_NAMES
+
+#include "Lucy/Object/VTable.h"
+#include "Lucy/Object/Undefined.h"
+
+static Undefined the_undef_object = { UNDEFINED, {1} };
+Undefined *UNDEF = &the_undef_object;
+
+u32_t
+Undefined_get_refcount(Undefined* self)
+{
+    CHY_UNUSED_VAR(self);
+    return 1;
+}
+
+Undefined*
+Undefined_inc_refcount(Undefined* self)
+{
+    return self;
+}
+
+u32_t
+Undefined_dec_refcount(Undefined* self)
+{
+    UNUSED_VAR(self);
+    return 1;
+}
+
+/* Copyright 2009 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+

Propchange: lucene/lucy/trunk/core/Lucy/Object/Undefined.c
------------------------------------------------------------------------------
    svn:eol-style = native