compiler/libec: Improvements to units operations
authorJerome St-Louis <jerome@ecere.com>
Wed, 6 Aug 2014 22:57:14 +0000 (18:57 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 6 Aug 2014 22:57:14 +0000 (18:57 -0400)
commitf4957c9c082bc7ce880af428ddcd795770200fc9
tree5d933cb5ad6624711f1d2e3fac5c663d6dd2f799
parent12f54b9f87d40cb08130b1602654e5592a8a9fa6
compiler/libec: Improvements to units operations
- Not giving ambiguity warning when comparing related units on both side of comparison operator
- Not giving ambiguity warning on multiplication/division, giving base data type instead (powers / ratios)
- WARNING: Radians a = Pi/2; Degrees b = a * 180 / Pi; // This will now understand as Degrees the ratio of 180*a by Pi!!!
  (Degrees conversions had to be fixed in units.ec)
22 files changed:
compiler/bootstrap/ecp/bootstrap/ecp.c
compiler/bootstrap/libec/bootstrap/ast.c
compiler/bootstrap/libec/bootstrap/copy.c
compiler/bootstrap/libec/bootstrap/dbpass.c
compiler/bootstrap/libec/bootstrap/ecdefs.c
compiler/bootstrap/libec/bootstrap/expression.c
compiler/bootstrap/libec/bootstrap/firstPass.c
compiler/bootstrap/libec/bootstrap/freeAst.c
compiler/bootstrap/libec/bootstrap/grammar.c
compiler/bootstrap/libec/bootstrap/loadSymbols.c
compiler/bootstrap/libec/bootstrap/output.c
compiler/bootstrap/libec/bootstrap/pass0.c
compiler/bootstrap/libec/bootstrap/pass1.c
compiler/bootstrap/libec/bootstrap/pass15.c
compiler/bootstrap/libec/bootstrap/pass16.c
compiler/bootstrap/libec/bootstrap/pass2.c
compiler/bootstrap/libec/bootstrap/pass3.c
compiler/bootstrap/libec/bootstrap/type.c
compiler/libec/src/copy.ec
compiler/libec/src/ecdefs.ec
compiler/libec/src/pass15.ec
ecere/src/sys/units.ec