diff options
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 34 |
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 | ||
| 2347 | LISP_INLINE void | 2347 | LISP_INLINE void |
| 2348 | set_hash_key (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) | 2348 | set_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 | |||
| 2353 | LISP_INLINE void | ||
| 2354 | set_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 | ||
| 2353 | LISP_INLINE void | 2359 | LISP_INLINE void |
| 2354 | set_hash_value (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) | 2360 | set_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 | ||
| 2359 | LISP_INLINE void | 2365 | LISP_INLINE void |
| 2360 | set_hash_next (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) | 2366 | set_hash_next (struct Lisp_Hash_Table *h, Lisp_Object next) |
| 2367 | { | ||
| 2368 | h->next = next; | ||
| 2369 | } | ||
| 2370 | |||
| 2371 | LISP_INLINE void | ||
| 2372 | set_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 | ||
| 2365 | LISP_INLINE void | 2377 | LISP_INLINE void |
| 2366 | set_hash_hash (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) | 2378 | set_hash_hash (struct Lisp_Hash_Table *h, Lisp_Object hash) |
| 2379 | { | ||
| 2380 | h->hash = hash; | ||
| 2381 | } | ||
| 2382 | |||
| 2383 | LISP_INLINE void | ||
| 2384 | set_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 | ||
| 2371 | LISP_INLINE void | 2389 | LISP_INLINE void |
| 2372 | set_hash_index (struct Lisp_Hash_Table *h, ptrdiff_t idx, Lisp_Object val) | 2390 | set_hash_index (struct Lisp_Hash_Table *h, Lisp_Object index) |
| 2391 | { | ||
| 2392 | h->index = index; | ||
| 2393 | } | ||
| 2394 | |||
| 2395 | LISP_INLINE void | ||
| 2396 | set_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 | } |