repo.or.cz
/
mcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Used Variables instead of Options, in SConstruct
[mcc.git]
/
const.h
blob
90028ec1befcf620d7f4f4c82b59af98892d8cd1
1
#ifndef MCC_CONST_H
2
#define MCC_CONST_H
3
4
#include
"c_btypes.h"
5
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
13
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
;
24
};
25
26
void
const_parse_number
(
struct
const_value
*
restrict cv
,
const char
*
restrict str
);
27
28
#endif