mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
(scm_c_export): Do nothing when the first argument is already the
terminating NULL. Thanks to Han-Wen Nienhuys!
This commit is contained in:
parent
782f169b37
commit
3f831f22ae
1 changed files with 16 additions and 13 deletions
|
@ -186,6 +186,8 @@ static SCM module_export_x_var;
|
|||
void
|
||||
scm_c_export (const char *name, ...)
|
||||
{
|
||||
if (name)
|
||||
{
|
||||
va_list ap;
|
||||
SCM names = scm_cons (scm_str2symbol (name), SCM_EOL);
|
||||
SCM *tail = SCM_CDRLOC (names);
|
||||
|
@ -201,6 +203,7 @@ scm_c_export (const char *name, ...)
|
|||
va_end (ap);
|
||||
scm_call_2 (SCM_VARIABLE_REF (module_export_x_var),
|
||||
scm_current_module (), names);
|
||||
}
|
||||
}
|
||||
|
||||
/* Environments */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue