diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-03-11 10:58:36 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-03-11 10:58:36 +0000 |
commit | 0193b86ce91480a87bf7fcac4790ba94b58cd53c (patch) | |
tree | f2a5ce47a877cf616e9ee34161be67426939b683 /src | |
parent | 48ced1a112fd3625c8c997e33fb936f2ca42b241 (diff) |
Protect the table API C prototype declarations by '#ifdef CCODE' so that the
header file can also be included in fortran code now (to use the #define's).
Substituted tabs by spaces.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3170 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r-- | src/include/util_Table.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/include/util_Table.h b/src/include/util_Table.h index aa354db7..ee12f8f3 100644 --- a/src/include/util_Table.h +++ b/src/include/util_Table.h @@ -1,10 +1,5 @@ -/* util_Table.h -- header for key-value tables */ -/* $header$ */ - /*@@ - @file util_Table.h @header util_Table.h - @version $Header$ @date Wed Oct 31 14:20:43 MET 2001 @author Jonathan Thornburg <jthorn@aei.mpg.de> @desc @@ -15,6 +10,7 @@ FIXME: should write some latex docs @enddesc @seefile seefile Table.c + @version $Header$ @@*/ /* @@ -118,10 +114,13 @@ extern "C" @@*/ #define UTIL_ERROR_TABLE_NO_MIXED_TYPE_ARRAY (-107) + /******************************************************************************/ /***** Main Table API *********************************************************/ /******************************************************************************/ +#ifdef CCODE + /* create/destroy */ int Util_TableCreate(int flags); int Util_TableClone(int handle); @@ -152,17 +151,17 @@ int Util_TableGetString(int handle, /* set/get generic types described by CCTK_VARIABLE_* type codes */ int Util_TableSetGeneric(int handle, - int type_code, const void *value_ptr, - const char *key); + int type_code, const void *value_ptr, + const char *key); int Util_TableSetGenericArray(int handle, - int type_code, int N_elements, const void *array, - const char *key); + int type_code, int N_elements, const void *array, + const char *key); int Util_TableGetGeneric(int handle, - int type_code, void *value_ptr, - const char *key); + int type_code, void *value_ptr, + const char *key); int Util_TableGetGenericArray(int handle, - int type_code, int N_elements, void *array, - const char *key); + int type_code, int N_elements, void *array, + const char *key); /**************************************/ @@ -439,6 +438,8 @@ int Util_TableItResetToStart(int ihandle); int Util_TableItSetToNull(int ihandle); int Util_TableItSetToKey(int ihandle, const char *key); +#endif /* CCODE */ + /******************************************************************************/ /******************************************************************************/ /******************************************************************************/ |