Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv474

Modified Files:
        porter_dutch.c porter_dutch.h porter_eng.c porter_eng.h 
Log Message:
In this day and age we can safely assume that all compilers accept prototypes.  
As an added bonus, this prevents icc on Windows from giving forth a warning.

Index: porter_dutch.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/porter_dutch.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- porter_dutch.c      26 Feb 2007 10:08:46 -0000      1.3
+++ porter_dutch.c      17 Jul 2007 07:30:56 -0000      1.4
@@ -119,8 +119,6 @@
 /*****************************************************************************/
 /********************   Private Function Declarations   **********************/
 
-#ifdef __STDC__
-
 static int WordSize( char *word );
 #if 0
 static int ContainsVowel( char *word );
@@ -136,24 +134,6 @@
 static int StripDashes( char *word );
 static int gt2( char *word );
 static int RemoveDia( char *c );
-#else
-
-static int WordSize( /* word */ );
-#if 0
-static int ContainsVowel( /* word */ );
-#endif
-static int DupVCond( /* word */ );
-static int DuplicateV( /* word */ );
-static int EndsWithC( /* word */ );
-static int EndsWithV( /* word */ );
-static int EndsWithVX( /* word */ );
-static int ReplaceSuffix( /* word, rule */ );
-static int ReplacePrefix( /* word, rule */ );
-static int ReplaceInfix( /* word, rule */ );
-static int StripDashes( /* word */ );
-static int gt2( /* word */ );
-static int RemoveDia( /* character */ );
-#endif
 
 
/******************************************************************************/
 /*****************   Initialized Private Data Structures   
********************/

Index: porter_dutch.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/porter_dutch.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- porter_dutch.h      21 Feb 2007 14:25:57 -0000      1.2
+++ porter_dutch.h      17 Jul 2007 07:30:59 -0000      1.3
@@ -42,19 +42,11 @@
 
/******************************************************************************/
 /****************************   Public Routines   
*****************************/
 
-#ifdef __STDC__
-
 extern int dStem( char *word );
 /* returns: 1 --> non-word containing numbers and hyphens, not stemmed
                   e.g. 12-5-1995
             2 --> word was not changed, e.g. 'loop' --> 'loop'
            3 --> word was changed */
 
-#else
-
-extern int Stem();
-
-#endif
-
 #endif
 

Index: porter_eng.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/porter_eng.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- porter_eng.c        26 Feb 2007 10:08:47 -0000      1.3
+++ porter_eng.c        17 Jul 2007 07:31:00 -0000      1.4
@@ -56,8 +56,6 @@
 /*****************************************************************************/
 /********************   Private Function Declarations   **********************/
 
-#ifdef __STDC__
-
 static int WordSize( char *word );
 static int ContainsVowel( char *word );
 static int EndsWithCVC( char *word );
@@ -65,17 +63,6 @@
 static int RemoveAnE( char *word );
 static int ReplaceEnd( char *word, RuleList *rule );
 
-#else
-
-static int WordSize( /* word */ );
-static int ContainsVowel( /* word */ );
-static int EndsWithCVC( /* word */ );
-static int AddAnE( /* word */ );
-static int RemoveAnE( /* word */ );
-static int ReplaceEnd( /* word, rule */ );
-
-#endif
-
 
/******************************************************************************/
 /*****************   Initialized Private Data Structures   
********************/
 

Index: porter_eng.h
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/porter_eng.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- porter_eng.h        21 Feb 2007 14:26:00 -0000      1.2
+++ porter_eng.h        17 Jul 2007 07:31:01 -0000      1.3
@@ -14,15 +14,7 @@
 
/******************************************************************************/
 /****************************   Public Routines   
*****************************/
 
-#ifdef __STDC__
-
 extern int Stem( char *word );      /* returns 1 on success, 0 otherwise */
 
-#else
-
-extern int Stem();
-
-#endif
-
 #endif
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to