aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/fns.c b/src/fns.c
index 46956668777..4c13290158a 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -338,7 +338,7 @@ This function obeys the conventions for collation order in your
338locale settings. For example, punctuation and whitespace characters 338locale settings. For example, punctuation and whitespace characters
339might be considered less significant for sorting: 339might be considered less significant for sorting:
340 340
341(sort '("11" "12" "1 1" "1 2" "1.1" "1.2") \\='string-collate-lessp) 341(sort \\='("11" "12" "1 1" "1 2" "1.1" "1.2") \\='string-collate-lessp)
342 => ("11" "1 1" "1.1" "12" "1 2" "1.2") 342 => ("11" "1 1" "1.1" "12" "1 2" "1.2")
343 343
344The optional argument LOCALE, a string, overrides the setting of your 344The optional argument LOCALE, a string, overrides the setting of your
@@ -1580,7 +1580,8 @@ sublist by modifying its list structure, then returns the resulting
1580list. 1580list.
1581 1581
1582Write `(setq foo (delq element foo))' to be sure of correctly changing 1582Write `(setq foo (delq element foo))' to be sure of correctly changing
1583the value of a list `foo'. */) 1583the value of a list `foo'. See also `remq', which does not modify the
1584argument. */)
1584 (register Lisp_Object elt, Lisp_Object list) 1585 (register Lisp_Object elt, Lisp_Object list)
1585{ 1586{
1586 Lisp_Object tail, tortoise, prev = Qnil; 1587 Lisp_Object tail, tortoise, prev = Qnil;
@@ -2763,8 +2764,9 @@ DEFUN ("require", Frequire, Srequire, 1, 3, 0,
2763If FEATURE is not a member of the list `features', then the feature 2764If FEATURE is not a member of the list `features', then the feature
2764is not loaded; so load the file FILENAME. 2765is not loaded; so load the file FILENAME.
2765If FILENAME is omitted, the printname of FEATURE is used as the file name, 2766If FILENAME is omitted, the printname of FEATURE is used as the file name,
2766and `load' will try to load this name appended with the suffix `.elc' or 2767and `load' will try to load this name appended with the suffix `.elc',
2767`.el', in that order. The name without appended suffix will not be used. 2768`.el', or the system-dependent suffix for dynamic module files, in that
2769order. The name without appended suffix will not be used.
2768See `get-load-suffixes' for the complete list of suffixes. 2770See `get-load-suffixes' for the complete list of suffixes.
2769If the optional third argument NOERROR is non-nil, 2771If the optional third argument NOERROR is non-nil,
2770then return nil if the file is not found instead of signaling an error. 2772then return nil if the file is not found instead of signaling an error.
@@ -3619,8 +3621,7 @@ larger_vector (Lisp_Object vec, ptrdiff_t incr_min, ptrdiff_t nitems_max)
3619 Low-level Functions 3621 Low-level Functions
3620 ***********************************************************************/ 3622 ***********************************************************************/
3621 3623
3622static struct hash_table_test hashtest_eq; 3624struct hash_table_test hashtest_eq, hashtest_eql, hashtest_equal;
3623struct hash_table_test hashtest_eql, hashtest_equal;
3624 3625
3625/* Compare KEY1 which has hash code HASH1 and KEY2 with hash code 3626/* Compare KEY1 which has hash code HASH1 and KEY2 with hash code
3626 HASH2 in hash table H using `eql'. Value is true if KEY1 and 3627 HASH2 in hash table H using `eql'. Value is true if KEY1 and
@@ -3991,7 +3992,7 @@ hash_put (struct Lisp_Hash_Table *h, Lisp_Object key, Lisp_Object value,
3991 3992
3992/* Remove the entry matching KEY from hash table H, if there is one. */ 3993/* Remove the entry matching KEY from hash table H, if there is one. */
3993 3994
3994static void 3995void
3995hash_remove_from_table (struct Lisp_Hash_Table *h, Lisp_Object key) 3996hash_remove_from_table (struct Lisp_Hash_Table *h, Lisp_Object key)
3996{ 3997{
3997 EMACS_UINT hash_code; 3998 EMACS_UINT hash_code;
@@ -4078,13 +4079,10 @@ hash_clear (struct Lisp_Hash_Table *h)
4078static bool 4079static bool
4079sweep_weak_table (struct Lisp_Hash_Table *h, bool remove_entries_p) 4080sweep_weak_table (struct Lisp_Hash_Table *h, bool remove_entries_p)
4080{ 4081{
4081 ptrdiff_t bucket, n; 4082 ptrdiff_t n = gc_asize (h->index);
4082 bool marked; 4083 bool marked = false;
4083
4084 n = ASIZE (h->index) & ~ARRAY_MARK_FLAG;
4085 marked = 0;
4086 4084
4087 for (bucket = 0; bucket < n; ++bucket) 4085 for (ptrdiff_t bucket = 0; bucket < n; ++bucket)
4088 { 4086 {
4089 Lisp_Object idx, next, prev; 4087 Lisp_Object idx, next, prev;
4090 4088