mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
* gc.c (mark_gc_async): Change "func_data" to "fn_data", to avoid
clash with AIX header file. * hooks.c (scm_c_hook_add, scm_c_hook_remove): Same again. * hooks.h (scm_t_c_hook_function, scm_c_hook_add, scm_c_hook_remove): Same again.
This commit is contained in:
parent
70a4404429
commit
5c004b6d6a
4 changed files with 16 additions and 8 deletions
|
@ -50,7 +50,7 @@ scm_c_hook_init (scm_t_c_hook *hook, void *hook_data, scm_t_c_hook_type type)
|
|||
void
|
||||
scm_c_hook_add (scm_t_c_hook *hook,
|
||||
scm_t_c_hook_function func,
|
||||
void *func_data,
|
||||
void *fn_data,
|
||||
int appendp)
|
||||
{
|
||||
scm_t_c_hook_entry *entry = scm_malloc (sizeof (scm_t_c_hook_entry));
|
||||
|
@ -60,19 +60,19 @@ scm_c_hook_add (scm_t_c_hook *hook,
|
|||
loc = &(*loc)->next;
|
||||
entry->next = *loc;
|
||||
entry->func = func;
|
||||
entry->data = func_data;
|
||||
entry->data = fn_data;
|
||||
*loc = entry;
|
||||
}
|
||||
|
||||
void
|
||||
scm_c_hook_remove (scm_t_c_hook *hook,
|
||||
scm_t_c_hook_function func,
|
||||
void *func_data)
|
||||
void *fn_data)
|
||||
{
|
||||
scm_t_c_hook_entry **loc = &hook->first;
|
||||
while (*loc)
|
||||
{
|
||||
if ((*loc)->func == func && (*loc)->data == func_data)
|
||||
if ((*loc)->func == func && (*loc)->data == fn_data)
|
||||
{
|
||||
scm_t_c_hook_entry *entry = *loc;
|
||||
*loc = (*loc)->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue