summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/Coords.h15
-rw-r--r--src/include/ErrorCodes.h5
-rw-r--r--src/include/WarnLevel.h2
-rw-r--r--src/include/cctk.h6
4 files changed, 24 insertions, 4 deletions
diff --git a/src/include/Coords.h b/src/include/Coords.h
index a1d9a4ab..f117fa1d 100644
--- a/src/include/Coords.h
+++ b/src/include/Coords.h
@@ -1,5 +1,5 @@
/*@@
- @header Coords.h
+ @header Coord.h
@date Mon April 12 1999
@author Gabrielle Allen
@desc
@@ -8,8 +8,8 @@
@version $Header$
@@*/
-#ifndef _COORDS_H_
-#define _COORDS_H_
+#ifndef _COORD_H_
+#define _COORD_H_
/* Prototypes */
@@ -18,6 +18,15 @@ extern "C" {
#endif
+struct Coordprops
+{
+ char * name;
+ int index;
+ int direction;
+};
+
+
+
#ifdef __cplusplus
}
#endif
diff --git a/src/include/ErrorCodes.h b/src/include/ErrorCodes.h
new file mode 100644
index 00000000..70cc66d8
--- /dev/null
+++ b/src/include/ErrorCodes.h
@@ -0,0 +1,5 @@
+
+#define ERROR_INDEXNOTINRANGE -101
+#define ERROR_SUCCESS 100
+#define ERROR_COORDNOTFOUND -102
+#define ERROR_MEMORY -103
diff --git a/src/include/WarnLevel.h b/src/include/WarnLevel.h
index aa91edda..4c6aab4b 100644
--- a/src/include/WarnLevel.h
+++ b/src/include/WarnLevel.h
@@ -15,7 +15,7 @@ extern "C" {
#endif
int CCTK_SetWarnLevel(int level);
-int CCTK_Warn(int level, const char *message);
+int CCTK_Warn(int level, const char *thorn, const char *message);
int CCTK_SetErrorLevel(int level);
#ifdef __cplusplus
diff --git a/src/include/cctk.h b/src/include/cctk.h
index 0a099356..cf180195 100644
--- a/src/include/cctk.h
+++ b/src/include/cctk.h
@@ -20,6 +20,10 @@
#include "definethorn.h"
+/* Define which thorn the file is in */
+
+#include "definethisthorn.h"
+
/* Define some stuff */
#ifdef FCODE
@@ -74,4 +78,6 @@ extern int _cctk_one;
#endif /*CCODE*/
+#define CCTK_WARN(a,b) CCTK_Warn(a,CCTK_THORNSTRING,b)
+
#endif