Remove bumpalloc.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Aug 2003 03:52:46 +0000 (03:52 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Aug 2003 03:52:46 +0000 (03:52 +0000)
ChangeLog
MODULES.html.sh
lib/ChangeLog
lib/bumpalloc.h [deleted file]
modules/bumpalloc [deleted file]

index 3abaf0ee75d792aaea77f5ffb1357b64f7eb1c67..5d3423f33713e5fb2188a00153488988e9a008df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-05  Paul Eggert  <eggert@twinsun.com>
+
+       * MODULES.html.sh (func_all_modules): Remove bumpalloc.
+       * modules/bumpalloc: Remove.
+       
 2003-07-31  Bruno Haible  <bruno@clisp.org>
 
        * modules/getpass-gnu: New file.
index 46c24be28ca3dc9a69834bd8cca5e4caea5cf358..639313003022d3044cdc988c40fbbd75f15a852a 100755 (executable)
@@ -1458,7 +1458,6 @@ func_all_modules ()
   func_begin_table
   func_module xalloc
   func_module alloca
-  func_module bumpalloc
   func_end_table
 
   element="Integer arithmetic functions <stdlib.h>"
index b85ad3b2aa9d80f3734f80137a0ec58616cd570b..32e88bb70ef1d021fb0b2853e922ec46ca56a286 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-05  Paul Eggert  <eggert@twinsun.com>
+
+       * bumpalloc.h: Remove.
+
 2003-08-04  Paul Eggert  <eggert@twinsun.com>
 
        * getloadavg.c: Change copyright notice and spacing to conform to
diff --git a/lib/bumpalloc.h b/lib/bumpalloc.h
deleted file mode 100644 (file)
index 1f55b9a..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/* BUMP_ALLOC macro - increase table allocation by one element.
-   Copyright (C) 1990, 1991, 1993, 1998, 2000 Free Software Foundation, Inc.
-   François Pinard <pinard@iro.umontreal.ca>, 1990.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2, or (at your option)
-   any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software Foundation,
-   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
-
-/*-------------------------------------------------------------------------.
-| Bump the allocation of the array pointed to by TABLE whenever required.  |
-| The table already has already COUNT elements in it, this macro ensure it |
-| has enough space to accommodate at least one more element.  Space is    |
-| allocated (2 ^ EXPONENT) elements at a time.  Each element of the array  |
-| is of type TYPE.                                                        |
-`-------------------------------------------------------------------------*/
-
-/* Routines `xmalloc' and `xrealloc' are called to do the actual memory
-   management.  This implies that the program will abort with a "memory
-   exhausted" error if any problem arise.
-
-   To work correctly, at least EXPONENT and TYPE should always be the
-   same for all uses of this macro for any given TABLE.  A secure way to
-   achieve this is to never use this macro directly, but use it to define
-   other macros, which would then be TABLE-specific.
-
-   The first time through, COUNT is usually zero.  Note that COUNT is not
-   updated by this macro, but it should be update elsewhere, later.  This
-   is convenient, because it allows TABLE[COUNT] to refer to the new
-   element at the end.  Once its construction is completed, COUNT++ will
-   record it in the table.  Calling this macro several times in a row
-   without updating COUNT is a bad thing to do.  */
-
-#define BUMP_ALLOC(Table, Count, Exponent, Type) \
-  BUMP_ALLOC_WITH_SIZE ((Table), (Count), (Exponent), Type, sizeof (Type))
-
-/* In cases `sizeof TYPE' would not always yield the correct value for
-   the size of each element entry, this macro accepts a supplementary
-   SIZE argument.  The EXPONENT, TYPE and SIZE parameters should still
-   have the same value for all macro calls related to a specific TABLE.  */
-
-#define BUMP_ALLOC_WITH_SIZE(Table, Count, Exponent, Type, Size)       \
-  do                                                                   \
-    {                                                                  \
-      if (((Count) & (~(~0 << (Exponent)))) == 0)                      \
-       {                                                               \
-         if ((Count) == 0)                                             \
-           (Table) = (Type *) xmalloc ((1 << (Exponent)) * (Size));    \
-         else                                                          \
-           (Table) = (Type *)                                          \
-             xrealloc ((Table), ((Count) + (1 << (Exponent))) * (Size)); \
-       }                                                               \
-    }                                                                  \
-  while (0)
diff --git a/modules/bumpalloc b/modules/bumpalloc
deleted file mode 100644 (file)
index 3dba3b6..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-Description:
-Increase table allocation by one element.
-
-Files:
-lib/bumpalloc.h
-
-Depends-on:
-xalloc
-
-configure.ac:
-
-Makefile.am:
-lib_SOURCES += bumpalloc.h
-
-Include:
-"bumpalloc.h"
-
-Maintainer:
-Jim Meyering
-