diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-30 14:50:02 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-31 13:36:34 -0400 |
commit | 7a95dbd5ec3cf15a1fca7ea75ae9a51a9efce26a (patch) | |
tree | 964a368c9a768513dbb4ca78d0776d92f8385154 | |
parent | 70d442e4a3d65410b2f6711aad2d07a44afd33af (diff) |
double => long double
-rw-r--r-- | main.c | 4 | ||||
-rw-r--r-- | types.h | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -25,6 +25,10 @@ switch to / add as an alternative: libffi X ::= newtype(int); or something any odd number of "s for a string --- +make sure that floating point literals are exact as possible + have some way of doing Infinity and s/qNaN (you can + have them be in std/math.toc) +once you have a bunch of test code, try making more Expression members pointers error on x ::= {return; 3} #returns_code (struct body is a block, to be evaluated at compile time, which returns the actual statements) - struct varargs @@ -25,7 +25,7 @@ For more information, please refer to <http://unlicense.org/> */ /* NOTE: make sure you edit copy.c and cgen_recurse_subexprs/types when you make a change to expression-related types or type-related types in this file! */ -typedef long double Floating; /* OPTIM: Switch to double, but make sure floating-point literals are right */ +typedef double Floating; #if __STDC_VERSION__ >= 199901 || defined _MSC_VER @@ -366,7 +366,6 @@ typedef struct { U32 end; /* exclusive */ } SourcePos; -/* NOTE: Location is typedef'd in util/err.c */ typedef struct Token { TokenKind kind; SourcePos pos; |