X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=blobdiff_plain;f=rln.h;h=095e81322558053bb858b7e68bb2d9bc7163e8b9;hp=d4591b329c4bd51ceea6670b9874d0caea1eb616;hb=a9928b064fb4bf8baa06b1152a05fcb27dbd1ac1;hpb=4d8573013a97d0353447f959c14ccaddc1ff8c14 diff --git a/rln.h b/rln.h index d4591b3..095e813 100644 --- a/rln.h +++ b/rln.h @@ -16,7 +16,7 @@ #ifdef WIN32 //#define _OPEN_FLAGS _O_BINARY|_O_RDWR #define _OPEN_FLAGS _O_BINARY|_O_RDONLY -#define _BACKSLASH '\\' +#define PATH_DELIMITER '\\' #ifdef _MSC_VER #if _MSC_VER > 1000 #pragma warning(disable:4996) @@ -38,7 +38,7 @@ #ifdef __GCCUNIX__ //#define _OPEN_FLAGS O_RDWR #define _OPEN_FLAGS O_RDONLY -#define _BACKSLASH '/' +#define PATH_DELIMITER '/' #include #include #include @@ -51,8 +51,8 @@ #endif #define MAJOR 1 // Major version number -#define MINOR 1 // Minor version number -#define PATCH 0 // Patch release number +#define MINOR 2 // Minor version number +#define PATCH 1 // Patch release number #ifdef WIN32 #define PLATFORM "Win32" // Release platform - Windows @@ -68,9 +68,9 @@ #define warn(x, f) printf("Warning: repeated flag `%c'%s\n", x, f ? "; previous one(s) ignored." : ".") // Macro for max: good because longs, shorts, or pointers can be compared -#ifndef max -#define max(a,b) ((a) > (b) ? (a) : (b)) -#endif // max +#ifndef MAX +#define MAX(a,b) ((a) > (b) ? (a) : (b)) +#endif // Macro to swap the 16-bit words of a 32-bit integer #define _SWAPWORD(x) (((unsigned)(x) >> 16) | ((unsigned)(x) << 16)) @@ -222,24 +222,29 @@ struct HREC #define ABST_DATA 0x0400 /* data-based relocatable */ #define ABST_TEXT 0x0200 /* text-based relocatable */ #define ABST_BSS 0x0100 /* bss-based relocatable */ -#define ABST_FILE 0x0080 // file symbol -#define ABST_ARCHIVE 0x0040 // only when FILE set: archive file or no -#define ABST_OST 0x0001 // private: "symbol is in ost": see above +#define ABST_FILE 0x0080 // file symbol +#define ABST_ARCHIVE 0x0040 // only when FILE set: archive file or no +#define ABST_OST 0x0001 // private: "symbol is in ost": see above #define T_COMMON (T_GLOBAL | T_EXTERN) #define T_SEG (T_DATA | T_TEXT | T_BSS) // segment bits // Symbol Table - Type Definitions #define T_UNDF 0x00000000 // Undefined Symbol -#define T_EXT 0x01000000 // External Bit, OR'ed In -#define T_ABS 0x02000000 // Absolute Symbol +#define T_EXT 0x01000000 // External Bit, OR'ed In (Global) +#define T_ABS 0x02000000 // Absolute Symbol (Equated) #define T_TEXT 0x04000000 // TEXT Segment #define T_DATA 0x06000000 // DATA Segment #define T_BSS 0x08000000 // BSS Segment // These macros are used with the TYPE field of a SYMBOL. +/* +Absolutes (equates) can't be externals (line 434) +-- they are non-relocatable +*/ -#define iscommon(type) (((type) & T_EXT) == T_EXT) +//#define iscommon(type) (((type) & T_EXT) == T_EXT) +#define iscommon(type) (((type) & T_EXT) == 0) #define isglobal(type) (((type) & T_EXT) == T_EXT) #define isextern(type) (((type) & T_EXT) == T_EXT) #define islocal(type) (((type) & T_EXT) == 0) @@ -276,3 +281,4 @@ int segmentpad(FILE *, long, int); int ost_lookup(char *); #endif // __RLH_H__ +