Make arrays degenerate into pointers properly.
[smatch.git] / target.h
blob734632518b1b2878dc960ae3aa8cffaf2838d72c
1 #ifndef TARGET_H
2 #define TARGET_H
4 #define size_t_ctype (&ulong_ctype)
5 #define ssize_t_ctype (&long_ctype)
7 /*
8 * For "__attribute__((aligned))"
9 */
10 #define MAX_ALIGNMENT 16
13 * Integer data types
15 #define BITS_IN_CHAR 8
16 #define BITS_IN_SHORT 16
17 #define BITS_IN_INT 32
18 #define BITS_IN_LONG 32
19 #define BITS_IN_LONGLONG 64
21 #define MAX_INT_ALIGNMENT 4
24 * Floating point data types
26 #define BITS_IN_FLOAT 32
27 #define BITS_IN_DOUBLE 64
28 #define BITS_IN_LONGDOUBLE 80
30 #define MAX_FP_ALIGNMENT 8
33 * Pointer data type
35 #define BITS_IN_POINTER 32
36 #define POINTER_ALIGNMENT 4
39 * Enum data types
41 #define BITS_IN_ENUM 32
42 #define ENUM_ALIGNMENT 4
44 #endif