From 67a35c5d2d46c2fc164da6471f5496b2aae786f0 Mon Sep 17 00:00:00 2001 From: mdw Date: Thu, 25 Jan 2001 21:12:22 +0000 Subject: [PATCH] Add new macro to find an association's atom key. --- assoc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assoc.h b/assoc.h index 6eea33a..68590a4 100644 --- a/assoc.h +++ b/assoc.h @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,9 @@ /*----- 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. @@ -67,6 +70,8 @@ typedef struct assoc_base { typedef struct { hash_iter i; } assoc_iter; +#define ASSOC_ATOM(p) (((assoc_base *)(p))->a + 0) + /*----- Functions provided ------------------------------------------------*/ /* --- @assoc_create@ --- * -- 2.11.0