X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Fsymbol.lisp;h=600c6ce661641da54bd3c532c2be1711e1cd4287;hb=a4d2556c02207a7b04ec497155f52e4f21d2795c;hp=5bf53d85b54ce7c4f88e2f1a467a2e912c4fb6b2;hpb=95a6db7329b91dd90d165dd4057b9b5098d34aa2;p=sbcl.git diff --git a/src/code/symbol.lisp b/src/code/symbol.lisp index 5bf53d8..600c6ce 100644 --- a/src/code/symbol.lisp +++ b/src/code/symbol.lisp @@ -49,11 +49,19 @@ (%primitive sb!c:make-other-immediate-type 0 sb!vm:unbound-marker-type)) variable) +#!+(or x86 mips) ;; only backends for which a symbol-hash vop exists (defun symbol-hash (symbol) #!+sb-doc "Return the built-in hash value for symbol." (symbol-hash symbol)) +#!-(or x86 mips) +(defun symbol-hash (symbol) + #!+sb-doc + "Return the built-in hash value for symbol." + (%sxhash-simple-string (symbol-name symbol))) + + (defun symbol-function (variable) #!+sb-doc "VARIABLE must evaluate to a symbol. This symbol's current definition @@ -238,9 +246,9 @@ (defvar *gentemp-counter* 0) (declaim (type unsigned-byte *gentemp-counter*)) -(defun gentemp (&optional (prefix "T") (package *package*)) +(defun gentemp (&optional (prefix "T") (package (sane-package))) #!+sb-doc - "Creates a new symbol interned in package Package with the given Prefix." + "Creates a new symbol interned in package PACKAGE with the given PREFIX." (declare (type string prefix)) (loop (let ((*print-base* 10)