summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2001-08-18add paren testsJim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18(nextarg): Advance ARGS by one if the next token matches.Jim Meyering
All callers changed.
2001-08-18*** empty log message ***Jim Meyering
2001-08-1800: new testJim Meyering
2001-08-18*** empty log message ***Jim Meyering
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.Jim Meyering
2001-08-18Code 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.Jim Meyering
2001-08-18.Jim Meyering
2001-08-18.Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18(binary_operator): Move declarations of lt,rt `down'Jim Meyering
into the scopes where they're actually used. (unary_operator): Likewise for `fd'.
2001-08-18*** empty log message ***Jim Meyering
2001-08-18(isint, binary_operator, unary_operator):Jim Meyering
Use intmax_t for argument integers, not long. (age_of, binary_operator): Use time_t for times, not long. (unary_operator): If N is out of int range, -t N now returns false.
2001-08-18add minus2Jim Meyering
2001-08-18(main): Handle a leading "--" option as POSIX requires.Jim Meyering
2001-08-18fix typoJim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18(toarith): Don't accept plain "-" as a valid integer.Jim Meyering
2001-08-18add moreJim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18Modify 'expr' so that it uses intmax_t, not int, to calculateJim 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.
2001-08-18*** empty log message ***Jim Meyering
2001-08-18Add AC_PREREQ(2.13).Jim Meyering
(jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too. (jm_AC_TYPE_INTMAX_T): New macro. (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
2001-08-18(jm_AC_TYPE_LONG_LONG): New macro.Jim Meyering
2001-08-18renamed from ulonglong.m4Jim Meyering
2001-08-18renamed to longlong.m4Jim Meyering
2001-08-18renamed from inttypes_h.m4Jim Meyering
2001-08-18renamed to inttypes.m4Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18Revert part of last change and solve the problem a better way.Jim Meyering
(show_date) [--rfc-822]: Set LC_ALL=C just before calling strftime and restore it just afterwards. Suggestion from Ulrich Drepper.
2001-08-18*** empty log message ***Jim Meyering
2001-08-18($(v_etc_file)): Define.Jim Meyering
(copyright-check): Use the new variable. (my-distcheck): Depend on local-check so those checks are once again run by `make distcheck'.
2001-08-18Merge in changes from autoconf.Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18(show_date) [--rfc-822]: Don't space-pad the day of the month.Jim Meyering
Set only LC_TYPE to the "C" locale. Setting LC_ALL is overkill, and would have unwanted side effects if there is an error message.
2001-08-18.Jim Meyering
2001-08-18(head_bytes): Read no more than the specified number of bytes.Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18.Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-18*** empty log message ***Jim Meyering
2001-08-16*** empty log message ***Jim Meyering
2001-08-16(main): When there are too many non-option arguments,Jim Meyering
include the first offending argument in the diagnostic. Suggestion from Karl Berry.
2001-08-14fix typo: s/-quiet/--quiet/Jim Meyering
From: noon@cote-dazur.com (Fabrice Bauzac)