From: groepaz (groepaz_at_gmx.net)
Date: 2001-12-12 18:28:40
Hello Ullrich, Wednesday, December 12, 2001, 6:18:45 PM, you wrote: UvB> Hi! UvB> On Tue, Dec 11, 2001 at 08:40:01PM +0100, groepaz wrote: >> 1) at program start, get current working dir and remember that UvB> It's not as simple as that, since DOS has a current directory per drive. UvB> Things like UvB> d:..\..\include UvB> are completely legal. The example above would be a path relative to the UvB> current directory on drive d: err... args[0] does the trick fine ,=) >> 2) whenever you want to access files from the current working dir (as >> in, from where the tool has been launched), or any paths relative to >> it, prepend the path remembered before. >> 3) whenever you access (read) a sourcefile, set current working dir to >> directory of that file UvB> So if I have a path like the one above, and the next include directive is UvB> #include "/foo/bar/baz.h" UvB> which directory should be searched, d:/foo/bar, or <current drive>/foo/bar? UvB> Drive handling and the fact that there is a current directory for each drive UvB> makes the necessary decisions difficult. read above - non existant problem >> i think that might even work in a portable way (getcwd/setcwd should >> be available everywhere no?) - well except a "collapsepath" >> functionality would be needed for "OSes" like ms-dos... UvB> Path handling in Windows/DOS is a mess, especially of you start to add UNC UvB> network paths (which are also legal paths). shouldnt matter though if you work like i wrote above.... UvB> So I would be really glad if you could find another solution for your UvB> problem :-) i noticed that - yes the other solution is patching the assembler myself ;=P -- Best regards, groepaz mailto:groepaz_at_gmx.net ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET