mc/lib/strutil
Andrew Borodin 6cb97d18f1 src/strutil/xstrtol.c: sync with gnulib.
Sync with gnulib 64ddc975e72cb55d2b2d755c25603bd70312aa5e:
  This patch alters xstrtoumax behavior slightly, in areas are not
  likely to affect any real callers, by making xstrtoumax behave more
  like the system strtol. In particular, it lets xstrtoumax support
  bases other than those required by POSIX, if the underlying
  implementation does; this removes the need for an g_assert().

  * lib/strutil/strtol.c: Do not include stdio.h.
  (xstrtoumax): Use same parameter names as POSIX, to make it
  easier for outsiders to follow. Do not require the base to be 0-36,
  as the underlying implementation is allowed to support other bases.

Sync with gnulib 16b33e6649425fcdce095f262da98b539d2f7448.

  * (xstrtoumax): Don't update *endptr if strtol doesn't.
  Also, if the underlying strtol gives an unusual error number and
  sets *endpnr = nptr, assume that's an error not a missing number.

Sync with gnulib bd1e981434c98751b1106a1744e77a27317b52b3
  * (xstrtoumax): Stop worrying about hypothetical implementations that
  are causing more confusion than the code is worth. Instead, go back
  more to old way of doing things.  None of this matters for practical
  applications.

Add commemt.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2024-10-05 15:05:58 +03:00
..
filevercmp.c (filevercmp): make inline. 2024-10-05 15:05:58 +03:00
Makefile.am Ticket #4533: External editor does not work with arguments in $EDITOR 2024-03-31 19:04:26 +03:00
replace.c Merge lib/strescape.h into lib/strutil.h. Rename functions. 2024-04-07 16:38:11 +03:00
strescape.c Merge lib/strescape.h into lib/strutil.h. Rename functions. 2024-04-07 16:38:11 +03:00
strutil8bit.c strutils: don't call strlen() in MIN() macro. 2024-10-05 15:05:58 +03:00
strutil.c (str_crt_conv_from): handle INVALID_CONV. 2024-10-05 11:49:26 +02:00
strutilascii.c strutils: don't call strlen() in MIN() macro. 2024-10-05 15:05:58 +03:00
strutilutf8.c (tr_utf8_search_{first,last}): minor refactoring. 2024-10-05 15:05:58 +03:00
strverscmp.c (str_verscmp): glibification. 2024-10-05 15:05:58 +03:00
tokenize.c clang: fix -Wconditional-uninitialized warnings 2024-06-02 12:49:13 +03:00
xstrtol.c src/strutil/xstrtol.c: sync with gnulib. 2024-10-05 15:05:58 +03:00