guile-devel
[Top][All Lists]
Advanced

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

Re: Creating modules from C


From: Martin Grabmueller
Subject: Re: Creating modules from C
Date: Mon, 14 May 2001 20:44:41 +0200

> From: Marius Vollmer <address@hidden>
> Date: 14 May 2001 15:01:31 +0200
> 
> So, we should scrap all we have as a C interface to modules right now,
> and replace it with:
> 
>   - SCM scm_c_define_module (const char *mod_name, void (*init)(void *));
> 
>     Define a new module named MOD_NAME and make it current while INIT
>     is called.  Return the module.
> 
>     MOD_NAME is a string with the list of symbols that make up the
>     module name, separated by spaces.  For example, `"foo bar"' names
>     the module `(foo bar)'.
> 
>     When there already exists a module named MOD_NAME, it is used
>     unchanged, otherwise, a empty module is created.

What is it which gets passed to INIT as a `void *'?  Shouldn't there
be another `void *' parameter for scm_c_define_module() which gets
passed through?

>   - SCM scm_c_call_with_current_module (SCM module, void (*func)(void *));
> 
>     Call FUNC while MODULE is made current.

Same here.

>   - SCM scm_variable_ref (SCM var);
>   - SCM scm_variable_set_x (SCM var, SCM val);
> 
>     To work with variables.

Are the VAR parameters symbols (names of variables) or variable
objects?

Thanks,
  'martin



reply via email to

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