commit-gnue
[Top][All Lists]
Advanced

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

gnue geas/lib/classdefs/classdata.c geas/lib/cl...


From: Neil Tiffin
Subject: gnue geas/lib/classdefs/classdata.c geas/lib/cl...
Date: Sat, 19 May 2001 16:21:02 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/05/19 16:21:02

Modified files:
        geas/lib/classdefs: classdata.c classdata_database.c gcdparser.c 
                            lparser.l yparser.y 
        geas/tools     : gcdverifier.c 
        www            : faq.html 

Log message:
        Clean up compiler warnings.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata.c.diff?cvsroot=OldCVS&tr1=1.45&tr2=1.46&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/classdata_database.c.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/gcdparser.c.diff?cvsroot=OldCVS&tr1=1.31&tr2=1.32&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/lparser.l.diff?cvsroot=OldCVS&tr1=1.19&tr2=1.20&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/lib/classdefs/yparser.y.diff?cvsroot=OldCVS&tr1=1.24&tr2=1.25&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/tools/gcdverifier.c.diff?cvsroot=OldCVS&tr1=1.16&tr2=1.17&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/www/faq.html.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text

Patches:
Index: gnue/geas/lib/classdefs/classdata.c
diff -u gnue/geas/lib/classdefs/classdata.c:1.45 
gnue/geas/lib/classdefs/classdata.c:1.46
--- gnue/geas/lib/classdefs/classdata.c:1.45    Fri May 18 20:23:26 2001
+++ gnue/geas/lib/classdefs/classdata.c Sat May 19 16:21:02 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: classdata.c,v 1.45 2001/05/19 03:23:26 ntiffin Exp $
+   $Id: classdata.c,v 1.46 2001/05/19 23:21:02 ntiffin Exp $
    
 */
 
@@ -35,6 +35,7 @@
 #include "classdata.h"
 
 #include "lparser.h"
+int yyparse(void);
 
 /* spaces to indent per level */
 #define INDENT 2
@@ -189,7 +190,6 @@
   if (g_strcasecmp (name, "enum") == 0) return (DT_enum);
   if (g_strcasecmp (name, "unsignedint") == 0) return (DT_unsignedint);
   if (g_strcasecmp (name, "type") == 0) return (DT_type);
-  /* g_assert_not_reached(); /* parser requires 'unknown' return */
   return (DT_unknown);
 }
 
