Minor code cleanup, don't use expand_escape and expand_unescape any more

darcs-hash:20060206151552-ac50b-e2229d096926461f643fdcdfc79ef1ff01344a35.gz
This commit is contained in:
axel
2006-02-07 01:15:52 +10:00
parent cf3d30d4e4
commit e756f7d619
6 changed files with 13 additions and 46 deletions

View File

@@ -846,7 +846,7 @@ static const wchar_t *complete_get_desc_suffix( const wchar_t *suff_orig )
}
}
wchar_t *tmp = expand_escape( suff, 0 );
wchar_t *tmp = escape( suff, 0 );
free(suff);
suff = tmp;
@@ -1088,7 +1088,7 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp )
return;
}
esc = expand_escape( cmd_start, 1 );
esc = escape( cmd_start, 1 );
lookup_cmd = wcsdupcat( L"__fish_describe_command ", esc );
free(esc);
@@ -1524,7 +1524,7 @@ void complete_load( wchar_t *cmd,
{
if( !tm || (*tm != buf.st_mtime ) )
{
wchar_t *esc = expand_escape( (wchar_t *)path.buff, 1 );
wchar_t *esc = escape( (wchar_t *)path.buff, 1 );
wchar_t *src_cmd = wcsdupcat( L". ", esc );
if( !tm )
@@ -2134,7 +2134,7 @@ static void append_switch( string_buffer_t *out,
if( !argument || argument==L"" )
return;
esc = expand_escape( argument, 1 );
esc = escape( argument, 1 );
sb_printf( out, L" --%ls %ls", opt, esc );
free(esc);
}