|
@ -498,7 +498,7 @@ void main8(void) { |
|
|
void main9(void) { |
|
|
void main9(void) { |
|
|
#define get_endian(type,typestr,type_bitsize) \ |
|
|
#define get_endian(type,typestr,type_bitsize) \ |
|
|
{ if (type_bitsize == uchar_bitsize * sizeof(type)) \ |
|
|
{ if (type_bitsize == uchar_bitsize * sizeof(type)) \ |
|
|
{ auto union { uchar einzeln[sizeof(type)]; type gesamt; } x; \ |
|
|
|
|
|
|
|
|
{ union { uchar einzeln[sizeof(type)]; type gesamt; } x; \ |
|
|
int i,j; \ |
|
|
int i,j; \ |
|
|
boolean big_endian = TRUE; \ |
|
|
boolean big_endian = TRUE; \ |
|
|
boolean little_endian = TRUE; \ |
|
|
boolean little_endian = TRUE; \ |
|
@ -540,7 +540,7 @@ void main9(void) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
long get_stack_direction(void) |
|
|
long get_stack_direction(void) |
|
|
{ auto char dummy; |
|
|
|
|
|
|
|
|
{ char dummy; |
|
|
static char* dummyaddr = (char*)0; |
|
|
static char* dummyaddr = (char*)0; |
|
|
if (!(dummyaddr == (char*)0)) |
|
|
if (!(dummyaddr == (char*)0)) |
|
|
{ return (&dummy) - dummyaddr; } |
|
|
{ return (&dummy) - dummyaddr; } |
|
|