X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=blobdiff_plain;f=rln.h;h=c517f69627821f91f744705f4b5415b6713403f8;hp=d6dd9176764d98dab08033aeec76cf7251d35c8d;hb=ed794c04e7961bdec9e1051a2224fde544e0ff95;hpb=ef0a4c2b77babe2dfe7185842bce5bba34f7a4f8 diff --git a/rln.h b/rln.h index d6dd917..c517f69 100644 --- a/rln.h +++ b/rln.h @@ -7,11 +7,6 @@ #ifndef __RLN_H__ #define __RLN_H__ -// Required Include Files - -// Macro Definitions - -// Requirements for Windows Compilation #ifdef WIN32 //#define _OPEN_FLAGS _O_BINARY|_O_RDWR @@ -33,8 +28,6 @@ #include #endif -// Requirements for Mac OS-X or Linux Compilation - #ifdef __GCCUNIX__ //#define _OPEN_FLAGS O_RDWR #define _OPEN_FLAGS O_RDONLY @@ -51,8 +44,8 @@ #endif #define MAJOR 1 // Major version number -#define MINOR 3 // Minor version number -#define PATCH 7 // Patch release number +#define MINOR 4 // Minor version number +#define PATCH 3 // Patch release number #ifdef WIN32 #define PLATFORM "Win32" // Release platform - Windows @@ -131,7 +124,9 @@ struct ARHEADER #define new_arheader() (struct ARHEADER *)malloc(sizeof(struct ARHEADER)) -// Object File Structure and Related Items +// Object file structure and related items + +enum { TEXT=0, DATA=1, BSS=2 }; struct OFILE { @@ -144,6 +139,7 @@ struct OFILE struct OHEADER o_header; // Header of this file uint8_t * o_image; // Image of this file uint8_t isArchiveFile; // Temporary extra flag + uint32_t segSize[3]; // Size of TEXT, DATA & BSS }; #define new_ofile() (struct OFILE *)malloc(sizeof(struct OFILE))