summaryrefslogtreecommitdiff
path: root/src/fmt.c
AgeCommit message (Collapse)Author
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-01Reflect renaming to, and new usage of these macros:Jim Meyering
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.
2001-12-01(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Factor out some common strings to make translation easier.Jim Meyering
Split usage strings so that --help and --version descriptions are alone in their own string. Likewise for the one that says: Mandatory arguments to long options are mandatory for short options too.
2001-11-17Remove `unsigned' attribute from type of global `prefix'.Jim Meyering
(copy_rest): Cast to (unsigned char *) before dereferencing. (get_prefix): Likewise.
2001-11-11(usage): Split --help output into smaller pieces.Jim Meyering
2001-09-12The command `echo a|./fmt -2147483647' would cause fmt to segfault.Jim Meyering
(fmt_paragraph): Test for sentinal directly, rather than doing arithmetic with it's potentially large (INT_MAX) length.
2001-09-12The command `echo foo| fmt -w 100000' would cause fmt to segfault.Jim Meyering
[struct Word]: Declare members length, space, and line_length to be of type `int', not short. (MAXCOST): Define using TYPE_MAXIMUM.
2001-08-31(bool): Remove typedef, now that it's in system.h.Jim Meyering
(TRUE): Define to `true', not 1. (FALSE): Define to `false', not 0.
2001-08-28(main): Diagnose an invalid width option.Jim Meyering
2001-08-28(main): Correct the diagnostic for invalid argument to -w.Jim Meyering
2001-03-12`fmt --prefix=S' would not work properly for any string S containingJim Meyering
a byte with the high bit set. (prefix): Declare to be of type unsigned char, not `char'. (get_prefix): Likewise for local, `p'.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
1999-04-04Standardize --help and --version processing.Jim Meyering
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering
1999-04-03Insert AUTHORS definition.Jim Meyering
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering
1999-04-03define PROGRAM_NAMEJim Meyering
1999-03-07(main): Use a `%s' format in error call,Jim Meyering
in case the argument string contains a `%'.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-14Don't prototype usage as static.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-07-26(check_punctuation): Add cast to placate irix4's cc. Reported by Kaveh Ghazi.Jim Meyering
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-04-17(check_punctuation): Used unsigned char* pointers to avoidJim Meyering
1998-04-12Use STREQ rather than strcmpJim Meyering
1998-01-10CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAXJim Meyering
Remove definitions of those symbols. * src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h since it now includes limit.h which defines RE_DUP_MAX. * src/nl.c: Likewise. * src/tac.c: Likewise.
1997-12-21s/__P/PARAMS/Jim Meyering
1997-12-13(main): Add some braces.Jim Meyering
Check return code from fclose of each input file. Close stdout and check for errors.
1997-10-07indent cpp directives to reflect nestingJim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1997-01-25fix copyright fillingJim Meyering
1996-11-23(usage): Alphabetize options like sort -f would.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-04(main): update --version output againJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-09-07(check_punctuation): Use ISPUNCT instead of ispunct.Jim Meyering
(get_line): Use ISSPACE instead of isspace.
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-07-10(MAXCOST): Use `(unsigned long)1' rather than `(COST)1'Jim Meyering
so the left operand of the << isn't signed. From Kjetil Torgrim Homme.
1996-04-29(copy_rest): Don't copy past end of prefix. OutputJim Meyering
trailing spaces if the prefix had any. Before, the command perl -e 'print "| S";' |fmt -p' | '|tr '\0' @ output `|@S'. Reported by François Pinard.
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Call error with EXIT_FAILURE (rather than `1') as first actual parameter.Jim Meyering
1996-03-24Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.Jim Meyering
This doesn't change `error (1' calls.
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.