chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for 24-bit types.
[mLib]
/
darray.h
diff --git
a/darray.h
b/darray.h
index c04ca8bd24c479a6650c45359ba43a64376d37f7..065c5071edced675cf76332c9b8eed9e98e089b6 100644
(file)
--- a/
darray.h
+++ b/
darray.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Dynamically growing dense arrays
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: darray.h,v $
/*----- 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.
*
* 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" {
#ifdef __cplusplus
extern "C" {
@@
-51,11
+57,11
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#ifndef ALLOC_H
+#ifndef
MLIB_
ALLOC_H
# include "alloc.h"
#endif
# include "alloc.h"
#endif
-#ifndef EXC_H
+#ifndef
MLIB_
EXC_H
# include "exc.h"
#endif
# include "exc.h"
#endif
@@
-108,8
+114,8
@@
typedef struct da_base {
* Use: Declares a structure for decribing a dynamic array.
*/
* 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 --------------------------*/
/*----- Initialization, creation and destruction --------------------------*/