projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SilcBool.
[silc.git]
/
lib
/
silcutil
/
silctypes.h
diff --git
a/lib/silcutil/silctypes.h
b/lib/silcutil/silctypes.h
index e98bc8c82bdf47f18a85b4f0a4f7a1d0a9df2897..fbbc6d1dba22e736b61d3fea5863231f19ccada3 100644
(file)
--- a/
lib/silcutil/silctypes.h
+++ b/
lib/silcutil/silctypes.h
@@
-77,6
+77,10
@@
* C++ code this type is defined by the C++, and this definition is
* not used.
*
* C++ code this type is defined by the C++, and this definition is
* not used.
*
+ * NOTES
+ *
+ * This macro is deprecated. Use SilcBool instead.
+ *
* SOURCE
*/
#ifdef SILC_MACOSX
* SOURCE
*/
#ifdef SILC_MACOSX
@@
-90,6
+94,19
@@
#endif
/***/
#endif
/***/
+/****d* silcutil/SILCTypes/SilcBool
+ *
+ * NAME
+ *
+ * typedef unigned char SilcBool;
+ *
+ * DESCRIPTION
+ *
+ * Boolean value, and is always 8-bits. Represents value 0 or 1.
+ *
+ ***/
+typedef unigned char SilcBool;
+
#define silc_offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#if SILC_SIZEOF_SHORT > 2
#define silc_offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#if SILC_SIZEOF_SHORT > 2