diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 12 |
1 files changed, 9 insertions, 3 deletions
| @@ -4695,7 +4695,9 @@ sxhash (Lisp_Object obj, int depth) | |||
| 4695 | 4695 | ||
| 4696 | DEFUN ("sxhash-eq", Fsxhash_eq, Ssxhash_eq, 1, 1, 0, | 4696 | DEFUN ("sxhash-eq", Fsxhash_eq, Ssxhash_eq, 1, 1, 0, |
| 4697 | doc: /* Return an integer hash code for OBJ suitable for `eq'. | 4697 | doc: /* Return an integer hash code for OBJ suitable for `eq'. |
| 4698 | If (eq A B), then (= (sxhash-eq A) (sxhash-eq B)). */) | 4698 | If (eq A B), then (= (sxhash-eq A) (sxhash-eq B)). |
| 4699 | |||
| 4700 | Hash codes are not guaranteed to be preserved across Emacs sessions. */) | ||
| 4699 | (Lisp_Object obj) | 4701 | (Lisp_Object obj) |
| 4700 | { | 4702 | { |
| 4701 | return make_fixnum (hashfn_eq (NULL, obj)); | 4703 | return make_fixnum (hashfn_eq (NULL, obj)); |
| @@ -4703,7 +4705,9 @@ If (eq A B), then (= (sxhash-eq A) (sxhash-eq B)). */) | |||
| 4703 | 4705 | ||
| 4704 | DEFUN ("sxhash-eql", Fsxhash_eql, Ssxhash_eql, 1, 1, 0, | 4706 | DEFUN ("sxhash-eql", Fsxhash_eql, Ssxhash_eql, 1, 1, 0, |
| 4705 | doc: /* Return an integer hash code for OBJ suitable for `eql'. | 4707 | doc: /* Return an integer hash code for OBJ suitable for `eql'. |
| 4706 | If (eql A B), then (= (sxhash-eql A) (sxhash-eql B)). */) | 4708 | If (eql A B), then (= (sxhash-eql A) (sxhash-eql B)). |
| 4709 | |||
| 4710 | Hash codes are not guaranteed to be preserved across Emacs sessions. */) | ||
| 4707 | (Lisp_Object obj) | 4711 | (Lisp_Object obj) |
| 4708 | { | 4712 | { |
| 4709 | return make_fixnum (hashfn_eql (NULL, obj)); | 4713 | return make_fixnum (hashfn_eql (NULL, obj)); |
| @@ -4711,7 +4715,9 @@ If (eql A B), then (= (sxhash-eql A) (sxhash-eql B)). */) | |||
| 4711 | 4715 | ||
| 4712 | DEFUN ("sxhash-equal", Fsxhash_equal, Ssxhash_equal, 1, 1, 0, | 4716 | DEFUN ("sxhash-equal", Fsxhash_equal, Ssxhash_equal, 1, 1, 0, |
| 4713 | doc: /* Return an integer hash code for OBJ suitable for `equal'. | 4717 | doc: /* Return an integer hash code for OBJ suitable for `equal'. |
| 4714 | If (equal A B), then (= (sxhash-equal A) (sxhash-equal B)). */) | 4718 | If (equal A B), then (= (sxhash-equal A) (sxhash-equal B)). |
| 4719 | |||
| 4720 | Hash codes are not guaranteed to be preserved across Emacs sessions. */) | ||
| 4715 | (Lisp_Object obj) | 4721 | (Lisp_Object obj) |
| 4716 | { | 4722 | { |
| 4717 | return make_fixnum (hashfn_equal (NULL, obj)); | 4723 | return make_fixnum (hashfn_equal (NULL, obj)); |