+2000-08-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * environments.h (SCM_IMPORT_ENVIRONMENT_P,
+ SCM_EXPORT_ENVIRONMENT_P): Before fetching the environment
+ functions, make sure that we really got an environment.
+
2000-09-03 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
* validate.h (SCM_VALIDATE_NUMBER_DEF_COPY): New macro.
extern void *scm_type_import_environment;
#define SCM_IMPORT_ENVIRONMENT_P(env) \
- (SCM_ENVIRONMENT_FUNCS (env) == scm_type_import_environment)
+ (SCM_ENVIRONMENT_P (env) \
+ && SCM_ENVIRONMENT_FUNCS (env) == scm_type_import_environment)
extern SCM scm_make_import_environment (SCM imports, SCM conflict_proc);
extern SCM scm_import_environment_p (SCM env);
extern void *scm_type_export_environment;
#define SCM_EXPORT_ENVIRONMENT_P(env) \
- (SCM_ENVIRONMENT_FUNCS (env) == scm_type_export_environment)
+ (SCM_ENVIRONMENT_P (env) \
+ && SCM_ENVIRONMENT_FUNCS (env) == scm_type_export_environment)
extern SCM scm_make_export_environment (SCM private, SCM signature);
extern SCM scm_export_environment_p (SCM env);