forked from enlightenment/efl
parent
d27f9301a0
commit
6567775653
|
@ -1000,8 +1000,8 @@ setconstants(void)
|
|||
add_constant("false", 0, sGLOBAL, 1);
|
||||
add_constant("EOS", 0, sGLOBAL, 0); /* End Of String, or '\0' */
|
||||
add_constant("cellbits", 32, sGLOBAL, 0);
|
||||
add_constant("cellmax", LONG_MAX, sGLOBAL, 0);
|
||||
add_constant("cellmin", LONG_MIN, sGLOBAL, 0);
|
||||
add_constant("cellmax", INT_MAX, sGLOBAL, 0);
|
||||
add_constant("cellmin", INT_MIN, sGLOBAL, 0);
|
||||
add_constant("charbits", charbits, sGLOBAL, 0);
|
||||
add_constant("charmin", 0, sGLOBAL, 0);
|
||||
add_constant("charmax", (charbits == 16) ? 0xffff : 0xff, sGLOBAL, 0);
|
||||
|
@ -3651,6 +3651,7 @@ test(int label, int parens, int invert)
|
|||
#endif
|
||||
} /* if */
|
||||
|
||||
/* FIXME: 64bit unsafe! putting an int on a stack of void *'s */
|
||||
pushstk((stkitem) intest);
|
||||
intest = 1;
|
||||
if (parens)
|
||||
|
|
|
@ -104,10 +104,14 @@ plungequalifiedfile(char *name)
|
|||
pushstk((stkitem) inpf);
|
||||
pushstk((stkitem) inpfname); /* pointer to current file name */
|
||||
pushstk((stkitem) curlibrary);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) iflevel);
|
||||
assert(skiplevel == 0);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) icomment);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) fcurrent);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) fline);
|
||||
inpfname = duplicatestring(name); /* set name of include file */
|
||||
if (inpfname == NULL)
|
||||
|
@ -636,8 +640,8 @@ ftoi(cell * val, char *curptr)
|
|||
{
|
||||
float test1 = 0.0, test2 = 50.0;
|
||||
|
||||
assert(*(long *)&test1 == 0x00000000L
|
||||
&& *(long *)&test2 == 0x42480000L);
|
||||
assert(*(int *)&test1 == 0x00000000L
|
||||
&& *(int *)&test2 == 0x42480000L);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1691,7 +1691,9 @@ primary(value * lval)
|
|||
|
||||
if (matchtoken('('))
|
||||
{ /* sub-expression - (expression,...) */
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) intest);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) sc_allowtags);
|
||||
|
||||
intest = 0; /* no longer in "test" expression */
|
||||
|
|
|
@ -555,7 +555,10 @@ replacesequence(char *pattern, char symbols[_maxoptvars][_aliasmax + 1],
|
|||
|
||||
/* allocate a buffer to replace the sequence in */
|
||||
if ((buffer = malloc(*repl_length)) == NULL)
|
||||
return (char *)error(103);
|
||||
{
|
||||
error(103);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* replace the pattern into this temporary buffer */
|
||||
lptr = buffer;
|
||||
|
|
Loading…
Reference in New Issue