Ok, I added the following code into the hdr.h file:
...
#include "varargs.h"
...
extern void _p_write PROTO((FDR, int, int, __va_ellipsis));
extern void _p_read PROTO((FDR, int, int, __va_ellipsis));
extern int _p_string PROTO((int, __va_ellipsis));
extern void _p_writestr PROTO((int, char *, int, __va_ellipsis));
extern void _p_readstr PROTO(char *, int, int, int, __va_ellipsis));
Well, Peter, I think the above varargs will work fine with Intel Linux but
will probably do wierd things on other platforms. Hey, its my first shot
at it! :-)
The above fixed my immediate problems... but now when trying to compile
pascal code, I get problems linking to _p_strlen, _p_gpc_locase, and
_p_gpc_upcase. ARRGGHHH. I can't seem to find where these fcns are
defined in the RTS. I do see the protos though. Would anyone care to
shove me in the right direction to solve this?
Also, do I need to fix up the Makefile? I change hdr.h but when I do a
MAKE, nothing realy happens... :-#
Later all, its bed time here in Vegas!
Ken Linder
KC7RAD