chiark
/
gitweb
/
~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90407c4
)
Add new macro to find an association's atom key.
author
mdw
<mdw>
Thu, 25 Jan 2001 21:12:22 +0000
(21:12 +0000)
committer
mdw
<mdw>
Thu, 25 Jan 2001 21:12:22 +0000
(21:12 +0000)
assoc.h
patch
|
blob
|
blame
|
history
diff --git
a/assoc.h
b/assoc.h
index 6eea33af9b397c27176e7b9214dd16eb048c5735..68590a454df40912024d642811ffba66c4973634 100644
(file)
--- a/
assoc.h
+++ b/
assoc.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: assoc.h,v 1.
1 2001/01/20 11:50:58
mdw Exp $
+ * $Id: assoc.h,v 1.
2 2001/01/25 21:12:22
mdw Exp $
*
* Assocation tables
*
*
* Assocation tables
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: assoc.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: assoc.h,v $
+ * Revision 1.2 2001/01/25 21:12:22 mdw
+ * Add new macro to find an association's atom key.
+ *
* Revision 1.1 2001/01/20 11:50:58 mdw
* Hash tables indexed by atoms, to avoid expense of hashing keys on each
* lookup, and to reduce storage used by key texts.
* Revision 1.1 2001/01/20 11:50:58 mdw
* Hash tables indexed by atoms, to avoid expense of hashing keys on each
* lookup, and to reduce storage used by key texts.
@@
-67,6
+70,8
@@
typedef struct assoc_base {
typedef struct { hash_iter i; } assoc_iter;
typedef struct { hash_iter i; } assoc_iter;
+#define ASSOC_ATOM(p) (((assoc_base *)(p))->a + 0)
+
/*----- Functions provided ------------------------------------------------*/
/* --- @assoc_create@ --- *
/*----- Functions provided ------------------------------------------------*/
/* --- @assoc_create@ --- *