Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | (OLD): Don't apply cast to argument of free. | Jim Meyering | 2003-05-13 | 1 | -1/+1 |
| | |||||
* | (main): Handle argc == 0. | Jim Meyering | 2003-05-10 | 1 | -1/+1 |
| | |||||
* | Remove anachronistic casts of xmalloc, | Jim Meyering | 2003-04-11 | 1 | -3/+3 |
| | | | | xrealloc, and xcalloc return values and of xrealloc's first argument. | ||||
* | (usage): Use putchar, not fputs, to output a single character. | Jim Meyering | 2003-03-07 | 1 | -1/+1 |
| | |||||
* | Remove all uses of `PARAMS'. | Jim Meyering | 2002-12-15 | 1 | -4/+4 |
| | |||||
* | (inttostr): Remove; use new imaxtostr library function instead. | Jim Meyering | 2002-11-05 | 1 | -21/+3 |
| | |||||
* | Change `exit (0)' to `exit (EXIT_SUCCESS)', | Jim Meyering | 2002-08-31 | 1 | -1/+1 |
| | | | | | `exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'. | ||||
* | (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. | Jim Meyering | 2002-07-02 | 1 | -1/+1 |
| | |||||
* | Don't include "xalloc.h", as system.h already does that via sys2.h. | Jim Meyering | 2002-01-21 | 1 | -2/+1 |
| | |||||
* | Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION | Jim Meyering | 2001-12-15 | 1 | -10/+18 |
| | | | | | | instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf. | ||||
* | (usage): Indent --help and --version strings to start in the 7th column. | Jim Meyering | 2001-11-25 | 1 | -2/+2 |
| | |||||
* | (nextarg): Use strcoll, not strcmp. | Jim Meyering | 2001-08-26 | 1 | -1/+1 |
| | |||||
* | (posixly_correct): Remove; no longer needed. | Jim Meyering | 2001-08-24 | 1 | -13/+5 |
| | | | | | (main): Do not worry about POSIXLY_CORRECT, as it's OK for expr to have options (so long as they do not begin with digits). | ||||
* | (nextarg): Advance ARGS by one if the next token matches. | Jim Meyering | 2001-08-18 | 1 | -15/+7 |
| | | | | All callers changed. | ||||
* | (isstring): Remove. | Jim Meyering | 2001-08-18 | 1 | -18/+5 |
| | | | | | | (eval2): Do comparisons as strings first, before trying to convert to integer. This avoids loss of information and wrong result, e.g. for "expr '00' '<' '0!'", where you don't want to convert '00' to '0'. | ||||
* | Code cleanup to avoid tricky macros and old-style function declarations. | Jim Meyering | 2001-08-18 | 1 | -62/+44 |
| | | | | | | | | | (cmpf, less_than, less_equal, equal, not_equal, greater_equal, greater_than, arithf, arithdivf, plus, minus, multiply, divide, mod): Remove. (eval4, eval3, eval2): Rewrite to avoid the need for the above macros and functions. | ||||
* | (main): Handle a leading "--" option as POSIX requires. | Jim Meyering | 2001-08-18 | 1 | -0/+7 |
| | |||||
* | (toarith): Don't accept plain "-" as a valid integer. | Jim Meyering | 2001-08-18 | 1 | -4/+4 |
| | |||||
* | Modify 'expr' so that it uses intmax_t, not int, to calculate | Jim Meyering | 2001-08-18 | 1 | -35/+49 |
| | | | | | | | | | | | the value of integer expressions. (struct valinfo.i): Now intmax_t, not int. (docolon, int_value, str_value, isstring, nextarg, toarith, freev, tostring, trace): Remove unnecessary forward decls. (int_value, printv, tostring, toarith, arithf, arithdivf, docolon, eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int. (docolon): Don't assume size_t fits in int. | ||||
* | Include "closeout.h". | Jim Meyering | 2000-05-07 | 1 | -1/+4 |
| | | | | (main): Call atexit with close_stdout. | ||||
* | (NEW): Undefine to avoid warning about redefinition. | Jim Meyering | 1999-11-09 | 1 | -1/+3 |
| | | | | (NEW): Redefine in terms of XMALLOC. | ||||
* | Remove xstrdup declaration. | Jim Meyering | 1999-09-02 | 1 | -2/+0 |
| | |||||
* | (PROGRAM_NAME, AUTHORS): Define and use. | Jim Meyering | 1999-03-31 | 1 | -2/+7 |
| | |||||
* | (main): Include author name argument in call to parse_long_options. | Jim Meyering | 1999-03-04 | 1 | -1/+2 |
| | |||||
* | update copyright dates | Jim Meyering | 1999-02-16 | 1 | -1/+1 |
| | |||||
* | (usage): Remove static attribute. | Jim Meyering | 1999-01-25 | 1 | -1/+1 |
| | |||||
* | update bug-reporting address | Jim Meyering | 1998-09-19 | 1 | -1/+1 |
| | |||||
* | revert back to using lower case _unlocked wrapper names | Jim Meyering | 1998-06-29 | 1 | -1/+1 |
| | |||||
* | Change all uses of unlocked-wrapped functions to their upper case wrapper names. | Jim Meyering | 1998-06-29 | 1 | -1/+1 |
| | |||||
* | s/__P/PARAMS/ | Jim Meyering | 1997-12-21 | 1 | -14/+14 |
| | |||||
* | Remove old-style xmalloc and xrealloc decls. | Jim Meyering | 1997-10-25 | 1 | -1/+0 |
| | |||||
* | Remove strstr decl. | Jim Meyering | 1997-10-23 | 1 | -1/+0 |
| | |||||
* | update bug-reporting address | Jim Meyering | 1997-10-07 | 1 | -1/+1 |
| | |||||
* | indent | Jim Meyering | 1997-07-13 | 1 | -1/+1 |
| | |||||
* | (eval6): Accept new unary operator, quote. | Jim Meyering | 1997-06-16 | 1 | -4/+19 |
| | | | | From Karl Heuer. | ||||
* | (docolon): Test (re_buffer.re_nsub > 0) rather than | Jim Meyering | 1997-06-11 | 1 | -1/+1 |
| | | | | | | | searching for `\(' to determine whether to return 0 or the empty string. Before it would improperly return '' if the pattern contained a substring like this: `\\('. From Karl Heuer. For example, running expr c : '\\(' should print `0'. | ||||
* | update copyrights for 1997 | Jim Meyering | 1997-02-09 | 1 | -1/+1 |
| | |||||
* | bracket bug address with <> and append a period | Jim Meyering | 1997-02-01 | 1 | -1/+1 |
| | |||||
* | change bug-reporting address | Jim Meyering | 1996-11-03 | 1 | -1/+1 |
| | |||||
* | change bug-reporting address | Jim Meyering | 1996-11-02 | 1 | -1/+1 |
| | |||||
* | (main): update --version output to conform to coding standard | Jim Meyering | 1996-10-05 | 1 | -1/+1 |
| | |||||
* | (usage): Tell where to report bugs. | Jim Meyering | 1996-09-02 | 1 | -0/+1 |
| | |||||
* | (usage): Remove space before newline in usage message. | Jim Meyering | 1996-07-05 | 1 | -1/+1 |
| | |||||
* | (docolon): Give a warning when the first character | Jim Meyering | 1996-05-30 | 1 | -0/+8 |
| | | | | of the basic regular expression is `^'. | ||||
* | (main): Don't recognize --help, --h, --he, --version, --v, etc. | Jim Meyering | 1996-05-18 | 1 | -2/+4 |
| | | | | | if the POSIXLY_CORRECT environment variable is set. (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert my misguided change of Mar 1. | ||||
* | update Copyright years for 1996 | Jim Meyering | 1996-04-24 | 1 | -1/+1 |
| | |||||
* | Update FSF's address. | Jim Meyering | 1996-03-24 | 1 | -2/+2 |
| | |||||
* | (main): Declare to be of type int, not void. | Jim Meyering | 1996-03-21 | 1 | -1/+1 |
| | |||||
* | Don't include version.h. | Jim Meyering | 1996-03-16 | 1 | -2/+1 |
| | | | | (main): Use PACKAGE_VERSION instead of version_string. | ||||
* | (main): Initialize for internationalized message support: | Jim Meyering | 1996-03-12 | 1 | -0/+3 |
| | | | | call setlocale, bindtextdomain, and textdomain. |