+1999-03-31 Paul D. Smith <psmith@gnu.org>
+
+ * read.c (readline): Ignore carriage returns at the end of the
+ line, to allow Windows-y CRLF line terminators.
+
1999-03-30 Paul D. Smith <psmith@gnu.org>
* configure.in: Don't put build.sh here, since build.sh.in doesn't
GNU make NEWS -*-indented-text-*-
History of user-visible changes.
- 22 Mar 1999
+ 31 Mar 1999
Copyright (C) 1992,93,94,95,96,97,98,1999 Free Software Foundation, Inc.
See the end for copying conditions.
* Make defines a new variable, .LIBPATTERNS. This variable controls how
the link library dependency expansion (dependencies like ``-lfoo'') is
performed.
+
+* Make allows CRLF sequences as well as traditional LF, in makefiles for
+ UNIX.
\f
Version 3.77
Permission is granted to distribute modified versions of this
document, or of portions of it, under the above conditions, provided
also that they carry prominent notices stating who last changed them.
-\f
-Local variables:
-version-control: never
-end:
++nlines;
+#if !defined(WINDOWS32) && !defined(__MSDOS__)
+ /* Check to see if the line was really ended with CRLF; if so ignore
+ the CR. */
+ if (len > 1 && p[-2] == '\r')
+ {
+ --len;
+ --p;
+ p[-1] = '\n';
+ }
+#endif
+
if (len == 1 && p > buffer)
/* P is pointing at a newline and it's the beginning of
the buffer returned by the last fgets call. However,