projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
33642e3
)
Some more type documentation.
author
Pekka Riikonen
<priikone@silcnet.org>
Tue, 26 Mar 2002 12:47:00 +0000
(12:47 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Tue, 26 Mar 2002 12:47:00 +0000
(12:47 +0000)
lib/silcutil/silctypes.h
patch
|
blob
|
history
diff --git
a/lib/silcutil/silctypes.h
b/lib/silcutil/silctypes.h
index fdb3e73d152aa3b79ea6bc9931182a2ab4abab2d..7c6bdd514b29437993bd7fd99669e5f6436f9fd5 100644
(file)
--- a/
lib/silcutil/silctypes.h
+++ b/
lib/silcutil/silctypes.h
@@
-31,12
+31,60
@@
#ifndef SILCTYPES_H
#define SILCTYPES_H
#ifndef SILCTYPES_H
#define SILCTYPES_H
+/****d* silcutil/SILCTypes/TRUE
+ *
+ * NAME
+ *
+ * #define TRUE ...
+ *
+ * DESCRIPTION
+ *
+ * Boolean true value indicator.
+ *
+ * SOURCE
+ */
#ifndef TRUE
#define TRUE 1
#endif
#ifndef TRUE
#define TRUE 1
#endif
+/***/
+
+/****d* silcutil/SILCTypes/FALSE
+ *
+ * NAME
+ *
+ * #define FALSE ...
+ *
+ * DESCRIPTION
+ *
+ * Boolean false value indicator.
+ *
+ * SOURCE
+ */
#ifndef FALSE
#define FALSE 0
#endif
#ifndef FALSE
#define FALSE 0
#endif
+/***/
+
+/****d* silcutil/SILCTypes/bool
+ *
+ * NAME
+ *
+ * #define bool ...
+ *
+ * DESCRIPTION
+ *
+ * Boolean value, and is 8-bits. Represents value 0 or 1. In
+ * C++ code this type is defined by the C++, and this definition is
+ * not used.
+ *
+ * SOURCE
+ */
+#ifndef __cplusplus
+#ifndef bool
+#define bool unsigned char
+#endif
+#endif
+/***/
/* Define offsetof */
#ifndef offsetof
/* Define offsetof */
#ifndef offsetof
@@
-198,11
+246,7
@@
typedef SilcInt32 SilcInt64;
typedef SilcUInt32 * void *;
#endif
typedef SilcUInt32 * void *;
#endif
-#ifndef __cplusplus
-#ifndef bool
-#define bool unsigned char
-#endif
-#endif
+/* Macros */
#define GET_WORD(cp) ((SilcUInt32)(SilcUInt8)(cp)[0]) << 24 \
| ((SilcUInt32)(SilcUInt8)(cp)[1] << 16) \
#define GET_WORD(cp) ((SilcUInt32)(SilcUInt8)(cp)[0]) << 24 \
| ((SilcUInt32)(SilcUInt8)(cp)[1] << 16) \