guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Benchmarks of guile-www against HB's Guile module.


From: Neil Jerram
Subject: Re: Benchmarks of guile-www against HB's Guile module.
Date: 13 Feb 2002 21:45:41 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Alejandro" == Alejandro Forero Cuervo <address@hidden> writes:

    Alejandro> What I need to do is  simply register my callback function 
(hb-register,
    Alejandro> which is  registered from C  code, not  from Guile code)  
specifing that
    Alejandro> Guile  must always  pass it  my user_data  pointer in  addition 
the  the
    Alejandro> parameteres passed from the Guile code.

OK, I think I understand now.  How about this:

SCM hb_register_public (SCM name, SCM proc)
{
  return hb_register_internal (hb_get_current_file (), name, proc);
}

SCM hb_register_internal (HB_FILE *hb_file, SCM name, SCM proc)
{
  ...;
}

init_hb ()
{
  gh_new_procedure2_0 ("hb-register", hb_register_public);
}

        Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]