-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefines.h
executable file
·80 lines (60 loc) · 2.72 KB
/
defines.h
1
/* @(#)defines.h ( vax ) ver 1.4 created at 8/16/86 *//******************************************************************************//* *//* D E F I N E S *//* *//******************************************************************************/#ifndef _DEFINES_H#define _DEFINES_H#ifndef A_OUT_H#include "a.out.h"#endif#ifndef FALSE#define FALSE 0#endif#ifndef TRUE#define TRUE -1#endif#ifndef NULL#define NULL 0#endif#define NIL_STRING ( ( char * ) NULL )#define LOCAL static#define MAXOFF 255 /* Maximum offset from a symbol */#define TXTRNDSIZ 512L /* Text granularity */#define F_READONLY 0#define F_WRITEONLY 1#define F_READWRITE 2#define LOBYTE 0377#define MAXREGS 17#define MAXARGS 6 /* Maximum number of intrn arguments */#define N_SP 0#define I_SP 1#define D_SP 2#define DSYM N_DATA /* Data symbol */#define ISYM N_TEXT /* Instruction ( text ) symbol */#define ASYM N_ABS /* Absolute symbol */#define NSYM N_UNDF /* "No" symbol */#define EXTSYM N_EXT /* External symbol */#define FSYM N_FN /* File name symbol */#define REL_REL 001 /* PC relative reference *//* Segment association bits, bits 3-1 */#define REL_SEG 016 /* Segment associaton bits */#define REL_ABS 000 /* Absolute number */#define REL_TXT 002 /* Text segment reference */#define REL_DAT 004 /* Data segment reference */#define REL_BSS 006 /* BSS segment reference */#define REL_EXT 010 /* Undefined external symbol reference*/ /* Extract symbol table index */#define REL_SYM(r) ( ( ( r )&~017 ) >> 4 )#define IGNORE ( void )#define leng(a) ( ( long ) ( ( unsigned long) ( a ) ) )#define inkdot(incr) ( dot+incr )/*indexes into d_formatin lmem.c, also used in regw.c*//*as indexes into static initialised array Reg_display_formats*/#define DEC_FORMAT 0 #define UDEC_FORMAT 1#define HEX_FORMAT 2 #define CHAR_FORMAT 3 #define FLOAT_FORMAT 4 #endif _DEFINES_H