mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Remove a few warnings
darcs-hash:20060116134244-ac50b-123a615eb94803f721213d81b676893bc4159104.gz
This commit is contained in:
9
input.c
9
input.c
@@ -224,6 +224,7 @@ wchar_t input_get_code( wchar_t *name )
|
|||||||
/**
|
/**
|
||||||
Returns the function name for the given function code.
|
Returns the function name for the given function code.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
static const wchar_t *input_get_name( wchar_t c )
|
static const wchar_t *input_get_name( wchar_t c )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -237,10 +238,11 @@ static const wchar_t *input_get_name( wchar_t c )
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
Returns the function description for the given function code.
|
Returns the function description for the given function code.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
static const wchar_t *input_get_desc( wchar_t c )
|
static const wchar_t *input_get_desc( wchar_t c )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -254,7 +256,7 @@ static const wchar_t *input_get_desc( wchar_t c )
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
void input_set_mode( wchar_t *name )
|
void input_set_mode( wchar_t *name )
|
||||||
{
|
{
|
||||||
current_mode_mappings = (array_list_t *)hash_get( &all_mappings, name );
|
current_mode_mappings = (array_list_t *)hash_get( &all_mappings, name );
|
||||||
@@ -327,6 +329,7 @@ void add_mapping( const wchar_t *mode,
|
|||||||
Compare sort order for two keyboard mappings. This function is made
|
Compare sort order for two keyboard mappings. This function is made
|
||||||
to be suitable for use with the qsort method.
|
to be suitable for use with the qsort method.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
static int mapping_compare( const void *a, const void *b )
|
static int mapping_compare( const void *a, const void *b )
|
||||||
{
|
{
|
||||||
mapping *c = *(mapping **)a;
|
mapping *c = *(mapping **)a;
|
||||||
@@ -337,7 +340,7 @@ static int mapping_compare( const void *a, const void *b )
|
|||||||
return wcscmp( c->seq_desc, d->seq_desc );
|
return wcscmp( c->seq_desc, d->seq_desc );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ static int wildcard_complete_internal( const wchar_t *orig,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wchar_t *this_desc = desc;
|
const wchar_t *this_desc = desc;
|
||||||
|
|
||||||
if( desc_func )
|
if( desc_func )
|
||||||
{
|
{
|
||||||
@@ -161,7 +161,7 @@ static int wildcard_complete_internal( const wchar_t *orig,
|
|||||||
it. If it returns something, use that as the
|
it. If it returns something, use that as the
|
||||||
description.
|
description.
|
||||||
*/
|
*/
|
||||||
wchar_t *func_desc = desc_func( orig );
|
const wchar_t *func_desc = desc_func( orig );
|
||||||
if( func_desc )
|
if( func_desc )
|
||||||
this_desc = func_desc;
|
this_desc = func_desc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user