1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 10:39:01 +02:00
Commit Graph

45 Commits

Author SHA1 Message Date
Jim Meyering 6f6a35a9a1 Indent cpp directives. 1995-10-19 22:38:39 +00:00
Jim Meyering a42c7fe2d1 Prootize. 1995-10-18 03:45:44 +00:00
Jim Meyering 9a12d05216 (decode_one_format): Remove spurious semicolon. 1995-09-27 15:58:18 +00:00
Jim Meyering 92c50e7f52 Annotate localizable strings with _(...). From Franc,ois. 1995-08-07 14:57:29 +00:00
Jim Meyering c20ee98ac8 (dump): Convert to use smaller -- but seemingly equivalent -- patch. 1995-07-12 03:06:03 +00:00
Jim Meyering 67718aff76 (dump): Correct loop-termination criterion.
Before, running `printf 1234| ./od --width=4 --read-bytes=4'
printed output for 8 bytes -- the last four were garbage.
This happened only when the dump limit, N, was specified (with
--read-bytes=N) and N was a multiple of bytes_per_block
(usually 16, but 4 in this example).  From Andreas Schwab.
1995-07-07 04:46:03 +00:00
Jim Meyering 6ebaf82426 merge with 1.12 1995-06-18 19:33:31 +00:00
Jim Meyering 7cdc7a0bd9 (usage): Include one- or two-line synopsis in --help output.
From Karl Berry.
1995-05-13 18:34:54 +00:00
Jim Meyering 73daf89227 (write_block): Declare index I as unsigned int, not int.
(get_lcm): Likewise.
(dump_strings): Likewise.
(main): Likewise.
(dump): Cast BYTES_PER_BLOCK to off_t in MIN expression.
(dump_strings): Declare bufsize to be of type size_t, not int.
1995-04-14 04:27:46 +00:00
Jim Meyering b94687cecb Detect when -N argument is too large to fit in an off_t. 1995-03-16 21:54:02 +00:00
Jim Meyering eba8aab7f2 add 1995 to Copyright dates 1995-03-09 22:20:59 +00:00
Jim Meyering 5695b2f051 (parse_old_offset): Use strchr, not index. 1995-01-29 05:33:05 +00:00
Jim Meyering 197bc3fd5a (decode_format_string): Use memmove instead of bcopy.
[EQUAL_BLOCKS]: Use memcmp, not bcmp.
(dump): Use memset, not bzero.
1995-01-28 13:02:44 +00:00
Jim Meyering 851162a0da Rename macros with FP_ prefix. Use FLOAT_ instead.
AIX-2.2.1 declares a typedef, FP_DOUBLE, that conflicted.
Be careful to use off_t instead of explicit `unsigned long'.
Otherwise, systems like 4.4BSD lose on calls to fseek that
expect off_t (which is long long on that system).
(parse_old_offset): Use xstrtoul
(main): Likewise.
1995-01-25 04:19:46 +00:00
Jim Meyering 029fcaa913 (main): Use %lu, not %d for unsigned long.
(my_strtoul, uint_fatal_error): Remove functions.  Use xstrtoul
and STRTOL_FATAL_ERROR instead.
1994-12-16 05:32:30 +00:00
Jim Meyering 544baf5482 merge with 1.9.1h 1994-10-19 03:39:33 +00:00
Jim Meyering 6a76abbf9c . 1994-10-19 02:45:36 +00:00
Jim Meyering 3994e55f58 . 1994-10-02 22:11:44 +00:00
Jim Meyering 85842e28eb . 1994-04-13 17:12:17 +00:00
Jim Meyering 8bf5a6ed18 . 1994-03-25 23:38:00 +00:00
Jim Meyering 8c26c6bbba merge with 1.9.1 1993-11-15 15:58:21 +00:00
Jim Meyering c7ebcc8326 merge with 1.8.1a 1993-10-30 15:57:46 +00:00
Jim Meyering 3bc2827212 merge with 1.8h 1993-10-24 20:00:39 +00:00
Jim Meyering 6d920eca0c merge with 1.8g 1993-10-24 19:04:12 +00:00
Jim Meyering b869639f46 merge with 1.8d+ 1993-10-23 15:37:19 +00:00
Jim Meyering d1df8c198d merge with 1.8d 1993-10-21 22:08:53 +00:00
Jim Meyering 712109716a merge with 1.8a 1993-10-05 18:29:39 +00:00
Jim Meyering 6587c39b3a merge with 1.5.2 1993-05-22 05:06:39 +00:00
Jim Meyering 9a96f7c461 merge with 1.5 1993-05-07 03:09:55 +00:00
Jim Meyering d7fcb354de merge with 1.4.2. 1993-05-01 20:31:22 +00:00
Jim Meyering 2ff4fc1672 add --version and --help 1993-04-29 05:26:22 +00:00
Jim Meyering a3dc0b45fc (parse_old_offset): Allow 0X' as well as 0x' prefix to indicate hex. 1993-03-31 03:44:09 +00:00
Jim Meyering 86a2a3f5f6 . 1993-03-30 02:22:06 +00:00
Jim Meyering 38456f092f New option: -C, --compatible.
A few new small functions.
1993-03-23 05:27:39 +00:00
Jim Meyering d766e142ea (print_s_char, print_s_short): Print signed chars and signed shorts without
resorting to casts involving `signed' keyword.
(decode_one_format): Don't print leading zeroes for DECIMAL formats.
1993-02-26 15:53:47 +00:00
Jim Meyering efd83f0b57 Reformat with GNU indent-1.7. 1993-02-25 14:28:21 +00:00
Jim Meyering bc18a8e7f7 (print_s_char, print_s_short): Fix printing of signed chars and signed shorts. 1993-02-25 14:27:40 +00:00
Jim Meyering 38575ad462 Merge with pre-release 1.3.6. 1992-12-10 19:34:55 +00:00
Jim Meyering d179df1b06 Remove inclusion of <ctype.h> and definitions of is* ctype macros to system.h.
Change a few more uses of is* ctype macros to (protected) upper case versions.
1992-12-07 04:54:04 +00:00
Jim Meyering eb3a2516db Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.
1992-12-02 18:31:56 +00:00
Jim Meyering 267096a929 * (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
macros like pr.c.  Suggested by David J. MacKenzie.
1992-11-24 19:18:43 +00:00
Jim Meyering 0500639937 * (print_ascii, dump_strings): Check for isascii before isprint.
(dump_strings): Free malloc'd buffer before returning.
(skip): Return non-zero if an error occurred, zero otherwise.
Exit only if asked to skip beyond end of combined input.
(check_and_close): New function.
(skip, read_block, read_char): Call check_and_close when done
processing the file associated with in_stream.
(skip, read_block, read_char): Set have_read_stdin.
(main): Close stdin (if it was ever read) and check for errors
just before exiting.
(write_block, dump_strings, dump): Don't test return value from
functions that operate on streams.  Rely on later ferror tests.
1992-11-24 14:42:18 +00:00
Jim Meyering 750bb6aa69 Merged in changes for 1.3.5. 1992-11-19 21:03:49 +00:00
Jim Meyering 925487607c Declared lots of external functions and variables static.
Made several statically-initialized arrays `const'
1992-11-08 20:19:58 +00:00
Jim Meyering b25038ce9a Initial revision 1992-11-08 02:50:43 +00:00