Commit Graph

697 Commits

Author SHA1 Message Date
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
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