mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Use wcscmp instead of
darcs-hash:20071013212606-35ec8-ba25df01017fb1c272ea9dae059fb4245e4c02da.gz
This commit is contained in:
parent
afa0ed124f
commit
0f6fe652a4
1 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ These functions are used for storing and retrieving tab-completion data, as well
|
|||
response)
|
||||
*/
|
||||
#ifdef USE_GETTEXT
|
||||
#define C_(wstr) ((wstr==L"")?L"":wgettext(wstr))
|
||||
#define C_(wstr) ((wcscmp(wstr, L"")==0)?L"":wgettext(wstr))
|
||||
#else
|
||||
#define C_(string) (string)
|
||||
#endif
|
||||
|
@ -294,7 +294,7 @@ static int condition_test( const wchar_t *condition )
|
|||
*/
|
||||
}
|
||||
|
||||
if( test_res == CC_TRUE )
|
||||
if( wcscmp( test_res, CC_TRUE ) == 0 )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -2087,7 +2087,7 @@ static void append_switch( string_buffer_t *out,
|
|||
{
|
||||
wchar_t *esc;
|
||||
|
||||
if( !argument || argument==L"" )
|
||||
if( !argument || wcscmp( argument, L"") == 0 )
|
||||
return;
|
||||
|
||||
esc = escape( argument, 1 );
|
||||
|
|
Loading…
Reference in a new issue