From 109e4822783c39090bc4c1d3a0ff670ca56839bb Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 26 Jun 2002 04:21:01 +0000 Subject: * 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. --- winsup/cygwin/path.h | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/path.h') 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;} -- cgit v1.2.3