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/02/26 00:28:14 UTC
[lucy-commits] svn commit: r1074748 - in /incubator/lucy/trunk/clownfish: include/CFC.h
src/CFCType.c src/CFCType.h
Author: marvin
Date: Fri Feb 25 23:28:14 2011
New Revision: 1074748
URL: http://svn.apache.org/viewvc?rev=1074748&view=rev
Log:
Fix a few glitches discovered by turning up the warning level on the C
compiler.
Modified:
incubator/lucy/trunk/clownfish/include/CFC.h
incubator/lucy/trunk/clownfish/src/CFCType.c
incubator/lucy/trunk/clownfish/src/CFCType.h
Modified: incubator/lucy/trunk/clownfish/include/CFC.h
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/include/CFC.h?rev=1074748&r1=1074747&r2=1074748&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/include/CFC.h (original)
+++ incubator/lucy/trunk/clownfish/include/CFC.h Fri Feb 25 23:28:14 2011
@@ -26,5 +26,6 @@
#include "CFCParcel.h"
#include "CFCSymbol.h"
#include "CFCType.h"
+#include "CFCUtil.h"
#include "CFCVariable.h"
Modified: incubator/lucy/trunk/clownfish/src/CFCType.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCType.c?rev=1074748&r1=1074747&r2=1074748&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCType.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCType.c Fri Feb 25 23:28:14 2011
@@ -29,6 +29,7 @@
#include "CFCBase.h"
#include "CFCType.h"
#include "CFCParcel.h"
+#include "CFCSymbol.h"
#include "CFCUtil.h"
struct CFCType {
@@ -236,7 +237,7 @@ CFCType_new_composite(int flags, CFCType
}
char c_string[MAX_LEN + 1];
strcpy(c_string, child_c_string);
- size_t i;
+ int i;
for (i = 0; i < indirection; i++) {
strncat(c_string, "*", 1);
}
@@ -421,7 +422,7 @@ CFCType_const(CFCType *self)
return !!(self->flags & CFCTYPE_CONST);
}
-int
+void
CFCType_set_nullable(CFCType *self, int nullable)
{
if (nullable) {
Modified: incubator/lucy/trunk/clownfish/src/CFCType.h
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCType.h?rev=1074748&r1=1074747&r2=1074748&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCType.h (original)
+++ incubator/lucy/trunk/clownfish/src/CFCType.h Fri Feb 25 23:28:14 2011
@@ -99,6 +99,9 @@ const char*
CFCType_get_array(CFCType *self);
int
+CFCType_const(CFCType *self);
+
+void
CFCType_set_nullable(CFCType *self, int nullable);
int