gnome-libs ANSI C patch
- From: Drazen Kacar <dave srce hr>
- To: gnome-devel-list gnome org
- Subject: gnome-libs ANSI C patch
- Date: Tue, 21 Sep 1999 01:45:26 +0200
Non constant initializations are not permitted by ANSI. Won't compile
everywhere. And void functions cannot return value. Really. :-)
The patch is against 1.0.17. While I was compiling, 1.0.18 appeared. Nice.
--- libart_lgpl/testart.c.orig	Tue Sep 21 00:58:51 1999
+++ libart_lgpl/testart.c	Tue Sep 21 01:17:46 1999
@@ -192,7 +192,11 @@
   double affine3[6];
   ArtAlphaGamma *alphagamma;
   double dash_data[] = { 20 };
-  ArtVpathDash dash = { 0, 1, dash_data };
+  ArtVpathDash dash;
+
+  dash.offset = 0;
+  dash.n_dash = 1;
+  dash.dash = dash_data;
 
 #ifdef TEST_AFFINE
   test_affine ();
@@ -362,8 +366,11 @@
 {
   ArtVpath *vpath, *vpath2;
   double dash_data[] = { 10, 4, 1, 4};
-  ArtVpathDash dash = { 0, 4, dash_data };
+  ArtVpathDash dash;
 
+  dash.offset = 0;
+  dash.n_dash = 4;
+  dash.dash = dash_data;
   vpath = randstar (50);
   vpath2 = art_vpath_dash (vpath, &dash);
   printf ("%%!\n");
--- zvt/zterm.c.orig	Tue Sep 21 01:39:17 1999
+++ zvt/zterm.c	Tue Sep 21 01:39:45 1999
@@ -68,7 +68,7 @@
   }
 }
 
-static void
+static
 button_press_event (ZvtTerm *term, GdkEventButton *e)
 {
   int x,y;
-- 
 .-.   .-.    Life is a sexually transmitted disease.
(_  \ /  _)
     |        dave@srce.hr
     |        dave@fly.srk.fer.hr
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]