version 1.42, 2006/09/29 08:58:22 |
version 1.43, 2007/02/18 05:36:28 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.41 2006/03/05 08:21:59 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.42 2006/09/29 08:58:22 noro Exp $ |
*/ |
*/ |
#include <ctype.h> |
#include <ctype.h> |
#include "ca.h" |
#include "ca.h" |
|
|
|
|
void purge_stdin() |
void purge_stdin() |
{ |
{ |
#if defined(__FreeBSD__) |
#if defined(__FreeBSD__) || defined(__DARWIN__) |
fpurge(stdin); |
fpurge(stdin); |
#elif defined(linux) |
#elif defined(linux) |
stdin->_IO_read_end = stdin->_IO_read_base; |
stdin->_IO_read_end = stdin->_IO_read_base; |