rgbasm: Avoid unnecessary filename copying.

This commit is contained in:
Anthony J. Bentley
2014-09-24 00:52:00 -06:00
parent a849e1107e
commit 97d431d1f4
3 changed files with 9 additions and 36 deletions

View File

@@ -24,7 +24,7 @@ extern ULONG nTotalLines;
extern ULONG nPC;
extern ULONG nPass;
extern ULONG nIFDepth;
extern char tzCurrentFileName[_MAX_PATH + 1];
extern char *tzCurrentFileName;
extern struct Section *pCurrentSection;
extern struct sSymbol *tHashedSymbols[HASHSIZE];
extern struct sSymbol *pPCSymbol;

View File

@@ -19,7 +19,7 @@ struct sContext {
YY_BUFFER_STATE FlexHandle;
struct sSymbol *pMacro;
struct sContext *pNext;
char tzFileName[_MAX_PATH + 1];
char *tzFileName;
char *tzMacroArgs[MAXMACROARGS + 1];
SLONG nLine;
ULONG nStatus;