projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8482b6d
)
Added SilcBool.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 26 Nov 2005 15:22:40 +0000
(15:22 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 26 Nov 2005 15:22:40 +0000
(15:22 +0000)
lib/silcutil/silctypes.h
patch
|
blob
|
history
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