diff options
Diffstat (limited to 'libcpp/files.cc')
| -rw-r--r-- | libcpp/files.cc | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/libcpp/files.cc b/libcpp/files.cc index d80c4bf..f8b3312 100644 --- a/libcpp/files.cc +++ b/libcpp/files.cc @@ -2335,6 +2335,16 @@ _cpp_get_file_name (_cpp_file *file) return file->name; } +/* Get the path associated with the _cpp_file F. The path includes + the base name from the include directive and the directory it was + found in via the search path. */ + +const char * +_cpp_get_file_path (_cpp_file *f) +{ + return f->path; +} + /* Inteface to file statistics record in _cpp_file structure. */ struct stat * _cpp_get_file_stat (_cpp_file *file) @@ -2574,24 +2584,6 @@ validate_pch (cpp_reader *pfile, _cpp_file *file, const char *pchname) return valid; } -/* Get the path associated with the _cpp_file F. The path includes - the base name from the include directive and the directory it was - found in via the search path. */ - -const char * -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. */ |
