aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-12-30 16:00:28 +0100
committerMattias EngdegÄrd2024-01-13 20:52:08 +0100
commitd2c3a983146b7c0fb0f8b855268effb695d0bbf5 (patch)
treeb372375b37225b15e5378ae971bea1c271fbf756 /src
parent519c7ca7356fc7f9707b97c143c9495deea5b272 (diff)
downloademacs-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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fns.c b/src/fns.c
index 70288590e24..2905c3f1b86 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -5495,25 +5495,25 @@ DEFUN ("hash-table-count", Fhash_table_count, Shash_table_count, 1, 1, 0,
5495 5495
5496DEFUN ("hash-table-rehash-size", Fhash_table_rehash_size, 5496DEFUN ("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.
5499This function is for compatibility only; it returns a nominal value
5500without 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
5508DEFUN ("hash-table-rehash-threshold", Fhash_table_rehash_threshold, 5508DEFUN ("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.
5511This function is for compatibility only; it returns a nominal value
5512without 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