Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2003 03:09:04 +0200
From:      Simon Barner <barner@in.tum.de>
To:        ports@freebsd.org
Subject:   Re: Fixing gcc 3.3 compile failures -- fix for math/topaz
Message-ID:  <20030724010904.GB1843@zi025.glhnet.mhn.de>
In-Reply-To: <20030723220013.GC16247@madman.celabo.org>
References:  <20030718025200.GA36893@rot13.obsecurity.org> <20030723131437.GG566@zi025.glhnet.mhn.de> <20030723220013.GC16247@madman.celabo.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--4zI0WCX1RcnW9Hbu
Content-Type: multipart/mixed; boundary="5QAgd0e35j3NYeGe"
Content-Disposition: inline


--5QAgd0e35j3NYeGe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

It was suggested to me that my port was not too optimal :-) Here is a
updated version.

Cheers,
 Simon

--5QAgd0e35j3NYeGe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-topaz::tpv2ps.cc"
Content-Transfer-Encoding: quoted-printable

--- topaz/tpv2ps.cc.orig	Fri Jun 27 14:35:40 2003
+++ topaz/tpv2ps.cc	Thu Jul 24 02:50:11 2003
@@ -31,8 +31,6 @@
 #include <math.h>
 #include <string>
 #include <time.h>
-#include <getopt.h>
-//char *optarg;
=20
 extern int errno;
 #include "vectdefs.h"
@@ -63,31 +61,31 @@
=20
 #define buffersize 1024
=20
-char* entry[] =3D {
-  {"Times-Roman-Q"},
-  {"Times-Bold-Q"},
-  {"Times-Italic-Q"},
-  {"Times-BoldItalic-Q"},
-  {"Helvetica-Q"},
-  {"Helvetica-Bold-Q"},
-  {"Helvetica-Oblique-Q"},
-  {"Helvetica-BoldOblique-Q"},
-  {"Courier-Q"},
-  {"Courier-Bold-Q"},
-  {"Courier-Oblique-Q"},
-  {"Courier-BoldOblique-Q"},
-  {"Symbol"}
+static const char *entry[] =3D {
+  "Times-Roman-Q",
+  "Times-Bold-Q",
+  "Times-Italic-Q",
+  "Times-BoldItalic-Q",
+  "Helvetica-Q",
+  "Helvetica-Bold-Q",
+  "Helvetica-Oblique-Q",
+  "Helvetica-BoldOblique-Q",
+  "Courier-Q",
+  "Courier-Bold-Q",
+  "Courier-Oblique-Q",
+  "Courier-BoldOblique-Q",
+  "Symbol"
 };
=20
-char* kentry[] =3D {
-  {"Ryumin-Light-H"},
-  {"Ryumin-Light-H"},
-  {"Ryumin-Light-H"},
-  {"Ryumin-Light-H"},
-  {"GothicBBB-Medium-H"},
-  {"GothicBBB-Medium-H"},
-  {"GothicBBB-Medium-H"},
-  {"GothicBBB-Medium-H"},
+static const char *kentry[] =3D {
+  "Ryumin-Light-H",
+  "Ryumin-Light-H",
+  "Ryumin-Light-H",
+  "Ryumin-Light-H",
+  "GothicBBB-Medium-H",
+  "GothicBBB-Medium-H",
+  "GothicBBB-Medium-H",
+  "GothicBBB-Medium-H",
 };
=20
 double papery;

--5QAgd0e35j3NYeGe--

--4zI0WCX1RcnW9Hbu
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/HzGwCkn+/eutqCoRAki+AKCuQaOrrCyd7MPTH+8kJWkit2m4IACfQHmZ
R+6LSOsT721/teydAYbbEjU=
=18Fn
-----END PGP SIGNATURE-----

--4zI0WCX1RcnW9Hbu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030724010904.GB1843>