X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=as%2Fmcs51%2Fasm.h;h=c81374ab30bee16c685a78f5332698509a3df183;hb=d2da99feec099aa224e1db53bc5a1ed42ed51ec9;hp=b66ab5118009f7ce80dd09f456b6b62a693bd70b;hpb=57b16299d7cd3c71c3644c39089a5cee84639d83;p=fw%2Fsdcc diff --git a/as/mcs51/asm.h b/as/mcs51/asm.h index b66ab511..c81374ab 100644 --- a/as/mcs51/asm.h +++ b/as/mcs51/asm.h @@ -81,7 +81,7 @@ */ #include #ifndef PATH_MAX /* POSIX, but not required */ -#ifdef _MSC_VER /* Microsoft C */ +#if defined(_MSC_VER) || defined(__BORLANDC__) /* Microsoft C or Borland C*/ #include #define PATH_MAX _MAX_PATH #else @@ -98,7 +98,7 @@ #define NCPS 80 /* Chars. per symbol (JLH: change from 8) */ #define HUGE 1000 /* A huge number */ #define NERR 3 /* Errors per line */ -#define NINPUT PATH_MAX /* Input buffer size (BH: change from 128) */ +#define NINPUT 1024 /* Input buffer size (icodes need space) */ #define NCODE 128 /* Listing code buffer size */ #define NTITL 64 /* Title buffer size */ #define NSBTL 64 /* SubTitle buffer size */ @@ -327,7 +327,8 @@ struct sym #define S_ORG 24 /* .org */ #define S_MODUL 25 /* .module */ #define S_ASCIS 26 /* .ascis */ -#define S_FLAT24 27 /* .flat24 */ +#define S_FLAT24 27 /* .flat24 */ +#define S_OPTSDCC 28 /* .optsdcc */ /* @@ -478,6 +479,8 @@ extern char tb[NTITL]; /* Title string buffer */ extern char stb[NSBTL]; /* Subtitle string buffer */ +extern char optsdcc[NINPUT]; /* sdcc compile options + */ extern int flat24Mode; /* non-zero if we are using DS390 24 bit * flat mode (via .flat24 directive). */ @@ -497,7 +500,7 @@ extern FILE *sfp[MAXFIL]; /* array of assembler-source file handles */ extern FILE *ifp[MAXINC]; /* array of include-file file handles */ -extern char ctype[128]; /* array of character types, one per +extern unsigned char ctype[128]; /* array of character types, one per * ASCII character */