version 1.17, 2004/03/11 03:32:46 |
version 1.18, 2004/03/25 01:37:14 |
|
|
/* $OpenXM: OpenXM/src/kxx/ox_texmacs.c,v 1.16 2004/03/09 07:10:46 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kxx/ox_texmacs.c,v 1.17 2004/03/11 03:32:46 takayama Exp $ */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <setjmp.h> |
#include <setjmp.h> |
Line 263 static char *readString(FILE *fp, char *prolog, char * |
|
Line 263 static char *readString(FILE *fp, char *prolog, char * |
|
fprintf(Dfp,"[%x] ",c); fflush(Dfp); |
fprintf(Dfp,"[%x] ",c); fflush(Dfp); |
#endif |
#endif |
if (c == END_OF_INPUT) { |
if (c == END_OF_INPUT) { |
|
/* If there remains data in the stream, |
|
read the remaining data. */ |
|
/* |
if (oxSocketSelect0(0,1)) { |
if (oxSocketSelect0(0,1)) { |
/* If there remains data in the stream, |
|
read the remaining data. */ |
|
if (c == '\n') c=' '; |
if (c == '\n') c=' '; |
s[n++] = c; s[n] = 0; m++; |
s[n++] = c; s[n] = 0; m++; |
INC_BUF ; |
INC_BUF ; |
continue; |
continue; |
} |
} |
|
*/ |
break; |
break; |
} |
} |
if (c == '\n') c=' '; |
if ( c == '\v') c=' '; |
s[n++] = c; s[n] = 0; m++; |
s[n++] = c; s[n] = 0; m++; |
INC_BUF ; |
INC_BUF ; |
} |
} |