aboutsummaryrefslogtreecommitdiff
path: root/src/InterpLocalUniform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/InterpLocalUniform.h')
-rw-r--r--src/InterpLocalUniform.h33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/InterpLocalUniform.h b/src/InterpLocalUniform.h
index 85fd0e6..30368ea 100644
--- a/src/InterpLocalUniform.h
+++ b/src/InterpLocalUniform.h
@@ -10,11 +10,17 @@ typedef CCTK_REAL fp;
/******************************************************************************/
-/* misc stuff that Jonathan Thornburg likes to use */
+/*
+ * misc stuff that Jonathan Thornburg likes to use
+ */
+
+/* FIXME: C99 defines <stdbool.h>; we should really check if this has */
+/* already been included, and if so, not duplicate it */
typedef int bool;
#define false 0
#define true 1
+/* make if-else symmetrical: if (blah) then { ... } else { ... } */
#define then /* empty */
/******************************************************************************/
@@ -34,31 +40,6 @@ typedef int bool;
/******************************************************************************/
/*
- * Cactus has some odd anomolies between real and complex datatypes
- * as to whether they're #define or typedef, and how their presence
- * should be detected at preprocessor-time. These macros isolate this
- * and provide a clean way for the rest of the code to test for which
- * types are defined:
- */
-
-#ifdef CCTK_REAL4
- #define HAVE_CCTK_REAL4
- #define HAVE_CCTK_COMPLEX8
-#endif
-
-#ifdef CCTK_REAL8
- #define HAVE_CCTK_REAL8
- #define HAVE_CCTK_COMPLEX16
-#endif
-
-#ifdef CCTK_REAL16
- #define HAVE_CCTK_REAL16
- #define HAVE_CCTK_COMPLEX32
-#endif
-
-/******************************************************************************/
-
-/*
* compile-time upper bounds for sizing arrays etc
*/