#include <stdio.h>
#include <setjmp.h>
+#ifndef _MSC_VER
+# include <stdint.h>
+#else
+# include <stddef.h>
+#endif
+
#include "embryo_cc_amx.h"
/* Note: the "cell" and "ucell" types are defined in AMX.H */
#define PREPROC_TERM '\x7f' /* termination character for preprocessor expressions (the "DEL" code) */
#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
{ /* function argument info */
#endif
} /* if */
- /* FIXME: 64bit unsafe! putting an int on a stack of void *'s */
pushstk((stkitem) intest);
intest = 1;
if (parens)
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 = strdup(name); /* set name of include file */
if (inpfname == NULL)
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 */