1. 22 Dec, 2019 14 commits
    • Bruno Haible's avatar
      atoll: Assume that the compiler supports 'long long'. · 91b5a3c3
      Bruno Haible authored
      * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/atoll (Files): Remove longlong.m4.
      91b5a3c3
    • Bruno Haible's avatar
      strtoll: Assume that the compiler supports 'long long'. · 0b018e2c
      Bruno Haible authored
      * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/strtoll (Files): Remove longlong.m4.
      0b018e2c
    • Bruno Haible's avatar
      strtoull: Assume that the compiler supports 'long long'. · 04ac8d92
      Bruno Haible authored
      * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
      AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/strtoull (Files): Remove longlong.m4.
      04ac8d92
    • Bruno Haible's avatar
      strtoimax, strtoumax: Assume that the compiler supports 'long long'. · 1cf18f42
      Bruno Haible authored
      * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
      HAVE_UNSIGNED_LONG_LONG_INT to be 1.
      * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
      AC_TYPE_LONG_LONG_INT.
      * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
      AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/strtoimax (Files): Remove longlong.m4.
      * modules/strtoumax (Files): Likewise.
      1cf18f42
    • Bruno Haible's avatar
      xstrtoll: Assume that the compiler supports 'long long'. · 5377e375
      Bruno Haible authored
      * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
      * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
      5377e375
    • Bruno Haible's avatar
      vasnprintf: Assume that the compiler supports 'long long'. · 5ceaccc0
      Bruno Haible authored
      * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
      * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
      * lib/printf-parse.c (PRINTF_PARSE): Likewise.
      * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
      * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
      require AC_TYPE_LONG_LONG_INT.
      * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
      gl_PREREQ_VASNPRINTF): Likewise.
      * modules/vasnprintf (Files): Remove longlong.m4.
      * modules/c-vasnprintf (Files): Likewise.
      * modules/unistdio/u8-vasnprintf (Files): Likewise.
      * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
      * modules/unistdio/u16-vasnprintf (Files): Likewise.
      * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
      * modules/unistdio/u32-vasnprintf (Files): Likewise.
      * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
      * modules/unistdio/ulc-vasnprintf (Files): Likewise.
      5ceaccc0
    • Bruno Haible's avatar
      gethrxtime: Assume that the compiler supports 'long long'. · 896daf27
      Bruno Haible authored
      * lib/xtime.h (xtime_t): Define to 'long long int' always.
      (XTIME_PRECISION): Define to 1000000000 always.
      (xtime_make, xtime_sec): Optimize accordingly.
      * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/gethrxtime (Files): Remove longlong.m4.
      896daf27
    • Bruno Haible's avatar
      integer_length*: Assume that the compiler supports 'long long'. · 3a5d13f4
      Bruno Haible authored
      * lib/integer_length.h (integer_length_ll): Declare unconditionally.
      * modules/integer_length (Files): Remove longlong.m4.
      (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/integer_length_l (Files): Remove longlong.m4.
      (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/integer_length_ll (Files): Remove longlong.m4.
      (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
      3a5d13f4
    • Bruno Haible's avatar
      count-one-bits: Assume that the compiler supports 'long long'. · 4069d425
      Bruno Haible authored
      * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
      * m4/count-one-bits.m4: Remove file.
      * modules/count-one-bits (Files): Remove it.
      (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
      * tests/test-count-one-bits.c (main): Test count_one_bits_ll
      unconditionally.
      4069d425
    • Bruno Haible's avatar
      count-trailing-zeros: Assume that the compiler supports 'long long'. · 00b4820c
      Bruno Haible authored
      * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
      unconditionally.
      * m4/count-trailing-zeros.m4: Remove file.
      * modules/count-trailing-zeros (Files): Remove it.
      (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
      * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
      unconditionally.
      00b4820c
    • Bruno Haible's avatar
      count-leading-zeros: Assume that the compiler supports 'long long'. · 0dfa3015
      Bruno Haible authored
      * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
      unconditionally.
      * m4/count-leading-zeros.m4: Remove file.
      * modules/count-leading-zeros (Files): Remove it.
      (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
      * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
      unconditionally.
      0dfa3015
    • Bruno Haible's avatar
      localcharset: Update support for OpenBSD. · 9ba36dd3
      Bruno Haible authored
      * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
      9ba36dd3
    • Bruno Haible's avatar
      pthread_sigmask: Avoid test failure on NetBSD 8.0. · 4d16a83b
      Bruno Haible authored
      * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
      NetBSD.
      * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
      4d16a83b
    • Bruno Haible's avatar
      threadlib: Improve code structure. · 853609a2
      Bruno Haible authored
      * m4/threadlib.m4: Reorder macros. Add comments.
      853609a2
  2. 21 Dec, 2019 10 commits
  3. 20 Dec, 2019 7 commits
  4. 19 Dec, 2019 4 commits
  5. 18 Dec, 2019 5 commits
    • Bruno Haible's avatar
      wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07). · c99e1067
      Bruno Haible authored
      * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
      c99e1067
    • Bruno Haible's avatar
      localename: Ensure multithread-safety in future changes. · b7e45cc1
      Bruno Haible authored
      * lib/localename.c (setlocale): Reference the system's setlocale().
      (get_locale_t_name): Invoke setlocale_null instead of setlocale.
      (gl_locale_name_posix): Likewise.
      * modules/localename (Depends-on): Add setlocale-null.
      b7e45cc1
    • Bruno Haible's avatar
      setlocale-null: Make API more useful. · 3a310962
      Bruno Haible authored
      * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
      callers changed.
      (setlocale_null): New declaration.
      * lib/setlocale_null.c (setlocale_null_androidfix): New function,
      extracted from setlocale_null_unlocked.
      (setlocale_null_unlocked): Invoke it.
      (setlocale_null_r): Renamed from setlocale_null.
      (setlocale_null): New function, extracted from setlocale_mtsafe in
      setlocale.c.
      * lib/setlocale.c: Don't include <errno.h>.
      (setlocale_mtsafe): Invoke setlocale_null.
      * lib/setlocale-lock.c: Update comments.
      * doc/posix-functions/setlocale.texi: Mention both functions.
      3a310962
    • Bruno Haible's avatar
      localename: Optimize code for native Windows. · f7efd84e
      Bruno Haible authored
      * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
      category (not allowed here).
      f7efd84e
    • Bruno Haible's avatar
      setlocale: Make calls with NULL argument multithread-safe. · 505092c2
      Bruno Haible authored
      * lib/setlocale.c: Include <errno.h>.
      (setlocale_mtsafe): New function.
      (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
      (setlocale_improved): Renamed from rpl_setlocale.
      * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
      Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
      LIB_SETLOCALE.
      * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
      (Link): New section.
      * tests/locale.c: Undefine setlocale.
      * tests/test-setlocale_null-one.c: Likewise.
      * tests/test-setlocale_null-all.c: Likewise.
      * modules/setlocale-tests (Makefile.am): Link the test programs with
      $(LIB_SETLOCALE).
      * modules/astrxfrm-tests (Makefile.am): Likewise.
      * modules/btowc-tests (Makefile.am): Likewise.
      * modules/c-ctype-tests (Makefile.am): Likewise.
      * modules/c-snprintf-tests (Makefile.am): Likewise.
      * modules/c-strcase-tests (Makefile.am): Likewise.
      * modules/c-vasprintf-tests (Makefile.am): Likewise.
      * modules/c-vsnprintf-tests (Makefile.am): Likewise.
      * modules/c-xvasprintf-tests (Makefile.am): Likewise.
      * modules/dfa-tests (Makefile.am): Likewise.
      * modules/duplocale-tests (Makefile.am): Likewise.
      * modules/hard-locale-tests (Makefile.am): Likewise.
      * modules/localcharset-tests (Makefile.am): Likewise.
      * modules/localename-tests (Makefile.am): Likewise.
      * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
      * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
      * modules/mbrtowc-tests (Makefile.am): Likewise.
      * modules/mbscasecmp-tests (Makefile.am): Likewise.
      * modules/mbscasestr-tests (Makefile.am): Likewise.
      * modules/mbschr-tests (Makefile.am): Likewise.
      * modules/mbscspn-tests (Makefile.am): Likewise.
      * modules/mbsinit-tests (Makefile.am): Likewise.
      * modules/mbsncasecmp-tests (Makefile.am): Likewise.
      * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
      * modules/mbspbrk-tests (Makefile.am): Likewise.
      * modules/mbspcasecmp-tests (Makefile.am): Likewise.
      * modules/mbsrchr-tests (Makefile.am): Likewise.
      * modules/mbsrtowcs-tests (Makefile.am): Likewise.
      * modules/mbsspn-tests (Makefile.am): Likewise.
      * modules/mbsstr-tests (Makefile.am): Likewise.
      * modules/nl_langinfo-tests (Makefile.am): Likewise.
      * modules/quotearg-tests (Makefile.am): Likewise.
      * modules/regex-tests (Makefile.am): Likewise.
      * modules/strfmon_l-tests (Makefile.am): Likewise.
      * modules/strtod-tests (Makefile.am): Likewise.
      * modules/strtold-tests (Makefile.am): Likewise.
      * modules/unicase/locale-language-tests (Makefile.am): Likewise.
      * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
      * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
      * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
      * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
      * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
      * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
      * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
      * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
      * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
      * modules/wcrtomb-tests (Makefile.am): Likewise.
      * modules/wcsnrtombs-tests (Makefile.am): Likewise.
      * modules/wcsrtombs-tests (Makefile.am): Likewise.
      * modules/wcwidth-tests (Makefile.am): Likewise.
      * doc/posix-functions/setlocale.texi: Mention that the multithread-
      safety fix is also available in module 'setlocale'.
      505092c2