commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/geas/lib/classdefs classdata.h classdata_d...


From: Neil Tiffin
Subject: gnue/geas/lib/classdefs classdata.h classdata_d...
Date: Tue, 05 Jun 2001 14:42:07 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/06/05 14:42:07

Modified files:
        geas/lib/classdefs: classdata.h classdata_database.c 
                            classdata_database.h gcdparser.c gcdparser.h 
                            lparser.h lparser.l 

Log message:
        Clear up warnings regarding improper prototypes.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata.h.diff?cvsroot=OldCVS&tr1=1.31&tr2=1.32&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata_database.c.diff?cvsroot=OldCVS&tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata_database.h.diff?cvsroot=OldCVS&tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/gcdparser.c.diff?cvsroot=OldCVS&tr1=1.37&tr2=1.38&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/gcdparser.h.diff?cvsroot=OldCVS&tr1=1.26&tr2=1.27&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/lparser.h.diff?cvsroot=OldCVS&tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/lparser.l.diff?cvsroot=OldCVS&tr1=1.24&tr2=1.25&r1=text&r2=text

Patches:
Index: gnue/geas/lib/classdefs/classdata.h
diff -u gnue/geas/lib/classdefs/classdata.h:1.31 
gnue/geas/lib/classdefs/classdata.h:1.32
--- gnue/geas/lib/classdefs/classdata.h:1.31    Tue May 29 12:46:40 2001
+++ gnue/geas/lib/classdefs/classdata.h Tue Jun  5 14:42:07 2001
@@ -278,8 +278,8 @@
 const char *odl_enum_get_full_name(odl_enum * e);
 
 /* parser functions */
-int odl_get_error_count();
-int odl_get_warn_count();
+int odl_get_error_count(void);
+int odl_get_warn_count(void);
 
 /** \brief Resolve reference field.
  *  \param i The item from the parser that is converted to a reference field.
@@ -306,7 +306,7 @@
 
 void odl_free_tree(odl_tree * tree);
 
-odl_tree *odl_create_empty_tree();
+odl_tree *odl_create_empty_tree(void);
 
 odl_base *odl_find_in_container(odl_base * c, const char *name);
 
Index: gnue/geas/lib/classdefs/classdata_database.c
diff -u gnue/geas/lib/classdefs/classdata_database.c:1.15 
gnue/geas/lib/classdefs/classdata_database.c:1.16
--- gnue/geas/lib/classdefs/classdata_database.c:1.15   Fri May 25 16:53:48 2001
+++ gnue/geas/lib/classdefs/classdata_database.c        Tue Jun  5 14:42:07 2001
@@ -20,7 +20,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
  
-   $Id: classdata_database.c,v 1.15 2001/05/25 23:53:48 ntiffin Exp $
+   $Id: classdata_database.c,v 1.16 2001/06/05 21:42:07 ntiffin Exp $
 */
 
 /* generally speaking, do not include this, except in classdata.h */
@@ -302,7 +302,7 @@
  * 
 \* ------------------------------------------------------------------------- */
 DatabaseChange *
