refactorings for the module boot process
authorAndy Wingo <wingo@pobox.com>
Tue, 20 Apr 2010 12:53:38 +0000 (14:53 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 22 Apr 2010 13:36:42 +0000 (15:36 +0200)
commitbbd1d13333ad095cc7f0324a0dd3e9ee0d4703ad
tree8d9fe56e73b548aa4f9d18c34466024a0c91d4b5
parentdbbbc2a1d07cff63e5f979a125ec6394c6833c07
refactorings for the module boot process

* module/ice-9/boot-9.scm (%app): Bind %app and (%app modules) within
  the nested hierarchy before making (guile).
  (the-root-module): Define to '(%app modules guile) together with
  the-root-module's definition.
  (resolve-module): Define a "phase 2" resolve-module that only works on the
  root module.
  (try-module-autoload): No need for stub definition, as modules.c does
  not reference this binding.
  (resolve-module): Redefine, after modules have been loaded, to
  actually do its job, without any hacks for the pre-boot phase.

  Move up the boot code before the definition of resolve-module's
  helpers.
module/ice-9/boot-9.scm