Commit Graph

29778 Commits

Author SHA1 Message Date
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
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
5fc2263354 Make tables static and const when possible.
getdate.c (getdate_yyerr, getdate_yylex): Declare these functions static.
1992-11-12 04:13:46 +00:00
Jim Meyering
83f157a7cc . 1992-11-12 04:12:01 +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
40d0a06450 Initial revision 1992-11-08 02:55:41 +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
cdb20814d2 *** empty log message *** 1992-10-31 23:02:03 +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
37ff29b820 Add parentheses to expressions like (c = *p++) as per suggestion
from gcc -Wall.
1992-10-31 23:00:47 +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
52cafd727f (adjust_blocks): Convert to a macro. The static
function wasn't always used.
1992-10-31 22:50:51 +00:00
Jim Meyering
14fd34b788 Initial revision 1992-10-31 20:42:48 +00:00