--- gforth/engine/engine.c 2008/01/13 22:13:08 1.107 +++ gforth/engine/engine.c 2010/12/31 18:09:02 1.113 @@ -1,6 +1,6 @@ /* Gforth virtual machine (aka inner interpreter) - Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007 Free Software Foundation, Inc. + Copyright (C) 1995,1996,1997,1998,2000,2003,2004,2005,2006,2007,2008,2010 Free Software Foundation, Inc. This file is part of Gforth. @@ -44,7 +44,9 @@ #include #include #include +#ifdef HAVE_WCHAR_H #include +#endif #include #ifdef HAVE_FNMATCH_H #include @@ -70,10 +72,6 @@ #include #endif -#ifdef HAS_LIBFFI -#include -#endif - #ifndef SEEK_SET /* should be defined in stdio.h, but some systems don't have it */ #define SEEK_SET 0 @@ -344,11 +342,6 @@ Label *gforth_engine(Xt *ip0, Cell *sp0, long long llrv; void * prv; #endif -#ifdef HAS_LIBFFI - extern void * gforth_ritem; - extern void ** gforth_clist; - extern void ffi_callback(ffi_cif * cif, void * resp, void ** args, Xt * ip); -#endif register Address up UPREG = gforth_UP; #if !defined(GFORTH_DEBUGGING) register Cell MAYBE_UNUSED spTOS TOSREG; @@ -356,9 +349,9 @@ Label *gforth_engine(Xt *ip0, Cell *sp0, register Cell MAYBE_UNUSED spc spcREG; register Cell MAYBE_UNUSED spd spdREG; register Cell MAYBE_UNUSED spe speREG; - register Cell MAYBE_UNUSED spf speREG; - register Cell MAYBE_UNUSED spg speREG; - register Cell MAYBE_UNUSED sph speREG; + register Cell MAYBE_UNUSED spf spfREG; + register Cell MAYBE_UNUSED spg spgREG; + register Cell MAYBE_UNUSED sph sphREG; IF_fpTOS(register Float fpTOS FTOSREG;) #endif /* !defined(GFORTH_DEBUGGING) */ #if defined(DOUBLY_INDIRECT) @@ -413,7 +406,7 @@ Label *gforth_engine(Xt *ip0, Cell *sp0, symbols = (Label *)(malloc(MAX_SYMBOLS*sizeof(Cell)+CODE_OFFSET)+code_offset); xts = (Label *)(malloc(MAX_SYMBOLS*sizeof(Cell)+XT_OFFSET)+xt_offset); - for (i=0; i=MAX_SYMBOLS) {