Date: Wed, 23 Jul 2003 15:16:39 +0200 From: Simon Barner <barner@in.tum.de> To: Kris Kennaway <kris@obsecurity.org> Cc: current@FreeBSD.org Subject: Re: Fixing gcc 3.3 compile failures -- fix for print/unrtf Message-ID: <20030723131639.GI566@zi025.glhnet.mhn.de> In-Reply-To: <20030718025200.GA36893@rot13.obsecurity.org> References: <20030718025200.GA36893@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030723131639.GI566>
