From ee7652060361bbd40542e133158bf5c2d05e41be Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 26 Nov 2005 15:22:40 +0000 Subject: [PATCH] Added SilcBool. --- lib/silcutil/silctypes.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/silcutil/silctypes.h b/lib/silcutil/silctypes.h index e98bc8c8..fbbc6d1d 100644 --- 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. * + * NOTES + * + * This macro is deprecated. Use SilcBool instead. + * * SOURCE */ #ifdef SILC_MACOSX @@ -90,6 +94,19 @@ #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 -- 2.24.0