platform/upstream/coreutils.git
31 years agoConvert static declarations of struct option to use new macros from
Jim Meyering [Wed, 2 Dec 1992 18:31:56 +0000 (18:31 +0000)]
Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.

31 years agoUse David's definition of isascii instead of my CTYPE_PREFIX macro.
Jim Meyering [Tue, 24 Nov 1992 20:26:20 +0000 (20:26 +0000)]
Use David's definition of isascii instead of my CTYPE_PREFIX macro.

31 years ago.
Jim Meyering [Tue, 24 Nov 1992 19:54:32 +0000 (19:54 +0000)]
.

31 years ago* Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that use isascii
Jim Meyering [Tue, 24 Nov 1992 19:54:21 +0000 (19:54 +0000)]
* 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>.

31 years ago.
Jim Meyering [Tue, 24 Nov 1992 19:18:52 +0000 (19:18 +0000)]
.

31 years ago* (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
Jim Meyering [Tue, 24 Nov 1992 19:18:43 +0000 (19:18 +0000)]
* (print_ascii, dump_strings): Use ISDIGIT and ISPRINT
macros like pr.c.  Suggested by David J. MacKenzie.

31 years ago.
Jim Meyering [Tue, 24 Nov 1992 14:43:20 +0000 (14:43 +0000)]
.

31 years ago* (print_ascii, dump_strings): Check for isascii before isprint.
Jim Meyering [Tue, 24 Nov 1992 14:42:18 +0000 (14:42 +0000)]
* (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.

31 years agoMerged in changes for 1.3.5.
Jim Meyering [Thu, 19 Nov 1992 21:03:49 +0000 (21:03 +0000)]
Merged in changes for 1.3.5.

31 years ago.
Jim Meyering [Fri, 13 Nov 1992 03:36:55 +0000 (03:36 +0000)]
.

31 years ago.
Jim Meyering [Fri, 13 Nov 1992 03:21:45 +0000 (03:21 +0000)]
.

31 years agoall files: make most variables static and const when possible.
Jim Meyering [Thu, 12 Nov 1992 04:14:54 +0000 (04:14 +0000)]
all files: make most variables static and const when possible.
declare lots of functions static.

31 years agoMake tables static and const when possible.
Jim Meyering [Thu, 12 Nov 1992 04:13:46 +0000 (04:13 +0000)]
Make tables static and const when possible.
getdate.c (getdate_yyerr, getdate_yylex): Declare these functions static.

31 years ago.
Jim Meyering [Thu, 12 Nov 1992 04:12:01 +0000 (04:12 +0000)]
.

31 years ago(set_mode): Parenthesize expressions with bit operations
Jim Meyering [Thu, 12 Nov 1992 02:19:02 +0000 (02:19 +0000)]
(set_mode): Parenthesize expressions with bit operations
to correctly set/reset modes bits.

31 years agoDeclared lots of external functions and variables static.
Jim Meyering [Mon, 9 Nov 1992 17:39:24 +0000 (17:39 +0000)]
Declared lots of external functions and variables static.
Made several statically-initialized arrays `const.'

31 years agoDeclared lots of external functions and variables static.
Jim Meyering [Sun, 8 Nov 1992 20:19:58 +0000 (20:19 +0000)]
Declared lots of external functions and variables static.
Made several statically-initialized arrays `const'

31 years agoInitial revision
Jim Meyering [Sun, 8 Nov 1992 02:55:41 +0000 (02:55 +0000)]
Initial revision

31 years agoInitial revision
Jim Meyering [Sun, 8 Nov 1992 02:50:43 +0000 (02:50 +0000)]
Initial revision

31 years agoMake still more file-scope variables `static'.
Jim Meyering [Sun, 1 Nov 1992 07:01:40 +0000 (07:01 +0000)]
Make still more file-scope variables `static'.

31 years agoMake one more file-scope variable `static.'
Jim Meyering [Sun, 1 Nov 1992 06:55:29 +0000 (06:55 +0000)]
Make one more file-scope variable `static.'

31 years agoMake file-scope variable static.
Jim Meyering [Sun, 1 Nov 1992 06:50:15 +0000 (06:50 +0000)]
Make file-scope variable static.

31 years agoInitial revision
Jim Meyering [Sun, 1 Nov 1992 05:44:29 +0000 (05:44 +0000)]
Initial revision

31 years agoGive most file-scope variables the static attribute.
Jim Meyering [Sun, 1 Nov 1992 03:30:09 +0000 (03:30 +0000)]
Give most file-scope variables the static attribute.

31 years ago*** empty log message ***
Jim Meyering [Sat, 31 Oct 1992 23:02:03 +0000 (23:02 +0000)]
*** empty log message ***

31 years ago(swab_buffer): Fix typo that incremented pointer instead of counter.
Jim Meyering [Sat, 31 Oct 1992 23:01:35 +0000 (23:01 +0000)]
(swab_buffer): Fix typo that incremented pointer instead of counter.
Add braces around static struct initializers.

31 years agoAdd parentheses to expressions like (c = *p++) as per suggestion
Jim Meyering [Sat, 31 Oct 1992 23:00:47 +0000 (23:00 +0000)]
Add parentheses to expressions like (c = *p++) as per suggestion
from gcc -Wall.

31 years agoAdd parentheses to expressions like (c = *p++) as per suggestion
Jim Meyering [Sat, 31 Oct 1992 23:00:13 +0000 (23:00 +0000)]
Add parentheses to expressions like (c = *p++) as per suggestion
from gcc -Wall.

31 years ago(adjust_blocks): Convert to a macro. The static
Jim Meyering [Sat, 31 Oct 1992 22:50:51 +0000 (22:50 +0000)]
(adjust_blocks): Convert to a macro.  The static
function wasn't always used.

31 years agoInitial revision
Jim Meyering [Sat, 31 Oct 1992 20:42:48 +0000 (20:42 +0000)]
Initial revision