From: Ian Lynagh Date: Tue, 14 Nov 2006 11:25:14 +0000 (+0000) Subject: Be compatible with older C standards X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=2dbfb2f1ff5caa862e1d1992491fcecd49e1007a;p=ghc-hetmet.git Be compatible with older C standards --- diff --git a/utils/hp2ps/Dimensions.c b/utils/hp2ps/Dimensions.c index 4b4aadb..878dd4e 100644 --- a/utils/hp2ps/Dimensions.c +++ b/utils/hp2ps/Dimensions.c @@ -33,6 +33,8 @@ static floatish KeyWidth PROTO((void)); /* forward */ void Dimensions() { + boolish keyOnGraph; + xrange = samplemap[nsamples - 1] - samplemap[0]; xrange = max(xrange, auxxrange); if (xrange == 0.0) xrange = 1.0; /* avoid division by 0.0 */ @@ -51,7 +53,7 @@ Dimensions() titleheight = TITLE_HEIGHT; } - boolish keyOnGraph = !multipageflag && TWENTY != 0; + keyOnGraph = !multipageflag && TWENTY != 0; graphwidth = titlewidth - graphx0 - (keyOnGraph ? KeyWidth() : 0); graphheight = borderheight - titleheight - (2 * borderspace) - graphy0; }