blob: 7eed3750a062833f2c3a6cf961ffbcc884d100be (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/*******************************************************************************
(C) Nick Marley, 2001 -
This software is distributed under the GNU Lesser General Public Licence.
Please read and understand the comments at the top of vf_iface.h before use!
FILE
$Workfile$
$Revision: 1.5 $
$Author: tilda $
ORIGINAL AUTHOR
Nick Marley
DESCRIPTION
In the abscence of suitable typedefs provided by whatever environment you're
building under, this defines the minimal set of types required by vformat library.
MODIFICATION HISTORY
* $Log: types.h,v $
* Revision 1.5 2002/11/15 09:15:00 tilda
* IID638823 - Various portability issues.
*
* Revision 1.4 2002/10/08 20:23:16 tilda
* Improve comments. Tidy header.
*
* Revision 1.3 2002/10/08 20:20:10 tilda
* Comments (!). Removed unused types.
*******************************************************************************/
#ifndef _TYPES_H_
#define _TYPES_H_
#ifndef NORCSID
static const char _types_h_vss_id[] = "$Header: /cvsroot/vformat/src/common/types.h,v 1.5 2002/11/15 09:15:00 tilda Exp $";
#endif
/*=============================================================================*
Public Includes
*============================================================================*/
/* None */
/*=============================================================================*
Public Defines
*============================================================================*/
#undef NULL
#define NULL 0
#undef FALSE
#define FALSE ((bool_t)(0))
#undef TRUE
#define TRUE ((bool_t)(1))
/*=============================================================================*
Public Types
*============================================================================*/
/*
* Basic types.
*/
#if defined(USE_INTTYPES_H)
#include <inttypes.h>
#else
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned long int uint32_t;
#endif
/*
* Please avoide 'BOOL' (from Windows) and 'bool' (from C++) - vformat is used
* extensively in pure C embedded applications where neither are relevant.
*/
typedef unsigned char bool_t;
/*=============================================================================*
Public Functions
*============================================================================*/
/* None */
/*=============================================================================*
End of file
*============================================================================*/
#endif /*_TYPES_H_*/
|