X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=link%2Fz80%2Faslink.h;h=939e7437f3bd7871b76d9e1af5adc04a0c11a97d;hb=916b7e4011f58680d6006400c274310fb1659a7e;hp=9ef08c54ea233d437aadf8567f6c0a101109b9f3;hpb=096bffb5e2bf6cfd2afe2b235d15120ec337d3b6;p=fw%2Fsdcc diff --git a/link/z80/aslink.h b/link/z80/aslink.h index 9ef08c54..939e7437 100644 --- a/link/z80/aslink.h +++ b/link/z80/aslink.h @@ -12,6 +12,16 @@ /* * Extensions: P. Felber */ +#include + +#ifndef PATH_MAX + #if defined(__BORLANDC__) || defined(_MSC_VER) + #include + #define PATH_MAX _MAX_PATH + #else + #define PATH_MAX 255 /* define a reasonable value */ + #endif +#endif #define VERSION "V01.75" @@ -78,19 +88,18 @@ */ #ifdef SDK -#define NCPS 32 /* characters per symbol */ +#define NCPS 80 /* characters per symbol. Used to be 32... */ #else /* SDK */ #define NCPS 8 /* characters per symbol */ #endif /* SDK */ /* #define NCPS 32 */ /* characters per symbol */ #define NDATA 16 /* actual data */ -#define NINPUT 128 /* Input buffer size */ +#define NINPUT PATH_MAX /* Input buffer size */ #define NHASH 64 /* Buckets in hash table */ #define HMASK 077 /* Hash mask */ #define NLPP 60 /* Lines per page */ #define NTXT 16 /* T values */ -/** PENDING: Taking this to 256 causes a segfault. */ -#define FILSPC 100 /* File spec length */ +#define FILSPC PATH_MAX /* File spec length */ /* * The "R_" relocation constants define values used in @@ -417,6 +426,7 @@ struct lbfile { char *libspc; char *relfil; char *filspc; + long offset; /*>=0 if rel file is embedded in a lib file at this offset*/ }; /* @@ -438,10 +448,14 @@ extern char *rp; /* pointer into the LST file extern char rb[NINPUT]; /* LST file text line being * address relocated */ -extern char ctype[]; /* array of character types, one per +extern unsigned char ctype[]; /* array of character types, one per * ASCII character */ +extern char sdccopt[NINPUT]; +extern char sdccopt_module[NINPUT]; +extern char curr_module[NINPUT]; + /* * Character Type Definitions */ @@ -641,6 +655,7 @@ extern char getnb(); extern int more(); extern VOID skip(); extern VOID unget(); +extern VOID chop_crlf(); /* lkarea.c */ extern VOID lkparea(); @@ -700,7 +715,7 @@ extern VOID erpdmp(); extern VOID prntval(); /* lklibr.c */ -extern VOID addfile(); +extern int addfile(); extern VOID addlib(); extern VOID addpath(); extern int fndsym();