Used Variables instead of Options, in SConstruct
[mcc.git] / const.h
blob90028ec1befcf620d7f4f4c82b59af98892d8cd1
1 #ifndef MCC_CONST_H
2 #define MCC_CONST_H
4 #include "c_btypes.h"
6 // const basic types
7 #define CBT_INT 0
8 #define CBT_LONGLONG 1
9 #define CBT_LONGDOUBLE 2
10 #define CBT_STRING 3
11 #define CBT_UNSIGNED 0x10
12 #define CBT_SIGNED 0x20
14 struct const_value {
15 int type;
16 union {
17 signed int i;
18 unsigned int ui;
19 signed long long ll;
20 unsigned long long ull;
21 long double ld;
22 char *string;
23 } v;
26 void const_parse_number(struct const_value *restrict cv, const char *restrict str);
28 #endif