From: Pekka Riikonen Date: Sat, 26 Nov 2005 15:22:40 +0000 (+0000) Subject: Added SilcBool. X-Git-Tag: silc.client.1.1.beta1~336 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=ee7652060361bbd40542e133158bf5c2d05e41be Added SilcBool. --- 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