1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdio.h>
#include <limits.h>
#include <stddef.h>
#ifndef _emit_m4_include
# define sflag(flag,val) printf("-D"#flag"=\"%s\" ", val)
# define mflag(flag,val) printf("-D"#flag"=-%llu ", val + 1)
# define iflag(flag,val) printf("-D"#flag"=%llu ", val)
# define fflag(flag,val) printf("-D"#flag"=%Lf ", val)
#else
# define sflag(flag,val) printf("define(`"#flag"',`%s')dnl\n", val)
# define mflag(flag,val) printf("define(`"#flag"',`%llu')dnl\n", val + 1)
# define iflag(flag,val) printf("define(`"#flag"',`%llu')dnl\n", val)
# define fflag(flag,val) printf("define(`"#flag"',`%Lf')dnl\n", val)
#endif
#define type_found(val) (found_type & (val / 8))
#define checkbits(type,x) \
if(!type_found(x) && sizeof(type) == (x/CHAR_BIT)) \
sflag(type_bit##x, #type), found_type |= (x / 8)
#define describe_integral(type,label) { \
unsigned type maxval = -1; \
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <stdio.h>
#include <limits.h>
#include <stddef.h>
#ifdef _emit_m4_include
# define sflag(flag,val) printf("define(`"#flag"',`%s')dnl\n", val)
# define mflag(flag,val) printf("define(`"#flag"',`%llu')dnl\n", (long long unsigned)(val + 1))
# define iflag(flag,val) printf("define(`"#flag"',`%llu')dnl\n", (long long unsigned)val)
# define fflag(flag,val) printf("define(`"#flag"',`%Lf')dnl\n", val)
#else
# define sflag(flag,val) printf("-D"#flag"=\"%s\" ", val)
# define mflag(flag,val) printf("-D"#flag"=-%llu ", (long long unsigned)(val + 1))
# define iflag(flag,val) printf("-D"#flag"=%llu ", (long long unsigned)val)
# define fflag(flag,val) printf("-D"#flag"=%Lf ", val)
#endif
#define type_found(val) (found_type & (val / 8))
#define checkbits(type,x) \
if(!type_found(x) && sizeof(type) == (x/CHAR_BIT)) \
sflag(type_bit##x, #type), found_type |= (x / 8)
#define describe_integral(type,label) { \
unsigned type maxval = -1; \
|