Jim Meyering
4e66f13a79
(add_omitted_fs_type, fs_to_omit): New functions adding
...
support for --exclude-type option. From Kaveh R. Ghazi
<ghazi@caip.rutgers.edu >.
1993-03-28 18:22:47 +00:00
Jim Meyering
d446f94a60
(decode_switches, print_long_format): New option: --full-time.
1993-03-28 18:21:25 +00:00
Jim Meyering
7735ccac5e
(main): If -f is given, don't complain if no file args are given.
1993-03-28 16:29:03 +00:00
Jim Meyering
c1c67d3295
Accept `flush' option. From Arne H. Juul arnej@lise.unit.no
1993-03-28 16:16:43 +00:00
Jim Meyering
d4f175199f
Add long options.
1993-03-26 04:52:17 +00:00
Jim Meyering
89ed6c2fec
(gobble_file): Don't stat symlinks unless we need to.
...
From Mike Rendell <michael@mercury.cs.mun.ca >.
1993-03-24 06:23:26 +00:00
Jim Meyering
82bdb546d9
(copy, copy_with_block, copy_with_block): Decrement pending_spaces only
...
if it's > 0. The following command didn't terminate:
perl -e 'print "a a\n";'| dd of=/dev/null ibs=1 cbs=3 conv=unblock
With suggestions from Chris Weber <weber@bucknell.edu >,
Marlys.A.Nelson@uwrf.edu , and Albert-Lunde@nwu.edu .
1993-03-24 06:22:57 +00:00
Jim Meyering
38456f092f
New option: -C, --compatible.
...
A few new small functions.
1993-03-23 05:27:39 +00:00
Jim Meyering
45849c5602
(close_file): Reverse May 13, '92 change, but add the condition
...
that cols_ready_to_print not be decremented when printing across.
The command `echo |pr -2ta' didn't terminate.
(print_page): Rewrite conditional with side effects in second conjunct
using nested if statements to make it clear that we do indeed want
those semantics.
1993-03-22 04:39:25 +00:00
Jim Meyering
b1770970a8
fix two typos
1993-03-22 02:31:33 +00:00
Jim Meyering
a299f3cc81
Compare getenv with NULL instead of 0 -- just for aesthetics.
1993-03-06 17:06:35 +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
63354f0c3f
reindent with indent-1.7
1993-02-25 16:31:52 +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
f7c04842b9
Don't ask when removing symlinks.
1993-02-18 18:24:15 +00:00
Jim Meyering
8ae407c539
Add long options.
1993-02-08 05:13:43 +00:00
Jim Meyering
2694667b8d
IS* macros may not be given arguments with side effects.
1993-01-22 19:41:33 +00:00
Jim Meyering
b538765547
merge with 1.4
1993-01-20 04:29:09 +00:00
Jim Meyering
38575ad462
Merge with pre-release 1.3.6.
1992-12-10 19:34:55 +00:00
Jim Meyering
08c5ed9a7e
Remove last (blank) line of file.
1992-12-10 19:07:47 +00:00
Jim Meyering
542bb5364d
(is_char_class_member): Remove unreached return after abort.
1992-12-08 16:32:29 +00:00
Jim Meyering
b55706236d
Define ISLOWER and ISUPPER independent of STDC_HEADERS.
...
Define ISDIGIT and use it instead of isdigit.
1992-12-08 02:13:58 +00:00
Jim Meyering
ffd97483cd
(change_file_group): Define ISDIGIT and use it instead of isdigit.
1992-12-08 02:13:30 +00:00
Jim Meyering
dcded75afc
(isnumber): Define ISDIGIT and use it instead of isdigit.
1992-12-08 02:12:49 +00:00
Jim Meyering
d6b0403a1d
(print_formatted, print_esc): Define ISXDIGIT and ISXDIGIT and use
...
them instead of isdigit and isxdigit.
1992-12-07 05:32:19 +00:00
Jim Meyering
6afc161556
(toarith): Change single use of isdigit to ISDIGIT.
1992-12-07 05:28:23 +00:00
Jim Meyering
7c4931fcee
Remove unused definition of isdigit.
1992-12-07 05:26:54 +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
57e56eb7ec
Convert static declarations of struct option to use new macros from
...
getopt.h: no_argument, required_argument, and optional_argument.
1992-12-02 18:55:36 +00:00
Jim Meyering
9d2ef3292f
Convert static declarations of struct option to use new macros from
...
getopt.h: no_argument, required_argument, and optional_argument.
1992-12-02 18:51:53 +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
f9a9be97e1
Use David's definition of isascii instead of my CTYPE_PREFIX macro.
1992-11-24 20:26:20 +00:00
Jim Meyering
df9f61fd4a
* Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that use isascii
...
if it is defined.
(is_char_class_member, make_printable_char, make_printable_str,
non_neg_strtol): Use new macros instead of lower case ones
from <ctype.h>.
1992-11-24 19:54:21 +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
88b7056046
all files: make most variables static and const when possible.
...
declare lots of functions static.
1992-11-12 04:14:54 +00:00
Jim Meyering
5fdea6164b
(set_mode): Parenthesize expressions with bit operations
...
to correctly set/reset modes bits.
1992-11-12 02:19:02 +00:00
Jim Meyering
17387a999c
Declared lots of external functions and variables static.
...
Made several statically-initialized arrays `const.'
1992-11-09 17:39:24 +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
Jim Meyering
f33e06711c
Make still more file-scope variables `static'.
1992-11-01 07:01:40 +00:00
Jim Meyering
505e28b606
Make one more file-scope variable `static.'
1992-11-01 06:55:29 +00:00
Jim Meyering
cf5cedb71a
Make file-scope variable static.
1992-11-01 06:50:15 +00:00
Jim Meyering
ccbd1d7dc5
Initial revision
1992-11-01 05:44:29 +00:00
Jim Meyering
144b82c6c2
Give most file-scope variables the static attribute.
1992-11-01 03:30:09 +00:00
Jim Meyering
220a183e8d
(swab_buffer): Fix typo that incremented pointer instead of counter.
...
Add braces around static struct initializers.
1992-10-31 23:01:35 +00:00
Jim Meyering
52d8f3c425
Add parentheses to expressions like (c = *p++) as per suggestion
...
from gcc -Wall.
1992-10-31 23:00:13 +00:00
Jim Meyering
14fd34b788
Initial revision
1992-10-31 20:42:48 +00:00