| 817 | */ |
| 818 | |
| 819 | static void var_edit_translate_path( string * out, int32_t pos, VAR_EDITS * edits ) |
| 820 | { |
| 821 | if ( edits->to_windows ) |
| 822 | { |
| 823 | string result[ 1 ]; |
| 824 | int32_t translated; |
| 825 | |
| 826 | /* Translate path to os native format. */ |
| 827 | translated = path_translate_to_os( out->value + pos, result ); |
| 828 | if ( translated ) |
| 829 | { |
| 830 | string_truncate( out, pos ); |
| 831 | string_append( out, result->value ); |
| 832 | edits->to_slashes = 0; |
| 833 | } |
| 834 | |
| 835 | string_free( result ); |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | #endif |
| 840 |
no test coverage detected