• Show log

    Commit

  • Hash : 27492342
    Author : Bruno Haible
    Date : 2024-02-15T19:23:25

    localename-unsafe: New module.
    
    * lib/localename.h (gl_locale_name_unsafe, gl_locale_name_thread_unsafe,
    gl_locale_name_posix_unsafe): New declarations.
    * lib/localename-unsafe.c: New file, based on lib/localename.c.
    (gl_locale_name_thread_unsafe): Renamed from gl_locale_name_thread.
    (gl_locale_name_posix_unsafe): Renamed from gl_locale_name_posix.
    (gl_locale_name_unsafe): Renamed from gl_locale_name.
    (struniq): Define only on platforms that need it.
    * lib/localename.c: Remove code that was moved to
    lib/localename-unsafe.c.
    (gl_locale_name_thread): Just call gl_locale_name_thread_unsafe and
    struniq.
    (gl_locale_name_posix): Just call gl_locale_name_posix_unsafe and
    struniq.
    * lib/locale.in.h: Test @GNULIB_LOCALENAME_UNSAFE@ instead of
    @GNULIB_LOCALENAME@.
    * m4/locale_h.m4 (gl_LOCALE_H_REQUIRE_DEFAULTS): Initialize
    GNULIB_LOCALENAME_UNSAFE instead of GNULIB_LOCALENAME.
    * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME_UNSAFE
    instead of GNULIB_LOCALENAME.
    * m4/localename.m4 (gl_LOCALENAME_UNSAFE): Renamed from gl_LOCALENAME.
    * modules/localename-unsafe: New file, based on modules/localename.
    * modules/localename: Greatly simplify.
    (Depends-on): Add localename-unsafe.
    

  • README

  • This directory contains metainformation about the gnulib modules, one or two
    files per module. These files are used by gnulib-tool.
    
    For every module,
      - the file <module> is the metainformation about the library code of the
        module,
      - the file <module>-tests is the metainformation about the unit test of
        the module (optional but recommended).
    
    All the files in this directory are distributed under the following copyright:
    
      Copyright (C) 2002-2024 Free Software Foundation, Inc.
      Copying and distribution of this file, with or without modification,
      in any medium, are permitted without royalty provided the copyright
      notice and this notice are preserved.