bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rename module malloc -> malloc-gnu


From: Bruno Haible
Subject: rename module malloc -> malloc-gnu
Date: Sat, 28 Aug 2010 23:29:31 +0200
User-agent: KMail/1.9.9

Before adding the unit tests that Ralf wrote, I find it useful to now
implement the renaming of modules already suggested on 2007-09-03 in
<http://lists.gnu.org/archive/html/bug-gnulib/2007-09/msg00009.html>.

  malloc -> malloc-gnu
  calloc -> calloc-gnu
  realloc -> realloc-gnu

Rationale: consistency with fnmatch-{posix,gnu} and getopt-{posix,gnu}.

At that time,
  - Eric agreed after he had understood the proposal
    <http://lists.gnu.org/archive/html/bug-gnulib/2007-09/msg00016.html>,
  - Jim requested a deprecation mechanism so that the transition period
    could last several months.
    <http://lists.gnu.org/archive/html/bug-gnulib/2007-09/msg00017.html>.
  - The other opinions were no strong preferences.

We have now the mechanism for notices and deprecation (since
2007-09-09 and 2008-11-02, respectively). I'm therefore implementing the
renaming, like we did for 'getopt-gnu' a year ago.


2010-08-28  Bruno Haible  <address@hidden>

        Rename module 'malloc' -> 'malloc-gnu'.
        * modules/malloc-gnu: New file, copied from modules/malloc.
        * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
        obsolete.
        * modules/argp (Depends-on): Update.
        * modules/regex (Depends-on): Update.
        * doc/posix-functions/malloc.texi: Update.
        * NEWS: Mention the change.

--- NEWS.orig   Sat Aug 28 23:19:24 2010
+++ NEWS        Sat Aug 28 23:13:35 2010
@@ -6,6 +6,9 @@
 
 Date        Modules         Changes
 
+2010-08-28  malloc          This module is deprecated. Use 'malloc-gnu'
+                            instead. It will be removed 2012-01-01.
+
 2010-08-14  memxfrm         This module is renamed to amemxfrm. The include
                             file is renamed to "amemxfrm.h". The function is
                             renamed to amemxfrm.
--- doc/posix-functions/malloc.texi.orig        Sat Aug 28 23:19:24 2010
+++ doc/posix-functions/malloc.texi     Sat Aug 28 23:18:40 2010
@@ -20,6 +20,6 @@
 AIX 5.1, OSF/1 5.1.
 @end itemize
 
-Extension: Gnulib provides a module @samp{malloc} that substitutes a
+Extension: Gnulib provides a module @samp{malloc-gnu} that substitutes a
 @code{malloc} implementation that behaves more like the glibc implementation,
 regarding the result of @code{malloc (0)}.
--- modules/argp.orig   Sat Aug 28 23:19:24 2010
+++ modules/argp        Sat Aug 28 23:11:23 2010
@@ -28,7 +28,7 @@
 getopt-gnu
 strchrnul
 sysexits
-malloc
+malloc-gnu
 mempcpy
 strndup
 strcase
--- modules/malloc.orig Sat Aug 28 23:19:24 2010
+++ modules/malloc      Sat Aug 28 23:10:31 2010
@@ -6,15 +6,18 @@
 otherwise when this module occurs as a tests-related module, it will
 have side effects on the compilation of the main modules in lib/.
 
+Status:
+obsolete
+
+Notice:
+This module is obsolete. Use the module 'malloc-gnu' instead.
+
 Files:
-lib/malloc.c
 
 Depends-on:
-malloc-posix
+malloc-gnu
 
 configure.ac:
-gl_FUNC_MALLOC_GNU
-AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
 
 Makefile.am:
 
--- modules/regex.orig  Sat Aug 28 23:19:24 2010
+++ modules/regex       Sat Aug 28 23:11:20 2010
@@ -17,7 +17,7 @@
 extensions
 gettext-h
 localcharset
-malloc
+malloc-gnu
 memcmp
 memmove
 mbrtowc



2010-08-28  Bruno Haible  <address@hidden>

        Rename module 'calloc' -> 'calloc-gnu'.
        * modules/calloc-gnu: New file, copied from modules/calloc.
        * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
        obsolete.
        * doc/posix-functions/calloc.texi: Update.
        * NEWS: Mention the change.

