aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef>2004-06-27 11:47:45 +0000
committerjthorn <jthorn@0f49ee68-0e4f-0410-9b9c-b2c123ded7ef>2004-06-27 11:47:45 +0000
commit63c2cda52379aa218aedba6d19f9165a0b1958a2 (patch)
tree02ace72eef051a13d2572c7d29db2269f73cb1b4
parent3d280b8f25952b03ce43808e32c8506ec4891ab1 (diff)
drop our private definitions for various HAVE_CCTK_{REAL,COMPLEX}* macros
now that Cactus defines these git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/AEILocalInterp/trunk@22 0f49ee68-0e4f-0410-9b9c-b2c123ded7ef
-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
*/