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: r1184959 - in /incubator/lucy/branches/clownfish_lemon/clownfish/src: CFCParamList.c CFCParamList.h
Date Mon, 17 Oct 2011 00:02:37 GMT
Author: marvin
Date: Mon Oct 17 00:02:36 2011
New Revision: 1184959

URL: http://svn.apache.org/viewvc?rev=1184959&view=rev
Log:
Make it possible to change a CFCParamList object to be variadic after
construction.  This make sense because the object isn't immutable anyway: we
add params one at a time already.

Modified:
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.c
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.h

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.c
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.c?rev=1184959&r1=1184958&r2=1184959&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.c (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.c Mon Oct 17 00:02:36
2011
@@ -145,6 +145,12 @@ CFCParamList_num_vars(CFCParamList *self
     return self->num_vars;
 }
 
+void
+CFCParamList_set_variadic(CFCParamList *self, int variadic) {
+    self->variadic = !!variadic;
+    S_generate_c_strings(self);
+}
+
 int
 CFCParamList_variadic(CFCParamList *self) {
     return self->variadic;

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.h
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.h?rev=1184959&r1=1184958&r2=1184959&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.h (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParamList.h Mon Oct 17 00:02:36
2011
@@ -43,6 +43,9 @@ CFCParamList_get_variables(CFCParamList 
 const char**
 CFCParamList_get_initial_values(CFCParamList *self);
 
+void
+CFCParamList_set_variadic(CFCParamList *self, int variadic);
+
 int
 CFCParamList_variadic(CFCParamList *self);
 



Mime
View raw message