The definition of display in error.scm always uses current-error-port, which was causing the build to fail making init_lib.c and others. Changed to use current-output-port in the non-error case.
The function flushbuf would always return EOF when called from pic_fwrite causing some characters to be dropped. Fixed by returning 0 when EOF passed in and there are no errors.
Other cleanup to eliminate build errors is included.
Addressing issue #351 a bit.
The definition of
display
in error.scm always usescurrent-error-port
, which was causing the build to fail making init_lib.c and others. Changed to usecurrent-output-port
in the non-error case.The function
flushbuf
would always return EOF when called frompic_fwrite
causing some characters to be dropped. Fixed by returning 0 when EOF passed in and there are no errors.Other cleanup to eliminate build errors is included.