* path.h (path_conv): Reorganize slightly.

This commit is contained in:
Christopher Faylor 2003-02-13 03:13:37 +00:00
parent 939d19b0da
commit 75c8a70c95
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-02-12 Christopher Faylor <cgf@redhat.com>
* path.h (path_conv): Reorganize slightly.
2003-02-12 Christopher Faylor <cgf@redhat.com> 2003-02-12 Christopher Faylor <cgf@redhat.com>
* fhandler_tty.cc (process_input): Add sanity check to ensure that * fhandler_tty.cc (process_input): Add sanity check to ensure that

View File

@ -67,9 +67,9 @@ struct fs_info
DWORD drive_type; DWORD drive_type;
bool update (const char *); bool update (const char *);
}; };
class path_conv class path_conv
{ {
char path[MAX_PATH];
DWORD fileattr; DWORD fileattr;
fs_info fs; fs_info fs;
void add_ext_from_sym (symlink_info&); void add_ext_from_sym (symlink_info&);
@ -81,7 +81,6 @@ class path_conv
DWORD devn; DWORD devn;
int unit; int unit;
BOOL case_clash; BOOL case_clash;
char *normalized_path;
int isdisk () const { return path_flags & PATH_ISDISK;} int isdisk () const { return path_flags & PATH_ISDISK;}
int isremote () const {return fs.is_remote_drive;} int isremote () const {return fs.is_remote_drive;}
@ -160,6 +159,9 @@ class path_conv
DWORD volser () { return fs.serial; } DWORD volser () { return fs.serial; }
const char *volname () {return fs.name; } const char *volname () {return fs.name; }
void fillin (HANDLE h); void fillin (HANDLE h);
char *normalized_path;
private:
char path[MAX_PATH];
}; };
/* Symlink marker */ /* Symlink marker */