diff options
| author | Stefan Monnier | 2007-07-11 15:26:31 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-11 15:26:31 +0000 |
| commit | 5bb7dfee821bc910d9848085b2ab6b78c70330f6 (patch) | |
| tree | fc7550144c3d5eef56dbac6cf915bd527922cfc5 /src/lisp.h | |
| parent | 8991fa8fd3a215489a4e41182c35fd4a228f0f7a (diff) | |
| download | emacs-5bb7dfee821bc910d9848085b2ab6b78c70330f6.tar.gz emacs-5bb7dfee821bc910d9848085b2ab6b78c70330f6.zip | |
* lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
* fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
from a Lisp_Object into a bare pointer.
(make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
Adjust the code correspondingly.
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lisp.h b/src/lisp.h index 6e77bf3e1ac..7cdd5536bb8 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -56,7 +56,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 56 | #ifdef GC_CHECK_CONS_LIST | 56 | #ifdef GC_CHECK_CONS_LIST |
| 57 | #define CHECK_CONS_LIST() check_cons_list() | 57 | #define CHECK_CONS_LIST() check_cons_list() |
| 58 | #else | 58 | #else |
| 59 | #define CHECK_CONS_LIST() 0 | 59 | #define CHECK_CONS_LIST() ((void)0) |
| 60 | #endif | 60 | #endif |
| 61 | 61 | ||
| 62 | /* These are default choices for the types to use. */ | 62 | /* These are default choices for the types to use. */ |
| @@ -1041,16 +1041,16 @@ struct Lisp_Hash_Table | |||
| 1041 | hash table size to reduce collisions. */ | 1041 | hash table size to reduce collisions. */ |
| 1042 | Lisp_Object index; | 1042 | Lisp_Object index; |
| 1043 | 1043 | ||
| 1044 | /* Next weak hash table if this is a weak hash table. The head | ||
| 1045 | of the list is in Vweak_hash_tables. */ | ||
| 1046 | Lisp_Object next_weak; | ||
| 1047 | |||
| 1048 | /* User-supplied hash function, or nil. */ | 1044 | /* User-supplied hash function, or nil. */ |
| 1049 | Lisp_Object user_hash_function; | 1045 | Lisp_Object user_hash_function; |
| 1050 | 1046 | ||
| 1051 | /* User-supplied key comparison function, or nil. */ | 1047 | /* User-supplied key comparison function, or nil. */ |
| 1052 | Lisp_Object user_cmp_function; | 1048 | Lisp_Object user_cmp_function; |
| 1053 | 1049 | ||
| 1050 | /* Next weak hash table if this is a weak hash table. The head | ||
| 1051 | of the list is in weak_hash_tables. */ | ||
| 1052 | struct Lisp_Hash_Table *next_weak; | ||
| 1053 | |||
| 1054 | /* C function to compare two keys. */ | 1054 | /* C function to compare two keys. */ |
| 1055 | int (* cmpfn) P_ ((struct Lisp_Hash_Table *, Lisp_Object, | 1055 | int (* cmpfn) P_ ((struct Lisp_Hash_Table *, Lisp_Object, |
| 1056 | unsigned, Lisp_Object, unsigned)); | 1056 | unsigned, Lisp_Object, unsigned)); |