summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-12 13:45:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-12 13:45:06 -0400
commit0fec83ebc89bd6b86f772d942b7c39b13f773d3a (patch)
treef2d10a7fe784773b4722843ce3f2bbe1c8e0db62 /libdimension/dimension.h
parentbb976e3a5cc01abecf6729eb511f75fb21c6d2c4 (diff)
downloaddimension-0fec83ebc89bd6b86f772d942b7c39b13f773d3a.tar.xz
Add a C89 compliance test for the headers.
Technically we still require a couple things from C99 like "bool", but it works with -std=c89 under gcc.
Diffstat (limited to 'libdimension/dimension.h')
-rw-r--r--libdimension/dimension.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/libdimension/dimension.h b/libdimension/dimension.h
index 57458c1..19b43bc 100644
--- a/libdimension/dimension.h
+++ b/libdimension/dimension.h
@@ -40,26 +40,11 @@
#define DIMENSION_H
#ifdef __cplusplus
-// We've been included from a C++ file; mark everything here as extern "C"
+/* We've been included from a C++ file; mark everything here as extern "C" */
extern "C" {
#endif
-// Common macros
-
-/**
- * @internal
- * @def DMNSN_FUNC
- * @brief Expands to the name of the current function
- */
-#ifdef __GNUC__
- #define DMNSN_FUNC __PRETTY_FUNCTION__
-#elif __STDC_VERSION__ >= 199901L
- #define DMNSN_FUNC __func__
-#else
- #define DMNSN_FUNC "<unknown function>"
-#endif
-
-// Common types
+/* Common types */
/**
* Generic callback type.
@@ -73,7 +58,7 @@ typedef void dmnsn_callback_fn(void *ptr);
*/
typedef void dmnsn_free_fn(void *ptr);
-// Include all the libdimension headers
+/* Include all the libdimension headers */
#include <dimension/compiler.h>
#include <dimension/error.h>
#include <dimension/malloc.h>
@@ -112,4 +97,4 @@ typedef void dmnsn_free_fn(void *ptr);
}
#endif
-#endif // DIMENSION_H
+#endif /* DIMENSION_H */