libk  Diff

Differences From Artifact [71add081ad]:

To Artifact [e15b370325]:


    24     24   	if (!found_sz && sizeof(type) == sizeof(size_t)) \
    25     25   		found_sz = 1, sflag(type_sz, "unsigned " #type); \
    26     26   	if (!found_ofs && sizeof(type) == sizeof(ptrdiff_t)) \
    27     27   		found_ofs = 1, sflag(type_offset, "signed " #type); \
    28     28   }
    29     29   
    30     30   int main() {
           31  +	unsigned char etest[sizeof(int)] = {0xFF,0x00};
           32  +	if ((*(int*)etest) == 0xFF) sflag(prop_endian,"low");
           33  +		else sflag(prop_endian,"high");
           34  +	
    31     35   	int found_sz = 0, found_ofs = 0, found_type = 0;
    32     36   	iflag(arch_byte_bits,CHAR_BIT);
    33     37   	describe_integral(char,char);
    34     38   	describe_integral(short,short);
    35     39   	describe_integral(int,int);
    36     40   	describe_integral(long,long);
    37     41   	describe_integral(long long,llong);
    38     42   	printf("\n");
    39     43   	return 0;
    40     44   }