libk  Diff

Differences From Artifact [750b65151f]:

To Artifact [6b637ac574]:


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