~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to include/atalk/boolean.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _ATALK_BOOLEAN_H
 
2
#define _ATALK_BOOLEAN_H 1
 
3
 
 
4
/*
 
5
 * bool is a standard type in c++. In theory its one bit in size.
 
6
 *  In reality just use the quickest standard type.  
 
7
 */
 
8
 
 
9
# ifndef __cplusplus
 
10
#  ifndef bool
 
11
typedef char bool;
 
12
 
 
13
/*
 
14
 * bool, true and false
 
15
 *
 
16
 */
 
17
 
 
18
#  endif   /* ndef bool */
 
19
# endif   /* not C++ */
 
20
# ifndef true
 
21
#  define true    ((bool) 1)
 
22
# endif
 
23
# ifndef false
 
24
#  define false   ((bool) 0)
 
25
# endif
 
26
typedef bool *BoolPtr;
 
27
 
 
28
# ifndef TRUE
 
29
#  define TRUE    1
 
30
# endif   /* TRUE */
 
31
 
 
32
# ifndef FALSE
 
33
#  define FALSE   0
 
34
# endif   /* FALSE */
 
35
 
 
36
#endif