2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 12:22:17 +00:00

Restore cygwin/vms only function.

fixes #541
This commit is contained in:
Rene Rivera
2020-02-27 22:58:14 -06:00
parent d52d7c3e33
commit aa9b558bb2

View File

@@ -772,6 +772,35 @@ static void var_edit_file( char const * in, string * out, VAR_EDITS * edits )
}
#if defined( OS_CYGWIN ) || defined( OS_VMS )
/*
* var_edit_translate_path() - translate path to os native format.
*/
static void var_edit_translate_path( string * out, size_t pos, VAR_EDITS * edits )
{
if ( edits->to_windows )
{
string result[ 1 ];
int translated;
/* Translate path to os native format. */
translated = path_translate_to_os( out->value + pos, result );
if ( translated )
{
string_truncate( out, pos );
string_append( out, result->value );
edits->to_slashes = 0;
}
string_free( result );
}
}
#endif
/*
* var_edit_shift() - do upshift/downshift & other mods.
*/