X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/85bb21f7edaa024657a09129d52edf66d8ab7fa2..6a0129ea8c11c4fd12a6198dac1a3c4ab8af4ecc:/darray.h diff --git a/darray.h b/darray.h index c04ca8b..065c507 100644 --- a/darray.h +++ b/darray.h @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,12 @@ /*----- 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. * @@ -38,8 +44,8 @@ * */ -#ifndef DARRAY_H -#define DARRAY_H +#ifndef MLIB_DARRAY_H +#define MLIB_DARRAY_H #ifdef __cplusplus extern "C" { @@ -51,11 +57,11 @@ #include #include -#ifndef ALLOC_H +#ifndef MLIB_ALLOC_H # include "alloc.h" #endif -#ifndef EXC_H +#ifndef MLIB_EXC_H # include "exc.h" #endif @@ -108,8 +114,8 @@ typedef struct da_base { * 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 --------------------------*/