Re: Patch for relative paths
David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Tue, 22 Apr 2003 20:20:33 -0400
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Message-ID | <[email protected]> |
I haven't tried the patch just yet but I have questions about the logic : env->meta.filename = moto_strdup(env, filename + strlen(getcwd(cwd, 255)) + 1); How would this work in the case where someone includes (or readdefs) a file from the parent directory with an error in it ? -Dave On Sunday, April 20, 2003, at 01:16 PM, Stefano Corsi wrote: > Hi Dave, > > here comes the patch for relative paths in error messages. > I created a -z option to force the output of absolute paths anyway. If > you pass -z to moto then the UNSAFE_MODE_FLAG is set (motocodes.h). > I decided to call getcwd() every time (in moto.l) for not having some > ither global variable. Tell me if I'm wrong. > Modified also the 2 failing tests. > > Stefano > > <relmsg.patch>