=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2018/parse/glob.c,v retrieving revision 1.5 retrieving revision 1.8 diff -u -p -r1.5 -r1.8 --- OpenXM_contrib2/asir2018/parse/glob.c 2020/03/29 17:01:55 1.5 +++ OpenXM_contrib2/asir2018/parse/glob.c 2020/10/06 06:31:20 1.8 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2018/parse/glob.c,v 1.4 2019/12/13 14:40:50 fujimoto Exp $ + * $OpenXM: OpenXM_contrib2/asir2018/parse/glob.c,v 1.7 2020/06/20 05:56:08 fujimoto Exp $ */ #include "ca.h" #include "al.h" @@ -332,7 +332,7 @@ void cppname_init() char oxcpp[BUFSIZ]; #define OXCPP "/bin/ox_cpp" - if ( oxhome = getenv("OpenXM_HOME") ) { + if ( ( oxhome = getenv("OpenXM_HOME") ) != 0 ) { if ( strlen(oxhome)+strlen(OXCPP)_IO_read_ptr < stdin->_IO_read_end ) - while ( __freadable(stdin) ) + while ( stdin->_IO_read_ptr < stdin->_IO_read_end ) #else while ( stdin->_gptr < stdin->_egptr ) #endif getchar(); +*/ + if( __freadable(stdin) ) __fpurge(stdin); #endif while ( 1 ) { char buf[BUFSIZ];