Mercurial > emacs
comparison src/lisp.h @ 90972:4849bddaf0d1
* fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change its type.
(make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
Update to the new type of weak_hash_tables and next_weak.
* lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
a plain C pointer to Lisp_Hash_Table.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 29 Jun 2007 03:48:22 +0000 |
parents | 2acda4a4ac92 |
children | a66921565bcb |
comparison
equal
deleted
inserted
replaced
90971:2acda4a4ac92 | 90972:4849bddaf0d1 |
---|---|
1024 /* Bucket vector. A non-nil entry is the index of the first item in | 1024 /* Bucket vector. A non-nil entry is the index of the first item in |
1025 a collision chain. This vector's size can be larger than the | 1025 a collision chain. This vector's size can be larger than the |
1026 hash table size to reduce collisions. */ | 1026 hash table size to reduce collisions. */ |
1027 Lisp_Object index; | 1027 Lisp_Object index; |
1028 | 1028 |
1029 /* Next weak hash table if this is a weak hash table. The head | |
1030 of the list is in Vweak_hash_tables. */ | |
1031 Lisp_Object next_weak; | |
1032 | |
1033 /* User-supplied hash function, or nil. */ | 1029 /* User-supplied hash function, or nil. */ |
1034 Lisp_Object user_hash_function; | 1030 Lisp_Object user_hash_function; |
1035 | 1031 |
1036 /* User-supplied key comparison function, or nil. */ | 1032 /* User-supplied key comparison function, or nil. */ |
1037 Lisp_Object user_cmp_function; | 1033 Lisp_Object user_cmp_function; |
1034 | |
1035 /* Next weak hash table if this is a weak hash table. The head | |
1036 of the list is in weak_hash_tables. */ | |
1037 struct Lisp_Hash_Table *next_weak; | |
1038 | 1038 |
1039 /* C function to compare two keys. */ | 1039 /* C function to compare two keys. */ |
1040 int (* cmpfn) P_ ((struct Lisp_Hash_Table *, Lisp_Object, | 1040 int (* cmpfn) P_ ((struct Lisp_Hash_Table *, Lisp_Object, |
1041 unsigned, Lisp_Object, unsigned)); | 1041 unsigned, Lisp_Object, unsigned)); |
1042 | 1042 |