Mercurial > hg > xemacs-beta
diff lib-src/make-docfile.c @ 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 | 959746c534f6 |
children | 061e030e3270 |
line wrap: on
line diff
--- 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); } }