cvs commit: hugs98/src connect.h evaluator.c machdep.c machdep.h opts.c parser.y script.c storage.c
Fri, 14 Mar 2003 05:31:44 -0800

ross        2003/03/14 05:31:44 PST

  Modified files:
    src         connect.h evaluator.c 
                         machdep.c machdep.h opts.c parser.y 
                         script.c storage.c 
  Change search strategy for modules (treatment of filenames is unaffected).
  * the directory of the importing module is now added to the front of the
    search path only if that module was found relative to that directory,
    or was specified as an explicit filename.  The -X option is now ignored.
  * failure to map a modid to a filename is now reported immediately,
    and thus the error refers to the importing module, and says that that
    it failed to find a module.  (Formerly inputScript() tried the module
    name as a file name, with odd results.)
  * only `import "filename"' doesn't get reported against its parent, but
    maybe we should get rid of it.
  * more entry points for script searching (3) but they're simpler.
    The separation between filenames and modids in now done in script.c
    rather than machdep.c.  findMPathname() no longer modifies its argument.
  * the order of the generators changes from
        [ d++f++e | f <- files, d <- dirs, e <- hugsSuffixes ]
        [ d++f++e | d <- dirs, f <- files, e <- hugsSuffixes ]
    This is clearer for end users, similar to GHC, and more consistent
    with the above changes.
  I haven't taken care to keep the currently disabled scanSubDirs feature
  working (it won't work well with hierarchical libs anyway).
  Revision  Changes    Path
  1.47      +1 -1      hugs98/src/
  1.73      +5 -4      hugs98/src/connect.h
  1.6       +2 -9      hugs98/src/evaluator.c
  1.85      +73 -81    hugs98/src/machdep.c
  1.4       +2 -0      hugs98/src/machdep.h
  1.5       +2 -2      hugs98/src/opts.c
  1.39      +3 -3      hugs98/src/parser.y
  1.11      +47 -9     hugs98/src/script.c
  1.70      +3 -3      hugs98/src/storage.c