projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added another rule
[fw/sdcc]
/
src
/
SDCC.lex
diff --git
a/src/SDCC.lex
b/src/SDCC.lex
index a39f0c4fef4b5030a5967efa26c7dc6c9d93e65b..b335a917aaf958af396969789c558046a5d9867b 100644
(file)
--- a/
src/SDCC.lex
+++ b/
src/SDCC.lex
@@
-34,6
+34,7
@@
IS (u|U|l|L)*
#include <string.h>
#include <ctype.h>
#include "common.h"
#include <string.h>
#include <ctype.h>
#include "common.h"
+#include "newalloc.h"
char *stringLiteral();
char *currFname;
char *stringLiteral();
char *currFname;
@@
-262,7
+263,7
@@
int checkCurrFile ( char *s)
/* mark the end of the filename */
while (*s != '"') s++;
*s = '\0';
/* mark the end of the filename */
while (*s != '"') s++;
*s = '\0';
-
ALLOC_ATOMIC(currFname
,strlen(sb)+1);
+
currFname = Safe_calloc(1
,strlen(sb)+1);
strcpy(currFname,sb);
yylineno = lNum - 2;
}
strcpy(currFname,sb);
yylineno = lNum - 2;
}