diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:03 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:29:03 +0000 |
commit | c61023614eb9182293f5c26c22a3babf65f1dee1 (patch) | |
tree | f33cce17ed619289afed5290f9d976f0f5746793 /math.c | |
parent | c538606166a71ab7b711de7394cc61add265a209 (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* $XConsortium: math.c,v 1.17 91/07/25 17:51:34 rws Exp $ - * $XFree86: xc/programs/xcalc/math.c,v 1.5 2001/10/28 03:34:26 tsi Exp $ + * $XFree86: xc/programs/xcalc/math.c,v 1.6 2003/05/27 22:26:59 tsi Exp $ * * math.c - mathematics functions for a hand calculator under X * @@ -96,10 +96,8 @@ static int entered=1; /* true if display contains a valid number. static int lift_enabled = 0; /* for rpn mode only */ static int CLR =0; /* CLR clears display. if 1, clears acc, also */ -static int OFF =0; /* once clears mem, twice quits */ static int Dpoint=0; /* to prevent using decimal pt twice in a # */ static int clrdisp=1; /* if true clears display before entering # */ -static int accset =0; static int lastop =kCLR; static int memop =kCLR; static int exponent=0; @@ -159,7 +157,6 @@ int pre_op(keynum) } if (keynum != kCLR) CLR=0; - if (keynum != kOFF) OFF=0; return(0); } @@ -845,7 +842,7 @@ offf(void) if (rpn) for (i=1; i < XCALC_MEMORY; i++) mem[i]=0.0; - accset=exponent=Dpoint=0; + exponent=Dpoint=0; DrawDisplay(); } |