X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsearch.c;h=1ea8dfabd3700aed1ac7b3838666d9fa6b048b27;hb=c3699db2053ff3b5ac6a98d4431c3789496002d8;hp=e2d642bd90477d740926a88d209e2ea07cc59f35;hpb=3c65762b927af861c9c8bc416e4cbac9a14ec0c3;p=sbcl.git diff --git a/src/runtime/search.c b/src/runtime/search.c index e2d642b..1ea8dfa 100644 --- a/src/runtime/search.c +++ b/src/runtime/search.c @@ -9,10 +9,14 @@ * files for more information. */ +#include + #include "runtime.h" #include "sbcl.h" #include "os.h" #include "search.h" +#include "thread.h" +#include "genesis/primitive-objects.h" boolean search_for_type(int type, lispobj **start, int *count) { @@ -43,7 +47,7 @@ boolean search_for_symbol(char *name, lispobj **start, int *count) if (lowtag_of(symbol->name) == OTHER_POINTER_LOWTAG) { symbol_name = (struct vector *)native_pointer(symbol->name); if (is_valid_lisp_addr((os_vm_address_t)symbol_name) && - widetag_of(symbol_name->header) == SIMPLE_STRING_WIDETAG && + widetag_of(symbol_name->header) == SIMPLE_BASE_STRING_WIDETAG && strcmp((char *)symbol_name->data, name) == 0) return 1; }