mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Reduce global status constants
The constants: 9, 9/10, 10/9, 24, 360, 400 are used by func.c only, so there were moved from {q,z}math.{c,h} to func.c. The constants: 3, 4 are used by zrandom.c only, so there were moved from {q,z}math.{c,h} to zrandom.c.
This commit is contained in:
4
qmath.h
4
qmath.h
@@ -272,9 +272,7 @@ static inline NUMBER* qlink(NUMBER* q) { if(q) { (q)->links++; } return q; }
|
||||
* constants used often by the arithmetic routines
|
||||
*/
|
||||
EXTERN NUMBER _qzero_, _qone_, _qnegone_, _qonehalf_, _qneghalf_, _qonesqbase_;
|
||||
EXTERN NUMBER _qtwo_, _qthree_, _qfour_, _qten_;
|
||||
EXTERN NUMBER _qtendivnine_, _qninedivten_;
|
||||
EXTERN NUMBER _qthreesixty, _qfourhundred, _qtwentyfour;
|
||||
EXTERN NUMBER _qtwo_, _qten_;
|
||||
EXTERN NUMBER * initnumbs[];
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user