picrin icon indicating copy to clipboard operation
picrin copied to clipboard

Address some issues with flushbuf, display, and build.

Open dcurrie opened this issue 8 years ago • 0 comments

Addressing issue #351 a bit.

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.

dcurrie avatar Aug 06 '17 02:08 dcurrie