Use scm_primitive_load_path instead of scm_primitive_load
authorclinton <clinton@unknownlamer.org>
Thu, 30 Jul 2009 16:51:37 +0000 (16:51 +0000)
committerclinton <clinton@unknownlamer.org>
Thu, 30 Jul 2009 16:51:37 +0000 (16:51 +0000)
source/Interp.C

index dbd6bee..02b2506 100644 (file)
@@ -97,7 +97,7 @@ static SCM
 lazy_eval_file(char *filename)
 {
   return scm_internal_lazy_catch(SCM_BOOL_T,
-                                (scm_t_catch_body) scm_c_primitive_load, 
+                                (scm_t_catch_body) scm_c_primitive_load_path
                                 filename,
                                 (scm_t_catch_handler) Interp::LazyHandler, 0);
 }
@@ -293,10 +293,10 @@ interp_post_startup_helper (void *bot_module)
   scm_c_export ("the-bot-module", 0);
 
   // load bobot-utils
-  scm_primitive_load 
+  return scm_primitive_load_path
     (scm_from_locale_string ((String(PREFIX) + 
-                             "/share/bobotpp/scripts/bobot-utils.scm").c_str ()));
-  return SCM_UNSPECIFIED;
+                             "/share/bobotpp/scripts/bobot-utils.scm").c_str ()),
+     SCM_BOOL_F);
 }
 
 void