+2000-05-29 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * hooks.c (symbol_name, scm_create_hook): Restored the original
+ behaviour of scm_create_hook. Changing it was bad as Carl
+ R. Witty has pointed out.
+
+ * gc.c (scm_init_gc): We can still rely on scm_create_hook to
+ protect the object.
+
2000-05-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
* gc.c (scm_init_gc): Protect scm_after_gc_hook, since this will
}
+SCM_SYMBOL (symbol_name, "name");
+
SCM
scm_create_hook (const char* name, int n_args)
{
SCM vcell = scm_sysintern0 (name);
SCM hook = make_hook (SCM_MAKINUM (n_args), "scm_create_hook");
SCM_SETCDR (vcell, hook);
-
-#if (SCM_DEBUG_DEPRECATED == 0)
-
- scm_set_object_property_x (hook, scm_makfrom0str ("name"), scm_makfrom0str (name));
- scm_protect_object (vcell);
-
-#endif /* SCM_DEBUG_DEPRECATED == 0 */
-
+ scm_set_object_property_x (hook, symbol_name, scm_makfrom0str (name));
+ scm_protect_object (hook);
return hook;
}