diff th_types.h @ 663:284d5b789b7c

Add th_char_t type.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 27 Jan 2020 07:47:26 +0200
parents 6d99150a8f89
children 1d4d22c862ed
line wrap: on
line diff
--- a/th_types.h	Mon Jan 27 07:44:44 2020 +0200
+++ b/th_types.h	Mon Jan 27 07:47:26 2020 +0200
@@ -166,4 +166,17 @@
 #    endif
 #endif
 
+
+/** @brief th_char_t
+ * Character type. Currently it is not recommended to re-define this,
+ * but in distant future it may be possible to change to uint32_t for
+ * Unicode 32bit handling.
+ */
+#ifdef TH_CHAR_TYPE
+typedef TH_CHAR_TYPE th_char_t;
+#else
+typedef char th_char_t;
+#endif
+
+
 #endif // TH_TYPES_H