bug-gnulib
[Top][All Lists]
Advanced

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

Re: obsolete modules / obsolete platforms


From: Bruno Haible
Subject: Re: obsolete modules / obsolete platforms
Date: Sun, 21 Sep 2008 18:11:25 +0200
User-agent: KMail/1.5.4

Paolo Bonzini wrote:
> Why not document "using the strdup module for the sake of replacing
> strdup is now obsolete", removing the dependency when POSIX behavior is
> not required

ok, why not?

> and calling strdup-posix just strdup?

IMO it does not hurt to keep the module 'strdup' around, for packages who
need to port to very ancient machines (e.g. GNU tar). Like we do for the modules
  strtol
  strtoul
  memchr
  memcmp
  memcpy
  memmove
  memset
  strcspn
  strpbrk

I'm changing MODULES.html.sh to make it clear which modules are only for
obsolete platforms.

2008-09-21  Bruno Haible  <address@hidden>

        * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
        section.
        (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
        strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
        the new section.
        (Support for obsolete systems lacking POSIX:2001): New section.
        (String handling <string.h>): Move strdup to the new section.
        Suggested by Simon Josefsson and Paolo Bonzini.

*** MODULES.html.sh.orig        2008-09-21 18:06:03.000000000 +0200
--- MODULES.html.sh     2008-09-21 18:02:12.000000000 +0200
***************
*** 1486,1501 ****
  # func_all_modules
  func_all_modules ()
  {
!   element="Support for systems lacking ANSI C 89"
!   func_section_wrap ansic_sup
    func_wrap H2
    func_echo "$element"
  
    func_begin_table
    func_module stdlib
    func_module exit
-   func_module atexit
-   func_module strtod
    func_module strtol
    func_module strtoul
    func_module memchr
--- 1486,1499 ----
  # func_all_modules
  func_all_modules ()
  {
!   element="Support for obsolete systems lacking ANSI C 89"
!   func_section_wrap ansic_sup_obsolete
    func_wrap H2
    func_echo "$element"
  
    func_begin_table
    func_module stdlib
    func_module exit
    func_module strtol
    func_module strtoul
    func_module memchr
***************
*** 1505,1516 ****
    func_module memset
    func_module strcspn
    func_module strpbrk
    func_module strerror
    func_module mktime
    func_end_table
  
-   func_echo 'Most of these modules are not listed among dependencies below, 
for simplicity.'
- 
    element="Enhancements for ANSI C 89 functions"
    func_section_wrap ansic_enh
    func_wrap H2
--- 1503,1525 ----
    func_module memset
    func_module strcspn
    func_module strpbrk
+   func_end_table
+ 
+   func_echo 'These modules are not listed among dependencies below, for 
simplicity.'
+   func_echo 'If your package requires portability to old, obsolete systems, 
you need to list these modules explicitly among the modules to import through 
gnulib-tool.'
+ 
+   element="Support for systems lacking ANSI C 89"
+   func_section_wrap ansic_sup
+   func_wrap H2
+   func_echo "$element"
+ 
+   func_begin_table
+   func_module atexit
+   func_module strtod
    func_module strerror
    func_module mktime
    func_end_table
  
    element="Enhancements for ANSI C 89 functions"
    func_section_wrap ansic_enh
    func_wrap H2
***************
*** 1665,1671 ****
    func_module strcasestr
    func_module strcasestr-simple
    func_module strchrnul
-   func_module strdup
    func_module streq
    func_module strnlen
    func_module strnlen1
--- 1674,1679 ----
***************
*** 2071,2076 ****
--- 2079,2096 ----
    func_module mbfile
    func_end_table
  
+   element="Support for obsolete systems lacking POSIX:2001"
+   func_section_wrap posix_sup_obsolete
+   func_wrap H2
+   func_echo "$element"
+ 
+   func_begin_table
+   func_module strdup
+   func_end_table
+ 
+   func_echo 'These modules are not listed among dependencies below, for 
simplicity.'
+   func_echo 'If your package requires portability to old, obsolete systems, 
you need to list these modules explicitly among the modules to import through 
gnulib-tool.'
+ 
    element="Support for systems lacking POSIX:2001"
    func_section_wrap posix_sup
    func_wrap H2





reply via email to

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