1 /****************************************************************************
2  *                                                                          *
3  *                         GNAT COMPILER COMPONENTS                         *
4  *                                                                          *
5  *                             S T A N D A R D                              *
6  *                                                                          *
7  *                              C Header File                               *
8  *                                                                          *
9  *                       Copyright (C) 2015, AdaCore                        *
10  *                                                                          *
11  * GNAT is free software;  you can  redistribute it  and/or modify it under *
12  * terms of the  GNU General Public License as published  by the Free Soft- *
13  * ware  Foundation;  either version 3,  or (at your option) any later ver- *
14  * sion.  GNAT is distributed in the hope that it will be useful, but WITH- *
15  * OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY *
16  * or FITNESS FOR A PARTICULAR PURPOSE.                                     *
17  *                                                                          *
18  * As a special exception under Section 7 of GPL version 3, you are granted *
19  * additional permissions described in the GCC Runtime Library Exception,   *
20  * version 3.1, as published by the Free Software Foundation.               *
21  *                                                                          *
22  * You should have received a copy of the GNU General Public License and    *
23  * a copy of the GCC Runtime Library Exception along with this program;     *
24  * see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    *
25  * <http://www.gnu.org/licenses/>.                                          *
26  *                                                                          *
27  * GNAT was originally developed  by the GNAT team at  New York University. *
28  * Extensive contributions were provided by Ada Core Technologies Inc.      *
29  *                                                                          *
30  ****************************************************************************/
31 
32 #ifndef STANDARD_ADS_H
33 #define STANDARD_ADS_H
34 
35 #include <stdint.h>
36 
37 typedef unsigned char boolean;
38 
39 #ifndef false
40 #define false 0
41 #endif
42 
43 #ifndef true
44 #define true 1
45 #endif
46 
47 typedef uint8_t unsigned_8;
48 typedef uint16_t unsigned_16;
49 typedef uint32_t unsigned_32;
50 typedef uint64_t unsigned_64;
51 
52 typedef int8_t integer_8;
53 typedef int16_t integer_16;
54 typedef int32_t integer_32;
55 typedef int64_t integer_64;
56 
57 typedef int integer;
58 
59 typedef int natural;
60 typedef int positive;
61 
62 typedef signed char short_short_integer;
63 typedef short short_integer;
64 typedef long long_integer;
65 typedef long long long_long_integer;
66 typedef long long universal_integer;
67 
68 typedef float short_float;
69 typedef double long_float;
70 typedef long double long_long_float;
71 typedef long double universal_real;
72 
73 typedef char character;
74 typedef integer_16 wide_character;
75 typedef integer_32 wide_wide_character;
76 
77 typedef character *access_character;
78 typedef character *string;
79 typedef wide_character *wide_string;
80 typedef wide_wide_character *wide_wide_string;
81 
82 typedef integer_64 duration;
83 
84 #endif /* STANDARD_ADS_H */
85