diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-23 08:58:39 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-02-23 09:15:06 -0800 |
commit | 23e64facf9f74133c6bacedeec56ad782ae69b65 (patch) | |
tree | 19822ecfb5af4b2f867dd02a2a29319ade9fcb13 /lisp/emacs-lisp/testcover.el | |
parent | 5114b3a2047a9bcdb72fddf35e70201c16eb39a3 (diff) | |
download | emacs-23e64facf9f74133c6bacedeec56ad782ae69b65.tar.gz emacs-23e64facf9f74133c6bacedeec56ad782ae69b65.tar.bz2 emacs-23e64facf9f74133c6bacedeec56ad782ae69b65.zip |
hexl: handle large files and I/O errors
* lib-src/hexl.c: Include inttypes.h, for PRIxMAX etc.
Do not include ctype.h, as the code no longer uses isdigit.
(DEFAULT_GROUPING, un_flag, iso_flag, group_by): Now local to ‘main’.
(DEFAULT_BASE, endian): Remove; was not really used.
(usage): Remove; now done by ‘main’, as that’s simpler.
(progname): Now static.
(output_error, hexchar): New functions.
(main): Use them. Simplify. Remove "-oct", "-big-endian", and
"-little-endian" options, as they did not work and were not used.
Use SET_BINARY only on stdin, and fopen with "rb" otherwise.
Use SET_BINARY only once on stdout.
Do not assume file offsets fit in ‘long’.
If an I/O error occurs, report it and exit with nonzero status.
Diffstat (limited to 'lisp/emacs-lisp/testcover.el')
0 files changed, 0 insertions, 0 deletions