Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
Loading...
Searching...
No Matches
bool.h
1
/*
2
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3
* Copyright (C) 2007 - INRIA
4
*
5
* Copyright (C) 2012 - 2016 - Scilab Enterprises
6
*
7
* This file is hereby licensed under the terms of the GNU GPL v2.0,
8
* pursuant to article 5.3.4 of the CeCILL v.2.1.
9
* This file was originally licensed under the terms of the CeCILL v2.1,
10
* and continues to be available under such terms.
11
* For more information, see the COPYING file which you should have received
12
* along with this program.
13
*
14
*/
15
#ifndef __BOOL_H__
16
#define __BOOL_H__
17
18
/* define boolean type */
19
#ifdef BOOL
20
#undef BOOL
21
#endif
22
23
#ifdef TRUE
24
#undef TRUE
25
#endif
26
27
#ifdef FALSE
28
#undef FALSE
29
#endif
30
31
32
#ifndef _MSC_VER
33
typedef
enum
34
{
35
FALSE = 0,
36
TRUE = 1
37
} BOOL;
38
39
#else
40
/* Please notice that BOOL is defined in <windef.h> */
41
/* BUT windef.h includes all others windows include */
42
/* it is better to redefine as */
43
typedef
int
BOOL;
44
#define FALSE 0
45
#define TRUE 1
46
47
#endif
48
/* converts BOOL to bool */
49
#define BOOLtobool(w) ((w != FALSE) ? true : false)
50
51
/* converts bool to BOOL */
52
#define booltoBOOL(w) ((w == true) ? TRUE : FALSE)
53
54
#endif
/* __BOOL_H__ */
55
/*--------------------------------------------------------------------------*/
client_server
bool.h
Generated by
1.9.8