X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsymbol.lisp;h=600c6ce661641da54bd3c532c2be1711e1cd4287;hb=a4d2556c02207a7b04ec497155f52e4f21d2795c;hp=2ba65581e01e002b46f071e5eaf3f9c64073f5f9;hpb=02ce4b1b927f1312c300047bd5a0db6663a1d2c6;p=sbcl.git diff --git a/src/code/symbol.lisp b/src/code/symbol.lisp index 2ba6558..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