From owner-freebsd-ports@FreeBSD.ORG Wed Jul 23 06:16:41 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68B1637B401; Wed, 23 Jul 2003 06:16:41 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D08543F85; Wed, 23 Jul 2003 06:16:40 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 39811388BA; Wed, 23 Jul 2003 15:16:39 +0200 (CEST) Date: Wed, 23 Jul 2003 15:16:39 +0200 From: Simon Barner To: Kris Kennaway Message-ID: <20030723131639.GI566@zi025.glhnet.mhn.de> References: <20030718025200.GA36893@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="By57YlnFViWR/M0S" Content-Disposition: inline In-Reply-To: <20030718025200.GA36893@rot13.obsecurity.org> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: ports@FreeBSD.org cc: current@FreeBSD.org Subject: Re: Fixing gcc 3.3 compile failures -- fix for print/unrtf X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 13:16:41 -0000 --By57YlnFViWR/M0S Content-Type: multipart/mixed; boundary="movZSYdJ761vCHaE" Content-Disposition: inline --movZSYdJ761vCHaE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline --movZSYdJ761vCHaE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-ps.c" Content-Transfer-Encoding: quoted-printable --- ps.c.orig Tue Jul 22 18:56:13 2003 +++ ps.c Tue Jul 22 19:02:44 2003 @@ -187,7 +187,7 @@ /didShowPage false def \n\ %%------------------------------------------------------\n\ %% Set up the ISO fonts \n\ - +\n\ %% Times \n\ %% ----- \n\ /Times-Roman findfont dup length dict begin { \n\ @@ -196,28 +196,28 @@ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /TRomanISO exch definefont pop \n\ - +\n\ /Times-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /TBoldISO exch definefont pop \n\ - +\n\ /Times-BoldItalic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /TBoldItalicISO exch definefont pop \n\ - +\n\ /Times-Italic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /TItalicISO exch definefont pop \n\ - +\n\ %% Courier \n\ %% ----- \n\ /Courier-Roman findfont dup length dict begin { \n\ @@ -226,28 +226,28 @@ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /CRomanISO exch definefont pop \n\ - +\n\ /Courier-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /CBoldISO exch definefont pop \n\ - +\n\ /Courier-BoldItalic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /CBoldItalicISO exch definefont pop \n\ - +\n\ /Courier-Italic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /CItalicISO exch definefont pop \n\ - +\n\ %% Symbol \n\ %% ----- \n\ /Symbol-Roman findfont dup length dict begin { \n\ @@ -256,28 +256,28 @@ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /SRomanISO exch definefont pop \n\ - +\n\ /Symbol-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /SBoldISO exch definefont pop \n\ - +\n\ /Symbol-BoldItalic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /SBoldItalicISO exch definefont pop \n\ - +\n\ /Symbol-Italic findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /SItalicISO exch definefont pop \n\ - +\n\ %% Helvetica \n\ %% --------- \n\ /Helvetica-Roman findfont dup length dict begin { \n\ @@ -286,28 +286,28 @@ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /HRomanISO exch definefont pop \n\ - +\n\ /Helvetica-Bold findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /HBoldISO exch definefont pop \n\ - +\n\ /Helvetica-BoldOblique findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /HBoldItalicISO exch definefont pop \n\ - +\n\ /Helvetica-Oblique findfont dup length dict begin { \n\ 1 index /FID ne { def } { pop pop } ifelse \n\ } forall \n\ /Encoding ISOLatin1Encoding def \n\ currentdict end \n\ /HItalicISO exch definefont pop \n\ - +\n\ %% \n\ %% Ideally, before we can draw a line of text, we need to collect all the\= n\ %% words that will be on it, just as I do in my Beest HTML viewer, as well= \n\ @@ -318,39 +318,39 @@ %% ----------- Functions ------------\n\ /updateFont { \n\ /f0 null def \n\ - (Times) fontFamily eq (Times New Roman) fontFamily eq or { + (Times) fontFamily eq (Times New Roman) fontFamily eq or {\n\ bold { \n\ italic { /TBoldItalicISO } { /TBoldISO } ifelse \n\ } { \n\ italic { /TItalicISO } { /TRomanISO } ifelse \n\ } \n\ ifelse \n\ - } if - (Helvetica) fontFamily eq (Arial) fontFamily eq or { + } if\n\ + (Helvetica) fontFamily eq (Arial) fontFamily eq or {\n\ bold { \n\ italic { /HBoldItalicISO } { /HBoldISO } ifelse \n\ } { \n\ italic { /HItalicISO } { /HRomanISO } ifelse \n\ } \n\ ifelse \n\ - } if - (Courier) fontFamily eq (Courier New) fontFamily eq or { + } if\n\ + (Courier) fontFamily eq (Courier New) fontFamily eq or {\n\ bold { \n\ italic { /CBoldItalicISO } { /CBoldISO } ifelse \n\ } { \n\ italic { /CItalicISO } { /CRomanISO } ifelse \n\ } \n\ ifelse \n\ - } if - (Symbol) fontFamily eq { + } if\n\ + (Symbol) fontFamily eq {\n\ bold { \n\ italic { /SBoldItalicISO } { /SBoldISO } ifelse \n\ } { \n\ italic { /SItalicISO } { /SRomanISO } ifelse \n\ } \n\ ifelse \n\ - } if - + } if\n\ +\n\ findfont /f0 exch def \n\ /bboxBottom f0 /FontBBox get 1 get 1000 div fontSize mul -1 mul def \n\ /bboxTop f0 /FontBBox get 3 get 1000 div fontSize mul def \n\ @@ -392,13 +392,13 @@ } \n\ def \n\ /acharpath { \n\ - /acstr exch def pop /acsp exch def - newpath=20 - str { - /ch exch def - 1 string 0 ch put false charpath - acsp 0 rmoveto - } forall + /acstr exch def pop /acsp exch def\n\ + newpath \n\ + str {\n\ + /ch exch def\n\ + 1 string 0 ch put false charpath\n\ + acsp 0 rmoveto\n\ + } forall\n\ } def \n\ /A { \n\ /str exch def \n\ @@ -412,7 +412,7 @@ 1 -0.1 0 { \n\ /offset exch def \n\ offset setgray \n\ - x offset 3 mul add y offset 3 mul sub moveto + x offset 3 mul add y offset 3 mul sub moveto\n\ intercharSpace 0 str acharpath \n\ %% str false charpath \n\ fontSize 30 div setlinewidth stroke \n\ @@ -428,11 +428,11 @@ 1 -0.1 0 { \n\ /offset exch def \n\ offset setgray \n\ - x offset 3 mul add y offset 3 mul sub moveto + x offset 3 mul add y offset 3 mul sub moveto\n\ intercharSpace 0 str ashow \n\ %% str show \n\ } for \n\ - 0 setgray + 0 setgray\n\ } { \n\ intercharSpace 0 str ashow \n\ %% str show \n\ --movZSYdJ761vCHaE-- --By57YlnFViWR/M0S 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/Hoq3Ckn+/eutqCoRAgtYAJwLylp8ugE3TuaxINI36zM4zjvKZgCgrbSC h1COtqL6E1McjmL9m5tKSPg= =QvPC -----END PGP SIGNATURE----- --By57YlnFViWR/M0S--