1
Fork 0
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:
Marius Vollmer 2001-11-20 22:52:46 +00:00
parent 782f169b37
commit 3f831f22ae

View file

@ -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 */