diff options
| author | K. Handa | 2016-01-03 17:53:43 +0900 |
|---|---|---|
| committer | K. Handa | 2016-01-03 17:53:43 +0900 |
| commit | fb6d826c69939c2d016c1b824d4e9bcb53d9e643 (patch) | |
| tree | b9ce862d6cbe25e740203421984df21e4cbadbf4 /src/fns.c | |
| parent | 536f48e9a2251b9e654ea974bd90ff2f40218753 (diff) | |
| parent | 91917dd58ec5278e555b9c693a830749083e8f89 (diff) | |
| download | emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.gz emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 24 |
1 files changed, 11 insertions, 13 deletions
| @@ -338,7 +338,7 @@ This function obeys the conventions for collation order in your | |||
| 338 | locale settings. For example, punctuation and whitespace characters | 338 | locale settings. For example, punctuation and whitespace characters |
| 339 | might be considered less significant for sorting: | 339 | might 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 | ||
| 344 | The optional argument LOCALE, a string, overrides the setting of your | 344 | The optional argument LOCALE, a string, overrides the setting of your |
| @@ -1580,7 +1580,8 @@ sublist by modifying its list structure, then returns the resulting | |||
| 1580 | list. | 1580 | list. |
| 1581 | 1581 | ||
| 1582 | Write `(setq foo (delq element foo))' to be sure of correctly changing | 1582 | Write `(setq foo (delq element foo))' to be sure of correctly changing |
| 1583 | the value of a list `foo'. */) | 1583 | the value of a list `foo'. See also `remq', which does not modify the |
| 1584 | argument. */) | ||
| 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, | |||
| 2763 | If FEATURE is not a member of the list `features', then the feature | 2764 | If FEATURE is not a member of the list `features', then the feature |
| 2764 | is not loaded; so load the file FILENAME. | 2765 | is not loaded; so load the file FILENAME. |
| 2765 | If FILENAME is omitted, the printname of FEATURE is used as the file name, | 2766 | If FILENAME is omitted, the printname of FEATURE is used as the file name, |
| 2766 | and `load' will try to load this name appended with the suffix `.elc' or | 2767 | and `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 |
| 2769 | order. The name without appended suffix will not be used. | ||
| 2768 | See `get-load-suffixes' for the complete list of suffixes. | 2770 | See `get-load-suffixes' for the complete list of suffixes. |
| 2769 | If the optional third argument NOERROR is non-nil, | 2771 | If the optional third argument NOERROR is non-nil, |
| 2770 | then return nil if the file is not found instead of signaling an error. | 2772 | then 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 | ||
| 3622 | static struct hash_table_test hashtest_eq; | 3624 | struct hash_table_test hashtest_eq, hashtest_eql, hashtest_equal; |
| 3623 | struct 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 | ||
| 3994 | static void | 3995 | void |
| 3995 | hash_remove_from_table (struct Lisp_Hash_Table *h, Lisp_Object key) | 3996 | hash_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) | |||
| 4078 | static bool | 4079 | static bool |
| 4079 | sweep_weak_table (struct Lisp_Hash_Table *h, bool remove_entries_p) | 4080 | sweep_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 | ||