Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 420 → Rev 421

/trunk/read.c
62,8 → 62,8
 
if(c==CR || c==LF){ /* detected end of line */
 
/* look ahead to see if we need to skip a line feed (DOS EOL convention) */
if(c == CR && c == LF && p < dataend)
/* look ahead to see if we need to skip a line feed (DOS CRLF EOL convention) */
if(p < dataend && c == CR && *p == LF)
++p;
 
linebuf[lineptr] = 0; /* add terminating NUL to line buffer */