*** /public/gmd/src/mtc/m2c/Parser.c.~1~	Tue Aug 18 12:24:54 1992
--- Parser.c	Fri Sep  8 18:27:49 1995
***************
*** 1,5 ****
--- 1,22 ----
  #include "SYSTEM_.h"
  
+ #if (!(defined __BIG_ENDIAN__))&&(!(defined __LITTLE_ENDIAN__))
+ #ifndef sun
+ #include <sys/machine.h>
+ #else
+ #define BYTE_ORDER LITTLE_ENDIAN
+ #endif
+ #ifndef BYTE_ORDER
+ #error do not know BYTE_ORDER
+ #endif
+ #if (BYTE_ORDER==BIG_ENDIAN)
+ #define __BIG_ENDIAN__
+ #else
+ #define __LITTLE_ENDIAN__
+ #endif
+ #endif
+ 
+ 
  #ifndef DEFINITION_Positions
  #include "Positions.h"
  #endif
***************
*** 4306,4311 ****
      BEGIN_Defs();
  
      xxIsInitialized = FALSE;
!     (void)strncpy((char *)Parser_ParsTabName.A, "Parser.Tab", sizeof(Parser_ParsTabName.A));
    }
  }
--- 4323,4333 ----
      BEGIN_Defs();
  
      xxIsInitialized = FALSE;
! #ifdef __BIG_ENDIAN__
!     (void)strncpy((char *)Parser_ParsTabName.A, "Parser.Tab.be", sizeof(Parser_ParsTabName.A));
! #endif
! #ifdef __LITTLE_ENDIAN__
!     (void)strncpy((char *)Parser_ParsTabName.A, "Parser.Tab.le", sizeof(Parser_ParsTabName.A));
! #endif
    }
  }
*** /public/gmd/src/mtc/m2c/Scanner.c.~1~	Tue Aug 18 12:24:55 1992
--- Scanner.c	Fri Sep  8 18:25:34 1995
***************
*** 1,5 ****
--- 1,21 ----
  #include "SYSTEM_.h"
  
+ #if (!(defined __BIG_ENDIAN__))&&(!(defined __LITTLE_ENDIAN__))
+ #ifndef sun
+ #include <sys/machine.h>
+ #else
+ #define BYTE_ORDER LITTLE_ENDIAN
+ #endif
+ #ifndef BYTE_ORDER
+ #error do not know BYTE_ORDER
+ #endif
+ #if (BYTE_ORDER==BIG_ENDIAN)
+ #define __BIG_ENDIAN__
+ #else
+ #define __LITTLE_ENDIAN__
+ #endif
+ #endif
+ 
  #ifndef DEFINITION_Checks
  #include "Checks.h"
  #endif
***************
*** 1558,1564 ****
      BEGIN_Errors();
      BEGIN_Tokens();
  
!     (void)strncpy((char *)Scanner_ScanTabName.A, "Scanner.Tab", sizeof(Scanner_ScanTabName.A));
      Scanner_Exit = yyExit;
      yyFileStackPtr = 0;
      yyStartState = 1;
--- 1574,1585 ----
      BEGIN_Errors();
      BEGIN_Tokens();
  
! #ifdef __BIG_ENDIAN__
!     (void)strncpy((char *)Scanner_ScanTabName.A, "Scanner.Tab.be", sizeof(Scanner_ScanTabName.A));
! #endif
! #ifdef __LITTLE_ENDIAN__
!     (void)strncpy((char *)Scanner_ScanTabName.A, "Scanner.Tab.le", sizeof(Scanner_ScanTabName.A));
! #endif
      Scanner_Exit = yyExit;
      yyFileStackPtr = 0;
      yyStartState = 1;
No differences encountered
*** SYSTEM_.h.ORIG	Tue Aug 18 12:24:46 1992
--- SYSTEM_.h	Fri Sep  8 16:08:57 1995
***************
*** 16,21 ****
--- 16,37 ----
  /*									*/
  /************************************************************************/
  
+ #include <limits.h>
+ #include <float.h>
+ 
+ #ifdef _AIX
+ #pragma alloca
+ #define StackAlloc
+ #endif
+ 
+ #ifdef __NeXT__ 
+ #define StackAlloc
+ #endif
+ 
+ #ifdef sun
+ #define StackAlloc
+ #endif
+ 
  # ifdef __STDC__
  # define ARGS(parameters)	parameters
  # else
***************
*** 85,110 ****
  #define TRUNC(x)	((CARDINAL) (x))
  #define VAL(T,x)	((T) (x))
  
! #define MIN_SHORTINT	(-32768)
! #define MAX_SHORTINT	32767
! #define MIN_LONGINT	(-2147483648L)
! #define MAX_LONGINT	2147483647L
! #define MIN_SHORTCARD	0
! #define MAX_SHORTCARD	65535
  #define MIN_LONGCARD	((LONGCARD)0L)
! #define MAX_LONGCARD	((LONGCARD)4294967295L)
  
  #define MIN_BOOLEAN	FALSE
  #define MAX_BOOLEAN	TRUE
  
  #define MIN_CHAR	((CHAR)'\0')
! #define MAX_CHAR	((CHAR)'\377')
  
! #define MIN_REAL	((REAL)1.40129846432481707e-45)
! #define MAX_REAL	((REAL)3.40282346638528860e+38)
! #define MIN_LONGREAL	4.94065645841246544e-324
! #define MAX_LONGREAL	1.79769313486231470e+308
  
  #define ODD(x)		((BOOLEAN)((x) & 01))
  
  /*
--- 101,134 ----
  #define TRUNC(x)	((CARDINAL) (x))
  #define VAL(T,x)	((T) (x))
  
! #ifndef SHRT_MIN
! #error missing limits
! #endif
! 
! #define MIN_SHORTINT	SHRT_MIN
! #define MAX_SHORTINT	SHRT_MAX
! #define MIN_LONGINT	LONG_MIN
! #define MAX_LONGINT	LONG_MAX
! #define MIN_SHORTCARD	((SHORTCARD)0U)
! #define MAX_SHORTCARD	USHRT_MAX
  #define MIN_LONGCARD	((LONGCARD)0L)
! #define MAX_LONGCARD	ULONG_MAX
  
  #define MIN_BOOLEAN	FALSE
  #define MAX_BOOLEAN	TRUE
  
  #define MIN_CHAR	((CHAR)'\0')
! #define MAX_CHAR	UCHAR_MAX
  
! #ifndef FLT_MIN
! #error missing float
! #endif
  
+ #define MIN_REAL	FLT_MIN
+ #define MAX_REAL	FLT_MAX
+ #define MIN_LONGREAL	DBL_MAX
+ #define MAX_LONGREAL	DBL_MIN
+ 
  #define ODD(x)		((BOOLEAN)((x) & 01))
  
  /*
***************
*** 211,226 ****
   *	Definition of library functions
   */
  
! #ifdef StackAlloc
! extern char *alloca();
! #else
! /* #include "malloc.h"	*/
! extern char *malloc();
! extern void free();
! #endif
  
! # ifndef BCOPY
! extern char *memcpy();
! # endif
! extern char *strncpy();
  extern void exit();
--- 235,241 ----
   *	Definition of library functions
   */
  
! #include <stdlib.h>
  
! #include <string.h>
  extern void exit();
