[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scm_create_hook
From: |
Michael Livshin |
Subject: |
scm_create_hook |
Date: |
27 May 2001 00:54:55 +0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft) |
here's the entire code:
SCM
scm_create_hook (const char *name, int n_args)
{
SCM hook = make_hook (SCM_MAKINUM (n_args), "scm_create_hook");
scm_c_define (name, hook);
scm_protect_object (hook);
return hook;
}
question: what the call to `scm_protect_object' is there for? there's
no corresponding call to `unprotect' anywhere, and I thought
`scm_c_define' should hold onto the value anyway?
--
Long computations which yield zero are probably all for naught.
- scm_create_hook,
Michael Livshin <=