Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-01-21 | (usage): Use EXIT_SUCCESS, not 0, for clarity. | Jim Meyering | |
(main): Use initialize_exit_failure rather than setting exit_failure directly; this optimizes away redundant assignments. (EXPR_FAILURE): Renamed from EXPR_ERROR, for consistency with the other programs' naming conventions. All uses changed. | |||
2003-11-05 | Cast NULL to `(char *)' in call to variadic function, | Jim Meyering | |
parse_long_options, so that it works even on systems for which sizeof char* != sizeof int. | |||
2003-10-18 | Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change | Jim Meyering | |
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise. | |||
2003-09-18 | (WRITTEN_BY): Rename from AUTHORS. | Jim Meyering | |
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable. | |||
2003-09-18 | revert previous change | Jim Meyering | |
2003-09-18 | Update AUTHORS definition to be a comma-separated list of strings and/or update | Jim Meyering | |
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. | |||
2003-07-23 | Don't include headers already included by system.h: | Jim Meyering | |
Don't include closeout.h. | |||
2003-07-18 | Include "exitfail.h", "quotearg.h". | Jim Meyering | |
(EXPR_INVALID, EXPR_ERROR): New constants. (nomoreargs, null, toarith, nextarg): Return bool, not int. (syntax_error): New function, exiting with status 2. Use it insteading of printing "syntax error" ourselves. (main): Initialize exit_failure to EXPR_ERROR. Exit with EXPR_INVALID on syntax error (too few arguments). (nextarg): Use strcmp, not strcoll; strcoll might return an undesirable 0, or might fail. (docolon, eval4, eval3): Exit with status 3 on invalid argument type or other such error. (eval2): Report an error if strcoll fails in a string comparison. | |||
2003-06-17 | (main): Call initialize_main. | Jim Meyering | |
2003-05-13 | (OLD): Don't apply cast to argument of free. | Jim Meyering | |
2003-05-10 | (main): Handle argc == 0. | Jim Meyering | |
2003-04-11 | Remove anachronistic casts of xmalloc, | Jim Meyering | |
xrealloc, and xcalloc return values and of xrealloc's first argument. | |||
2003-03-07 | (usage): Use putchar, not fputs, to output a single character. | Jim Meyering | |
2002-12-15 | Remove all uses of `PARAMS'. | Jim Meyering | |
2002-11-05 | (inttostr): Remove; use new imaxtostr library function instead. | Jim Meyering | |
2002-08-31 | Change `exit (0)' to `exit (EXIT_SUCCESS)', | Jim Meyering | |
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'. | |||
2002-07-02 | (usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it. | Jim Meyering | |
2002-01-21 | Don't include "xalloc.h", as system.h already does that via sys2.h. | Jim Meyering | |
2001-12-15 | Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION | Jim Meyering | |
instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf. | |||
2001-11-25 | (usage): Indent --help and --version strings to start in the 7th column. | Jim Meyering | |
2001-08-26 | (nextarg): Use strcoll, not strcmp. | Jim Meyering | |
2001-08-24 | (posixly_correct): Remove; no longer needed. | Jim Meyering | |
(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). | |||
2001-08-18 | (nextarg): Advance ARGS by one if the next token matches. | Jim Meyering | |
All callers changed. | |||
2001-08-18 | (isstring): Remove. | Jim Meyering | |
(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'. | |||
2001-08-18 | Code cleanup to avoid tricky macros and old-style function declarations. | Jim Meyering | |
(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. | |||
2001-08-18 | (main): Handle a leading "--" option as POSIX requires. | Jim Meyering | |
2001-08-18 | (toarith): Don't accept plain "-" as a valid integer. | Jim Meyering | |
2001-08-18 | Modify 'expr' so that it uses intmax_t, not int, to calculate | Jim Meyering | |
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. | |||
2000-05-07 | Include "closeout.h". | Jim Meyering | |
(main): Call atexit with close_stdout. | |||
1999-11-09 | (NEW): Undefine to avoid warning about redefinition. | Jim Meyering | |
(NEW): Redefine in terms of XMALLOC. | |||
1999-09-02 | Remove xstrdup declaration. | Jim Meyering | |
1999-03-31 | (PROGRAM_NAME, AUTHORS): Define and use. | Jim Meyering | |
1999-03-04 | (main): Include author name argument in call to parse_long_options. | Jim Meyering | |
1999-02-16 | update copyright dates | Jim Meyering | |
1999-01-25 | (usage): Remove static attribute. | Jim Meyering | |
1998-09-19 | update bug-reporting address | Jim Meyering | |
1998-06-29 | revert back to using lower case _unlocked wrapper names | Jim Meyering | |
1998-06-29 | Change all uses of unlocked-wrapped functions to their upper case wrapper names. | Jim Meyering | |
1997-12-21 | s/__P/PARAMS/ | Jim Meyering | |
1997-10-25 | Remove old-style xmalloc and xrealloc decls. | Jim Meyering | |
1997-10-23 | Remove strstr decl. | Jim Meyering | |
1997-10-07 | update bug-reporting address | Jim Meyering | |
1997-07-13 | indent | Jim Meyering | |
1997-06-16 | (eval6): Accept new unary operator, quote. | Jim Meyering | |
From Karl Heuer. | |||
1997-06-11 | (docolon): Test (re_buffer.re_nsub > 0) rather than | Jim Meyering | |
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'. | |||
1997-02-09 | update copyrights for 1997 | Jim Meyering | |
1997-02-01 | bracket bug address with <> and append a period | Jim Meyering | |
1996-11-03 | change bug-reporting address | Jim Meyering | |
1996-11-02 | change bug-reporting address | Jim Meyering | |
1996-10-05 | (main): update --version output to conform to coding standard | Jim Meyering | |