@@ -1748,7 +1748,7 @@
   while (l)
     {
 #ifdef DEBUG
-      printf( "++++ Pass 1 Start processing file: %s\n", l->data);
+      printf( "++++ Pass 1 Start processing file: %s\n", (char *)l->data);
 #endif
       switch (yystartfile (l->data))
         {
@@ -1789,7 +1789,7 @@
   while (l)
     {
 #ifdef DEBUG
-      printf( "++++ Pass 2 Start processing file: %s\n", l->data);
+      printf( "++++ Pass 2 Start processing file: %s\n", (char *)l->data);
 #endif
       switch (yystartfile (l->data))
         {
@@ -1911,7 +1911,7 @@
           fprintf (out, "Parents:");
           while (l)
             {
-              fprintf (out, " %s", l->data);
+              fprintf (out, " %s", (char *)l->data);
               if (l->next)
                 {
                   fprintf (out, ",");
@@ -1954,7 +1954,7 @@
                 }
               while (l2)
                 {
-                  fprintf (out, "%s", l2->data);
+                  fprintf (out, "%s", (char *)l2->data);
                   if (l2->next)
                     fprintf (out, ", ");
                   l2 = g_list_next (l2);
@@ -2003,7 +2003,7 @@
       lst = ((struct _odl_item *) item)->elements;
       while (lst)
         {
-          fprintf (out, " %s", lst->data);
+          fprintf (out, " %s", (char *)lst->data);
           lst = g_list_next (lst);
         }
       fprintf (out, "\n");
@@ -2043,8 +2043,8 @@
                 {
                   fprintf (out, " ");
                 }
-              fprintf (out, "    %s.%s = this.%s\n", it->sourceclass, s->data,
-                       t->data);
+              fprintf (out, "    %s.%s = this.%s\n", it->sourceclass, (char *) 
s->data,
+                       (char *) t->data);
               s = g_list_next (s);
               t = g_list_next (t);
             }
@@ -2059,8 +2059,8 @@
                 {
                   fprintf (out, " ");
                 }
-              fprintf (out, "    %s.%s = this.%s\n", it->sourceclass, s->data,
-                       t->data);
+              fprintf (out, "    %s.%s = this.%s\n", it->sourceclass, (char 
*)s->data,
+                       (char *) t->data);
               s = g_list_next (s);
               t = g_list_next (t);
             }
@@ -2075,8 +2075,8 @@
                 {
                   fprintf (out, " ");
                 }
-              fprintf (out, "    %s.%s = this.%s\n", it->sourceclass, s->data,
-                       t->data);
+              fprintf (out, "    %s.%s = this.%s\n", it->sourceclass, (char *) 
s->data,
+                       (char *)t->data);
               s = g_list_next (s);
               t = g_list_next (t);
             }
Index: gnue/geas/lib/classdefs/classdata_database.c
diff -u gnue/geas/lib/classdefs/classdata_database.c:1.11 
gnue/geas/lib/classdefs/classdata_database.c:1.12
--- gnue/geas/lib/classdefs/classdata_database.c:1.11   Mon Mar  5 19:09:15 2001
+++ gnue/geas/lib/classdefs/classdata_database.c        Sat May 19 16:21:02 2001
@@ -24,6 +24,7 @@
 
 #include <glib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "gcdparser.h"
 #include "classdata.h"
@@ -136,7 +137,7 @@
 void
 free_database_definition(DatabaseDefinition * def)
    {
-   GList *l;
+   /* GList *l; */
 
    if (def)
       {
@@ -310,7 +311,9 @@
 
 DBchange *
 dbchange_remove_column(DBchange * change, const char *name)
-   {}
+   {
+   return NULL;
+   }
 
 
 DBchange *
Index: gnue/geas/lib/classdefs/gcdparser.c
diff -u gnue/geas/lib/classdefs/gcdparser.c:1.31 
gnue/geas/lib/classdefs/gcdparser.c:1.32
--- gnue/geas/lib/classdefs/gcdparser.c:1.31    Fri May 18 20:23:26 2001
+++ gnue/geas/lib/classdefs/gcdparser.c Sat May 19 16:21:02 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.31 2001/05/19 03:23:26 ntiffin Exp $
+   $Id: gcdparser.c,v 1.32 2001/05/19 23:21:02 ntiffin Exp $
    
 */
 
@@ -748,7 +748,7 @@
 void
 odl_standardise_parents (odl_class * c)
 {
-  char *buf;
+  /* char *buf; */
   GList *l;
   odl_base *ptr;
   odl_base *item = NULL;
Index: gnue/geas/lib/classdefs/lparser.l
diff -u gnue/geas/lib/classdefs/lparser.l:1.19 
gnue/geas/lib/classdefs/lparser.l:1.20
--- gnue/geas/lib/classdefs/lparser.l:1.19      Fri May 18 20:23:26 2001
+++ gnue/geas/lib/classdefs/lparser.l   Sat May 19 16:21:02 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.19 2001/05/19 03:23:26 ntiffin Exp $
+   $Id: lparser.l,v 1.20 2001/05/19 23:21:02 ntiffin Exp $
 
 */
 
@@ -310,7 +310,7 @@
   fprintf (stderr, "error: ");
   if (yy_show_file_error == 1)
     {
-      fprintf (stderr, "file %s, line %d:\n", currentfile.name,
+      fprintf (stderr, "file %s, line %lu:\n", currentfile.name,
                currentfile.line);
     }
   va_start (ap, format);
@@ -350,7 +350,7 @@
   fprintf (stderr, "warning: ");
   if (yy_show_file_error == 1)
     {
-      fprintf (stderr, "file %s, line %d:\n", currentfile.name,
+      fprintf (stderr, "file %s, line %lu:\n", currentfile.name,
                currentfile.line);
     }
   va_start (ap, format);
@@ -390,7 +390,7 @@
   fprintf (stderr, "message: ");
   if (yy_show_file_error == 1)
     {
-      fprintf (stderr, "file %s, line %d:\n", currentfile.name,
+      fprintf (stderr, "file %s, line %lu:\n", currentfile.name,
                currentfile.line);
     }
   va_start (ap, format);
Index: gnue/geas/lib/classdefs/yparser.y
diff -u gnue/geas/lib/classdefs/yparser.y:1.24 
gnue/geas/lib/classdefs/yparser.y:1.25
--- gnue/geas/lib/classdefs/yparser.y:1.24      Fri May 18 20:23:26 2001
+++ gnue/geas/lib/classdefs/yparser.y   Sat May 19 16:21:02 2001
@@ -154,7 +154,7 @@
   ;
 
 pop_class:   /* */    {
-                        GList *l;
+                        /* GList *l; */
                         odl_class *c = NULL;
                         if (current_pass == 1)
                           {
@@ -350,16 +350,16 @@
   ;
 
 opt_format: /* */                       { $$ = NULL; }
-  |         '<' INTEGER             '>' { $$ = g_strdup_printf("%d",$2); }
+  |         '<' INTEGER             '>' { $$ = g_strdup_printf("%ld",$2); }
   |         '<' DOUBLE              '>' { $$ = g_strdup_printf("%f",$2); }
-  |         '<' INTEGER ',' INTEGER '>' { $$ = g_strdup_printf("%d,%d",$2,$4); 
}
+  |         '<' INTEGER ',' INTEGER '>' { $$ = 
g_strdup_printf("%ld,%ld",$2,$4); }
   |         '<' STRING              '>' { $$ = $2; }
-  |         '<' INTEGER ',' STRING  '>' { $$ = g_strdup_printf("%d,%s",$2,$4); 
g_free($4); }
+  |         '<' INTEGER ',' STRING  '>' { $$ = 
g_strdup_printf("%ld,%s",$2,$4); g_free($4); }
   ;
 
 opt_default: /* */        { $$ = NULL; }
   |          '=' STRING   { $$ = $2;   }
-  |          '=' INTEGER  { $$ = g_strdup_printf("%d",$2); }
+  |          '=' INTEGER  { $$ = g_strdup_printf("%ld",$2); }
   |          '=' DOUBLE   { $$ = g_strdup_printf("%f",$2); }
   |          '=' SYMBOL   { $$ = $2; }
   ;
Index: gnue/geas/tools/gcdverifier.c
diff -u gnue/geas/tools/gcdverifier.c:1.16 gnue/geas/tools/gcdverifier.c:1.17
--- gnue/geas/tools/gcdverifier.c:1.16  Fri May 18 20:23:26 2001
+++ gnue/geas/tools/gcdverifier.c       Sat May 19 16:21:02 2001
@@ -20,13 +20,14 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
  
-   $Id: gcdverifier.c,v 1.16 2001/05/19 03:23:26 ntiffin Exp $
+   $Id: gcdverifier.c,v 1.17 2001/05/19 23:21:02 ntiffin Exp $
 */
 
 #include <glib.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
 #include <string.h>
 #include <stdlib.h>
@@ -140,7 +141,7 @@
           else if (strcmp (argv[i], "--version") == 0)
             {
               GString *revision;
-              revision = g_string_new ("$Revision: 1.16 $");
+              revision = g_string_new ("$Revision: 1.17 $");
               if (revision->len > 14)
                 {
                   revision = g_string_erase (revision, 0, 11);  /* remove the 
'$Revsion:' part */
Index: gnue/www/faq.html
diff -u gnue/www/faq.html:1.8 gnue/www/faq.html:1.9
--- gnue/www/faq.html:1.8       Mon May  7 12:35:33 2001
+++ gnue/www/faq.html   Sat May 19 16:21:02 2001
@@ -133,7 +133,7 @@
        <br>
        4.11 - What is the GNUe Research &amp; Development Package? 
        <br>
-       4.12 - What is the GNUe Supply Chain Package? 
+       <a href="#GNUe-FAQ-4.12">4.12 - What is the GNUe Supply Chain Package? 
</a>
 </p>
 <p>
 </p>
@@ -149,7 +149,10 @@
        <a name="GNUe-FAQ-1.1"></a><b>1.1 - What is GNUe?</b>
 </p>
 <p>
-       GNUe standards for GNU Enterprise. GNUe is both free software and a 
modular architecture that provides automated support for most business 
processes. This type of software is sometimes referred to as Enterprise 
Software. Many proprietary commercial applications exists (i.e. from 
manufacturers like SAP, Manugistics, PeopleSoft, etc.) that provide similar 
functionality. For instance, a GNUe installation will typically provide 
integrated business software for human resources, payroll, inventory, 
purchasing, accounting, finance, planning, sales order entry, customer support, 
forecasting, and other business processes.
+       GNUe stands for GNU Enterprise. GNUe is both free software and a 
modular architecture that provides automated support for most business 
processes. This type of software is sometimes referred to as Enterprise 
Software. Many proprietary commercial Enterprise Software applications exists 
(i.e. from manufacturers like SAP, Manugistics, PeopleSoft, etc.) that provide 
similar functionality.
+</p>
+<p>
+       GNUe installation will typically provide integrated business software 
for human resources, payroll, inventory, purchasing, accounting, finance, 
planning, sales order entry, customer support, forecasting, and other business 
processes.
        <br>
        <br>
        <a name="GNUe-FAQ-1.2"></a><b>1.2 - What makes GNUe different?</b>
@@ -173,13 +176,13 @@
        <a name="GNUe-FAQ-1.5"></a><b>1.5 - Who contributed to this FAQ?</b>
 </p>
 <p>
-       The original draft of this FAQ was written in November 2000 by Neil 
Tiffin after taking a lot of abuse on GNUe IRC for suggesting that GNUe should 
work on a Macintosh (which it will shortly). Other contributors for the FAQ (in 
no particular order) include Derek Neighbors, James Thompson, Andrew Murie, and 
Andrew Hill.
+       The original draft of this FAQ was written in November 2000 by Neil 
Tiffin after taking a lot of abuse on GNUe IRC for suggesting that GNUe should 
work on a Macintosh. Contributors to this FAQ include, in no particular order, 
Derek Neighbors, James Thompson, Andrew Murie, and Andrew Hill.
 </p>
 <p>
        <a name="GNUe-FAQ-1.6"></a><b>1.6 - When was this FAQ last revised and 
where can I find it.</b>.
 </p>
 <p>
-       This FAQ is $Revision: 1.8 $ $Date: 2001/05/07 19:35:33 $.  The most 
recent version (automatically updated from CVS) can be found at <A 
href="http://www.gnu.org/projects/gnue/faq.html";>http://www.gnu.org/projects/gnue/faq.html</A>.
  Another version is located at <A 
href="http://gnue.org/index.cgi/faq?package=";>http://gnue.org/index.cgi/faq?package=</A>
+       This FAQ is $Revision: 1.9 $ $Date: 2001/05/19 23:21:02 $.  The most 
recent version (automatically updated from CVS) can be found at <A 
href="http://www.gnu.org/projects/gnue/faq.html";>http://www.gnu.org/projects/gnue/faq.html</A>.
  Another version is located at <A 
href="http://gnue.org/index.cgi/faq?package=";>http://gnue.org/index.cgi/faq?package=</A>
 </p>
 <p>
        <a name="GNUe-FAQ-1.7"></a><b>1.7 - What is Enterprise Software?</b>
@@ -233,6 +236,9 @@
        Become familiar with the GNUe system then email <a 
href="mailto:address@hidden";>address@hidden</a>. There is always something that 
needs to be done. We need all types of talent. So please don't be bashful.
 </p>
 <p>
+To contribute to GNUe you will also have to sign a Free Software Foundation 
copyright assignment.  More information can be obtained by sending email with 
your area of interest to <a href="mailto:address@hidden";>address@hidden</a>.
+</p>
+<p>
        <a name="GNUe-FAQ-1.13"></a><b>1.13 - What standard technologies or 
standards are used in GNUe?</b>
 </p>
 <p>
@@ -658,13 +664,13 @@
        (todo)
 </p>
 <p>
-       <b>3.7 - How do I get and install updates to GNUe?</b>
+       <a name="GNUe-FAQ-3.7"></a><b>3.7 - How do I get and install updates to 
GNUe?</b>
 </p>
 <p>
        (todo)
 </p>
 <p>
-       <b>3.8 - If I get into trouble, can I purchase timely support for 
GNUe?</b>
+       <a name="GNUe-FAQ-3.8"></a><b>3.8 - If I get into trouble, can I 
purchase timely support for GNUe?</b>
 </p>
 <p>
        (todo)
@@ -716,6 +722,7 @@
 <p>
        <a name="GNUe-FAQ-4.11"></a><b>4.12 - What is the GNUe Supply Chain 
Package?</b>
 </p>
+For more information regarding the Supply Chain Package see <a 
href="http://www.gnuenterprise.org/~neilt/sc.html";>title="http://www.gnuenterprise.org/~neilt/sc.html</a>
 <p>
 </p>
 </body>



reply via email to

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