* path.cc (conv_path_list): Take cygwin_conv_path_t as third parameter.
Allow all types of CCP conversions. Accommodate throughout. (cygwin_conv_path): Use current ANSI or OEM codepage for WIN_A conversions, depending on current file API codepage setting. (cygwin_conv_path_list): Allow all CCP conversion types. * include/sys/cygwin.h (CCP_CONVTYPE_MASK): Add to cygwin_conv_path_t enum for convenience.
This commit is contained in:
@ -50,6 +50,8 @@ enum
|
||||
CCP_WIN_A_TO_POSIX, /* from is char*, to is char* */
|
||||
CCP_WIN_W_TO_POSIX, /* from is wchar_t*, to is char* */
|
||||
|
||||
CCP_CONVTYPE_MASK = 3,
|
||||
|
||||
/* Or these values to the above as needed. */
|
||||
CCP_ABSOLUTE = 0, /* Request absolute path (default). */
|
||||
CCP_RELATIVE = 0x100 /* Request to keep path relative. */
|
||||
|
Reference in New Issue
Block a user