Jim Meyering
4f0f13ad00
.
1993-03-23 02:52:19 +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
90a2952982
.
1993-03-02 14:48:18 +00:00
Jim Meyering
3855a21213
.
1993-03-02 14:41:40 +00:00
Jim Meyering
8a010c44a5
.
1993-03-02 14:36:30 +00:00
Jim Meyering
978afa51c0
.
1993-03-02 14:13:10 +00:00
Jim Meyering
d71cb4d9c7
Initial revision
1993-03-02 14:10:31 +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.
ISDIGIT-bug-fix
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
add6b20a4d
isascii guards for ctype.h macros
1992-12-13 14:18:48 +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
6bbe8733bc
.
1992-12-08 16:32:37 +00:00
Jim Meyering
542bb5364d
(is_char_class_member): Remove unreached return after abort.
1992-12-08 16:32:29 +00:00
Jim Meyering
0e598af534
.
1992-12-08 02:14:20 +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
a1507ef1da
.
1992-12-07 05:32:29 +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
5b783b6972
.
1992-12-07 04:54:23 +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
f6ae65319a
.
1992-12-02 18:55:03 +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
60edc4537b
.
1992-12-02 18:51:05 +00:00
Jim Meyering
d9bd06c03c
.
1992-12-02 18:42:09 +00:00
Jim Meyering
030f314992
fixup to make tags right for getopt changes
1992-12-02 18:40:09 +00:00
Jim Meyering
53aa1178ee
.
1992-12-02 18:32:24 +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
3a26bddda4
.
1992-11-24 19:54:32 +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
c856423cb5
.
1992-11-24 19:18:52 +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
ca05c45625
.
1992-11-24 14:43:20 +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
ceda697482
.
1992-11-13 03:36:55 +00:00
Jim Meyering
46fadc4262
.
1992-11-13 03:21:45 +00:00