From 6670038e623dc0d486f24ae72ebfc0d9b1a8d3a1 Mon Sep 17 00:00:00 2001 From: jmasso Date: Thu, 3 Jun 1999 09:20:39 +0000 Subject: SOme more git-svn-id: http://svn.cactuscode.org/flesh/trunk@544 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/IO/Overload.c | 81 ----------------------------------------------------- src/IO/OverloadIO.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 src/IO/Overload.c create mode 100644 src/IO/OverloadIO.c (limited to 'src/IO') diff --git a/src/IO/Overload.c b/src/IO/Overload.c deleted file mode 100644 index dac6dcaf..00000000 --- a/src/IO/Overload.c +++ /dev/null @@ -1,81 +0,0 @@ - /*@@ - @file Overload.c - @date Thu Feb 4 09:47:23 1999 - @author Tom Goodale - @desc - Contains routines to overload the IO functions. - Uses the overload macros to make sure of consistency and - to save typing ! - @enddesc - @@*/ - -#include -#include -#include - -#include "flesh.h" -#include "OverloadMacros.h" - -static char *rcsid="$Header$"; - -/* Define the prototypes for the dummy functions. */ -#define OVERLOADABLE(name) OVERLOADABLE_DUMMYPROTOTYPE(name) - -/* There are default versions for all overloadable IO functions */ -#define CCTK_DummyOutputGH CactusDefaultOutputGH -#define CCTK_DummyOutputVarAsByMethod CactusDefaultOutputVarAsByMethod - -#include "IOOverloadables.h" - -#undef CCTK_DummyOutputGH -#undef CCTK_DummyOutputVarAsByMethod -#undef OVERLOADABLE - -/* Create the overloadable function variables and the - * functions allowing the variables to be set. - */ -#define OVERLOADABLE(name) OVERLOADABLE_FUNCTION(name) - -#include "IOOverloadables.h" - -#undef OVERLOADABLE - - /*@@ - @routine SetupIOFunctions - @date Thu Feb 4 09:58:29 1999 - @author Tom Goodale - @desc - Set any IO function which hasn't been overloaded to the default. - @enddesc - @calls - @calledby - @history - - @endhistory - -@@*/ -int SetupIOFunctions(void) -{ - -#define OVERLOADABLE(name) OVERLOADABLE_CHECK(name) - - /* There are default versions for all overloadable IO functions */ -#define CCTK_DummyOutputGH CactusDefaultOutputGH -#define CCTK_DummyOutputVarAsByMethod CactusDefaultOutputVarAsByMethod - -#include "IOOverloadables.h" - - /* Reset the #define to prevent complications. */ -#undef CCTK_DummyOutputGH -#undef CCTK_DummyOutputVarAsByMethod - -#undef OVERLOADABLE - - return 0; -} - -/* Don't need dummy functions since we have defaults. -#define OVERLOADABLE(name) OVERLOADABLE_DUMMY(name) -#include "IOOverloadables.h" -#undef OVERLOADABLE(name) -*/ diff --git a/src/IO/OverloadIO.c b/src/IO/OverloadIO.c new file mode 100644 index 00000000..dac6dcaf --- /dev/null +++ b/src/IO/OverloadIO.c @@ -0,0 +1,81 @@ + /*@@ + @file Overload.c + @date Thu Feb 4 09:47:23 1999 + @author Tom Goodale + @desc + Contains routines to overload the IO functions. + Uses the overload macros to make sure of consistency and + to save typing ! + @enddesc + @@*/ + +#include +#include +#include + +#include "flesh.h" +#include "OverloadMacros.h" + +static char *rcsid="$Header$"; + +/* Define the prototypes for the dummy functions. */ +#define OVERLOADABLE(name) OVERLOADABLE_DUMMYPROTOTYPE(name) + +/* There are default versions for all overloadable IO functions */ +#define CCTK_DummyOutputGH CactusDefaultOutputGH +#define CCTK_DummyOutputVarAsByMethod CactusDefaultOutputVarAsByMethod + +#include "IOOverloadables.h" + +#undef CCTK_DummyOutputGH +#undef CCTK_DummyOutputVarAsByMethod +#undef OVERLOADABLE + +/* Create the overloadable function variables and the + * functions allowing the variables to be set. + */ +#define OVERLOADABLE(name) OVERLOADABLE_FUNCTION(name) + +#include "IOOverloadables.h" + +#undef OVERLOADABLE + + /*@@ + @routine SetupIOFunctions + @date Thu Feb 4 09:58:29 1999 + @author Tom Goodale + @desc + Set any IO function which hasn't been overloaded to the default. + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ +int SetupIOFunctions(void) +{ + +#define OVERLOADABLE(name) OVERLOADABLE_CHECK(name) + + /* There are default versions for all overloadable IO functions */ +#define CCTK_DummyOutputGH CactusDefaultOutputGH +#define CCTK_DummyOutputVarAsByMethod CactusDefaultOutputVarAsByMethod + +#include "IOOverloadables.h" + + /* Reset the #define to prevent complications. */ +#undef CCTK_DummyOutputGH +#undef CCTK_DummyOutputVarAsByMethod + +#undef OVERLOADABLE + + return 0; +} + +/* Don't need dummy functions since we have defaults. +#define OVERLOADABLE(name) OVERLOADABLE_DUMMY(name) +#include "IOOverloadables.h" +#undef OVERLOADABLE(name) +*/ -- cgit v1.2.3