• Show log

    Commit

  • Hash : 6790a26c
    Author : Bruno Haible
    Date : 2025-02-13T22:16:13

    locale-h: Ensure locale_t type.
    
    * lib/locale.in.h (gl_log2_lc_mask, gl_log2_lcmask_to_index,
    gl_index_to_log2_lcmask): New macros.
    (LC_COLLATE_MASK, LC_CTYPE_MASK, LC_MESSAGES_MASK, LC_MONETARY_MASK,
    LC_NUMERIC_MASK, LC_TIME_MASK, LC_ALL_MASK): New macros.
    (struct gl_locale_category_t, struct gl_locale_t, locale_t): New types.
    (LC_GLOBAL_LOCALE, GNULIB_defined_locale_t): New macros.
    * m4/locale_h.m4 (gl_LOCALE_H): Set and define HAVE_WINDOWS_LOCALE_T.
    (gl_LOCALE_T): Prepare for substituting HAVE_LOCALE_T.
    * modules/locale-h (Depends-on): Add bool.
    (Makefile.am): Substitute HAVE_LOCALE_T, HAVE_WINDOWS_LOCALE_T.
    * tests/test-locale-h.c: Check that the LC_*_MASK macros and locale_t
    are defined.
    * doc/posix-headers/locale.texi: Document the change.