summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/base_types.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-18 17:53:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-19 19:27:29 +0900
commitc0a6f1b84c84749908961579b84513fd9f9d9eac (patch)
treeace7ba60cb031acd3a1f4ff10f7bbc5668fa801f /debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/base_types.h
parent52e5ffe140f0f4402e97936447bc9a606045d2b5 (diff)
downloadextra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.tar.gz
extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.zip
uncrustify-trinity: updated based on upstream version 0.78.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/base_types.h')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/base_types.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/base_types.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/src/base_types.h
new file mode 100644
index 00000000..1e98b0ac
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.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 */