File: boolean.h

package info (click to toggle)
netatalk 2.0.3-11%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 9,428 kB
  • ctags: 6,161
  • sloc: ansic: 67,633; sh: 8,393; perl: 1,187; makefile: 1,060
file content (36 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _ATALK_BOOLEAN_H
#define _ATALK_BOOLEAN_H 1

/*
 * bool is a standard type in c++. In theory its one bit in size.
 *  In reality just use the quickest standard type.  
 */

# ifndef __cplusplus
#  ifndef bool
typedef char bool;

/*
 * bool, true and false
 *
 */

#  endif   /* ndef bool */
# endif   /* not C++ */
# ifndef true
#  define true    ((bool) 1)
# endif
# ifndef false
#  define false   ((bool) 0)
# endif
typedef bool *BoolPtr;

# ifndef TRUE
#  define TRUE    1
# endif   /* TRUE */

# ifndef FALSE
#  define FALSE   0
# endif   /* FALSE */

#endif