Mercurial > hg > xemacs-beta
comparison src/elhash.h @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 3ecd8885ac67 |
children | abe6d1db359e |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 Boston, MA 02111-1307, USA. */ | 19 Boston, MA 02111-1307, USA. */ |
20 | 20 |
21 /* Synched up with: Not in FSF. */ | 21 /* Synched up with: Not in FSF. */ |
22 | 22 |
23 #ifndef _XEMACS_ELHASH_H_ | 23 #ifndef INCLUDED_elhash_h_ |
24 #define _XEMACS_ELHASH_H_ | 24 #define INCLUDED_elhash_h_ |
25 | 25 |
26 DECLARE_LRECORD (hash_table, struct Lisp_Hash_Table); | 26 typedef struct Lisp_Hash_Table Lisp_Hash_Table; |
27 | 27 |
28 #define XHASH_TABLE(x) XRECORD (x, hash_table, struct Lisp_Hash_Table) | 28 DECLARE_LRECORD (hash_table, Lisp_Hash_Table); |
29 | |
30 #define XHASH_TABLE(x) XRECORD (x, hash_table, Lisp_Hash_Table) | |
29 #define XSETHASH_TABLE(x, p) XSETRECORD (x, p, hash_table) | 31 #define XSETHASH_TABLE(x, p) XSETRECORD (x, p, hash_table) |
30 #define HASH_TABLEP(x) RECORDP (x, hash_table) | 32 #define HASH_TABLEP(x) RECORDP (x, hash_table) |
31 #define CHECK_HASH_TABLE(x) CHECK_RECORD (x, hash_table) | 33 #define CHECK_HASH_TABLE(x) CHECK_RECORD (x, hash_table) |
32 #define CONCHECK_HASH_TABLE(x) CONCHECK_RECORD (x, hash_table) | 34 #define CONCHECK_HASH_TABLE(x) CONCHECK_RECORD (x, hash_table) |
33 | 35 |
61 typedef int (*hash_table_test_function_t) (Lisp_Object obj1, Lisp_Object obj2); | 63 typedef int (*hash_table_test_function_t) (Lisp_Object obj1, Lisp_Object obj2); |
62 typedef unsigned long (*hash_table_hash_function_t) (Lisp_Object obj); | 64 typedef unsigned long (*hash_table_hash_function_t) (Lisp_Object obj); |
63 typedef int (*maphash_function_t) (Lisp_Object key, Lisp_Object value, | 65 typedef int (*maphash_function_t) (Lisp_Object key, Lisp_Object value, |
64 void* extra_arg); | 66 void* extra_arg); |
65 | 67 |
66 struct Lisp_Hash_Table; | |
67 | |
68 Lisp_Object make_general_lisp_hash_table (enum hash_table_test test, | 68 Lisp_Object make_general_lisp_hash_table (enum hash_table_test test, |
69 size_t size, | 69 size_t size, |
70 double rehash_size, | 70 double rehash_size, |
71 double rehash_threshold, | 71 double rehash_threshold, |
72 enum hash_table_weakness weakness); | 72 enum hash_table_weakness weakness); |
82 Lisp_Object hash_table, void *extra_arg); | 82 Lisp_Object hash_table, void *extra_arg); |
83 | 83 |
84 int finish_marking_weak_hash_tables (void); | 84 int finish_marking_weak_hash_tables (void); |
85 void prune_weak_hash_tables (void); | 85 void prune_weak_hash_tables (void); |
86 | 86 |
87 void reorganize_hash_table (struct Lisp_Hash_Table *ht); | 87 void pdump_reorganize_hash_table (Lisp_Object); |
88 | 88 |
89 #endif /* _XEMACS_ELHASH_H_ */ | 89 #endif /* INCLUDED_elhash_h_ */ |