--- NEWS.orig   Sat Aug 28 23:23:07 2010
+++ NEWS        Sat Aug 28 23:22:39 2010
@@ -6,6 +6,9 @@
 
 Date        Modules         Changes
 
+2010-08-28  calloc          This module is deprecated. Use 'calloc-gnu'
+                            instead. It will be removed 2012-01-01.
+
 2010-08-28  malloc          This module is deprecated. Use 'malloc-gnu'
                             instead. It will be removed 2012-01-01.
 
--- doc/posix-functions/calloc.texi.orig        Sat Aug 28 23:23:07 2010
+++ doc/posix-functions/calloc.texi     Sat Aug 28 23:22:28 2010
@@ -18,5 +18,5 @@
 @itemize
 @end itemize
 
-Extension: Gnulib provides a module @samp{calloc} that substitutes a
+Extension: Gnulib provides a module @samp{calloc-gnu} that substitutes a
 @code{calloc} implementation that behaves more like the glibc implementation.
--- modules/calloc.orig Sat Aug 28 23:23:07 2010
+++ modules/calloc      Sat Aug 28 23:22:18 2010
@@ -1,15 +1,18 @@
 Description:
 calloc() function that is glibc compatible.
 
+Status:
+obsolete
+
+Notice:
+This module is obsolete. Use the module 'calloc-gnu' instead.
+
 Files:
-lib/calloc.c
-m4/calloc.m4
 
 Depends-on:
-calloc-posix
+calloc-gnu
 
 configure.ac:
-gl_FUNC_CALLOC_GNU
 
 Makefile.am:
 


2010-08-28  Bruno Haible  <address@hidden>

        Rename module 'realloc' -> 'realloc-gnu'.
        * modules/realloc-gnu: New file, copied from modules/realloc.
        * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
        obsolete.
        * modules/mgetgroups (Depends-on): Update.
        * doc/posix-functions/realloc.texi: Update.
        * NEWS: Mention the change.

--- NEWS.orig   Sat Aug 28 23:27:15 2010
+++ NEWS        Sat Aug 28 23:25:26 2010
@@ -6,6 +6,9 @@
 
 Date        Modules         Changes
 
+2010-08-28  realloc         This module is deprecated. Use 'realloc-gnu'
+                            instead. It will be removed 2012-01-01.
+
 2010-08-28  calloc          This module is deprecated. Use 'calloc-gnu'
                             instead. It will be removed 2012-01-01.
 
--- doc/posix-functions/realloc.texi.orig       Sat Aug 28 23:27:15 2010
+++ doc/posix-functions/realloc.texi    Sat Aug 28 23:25:31 2010
@@ -18,5 +18,5 @@
 @itemize
 @end itemize
 
-Extension: Gnulib provides a module @samp{realloc} that substitutes a
+Extension: Gnulib provides a module @samp{realloc-gnu} that substitutes a
 @code{realloc} implementation that behaves more like the glibc implementation.
--- modules/mgetgroups.orig     Sat Aug 28 23:27:15 2010
+++ modules/mgetgroups  Sat Aug 28 23:26:27 2010
@@ -9,7 +9,7 @@
 Depends-on:
 getgroups
 getugroups
-realloc
+realloc-gnu
 xalloc
 
 configure.ac:
--- modules/realloc.orig        Sat Aug 28 23:27:15 2010
+++ modules/realloc     Sat Aug 28 23:25:59 2010
@@ -6,15 +6,18 @@
 otherwise when this module occurs as a tests-related module, it will
 have side effects on the compilation of the main modules in lib/.
 
+Status:
+obsolete
+
+Notice:
+This module is obsolete. Use the module 'realloc-gnu' instead.
+
 Files:
-lib/realloc.c
 
 Depends-on:
-realloc-posix
+realloc-gnu
 
 configure.ac:
-gl_FUNC_REALLOC_GNU
-AC_DEFINE([GNULIB_REALLOC_GNU], 1, [Define to indicate the 'realloc' module.])
 
 Makefile.am:
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]