/*
** Object tags
*/

#define ORG_TAG		'0'
#define DATA_TAG	'1'
#define BSS_TAG		'2'
#define ABSINST_TAG	'3'
#define RELINST_TAG 	'4'
#define EXTRN_TAG	'5'
#define GLOBAL_TAG	'6'
#define ABSENTRY_TAG	'7'
#define RELENTRY_TAG	'8'

#define int8            char
#define int16           short
#define int32           int
typedef int             t_stat;                         /* status */
typedef int             t_bool;                         /* boolean */
typedef unsigned int8   uint8;
typedef unsigned int16  uint16;
typedef unsigned int32  uint32, t_addr;                 /* address */

#if defined (WIN32)                                     /* Windows */
#define t_int64 __int64
#elif defined (__ALPHA) && defined (VMS)                /* Alpha VMS */
#define t_int64 __int64
#elif defined (__ALPHA) && defined (__unix__)           /* Alpha UNIX */
#define t_int64 long
#else                                                   /* default GCC */
#define t_int64 long long
#endif                                                  /* end OS's */
typedef unsigned t_int64        t_uint64, t_value;      /* value */
typedef t_int64                 t_svalue;               /* signed value */
 
#if defined(__s390__) || defined(OPENMVS) || defined(sparc)
#define MSL 0
#define LSL 1
#else
#define MSL 1
#define LSL 0
#endif

extern int binloader (char *, int);

#ifdef NEEDSTRTOLL
extern t_int64 strtoll (char *, char **, int);
#endif
