X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fcppfiles.c;h=65db6db5d570f532f9ccd82a911a911ad17099ef;hp=fab78fa2c25df59df47a3bfa95b37a957a9f9cef;hb=d6c39c7a53f108fa9b43ccee34cd7dd78de2df39;hpb=0a24f9a7bcce8db4d983cbd2dfdffca440f712d6 diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index fab78fa2c25..65db6db5d57 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -362,7 +362,7 @@ search_path_exhausted (cpp_reader *pfile, const char *header, _cpp_file *file) if (func && file->dir == NULL) { - if ((file->path = func (pfile, header)) != NULL) + if ((file->path = func (pfile, header, &file->dir)) != NULL) { if (open_file (file)) return true; @@ -1316,6 +1316,14 @@ cpp_get_path (struct _cpp_file *f) return f->path; } +/* Get the directory associated with the _cpp_file F. */ + +cpp_dir * +cpp_get_dir (struct _cpp_file *f) +{ + return f->dir; +} + /* Get the cpp_buffer currently associated with the cpp_reader PFILE. */