I'd prefer for the include path not to be changed to include the directory
of the asm file being assembled - getting that behaviour with z80asm at
present is easy (add an include directory).
It's not quite the same thing.
For example, if you provide source code and someone copies it to his own
machine, the person doing the copying will have to manually add include
paths for the source to assemble. You could say that the person can
assemble from the copied code's root directory if the copied code uses
includes rooted at its root dir only but then if the copied code gets
placed in some subdir of a larger tree, that subdir still has to be
manually added to the include path by the person doing the copying. If
many source packages are copied, there could be a lot of additional include
paths that have to be manually specified.
For the person that came up with the issue, I think it has to do with how
source code organization is envisioned. The way it is now is similar to
how C organizes is its includes with <> used to indicate a search path from
the standard include dir and "" used to indicate a search path from the
current working dir. This (and z80asm's emulations of this) works well for
the c library and its implementation. However the user may very well have
a different view of source code organization where he expects a source
file's includes to be relative to the dir the source file is located in.
It's not always a simple matter to add a new include path to search a new
dir to solve this as the user's source files may be distributed in a tree
with desired include paths relative to source file placement such that one
would have to add a whole bunch of include paths to make sure all the
source directories were searched. IYSWIM
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape