projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free...
[fw/sdcc]
/
src
/
SDCC.lex
diff --git
a/src/SDCC.lex
b/src/SDCC.lex
index 4eddd3ee77a507cd4513327bcce86108b9577e48..9ff54cb70022877e4910ad770eb2305f37d39815 100644
(file)
--- a/
src/SDCC.lex
+++ b/
src/SDCC.lex
@@
-84,14
+84,14
@@
struct options save_options ;
%%
"_asm" {
count();
%%
"_asm" {
count();
- asmp = asmbuff =
Safe_
realloc (asmbuff, INITIAL_INLINEASM);
+ asmp = asmbuff = realloc (asmbuff, INITIAL_INLINEASM);
asmbuffSize=INITIAL_INLINEASM;
BEGIN(asm) ;
}
<asm>"_endasm" {
count();
*asmp = '\0';
asmbuffSize=INITIAL_INLINEASM;
BEGIN(asm) ;
}
<asm>"_endasm" {
count();
*asmp = '\0';
- yylval.yyinline =
Safe_
alloc (strlen(asmbuff)+1);
+ yylval.yyinline =
m
alloc (strlen(asmbuff)+1);
strcpy(yylval.yyinline,asmbuff);
BEGIN(INITIAL);
return (INLINEASM);
strcpy(yylval.yyinline,asmbuff);
BEGIN(INITIAL);
return (INLINEASM);
@@
-101,7
+101,7
@@
struct options save_options ;
// increase the buffersize with 50%
int size=asmp-asmbuff;
asmbuffSize=asmbuffSize*3/2;
// increase the buffersize with 50%
int size=asmp-asmbuff;
asmbuffSize=asmbuffSize*3/2;
- asmbuff =
Safe_
realloc (asmbuff, asmbuffSize);
+ asmbuff = realloc (asmbuff, asmbuffSize);
asmp=asmbuff+size;
}
*asmp++ = yytext[0];
asmp=asmbuff+size;
}
*asmp++ = yytext[0];
@@
-112,7
+112,7
@@
struct options save_options ;
// increase the buffersize with 50%
int size=asmp-asmbuff;
asmbuffSize=asmbuffSize*3/2;
// increase the buffersize with 50%
int size=asmp-asmbuff;
asmbuffSize=asmbuffSize*3/2;
- asmbuff =
Safe_
realloc (asmbuff, asmbuffSize);
+ asmbuff = realloc (asmbuff, asmbuffSize);
asmp=asmbuff+size;
}
*asmp++ = '\n' ;
asmp=asmbuff+size;
}
*asmp++ = '\n' ;
@@
-288,7
+288,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';
- currFname =
Safe_
alloc (strlen(sb)+1);
+ currFname =
m
alloc (strlen(sb)+1);
strcpy(currFname,sb);
lineno = yylineno = lNum;
}
strcpy(currFname,sb);
lineno = yylineno = lNum;
}
@@
-447,11
+447,11
@@
void doPragma (int op, char *cp)
/* append to the functions already listed
in callee-saves */
for (; options.calleeSaves[i] ;i++);
/* append to the functions already listed
in callee-saves */
for (; options.calleeSaves[i] ;i++);
- parseWithComma(&options.calleeSaves[i],strdup(cp));
+ parseWithComma(&options.calleeSaves[i],
Safe_
strdup(cp));
}
break;
case P_EXCLUDE:
}
break;
case P_EXCLUDE:
- parseWithComma(options.excludeRegs,strdup(cp));
+ parseWithComma(options.excludeRegs,
Safe_
strdup(cp));
break;
case P_LOOPREV:
optimize.noLoopReverse = 1;
break;
case P_LOOPREV:
optimize.noLoopReverse = 1;