Simplify binary I/O configuration
commit3bbf5170722d9e555307259763623c74240a2555
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Feb 2015 03:20:35 +0000 (19 19:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Feb 2015 03:21:32 +0000 (19 19:21 -0800)
tree853912d230255ec479567a7feb0cb9d0506e9de4
parent12ab9571935d79c69ffab0fb1ea3f6e20f475860
Simplify binary I/O configuration

* lib-src/etags.c: Include <sysstdio.h> rather than <stdio.h>.
(process_file_name, analyze_regex): Use FOPEN_BINARY rather than
hard-coded "b".
* src/lread.c (Fload): Prefer FOPEN_TEXT and FOPEN_BINARY to
#ifdef DOS_NT.
* src/sysstdio.h: Add copyright notice.  Include <fcntl.h>.
(FOPEN_BINARY, FOPEN_TEXT): New macros.
* src/xfaces.c (Fx_load_color_file): Use FOPEN_TEXT, since POSIX
doesn't guarantee that "t" will work.
lib-src/ChangeLog
lib-src/etags.c
src/ChangeLog
src/lread.c
src/sysstdio.h
src/xfaces.c