Skip to content
Snippets Groups Projects
Commit 33e261e0 authored by ram's avatar ram
Browse files

new structure hax for sxhash.

parent 2870e3f3
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/hash.lisp,v 1.21 1992/11/04 17:51:03 wlott Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/hash.lisp,v 1.21.1.1 1993/02/10 22:42:03 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -511,8 +511,11 @@
(list (sxhash-list s-expr depth))
(fixnum
(ldb sxhash-bits-byte s-expr))
(structure
(internal-sxhash (type-of s-expr) depth))
(instance
(if (typep s-expr 'structure-object)
(internal-sxhash (class-name (layout-class (%instance-layout s-expr)))
depth)
42))
;; Other-pointer types.
(simple-string (sxhash-simple-string s-expr))
(symbol (sxhash-simple-string (symbol-name s-expr)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment