aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h34
1 files changed, 29 insertions, 5 deletions
diff --git a/src/lisp.h b/src/lisp.h
index f08e7af8959..3a6eb72d020 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2345,31 +2345,55 @@ gc_aset (Lisp_Object array, ptrdiff_t idx, Lisp_Object val)
2345} 2345}
2346 2346
2347LISP_INLINE void 2347LISP_INLINE void
2348set_hash_key (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) 2348set_hash_key_and_value (struct Lisp_Hash_Table *h, Lisp_Object key_and_value)
2349{
2350 h->key_and_value = key_and_value;
2351}
2352
2353LISP_INLINE void
2354set_hash_key_slot (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val)
2349{ 2355{
2350 gc_aset (h->key_and_value, 2 * idx, val); 2356 gc_aset (h->key_and_value, 2 * idx, val);
2351} 2357}
2352 2358
2353LISP_INLINE void 2359LISP_INLINE void
2354set_hash_value (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) 2360set_hash_value_slot (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val)
2355{ 2361{
2356 gc_aset (h->key_and_value, 2 * idx + 1, val); 2362 gc_aset (h->key_and_value, 2 * idx + 1, val);
2357} 2363}
2358 2364
2359LISP_INLINE void 2365LISP_INLINE void
2360set_hash_next (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) 2366set_hash_next (struct Lisp_Hash_Table *h, Lisp_Object next)
2367{
2368 h->next = next;
2369}
2370
2371LISP_INLINE void
2372set_hash_next_slot (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val)
2361{ 2373{
2362 gc_aset (h->next, idx, val); 2374 gc_aset (h->next, idx, val);
2363} 2375}
2364 2376
2365LISP_INLINE void 2377LISP_INLINE void
2366set_hash_hash (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) 2378set_hash_hash (struct Lisp_Hash_Table *h, Lisp_Object hash)
2379{
2380 h->hash = hash;
2381}
2382
2383LISP_INLINE void
2384set_hash_hash_slot (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val)
2367{ 2385{
2368 gc_aset (h->hash, idx, val); 2386 gc_aset (h->hash, idx, val);
2369} 2387}
2370 2388
2371LISP_INLINE void 2389LISP_INLINE void
2372set_hash_index (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) 2390set_hash_index (struct Lisp_Hash_Table *h, Lisp_Object index)
2391{
2392 h->index = index;
2393}
2394
2395LISP_INLINE void
2396set_hash_index_slot (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val)
2373{ 2397{
2374 gc_aset (h->index, idx, val); 2398 gc_aset (h->index, idx, val);
2375} 2399}