chiark / gitweb /
Build: Overhaul build system.
[mLib] / darray.h
index 003c6d7aa5d4aeaeaa2b12126f8bcef088ac5510..067a696ac2b3dca6749ed6d20240eeca4c2696d1 100644 (file)
--- a/darray.h
+++ b/darray.h
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: darray.h,v 1.6 2001/03/03 12:20:23 mdw Exp $
+ * $Id: darray.h,v 1.7 2004/04/08 01:36:11 mdw Exp $
  *
  * Dynamically growing dense arrays
  *
  * (c) 1999 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib 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 Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with mLib; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: darray.h,v $
- * Revision 1.6  2001/03/03 12:20:23  mdw
- * New macros @DA_FIRST@ and @DA_LAST@ for stack/queue peeking.
- *
- * Revision 1.5  2000/06/17 10:37:39  mdw
- * Add support for arena management.
- *
- * Revision 1.4  1999/12/10 23:42:04  mdw
- * Change header file guard names.
- *
- * Revision 1.3  1999/11/05 14:32:43  mdw
- * Minor change in argument naming.
- *
- * Revision 1.2  1999/10/29 22:59:22  mdw
- * New array adjustment macros for unsigned arguments.
- *
- * Revision 1.1  1999/10/22 22:37:26  mdw
- * New dynamic array implementation replaces `dynarray.h'.
- *
- */
-
 #ifndef MLIB_DARRAY_H
 #define MLIB_DARRAY_H
 
@@ -418,7 +395,7 @@ typedef struct da_base {
  * Arguments:  @a@ = pointer to an array block (multiply evaluated)
  *
  * Use:                Evaluates to the initial element in array @a@.  It is unsafe
- *             to do this if the array is empty.  The array is not changed. 
+ *             to do this if the array is empty.  The array is not changed.
  */
 
 #define DA_FIRST(a) (DA(a)[0])
@@ -484,7 +461,7 @@ typedef struct da_base {
  *             element to return.
  */
 
-#define DA_SHIFT(a)                                                    \
+#define DA_SHIFT(a)                                                    \
   ((a)->b.len ? ((void)0) : THROW(DAEXC_UFLOW),                                \
    (a)->b.len--,                                                       \
    (a)->b.sz--,                                                                \