projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tell us at least the linenumber
[fw/sdcc]
/
src
/
SDCC.y
diff --git
a/src/SDCC.y
b/src/SDCC.y
index 64fc3594eb7bf0970a46de09e6ba4eb941b4d839..98b944db8b945ed14153918536b25597ec1dc461 100644
(file)
--- a/
src/SDCC.y
+++ b/
src/SDCC.y
@@
-32,6
+32,8
@@
#include "SDCCmem.h"
#include "SDCCast.h"
#include "port.h"
#include "SDCCmem.h"
#include "SDCCast.h"
#include "port.h"
+#include "newalloc.h"
+#include "SDCCerr.h"
extern int yyerror (char *);
extern FILE *yyin;
extern int yyerror (char *);
extern FILE *yyin;
@@
-1113,7
+1115,7
@@
statement
| jump_statement
| INLINEASM ';' {
ast *ex = newNode(INLINEASM,NULL,NULL);
| jump_statement
| INLINEASM ';' {
ast *ex = newNode(INLINEASM,NULL,NULL);
-
ALLOC_ATOMIC(ex->values.inlineasm,strlen($1)
);
+
ex->values.inlineasm = Safe_calloc(1,strlen($1)+1
);
strcpy(ex->values.inlineasm,$1);
$$ = ex;
}
strcpy(ex->values.inlineasm,$1);
$$ = ex;
}