X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=token.c;h=5b783a3be2e378e3b787846775e75b6757a027a9;hb=cbc8347d4ffea164ca05b03e4e3be39945be8777;hp=1e5428200bf0ce952b748445e15349f42bd09765;hpb=c4fcee52c8615c20a176862eeee74739f6dc3849;p=rmac diff --git a/token.c b/token.c index 1e54282..5b783a3 100644 --- a/token.c +++ b/token.c @@ -1,7 +1,7 @@ // -// RMAC - Reboot's Macro Assembler for all Atari computers +// RMAC - Renamed Macro Assembler for all Atari computers // TOKEN.C - Token Handling -// Copyright (C) 199x Landon Dyer, 2011-2020 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2011-2021 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source utilised with the kind permission of Landon Dyer // @@ -22,7 +22,7 @@ int lnsave; // 1; strcpy() text of current line -uint16_t curlineno; // Current line number (64K max currently) +uint32_t curlineno; // Current line number (64K max currently) int totlines; // Total # of lines int mjump_align = 0; // mjump alignment flag char lntag; // Line tag @@ -673,7 +673,6 @@ overflow: char * GetNextMacroLine(void) { IMACRO * imacro = cur_inobj->inobj.imacro; -// LONG * strp = imacro->im_nextln; LLIST * strp = imacro->im_nextln; if (strp == NULL) // End-of-macro @@ -1082,7 +1081,7 @@ DEBUG { printf("TokenizeLine: Calling fpop() from SRC_IFILE...\n"); } for(; *ln!=EOS;) { // Check to see if there's enough space in the token buffer - if (tk.cp >= ((uint8_t *)(&tokbuf[TOKBUFSIZE]))) + if (tk.cp >= ((uint8_t *)(&tokbuf[TOKBUFSIZE])) - 20) { return error("token buffer overrun"); }