diff options
-rw-r--r-- | cginstructions.c | 4 | ||||
-rw-r--r-- | cgport.h | 77 |
2 files changed, 79 insertions, 2 deletions
diff --git a/cginstructions.c b/cginstructions.c index b8c1520..8b445e7 100644 --- a/cginstructions.c +++ b/cginstructions.c @@ -81,7 +81,7 @@ LABEL *realloc_0_label,*realloc_1_label,*realloc_2_label,*realloc_3_label, *schedule_0_label,*schedule_1_label,*schedule_2_label,*schedule_3_label, *schedule_eval_label,*stack_overflow_label; -#ifdef I486 +#ifdef SEPARATE_A_AND_B_STACK_OVERFLOW_CHECKS LABEL *end_a_stack_label,*end_b_stack_label; #endif @@ -3779,7 +3779,7 @@ void init_cginstructions (void) stack_overflow_label=enter_label ("stack_overflow",IMPORT_LABEL); stack_overflow_label->label_id=next_label_id++; } -#ifdef I486 +#ifdef SEPARATE_A_AND_B_STACK_OVERFLOW_CHECKS end_a_stack_label=enter_label ("end_a_stack",IMPORT_LABEL); end_a_stack_label->label_id=next_label_id++; end_b_stack_label=enter_label ("end_b_stack",IMPORT_LABEL); diff --git a/cgport.h b/cgport.h new file mode 100644 index 0000000..7ff8d22 --- /dev/null +++ b/cgport.h @@ -0,0 +1,77 @@ + +#define FINALIZERS + +#undef PROJECT_BUILDER + +#ifdef PROJECT_BUILDER +# define GNU_C +#endif + +#if defined (__MWERKS__) || defined (__MRC__) || defined (PROJECT_BUILDER) +# undef MACH_O +# define POWER +# ifdef __cplusplus +# include "cgrenameglobals.h" +# elif !defined (MAKE_MPW_TOOL) +# define G_POWER +# endif +#endif + +#if 1 || defined (MACH_O) +#define ALIGN_C_CALLS +#endif + +#ifdef THINK_C +# define ANSI_C +# define WORD int +# define UWORD unsigned int +#else +# define WORD short +# define UWORD unsigned short +#endif + +#ifdef GNU_C +# define ANSI_C +# undef mc68020 +# ifdef SUN_C +# define VARIABLE_ARRAY_SIZE 1 +# else +# define VARIABLE_ARRAY_SIZE 0 +# endif +#else +# if defined (POWER) && !defined (__MRC__) && !defined (__MWERKS__) +# define VARIABLE_ARRAY_SIZE 0 +# else +# define VARIABLE_ARRAY_SIZE +# endif +#endif + +#define LONG long +#define BYTE char +#define ULONG unsigned long +#define UBYTE unsigned char + +#define VOID void + +#ifdef THINK_C +# define DOUBLE short double +#else +# define DOUBLE double +#endif + +#ifdef sparc +#else +# if defined (I486) || defined (G_POWER) +# else +# define M68000 +# endif +#endif + +#if defined (I486) || (defined (G_POWER) || defined (ALIGN_C_CALLS)) || defined (MACH_O) +# define SEPARATE_A_AND_B_STACK_OVERFLOW_CHECKS +#endif + +#ifdef __MWERKS__ +int mystrcmp (char *p1,char *p2); +#define strcmp(s1,s2) mystrcmp(s1,s2) +#endif |