summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/base_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/base_types.h')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/base_types.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/base_types.h b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/base_types.h
new file mode 100644
index 00000000..1e98b0ac
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/src/base_types.h
@@ -0,0 +1,53 @@
+/**
+ * @file base_types.h
+ *
+ * Defines some base types, includes config.h
+ *
+ * @author Ben Gardner
+ * @license GPL v2+
+ */
+#ifndef BASE_TYPES_H_INCLUDED
+#define BASE_TYPES_H_INCLUDED
+
+#include "error_types.h"
+
+#ifdef WIN32
+
+#include "windows_compat.h"
+
+#else // not WIN32
+
+#include "config.h"
+
+#define PATH_SEP '/'
+
+#define __STDC_FORMAT_MACROS
+
+#if defined HAVE_INTTYPES_H
+#include <inttypes.h>
+#else
+#error "Don't know where int8_t is defined"
+#endif
+
+
+// some of my favorite aliases
+
+typedef char CHAR;
+
+typedef int8_t INT8;
+typedef int16_t INT16;
+typedef int32_t INT32;
+
+typedef uint8_t UINT8;
+typedef uint16_t UINT16;
+typedef uint32_t UINT32;
+typedef uint64_t UINT64;
+#endif /* ifdef WIN32 */
+
+// and the ever-so-important array size macro
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
+
+#endif /* BASE_TYPES_H_INCLUDED */