toplevel vars added by syntax expansion are unbound
authorAndy Wingo <wingo@pobox.com>
Mon, 31 Jan 2011 20:02:24 +0000 (21:02 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 31 Jan 2011 20:09:20 +0000 (21:09 +0100)
commit05a5e5d6d075ddd12cbec98679fa3808caf1c2ef
tree67b393a29c3f75975659a1cf28ee96b2588b5f20
parentac6ce16bc9ae1de176da2d75d187a46bfdff825a
toplevel vars added by syntax expansion are unbound

* module/ice-9/psyntax.scm (chi-top): When adding to the toplevel
  environment at compile-time, default to undefined variables, not
  variables defined to #f.

* module/ice-9/psyntax-pp.scm: Regenerate.

* module/ice-9/boot-9.scm (module-add!): Add a new pre-modules version
  of this function, so we can add variables the environment, not just
  values.
  (module-define!): Use module-add!.
module/ice-9/boot-9.scm
module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm