diff options
author | Ian Lynagh <igloo@earth.li> | 2006-11-14 11:25:14 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2006-11-14 11:25:14 +0000 |
commit | 2dbfb2f1ff5caa862e1d1992491fcecd49e1007a (patch) | |
tree | 0107cf8247a35be3a7da1f3ecc1957c62c8edb25 /utils | |
parent | 70c0442b8dbe12bfd0968a1312fabf31a259f996 (diff) | |
download | haskell-2dbfb2f1ff5caa862e1d1992491fcecd49e1007a.tar.gz |
Be compatible with older C standards
Diffstat (limited to 'utils')
-rw-r--r-- | utils/hp2ps/Dimensions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/hp2ps/Dimensions.c b/utils/hp2ps/Dimensions.c index 4b4aadb101..878dd4efe2 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; } |