/* -*-c-*-
*
- * $Id: darray.h,v 1.2 1999/10/29 22:59:22 mdw Exp $
+ * $Id: darray.h,v 1.4 1999/12/10 23:42:04 mdw Exp $
*
* Dynamically growing dense arrays
*
/*----- Revision history --------------------------------------------------*
*
* $Log: darray.h,v $
+ * 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.
*
*
*/
-#ifndef DARRAY_H
-#define DARRAY_H
+#ifndef MLIB_DARRAY_H
+#define MLIB_DARRAY_H
#ifdef __cplusplus
extern "C" {
#include <stdlib.h>
#include <string.h>
-#ifndef ALLOC_H
+#ifndef MLIB_ALLOC_H
# include "alloc.h"
#endif
-#ifndef EXC_H
+#ifndef MLIB_EXC_H
# include "exc.h"
#endif
* Use: Declares a structure for decribing a dynamic array.
*/
-#define DA_DECL(atype, type) \
- typedef struct atype { da_base b; type *v; } atype
+#define DA_DECL(type_v, type) \
+ typedef struct type_v { da_base b; type *v; } type_v
/*----- Initialization, creation and destruction --------------------------*/