diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-26 04:21:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-26 04:21:01 +0000 |
commit | 109e4822783c39090bc4c1d3a0ff670ca56839bb (patch) | |
tree | 254aaa5efec6981f9eb959186ebac139a83fda19 /winsup/cygwin/path.h | |
parent | b4b15309b769ca73bfda497ada7a9d8d6d3e0d7b (diff) | |
download | cygnal-109e4822783c39090bc4c1d3a0ff670ca56839bb.tar.gz cygnal-109e4822783c39090bc4c1d3a0ff670ca56839bb.tar.bz2 cygnal-109e4822783c39090bc4c1d3a0ff670ca56839bb.zip |
* winsup.h: Minor cleanup.
* path.h (path_conv::[]): New operator.
* syscalls.cc (_link): Use path_conv operators rather than methods, where
appropriate. Minor white space cleanup.
* include/cygwin/version.h: Bump DLL minor number.
* dcrt0.cc (sm): Make NO_COPY.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r-- | winsup/cygwin/path.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 50c5a743c..3d9b86c15 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -147,6 +147,7 @@ class path_conv operator const char *() {return path;} operator DWORD &() {return fileattr;} operator int &() {return (int) fileattr; } + char operator [](int i) const {return path[i];} BOOL is_device () {return devn != FH_BAD && devn != FH_DISK;} DWORD get_devn () {return devn == FH_BAD ? (DWORD) FH_DISK : devn;} short get_unitn () {return devn == FH_BAD ? 0 : unit;} |