version 1.13, 2000/12/26 05:17:47 |
version 1.16, 2001/06/15 07:56:06 |
|
|
* 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.12 2000/12/22 10:03:32 saito Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/lex.c,v 1.15 2001/06/04 02:49:48 noro Exp $ |
*/ |
*/ |
#include <ctype.h> |
#include <ctype.h> |
#include "ca.h" |
#include "ca.h" |
Line 411 void purge_stdin() |
|
Line 411 void purge_stdin() |
|
stdin->_IO_read_ptr = stdin->_IO_read_base; |
stdin->_IO_read_ptr = stdin->_IO_read_base; |
#elif defined(VISUAL_LIB) |
#elif defined(VISUAL_LIB) |
w_purge_stdin(); |
w_purge_stdin(); |
#elif defined(sparc) || defined(__alpha) || defined(__SVR4) || defined(mips) || defined(VISUAL) |
#elif defined(sparc) || defined(__alpha) || defined(__SVR4) || defined(mips) || defined(VISUAL) || defined(_IBMR2) |
stdin->_ptr = stdin->_base; stdin->_cnt = 0; |
stdin->_ptr = stdin->_base; stdin->_cnt = 0; |
|
#elif defined(__MACH__) && defined(__ppc__) |
|
stdin->_r = 0; stdin->_p = stdin->_bf._base; |
#else |
#else |
--->FIXIT |
--->FIXIT |
#endif |
#endif |
Line 423 static int skipspace() { |
|
Line 425 static int skipspace() { |
|
|
|
for ( c = Getc(); ; ) |
for ( c = Getc(); ; ) |
switch ( c ) { |
switch ( c ) { |
case ' ': case '\t': |
case ' ': case '\t': case '\r': |
c = Getc(); break; |
c = Getc(); break; |
case '\n': |
case '\n': |
c = afternl(); break; |
c = afternl(); break; |