Mercurial > hg > xemacs-beta
changeset 4456:c785f98c6737
Pass READ_BINARY to scan_lisp_file, scan_c_file in make-docfile.c
2008-05-13 Aidan Kehoe <kehoea@parhasard.net>
* make-docfile.c (scan_file):
Pass READ_BINARY to scan_lisp_file, scan_c_file; avoids an
assertion failure with Visual C++ 2005 Express Edition, and is
logically more coherent, given that our Lisp and C files are saved
with Unix line endings.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Tue, 13 May 2008 20:08:28 +0200 |
parents | 49f8ed034500 |
children | 2fddd822ce87 |
files | lib-src/ChangeLog lib-src/make-docfile.c |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ChangeLog Mon May 12 11:53:04 2008 +0200 +++ b/lib-src/ChangeLog Tue May 13 20:08:28 2008 +0200 @@ -1,3 +1,11 @@ +2008-05-13 Aidan Kehoe <kehoea@parhasard.net> + + * make-docfile.c (scan_file): + Pass READ_BINARY to scan_lisp_file, scan_c_file; avoids an + assertion failure with Visual C++ 2005 Express Edition, and is + logically more coherent, given that our Lisp and C files are saved + with Unix line endings. + 2007-08-27 Mike Sperber <mike@xemacs.org> * config.values.in (datarootdir): Add.
--- a/lib-src/make-docfile.c Mon May 12 11:53:04 2008 +0200 +++ b/lib-src/make-docfile.c Tue May 13 20:08:28 2008 +0200 @@ -306,12 +306,12 @@ else if (ellcc == 0 && len > 3 && !strcmp (filename + len - 3, ".el")) { Current_file_type = el_file; - return scan_lisp_file (filename, READ_TEXT); + return scan_lisp_file (filename, READ_BINARY); } else { Current_file_type = c_file; - return scan_c_file (filename, READ_TEXT); + return scan_c_file (filename, READ_BINARY); } }