[BACK]Return to stdio.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

Diff for /OpenXM_contrib2/asir2000/parse/stdio.c between version 1.6 and 1.7

version 1.6, 2001/10/09 01:36:25 version 1.7, 2005/10/19 04:51:15
Line 45 
Line 45 
  * 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/stdio.c,v 1.5 2001/10/05 10:23:07 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/stdio.c,v 1.6 2001/10/09 01:36:25 noro Exp $
 */  */
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 61  static struct w_buf {
Line 61  static struct w_buf {
 } W_BUF;  } W_BUF;
   
 static int noflush;  static int noflush;
   extern int emergency;
   
 #define INBUF_EMPTY (W_BUF.inpos >= W_BUF.inlen)  #define INBUF_EMPTY (W_BUF.inpos >= W_BUF.inlen)
   
Line 73  void w_purge_stdin(void)
Line 74  void w_purge_stdin(void)
 int w_filbuf(void)  int w_filbuf(void)
 {  {
   int status = get_line(W_BUF.inbuf);    int status = get_line(W_BUF.inbuf);
   
     /* XXX */
     if ( emergency ) return 0;
   
   W_BUF.inpos = 0;    W_BUF.inpos = 0;
   W_BUF.inlen = strlen(W_BUF.inbuf);    W_BUF.inlen = strlen(W_BUF.inbuf);
   return status;    return status;
 }  }
   
 int w_flushbuf(void) {  int w_flushbuf(void) {
     /* XXX */
     if ( emergency ) return 0;
   
   W_BUF.outbuf[W_BUF.outpos] = 0;    W_BUF.outbuf[W_BUF.outpos] = 0;
   W_BUF.outpos = 0;    W_BUF.outpos = 0;
   put_line(W_BUF.outbuf);    put_line(W_BUF.outbuf);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>