X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fparse.c;h=b4218e51fa9b030d1f2802b1b8394f893d202420;hb=b28aadc5bd34a0d9fa0ff15c52b2b4164d955831;hp=a74b11f906edddb744119db60ab95e4e8d62634f;hpb=077b294463eb6819c0eba67bb8ce71ec66d61ba8;p=sbcl.git diff --git a/src/runtime/parse.c b/src/runtime/parse.c index a74b11f..b4218e5 100644 --- a/src/runtime/parse.c +++ b/src/runtime/parse.c @@ -12,6 +12,7 @@ */ #include +#include #include #include @@ -259,13 +260,14 @@ static boolean lookup_symbol(char *name, lispobj *result) } /* Search dynamic space. */ -#ifndef LISP_FEATURE_GENCGC +#if defined(LISP_FEATURE_GENCGC) + headerptr = (lispobj *)DYNAMIC_SPACE_START; + count = (lispobj *)get_alloc_pointer() - headerptr; +#else headerptr = (lispobj *)current_dynamic_space; count = dynamic_space_free_pointer - headerptr; -#else - headerptr = (lispobj *)DYNAMIC_SPACE_START; - count = ((lispobj *)SymbolValue(ALLOCATION_POINTER,0)) - headerptr; #endif + if (search_for_symbol(name, &headerptr, &count)) { *result = make_lispobj(headerptr, OTHER_POINTER_LOWTAG); return 1;