basic support for builtins
[m6w6/ext-psi] / src / calc.h
index 49114efc67b3a60f2997e8de36ff7485a24e5e3e..0c2678cde2daf48ca431443c1aab8bbd34d09b47 100644 (file)
 #include "token.h"
 #include "types/impl_val.h"
 
 #include "token.h"
 #include "types/impl_val.h"
 
-#define PRIfval "f"
-#define PRIdval "lf"
-#define PRIldval "Lf"
+#define PRIfval ".13gF"
+#define PRIdval ".53g"
+#define PRIldval ".64LgL"
 
 typedef token_t (*psi_calc)(token_t t1, impl_val *v1, token_t t2, impl_val *v2, impl_val *res);
 
 #include "calc/basic.h"
 #include "calc/bin.h"
 #include "calc/bool.h"
 
 typedef token_t (*psi_calc)(token_t t1, impl_val *v1, token_t t2, impl_val *v2, impl_val *res);
 
 #include "calc/basic.h"
 #include "calc/bin.h"
 #include "calc/bool.h"
+#include "calc/unary.h"
 #include "calc/cast.h"
 #include "calc/cmp.h"
 #include "calc/oper.h"
 #include "calc/cast.h"
 #include "calc/cmp.h"
 #include "calc/oper.h"