diff options
| author | Mattias EngdegÄrd | 2023-12-30 16:00:28 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-01-13 20:52:08 +0100 |
| commit | d2c3a983146b7c0fb0f8b855268effb695d0bbf5 (patch) | |
| tree | b372375b37225b15e5378ae971bea1c271fbf756 /src | |
| parent | 519c7ca7356fc7f9707b97c143c9495deea5b272 (diff) | |
| download | emacs-d2c3a983146b7c0fb0f8b855268effb695d0bbf5.tar.gz emacs-d2c3a983146b7c0fb0f8b855268effb695d0bbf5.zip | |
Hash-table documentation updates (bug#68244)
* doc/lispref/hash.texi (Creating Hash, Other Hash):
Manual updates for make-hash-table, hash-table-rehash-size and
hash-table-rehash-threshold.
* doc/lispref/objects.texi (Hash Table Type): Update example.
* src/fns.c (Fhash_table_rehash_size, Fhash_table_rehash_threshold):
Update doc strings.
* etc/NEWS: Announce changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -5495,25 +5495,25 @@ DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0, | |||
| 5495 | 5495 | ||
| 5496 | DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size, | 5496 | DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size, |
| 5497 | Shash_table_rehash_size, 1, 1, 0, | 5497 | Shash_table_rehash_size, 1, 1, 0, |
| 5498 | doc: /* Return the current rehash size of TABLE. */) | 5498 | doc: /* Return the rehash size of TABLE. |
| 5499 | This function is for compatibility only; it returns a nominal value | ||
| 5500 | without current significance. */) | ||
| 5499 | (Lisp_Object table) | 5501 | (Lisp_Object table) |
| 5500 | { | 5502 | { |
| 5501 | CHECK_HASH_TABLE (table); | 5503 | CHECK_HASH_TABLE (table); |
| 5502 | /* Nominal factor by which to increase the size of a hash table. | 5504 | return make_float (1.5); /* The old default rehash-size value. */ |
| 5503 | No longer used; this is for compatibility. */ | ||
| 5504 | return make_float (1.5); | ||
| 5505 | } | 5505 | } |
| 5506 | 5506 | ||
| 5507 | 5507 | ||
| 5508 | DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold, | 5508 | DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold, |
| 5509 | Shash_table_rehash_threshold, 1, 1, 0, | 5509 | Shash_table_rehash_threshold, 1, 1, 0, |
| 5510 | doc: /* Return the current rehash threshold of TABLE. */) | 5510 | doc: /* Return the rehash threshold of TABLE. |
| 5511 | This function is for compatibility only; it returns a nominal value | ||
| 5512 | without current significance. */) | ||
| 5511 | (Lisp_Object table) | 5513 | (Lisp_Object table) |
| 5512 | { | 5514 | { |
| 5513 | CHECK_HASH_TABLE (table); | 5515 | CHECK_HASH_TABLE (table); |
| 5514 | /* Nominal threshold for when to resize a hash table. | 5516 | return make_float (0.8125); /* The old default rehash-threshold value. */ |
| 5515 | No longer used; this is for compatibility. */ | ||
| 5516 | return make_float (0.8125); | ||
| 5517 | } | 5517 | } |
| 5518 | 5518 | ||
| 5519 | 5519 | ||