* feature.c, feature.h (scm_c_run_hook): Added.
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Thu, 5 Aug 1999 12:08:01 +0000 (12:08 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Thu, 5 Aug 1999 12:08:01 +0000 (12:08 +0000)
libguile/feature.c
libguile/feature.h

index 3f9ffab..690a040 100644 (file)
@@ -194,10 +194,16 @@ scm_run_hook (SCM hook, SCM args)
     scm_misc_error (s_add_hook_x,
                    "This hook requires %s arguments",
                    SCM_LIST1 (SCM_CADR (hook)));
+  scm_c_run_hook (hook, args);
+  return SCM_UNSPECIFIED;
+}
+
+void
+scm_c_run_hook (SCM hook, SCM args)
+{
   hook = SCM_CDR (hook);
   while (SCM_NIMP (hook = SCM_CDR (hook)))
     scm_apply (SCM_CAR (hook), args, SCM_EOL);
-  return SCM_UNSPECIFIED;
 }
 
 \f
index 5879945..5e33470 100644 (file)
@@ -55,6 +55,7 @@ extern SCM scm_add_hook_x (SCM hook, SCM thunk, SCM appendp);
 extern SCM scm_remove_hook_x (SCM hook, SCM thunk);
 extern SCM scm_reset_hook_x (SCM hook);
 extern SCM scm_run_hook (SCM hook, SCM args);
+extern void scm_c_run_hook (SCM hook, SCM args);
 extern void scm_init_feature (void);
 
 #endif  /* FEATUREH */