aboutsummaryrefslogtreecommitdiffstats
path: root/src/define-functions.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-16 15:29:43 +0200
committerMattias Andrée <maandree@kth.se>2017-07-16 15:29:43 +0200
commitd05d162cb81664f292834fa5d48d623d2b6147a7 (patch)
tree9d4252fcdfa2210613188d5c965514cfab6a8ec2 /src/define-functions.h
parentUse #include instead of #define (diff)
downloadblind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.gz
blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.bz2
blind-d05d162cb81664f292834fa5d48d623d2b6147a7.tar.xz
Misc code improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/define-functions.h')
-rw-r--r--src/define-functions.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/define-functions.h b/src/define-functions.h
index 4952fe0..3a44829 100644
--- a/src/define-functions.h
+++ b/src/define-functions.h
@@ -2,12 +2,24 @@
#define PROCESS process_lf
#define TYPE double
+#define SCAN_TYPE "lf"
+#define PRINT_TYPE "lf"
+#define PRINT_CAST double
#include FILE
#undef PROCESS
#undef TYPE
+#undef SCAN_TYPE
+#undef PRINT_TYPE
+#undef PRINT_CAST
#define PROCESS process_f
#define TYPE float
+#define SCAN_TYPE "f"
+#define PRINT_TYPE "lf"
+#define PRINT_CAST double
#include FILE
#undef PROCESS
#undef TYPE
+#undef SCAN_TYPE
+#undef PRINT_TYPE
+#undef PRINT_CAST