diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-17 23:12:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-17 23:12:11 +0000 |
commit | 4199e1e6fb0ec02c3da3983da88e633dc19a6841 (patch) | |
tree | ec4f042cc738796b10ba1942ed1d22b54252806e | |
parent | 273861e3aa046004fa198e0fce26cbf6e984ae7e (diff) | |
download | newlib-4199e1e6fb0ec02c3da3983da88e633dc19a6841.zip newlib-4199e1e6fb0ec02c3da3983da88e633dc19a6841.tar.gz newlib-4199e1e6fb0ec02c3da3983da88e633dc19a6841.tar.bz2 |
* path.h (path_conv::add_ext_from_sym): Declare.
* path.cc (path_conv::add_ext_from_sym): Convert to pure inline method.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 5 | ||||
-rw-r--r-- | winsup/cygwin/path.h | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ca94612..bb52a53 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 17 19:05:44 2001 Christopher Faylor <cgf@cygnus.com> + + * path.h (path_conv::add_ext_from_sym): Declare. + * path.cc (path_conv::add_ext_from_sym): Convert to pure inline method. + Tue Apr 17 18:50:00 2001 Corinna Vinschen <corinna@vinschen.de> * path.cc (windows_device_names): Add missing NULL element. diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 7992a89..fc8eae6 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -177,11 +177,8 @@ pathmatch (const char *path1, const char *path2) : strcasematch (path1, path2); } -#define add_ext_from_sym(s) \ - (add_ext_from_sym_ (this->path, this->known_suffix, s)) - inline void -add_ext_from_sym_ (char *path, char *known_suffix, symlink_info &sym) +path_conv::add_ext_from_sym (symlink_info &sym) { if (sym.ext_here && *sym.ext_here) { diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index d7b5d74..49b4759 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -52,9 +52,11 @@ enum path_types PATH_HASACLS = 0x80000000 }; +class symlink_info; class path_conv { char path[MAX_PATH]; + void add_ext_from_sym (symlink_info&); public: unsigned path_flags; |