look for an import beside the file it is written in
Imports were looked for from the unit's directory, so a module in a subdirectory could not import its neighbours: a pub import failed, a private one lost its handle declarations, and --public-interface changed with where sexc ran.
This commit is contained in:
@@ -115,9 +115,9 @@
|
||||
(cons sex-form acc))
|
||||
(('comment . _) (cons sex-form acc))
|
||||
|
||||
((or ('import . modules)
|
||||
('pub 'import . modules))
|
||||
(process-imports (get-modules-public-forms modules) acc))
|
||||
((or ('import . _)
|
||||
('pub 'import . _))
|
||||
(process-imports (get-modules-public-forms sex-form) acc))
|
||||
|
||||
((or ('defmacro . rest)
|
||||
('pub 'defmacro . rest)) (defmacro rest) acc)
|
||||
|
||||
Reference in New Issue
Block a user