fix warnings on 64 bits arch
patch by Albin Tonerre, modified by me so that vc++ is happy SVN revision: 45428
This commit is contained in:
parent
b2f0971068
commit
9aec8f6722
|
@ -36,6 +36,12 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
# include <stdint.h>
|
||||||
|
#else
|
||||||
|
# include <stddef.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "embryo_cc_amx.h"
|
#include "embryo_cc_amx.h"
|
||||||
|
|
||||||
/* Note: the "cell" and "ucell" types are defined in AMX.H */
|
/* Note: the "cell" and "ucell" types are defined in AMX.H */
|
||||||
|
@ -53,7 +59,7 @@
|
||||||
#define PREPROC_TERM '\x7f' /* termination character for preprocessor expressions (the "DEL" code) */
|
#define PREPROC_TERM '\x7f' /* termination character for preprocessor expressions (the "DEL" code) */
|
||||||
#define sDEF_PREFIX "default.inc" /* default prefix filename */
|
#define sDEF_PREFIX "default.inc" /* default prefix filename */
|
||||||
|
|
||||||
typedef void *stkitem; /* type of items stored on the stack */
|
typedef intptr_t stkitem; /* type of items stored on the stack */
|
||||||
|
|
||||||
typedef struct __s_arginfo
|
typedef struct __s_arginfo
|
||||||
{ /* function argument info */
|
{ /* function argument info */
|
||||||
|
|
|
@ -3443,7 +3443,6 @@ test(int label, int parens, int invert)
|
||||||
#endif
|
#endif
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
/* FIXME: 64bit unsafe! putting an int on a stack of void *'s */
|
|
||||||
pushstk((stkitem) intest);
|
pushstk((stkitem) intest);
|
||||||
intest = 1;
|
intest = 1;
|
||||||
if (parens)
|
if (parens)
|
||||||
|
|
|
@ -116,14 +116,10 @@ plungequalifiedfile(char *name)
|
||||||
pushstk((stkitem) inpf);
|
pushstk((stkitem) inpf);
|
||||||
pushstk((stkitem) inpfname); /* pointer to current file name */
|
pushstk((stkitem) inpfname); /* pointer to current file name */
|
||||||
pushstk((stkitem) curlibrary);
|
pushstk((stkitem) curlibrary);
|
||||||
/* FIXME: 64bit unsafe */
|
|
||||||
pushstk((stkitem) iflevel);
|
pushstk((stkitem) iflevel);
|
||||||
assert(skiplevel == 0);
|
assert(skiplevel == 0);
|
||||||
/* FIXME: 64bit unsafe */
|
|
||||||
pushstk((stkitem) icomment);
|
pushstk((stkitem) icomment);
|
||||||
/* FIXME: 64bit unsafe */
|
|
||||||
pushstk((stkitem) fcurrent);
|
pushstk((stkitem) fcurrent);
|
||||||
/* FIXME: 64bit unsafe */
|
|
||||||
pushstk((stkitem) fline);
|
pushstk((stkitem) fline);
|
||||||
inpfname = strdup(name); /* set name of include file */
|
inpfname = strdup(name); /* set name of include file */
|
||||||
if (inpfname == NULL)
|
if (inpfname == NULL)
|
||||||
|
|
|
@ -1698,9 +1698,7 @@ primary(value * lval)
|
||||||
|
|
||||||
if (matchtoken('('))
|
if (matchtoken('('))
|
||||||
{ /* sub-expression - (expression,...) */
|
{ /* sub-expression - (expression,...) */
|
||||||
/* FIXME: 64bit unsafe */
|
|
||||||
pushstk((stkitem) intest);
|
pushstk((stkitem) intest);
|
||||||
/* FIXME: 64bit unsafe */
|
|
||||||
pushstk((stkitem) sc_allowtags);
|
pushstk((stkitem) sc_allowtags);
|
||||||
|
|
||||||
intest = 0; /* no longer in "test" expression */
|
intest = 0; /* no longer in "test" expression */
|
||||||
|
|
Loading…
Reference in New Issue