-create_database_change ()
+create_database_change (void)
 {
   DatabaseChange *c = g_new0 (DatabaseChange, 1);
   g_assert (c != NULL);
Index: gnue/geas/lib/classdefs/classdata_database.h
diff -u gnue/geas/lib/classdefs/classdata_database.h:1.5 
gnue/geas/lib/classdefs/classdata_database.h:1.6
--- gnue/geas/lib/classdefs/classdata_database.h:1.5    Thu Mar  8 12:55:31 2001
+++ gnue/geas/lib/classdefs/classdata_database.h        Tue Jun  5 14:42:07 2001
@@ -87,7 +87,7 @@
 DatabaseTable      *find_database_table  ( DatabaseDefinition *def , const 
char *name );
 DatabaseColumn     *add_database_column  ( DatabaseTable *table , const char 
*name , enum odl_fieldtype type );
 
-DatabaseChange *create_database_change( );
+DatabaseChange *create_database_change( void);
 void            free_database_change  ( DatabaseChange *change );
 
 /* add or remove a table. get ptr to DBchange for adding column info */
Index: gnue/geas/lib/classdefs/gcdparser.c
diff -u gnue/geas/lib/classdefs/gcdparser.c:1.37 
gnue/geas/lib/classdefs/gcdparser.c:1.38
--- gnue/geas/lib/classdefs/gcdparser.c:1.37    Mon Jun  4 09:57:34 2001
+++ gnue/geas/lib/classdefs/gcdparser.c Tue Jun  5 14:42:07 2001
@@ -22,7 +22,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 
-   $Id: gcdparser.c,v 1.37 2001/06/04 16:57:34 ntiffin Exp $
+   $Id: gcdparser.c,v 1.38 2001/06/05 21:42:07 ntiffin Exp $
    
 */
 
@@ -44,13 +44,13 @@
  * 
 \* ------------------------------------------------------------------------- */
 struct _odl_tree *
-alloc_odl_tree ()
+alloc_odl_tree (void)
 {
   struct _odl_tree *t = g_new0 (struct _odl_tree, 1);
   g_assert (t != NULL);
   if (t)
     {
-      t->root = alloc_odl_container (NULL, -1);
+      t->root = alloc_odl_container ();
       g_assert (t->root != NULL);
       if (t->root)
         {
Index: gnue/geas/lib/classdefs/gcdparser.h
diff -u gnue/geas/lib/classdefs/gcdparser.h:1.26 
gnue/geas/lib/classdefs/gcdparser.h:1.27
--- gnue/geas/lib/classdefs/gcdparser.h:1.26    Mon Jun  4 06:50:11 2001
+++ gnue/geas/lib/classdefs/gcdparser.h Tue Jun  5 14:42:07 2001
@@ -21,7 +21,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 
-   $Id: gcdparser.h,v 1.26 2001/06/04 13:50:11 ntiffin Exp $
+   $Id: gcdparser.h,v 1.27 2001/06/05 21:42:07 ntiffin Exp $
    
 */
 
@@ -194,19 +194,19 @@
                                           unsigned long int bound,
                                           enum odl_datatype dt);
 void                  free_odl_datatype (_odl_datatype * _datatype);
-_odl_datasource      *alloc_odl_datasource ();
+_odl_datasource      *alloc_odl_datasource (void);
 void                  free_odl_datasource (_odl_datasource * ds);
 
  /* memory functions */
-struct _odl_tree     *alloc_odl_tree ();
+struct _odl_tree     *alloc_odl_tree (void);
 void                  free_odl_tree (struct _odl_tree *tree);
-struct _odl_container *alloc_odl_container ();
+struct _odl_container *alloc_odl_container (void);
 void                  free_odl_container (struct _odl_container *c);
-struct _odl_item     *alloc_odl_item ();
+struct _odl_item     *alloc_odl_item (void);
 void                  free_odl_item (struct _odl_item *item);
-struct _odl_argument *alloc_odl_argument ();
+struct _odl_argument *alloc_odl_argument (void);
 void                  free_odl_argument (struct _odl_argument *argument);
-struct _odl_help     *alloc_odl_help ();
+struct _odl_help     *alloc_odl_help (void);
 void                  free_odl_help (struct _odl_item *help);
 void                  free_odl_unknown_item (struct _odl_base *base);
 void                  init_odl_base (struct _odl_base *base);
Index: gnue/geas/lib/classdefs/lparser.h
diff -u gnue/geas/lib/classdefs/lparser.h:1.4 
gnue/geas/lib/classdefs/lparser.h:1.5
--- gnue/geas/lib/classdefs/lparser.h:1.4       Mon Jun  4 09:57:34 2001
+++ gnue/geas/lib/classdefs/lparser.h   Tue Jun  5 14:42:07 2001
@@ -19,7 +19,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 
-   $Id: lparser.h,v 1.4 2001/06/04 16:57:34 ntiffin Exp $
+   $Id: lparser.h,v 1.5 2001/06/05 21:42:07 ntiffin Exp $
 */
 
 #ifndef LPARSER_Y
@@ -40,9 +40,9 @@
 int yymessage( char *msg , ... );
 void yy_setfirstfilename( char *filename );
 int yystartfile( char *filename );
-void clear_file_history( );
+void clear_file_history( void);
 void errors_show_file( int state );
-const char * yyget_current_filename( );
+const char * yyget_current_filename( void);
 
 extern struct _odl_container *yycurrent_container;
 
Index: gnue/geas/lib/classdefs/lparser.l
diff -u gnue/geas/lib/classdefs/lparser.l:1.24 
gnue/geas/lib/classdefs/lparser.l:1.25
--- gnue/geas/lib/classdefs/lparser.l:1.24      Mon Jun  4 09:57:34 2001
+++ gnue/geas/lib/classdefs/lparser.l   Tue Jun  5 14:42:07 2001
@@ -24,7 +24,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    
-   $Id: lparser.l,v 1.24 2001/06/04 16:57:34 ntiffin Exp $
+   $Id: lparser.l,v 1.25 2001/06/05 21:42:07 ntiffin Exp $
 
 */
 
@@ -88,7 +88,7 @@
 static struct FileData *file_stack = NULL; 
 
 static int push_file( char *filename );
-static int pop_file();           /* return 0 if nothing to pop else return 1 */
+static int pop_file(void);           /* return 0 if nothing to pop else return 
1 */
 
 static char         **processed_files = NULL;
 static unsigned int   processed_count = 0;
@@ -597,7 +597,7 @@
  * 
 \* ------------------------------------------------------------------------- */
 static int
-pop_file ()
+pop_file (void)
 {
   struct FileData *tmp;
 
@@ -747,7 +747,7 @@
  * 
 \* ------------------------------------------------------------------------- */
 void
-clear_file_history ()
+clear_file_history (void)
 {
   int i;
   g_assert (processed_files);
@@ -775,7 +775,7 @@
 /* ------------------------------------------------------------------------- *\
  * Return address of the current file name for use by the lexer
 \* ------------------------------------------------------------------------- */
-const char * yyget_current_filename( )
+const char * yyget_current_filename(void)
 {
   return (&currentfile.name[0]);
 }
@@ -784,7 +784,7 @@
  * 
 \* ------------------------------------------------------------------------- */
 int
-yywrap ()
+yywrap (void)
 {
   return (1);                   /* stop scanning */
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]