From 63c2cda52379aa218aedba6d19f9165a0b1958a2 Mon Sep 17 00:00:00 2001 From: jthorn Date: Sun, 27 Jun 2004 11:47:45 +0000 Subject: 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 --- src/InterpLocalUniform.h | 33 +++++++-------------------------- 1 file 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 ; 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 */ /******************************************************************************/ @@ -33,31 +39,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 */ -- cgit v1.2.3