[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] warnings in interface modules
From: |
dave . denholm |
Subject: |
Re: [gnugo-devel] warnings in interface modules |
Date: |
10 Feb 2003 18:50:08 +0000 |
Paul Pogonyshev <address@hidden> writes:
> i constantly get the following warnings:
>
> play_ascii.c: In function `play_ascii':
> play_ascii.c:560: warning: implicit declaration of function `setlinebuf'
> play_gtp.c: In function `play_gtp':
> play_gtp.c:297: warning: implicit declaration of function `setlinebuf'
>
> `configure' sets HAVE_SETLINEBUF to 1. here is an excerpt from
> /usr/include/stdio.h (on gnu/linux):
>
> ...
>
> #ifdef __USE_BSD
> /* If BUF is NULL, make STREAM unbuffered.
> Else make it use SIZE bytes of BUF for buffering. */
> extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
> size_t __size) __THROW;
>
> /* Make STREAM line-buffered. */
> extern void setlinebuf (FILE *__stream) __THROW;
> #endif
>
> ...
>
> apparently, we don't have __USE_BSD defined. do you get the same
> warnings? can they be eliminated easily?
>
The ansi way to do this is via setvbuf().
ISTR it was changed to setlinebuf because windows doesn't do setvbuf correctly ?
dd
--
address@hidden http://www.insignia.com