You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by lo...@apache.org on 2012/01/08 02:36:05 UTC
[lucy-commits] svn commit: r1228765 - in /incubator/lucy/trunk/clownfish/src: CFCBindCore.c
CFCBindCore.h
Author: logie
Date: Sun Jan 8 01:36:05 2012
New Revision: 1228765
URL: http://svn.apache.org/viewvc?rev=1228765&view=rev
Log:
LUCY-202
Added an allocate function for the ruby bindings.
Modified:
incubator/lucy/trunk/clownfish/src/CFCBindCore.c
incubator/lucy/trunk/clownfish/src/CFCBindCore.h
Modified: incubator/lucy/trunk/clownfish/src/CFCBindCore.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCBindCore.c?rev=1228765&r1=1228764&r2=1228765&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCBindCore.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCBindCore.c Sun Jan 8 01:36:05 2012
@@ -54,9 +54,14 @@ const static CFCMeta CFCBINDCORE_META =
};
CFCBindCore*
+CFCBindCore_allocate() {
+ return (CFCBindCore*)CFCBase_allocate(&CFCBINDCORE_META);
+}
+
+CFCBindCore*
CFCBindCore_new(CFCHierarchy *hierarchy, const char *dest, const char *header,
const char *footer) {
- CFCBindCore *self = (CFCBindCore*)CFCBase_allocate(&CFCBINDCORE_META);
+ CFCBindCore *self = CFCBindCore_allocate();
return CFCBindCore_init(self, hierarchy, dest, header, footer);
}
Modified: incubator/lucy/trunk/clownfish/src/CFCBindCore.h
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCBindCore.h?rev=1228765&r1=1228764&r2=1228765&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCBindCore.h (original)
+++ incubator/lucy/trunk/clownfish/src/CFCBindCore.h Sun Jan 8 01:36:05 2012
@@ -41,6 +41,9 @@ struct CFCHierarchy;
* typically copyright information.
*/
CFCBindCore*
+CFCBindCore_allocate();
+
+CFCBindCore*
CFCBindCore_new(struct CFCHierarchy *hierarchy, const char *dest,
const char *header, const char *footer);