git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@842
4a8a32a2-be11-0410-ad9d-
d568d2c75423
_G.inLine += (!options.asmpeep);
_G.inLine += (!options.asmpeep);
- buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic)+1));
+ buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic))+1);
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
_G.inLine += (!options.asmpeep);
_G.inLine += (!options.asmpeep);
- buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic)+1));
+ buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic))+1);
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
/*-------------------------------------------------------------------------
SDCCgen51.c - source file for code generation for 8051
/*-------------------------------------------------------------------------
SDCCgen51.c - source file for code generation for 8051
int size, offset = 0;
char *l;
int size, offset = 0;
char *l;
/* if this is not a parm push : ie. it is spill push
and spill push is always done on the local stack */
if (!ic->parmPush)
/* if this is not a parm push : ie. it is spill push
and spill push is always done on the local stack */
if (!ic->parmPush)
/*-----------------------------------------------------------------*/
/* genInline - write the inline code out */
/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/
/* genInline - write the inline code out */
/*-----------------------------------------------------------------*/
static void
genInline (iCode * ic)
{
static void
genInline (iCode * ic)
{
_G.inLine += (!options.asmpeep);
_G.inLine += (!options.asmpeep);
- buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic)+1));
+ buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic))+1);
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
if (*bp == '\n')
{
*bp++ = '\0';
if (*bp == '\n')
{
*bp++ = '\0';
emitcode (bp1, "");
bp1 = bp;
}
emitcode (bp1, "");
bp1 = bp;
}
emitcode (bp1, "");
bp1 = bp;
}
emitcode (bp1, "");
bp1 = bp;
}
_G.inLine += (!options.asmpeep);
_G.inLine += (!options.asmpeep);
- buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic)+1));
+ buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic))+1);
strcpy(buffer,IC_INLINE(ic));
/* emit each line as a code */
strcpy(buffer,IC_INLINE(ic));
/* emit each line as a code */
inLine += (!options.asmpeep);
inLine += (!options.asmpeep);
- buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic)+1));
+ buffer = bp = bp1 = Safe_calloc(1, strlen(IC_INLINE(ic))+1);
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */
strcpy (buffer, IC_INLINE (ic));
/* emit each line as a code */