> /usr/fernan/tmp/scm/sys.c:628[sys.c:3613] initialization of incompatible
> pointers: sfptob
> IND FUNC(INT, IND STRUCT _7_) INT and IND FUNC(OLD, INT, LONG) INT
> /usr/fernan/tmp/scm/sys.c:629[sys.c:3614] initialization of incompatible
> pointers: sfptob
> IND FUNC(IND CONST CHAR, IND STRUCT _7_) INT and IND FUNC(OLD, IND CHAR,
> LONG) INT
in the first case, you're trying to assign
pointers of these types:
IND FUNC(INT, IND STRUCT _7_) INT
IND FUNC(OLD, INT, LONG) INT
these kenc's internal representation for
int (*)(int, struct _7_*);
int (*)(int, long); /* pre-ansi declaration */
so the problem here is that you're mixing a pointer to
a structure with a long.
similarly,
IND FUNC(IND CONST CHAR, IND STRUCT _7_) INT
IND FUNC(OLD, IND CHAR, LONG) INT
is
int (*)(const char*, struct _7_*);
int (*)(char*, long); /* pre-ansi declaration */
struct _7_ must be FILE, and the two functions must be fputc
fputs. (but you knew that.) so the solution would be to clean up the
declaration of sfputc and sfputs.
- erik