Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
4455:49f8ed034500 | 4456:c785f98c6737 |
---|---|
304 return scan_lisp_file (filename, READ_BINARY); | 304 return scan_lisp_file (filename, READ_BINARY); |
305 } | 305 } |
306 else if (ellcc == 0 && len > 3 && !strcmp (filename + len - 3, ".el")) | 306 else if (ellcc == 0 && len > 3 && !strcmp (filename + len - 3, ".el")) |
307 { | 307 { |
308 Current_file_type = el_file; | 308 Current_file_type = el_file; |
309 return scan_lisp_file (filename, READ_TEXT); | 309 return scan_lisp_file (filename, READ_BINARY); |
310 } | 310 } |
311 else | 311 else |
312 { | 312 { |
313 Current_file_type = c_file; | 313 Current_file_type = c_file; |
314 return scan_c_file (filename, READ_TEXT); | 314 return scan_c_file (filename, READ_BINARY); |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
318 /* XEmacs addition: ISO 2022 handling */ | 318 /* XEmacs addition: ISO 2022 handling */ |
319 static int | 319 static int |