On Sunday 06 April 2003 06:09 am, Florian Kolbe wrote:
typedef void _cdecl funct_t(void);
funct_t *isfunct(char *Str, int Len);
struct FNCT_LIST { char far *s; /* TIW 03-31-91 added far */ /* void (**ptr)(void); */ funct_t** ptr; };
void dStkSin(void) { double sinx, cosx, sinhy, coshy;
FPUsincos(&Arg1->d.x, &sinx, &cosx); FPUsinhcosh(&Arg1->d.y, &sinhy, &coshy); Arg1->d.x = sinx*coshy; Arg1->d.y = cosx*sinhy; }
void (*StkSin)(void) = dStkSin;
struct FNCT_LIST far FnctList[] = { /* TIW 03-31-91 added far */ {s_sin, &StkSin}, ---> above line gives type mismatch
I would have to guess that it is choking on the _cdecl in the typedef of funct_t. In the brief time I've spent trying to compile the source with the djgpp compiler I found that I needed to undefine _cdecl. Jonathan