summaryrefslogtreecommitdiff
path: root/src/include/cctk_Types.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-11-06 18:44:27 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-11-06 18:44:27 +0000
commit2dcc6b37e2e3dd65f6cef465450a5b88702354cd (patch)
tree5f749e7d8a29a21be94333c40165b950af86d9bb /src/include/cctk_Types.h
parentfede965869822381430ec338a7232f1ae123eece (diff)
As long as we don't have 'typedef const void *CCTK_CONST_POINTER;'
we have CCTK_POINTER as a '#define void *' so that one can add a const qualifier if needed. With '#define CCTK_POINTER void *' you can define a pointer to const data, with 'typedef void *CCTK_POINTER; const CCTK_POINTER p;' you cannot. These will be needed for the declaration of function aliases. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3024 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Types.h')
-rw-r--r--src/include/cctk_Types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/cctk_Types.h b/src/include/cctk_Types.h
index 52b937bf..9b20baa9 100644
--- a/src/include/cctk_Types.h
+++ b/src/include/cctk_Types.h
@@ -21,7 +21,14 @@
/* Define stuff for C. */
#ifdef CCODE
+/* As long as we don't have 'typedef const void *CCTK_CONST_POINTER;'
+ we have CCTK_POINTER as a #define so that one can add a const qualifier
+ if needed. */
+#if 0
typedef void *CCTK_POINTER;
+#else
+#define CCTK_POINTER void *
+#endif
typedef void (*CCTK_FPOINTER)(void);
/* DEPRECATED IN BETA 12 */