1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 21:29:03 +00:00

Increase the size of some buffers, so we are at the assembler level able to

handle any identifiers passed from the C level.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1439 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-10-04 17:54:46 +00:00
parent 8bc4863fc6
commit 89e8aae7d7

View File

@ -6,7 +6,7 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 2001 Ullrich von Bassewitz */ /* (C) 2001-2002 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Wacholderweg 14 */
/* D-70597 Stuttgart */ /* D-70597 Stuttgart */
/* EMail: uz@cc65.org */ /* EMail: uz@cc65.org */
@ -51,6 +51,7 @@
#include "codeinfo.h" #include "codeinfo.h"
#include "datatype.h" #include "datatype.h"
#include "error.h" #include "error.h"
#include "ident.h"
#include "symentry.h" #include "symentry.h"
#include "codeseg.h" #include "codeseg.h"
@ -277,13 +278,13 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
* white space, for example. * white space, for example.
*/ */
{ {
char Mnemo[64]; char Mnemo[IDENTSIZE+10];
const OPCDesc* OPC; const OPCDesc* OPC;
am_t AM = 0; /* Initialize to keep gcc silent */ am_t AM = 0; /* Initialize to keep gcc silent */
char Arg[64]; char Arg[IDENTSIZE+10];
char Reg; char Reg;
CodeEntry* E; CodeEntry* E;
CodeLabel* Label; CodeLabel* Label;
/* Read the first token and skip white space after it */ /* Read the first token and skip white space after it */
L = SkipSpace (ReadToken (L, " \t:", Mnemo, sizeof (Mnemo))); L = SkipSpace (ReadToken (L, " \t:", Mnemo, sizeof (Mnemo)));
@ -527,7 +528,7 @@ void CS_AddVLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
{ {
const char* L; const char* L;
CodeEntry* E; CodeEntry* E;
char Token[64]; char Token[IDENTSIZE+10];
/* Format the line */ /* Format the line */
char Buf [256]; char Buf [256];
@ -537,7 +538,7 @@ void CS_AddVLine (CodeSeg* S, LineInfo* LI, const char* Format, va_list ap)
L = SkipSpace (Buf); L = SkipSpace (Buf);
/* Check which type of instruction we have */ /* Check which type of instruction we have */
E = 0; /* Assume no insn created */ E = 0; /* Assume no insn created */
switch (*L) { switch (*L) {
case '\0': case '\0':