aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-29 07:32:27 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-29 07:32:27 +1000
commit0e716763d80f56f6cb80ad9b673af8fff9296a95 (patch)
treee2042eddc8052c4f218cdc8dd0c8c883aade7662 /reader.c
parent50f5941a8234d2224bf3c74403c554cca6224b0e (diff)
Replace variadic functions like sb_append and contains_str with variadic macros without a sentinel.
darcs-hash:20070928213227-75c98-2e7b06242acfd5fd0bf02ce77c41d52374f2363a.gz
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/reader.c b/reader.c
index c52685da..7fdc4227 100644
--- a/reader.c
+++ b/reader.c
@@ -559,11 +559,11 @@ void reader_write_title()
don't. Since we can't see the underlying terminal below screen
there is no way to fix this.
*/
- if( !term || !CONTAINS( term, L"xterm", L"screen", L"nxterm", L"rxvt" ) )
+ if( !term || !contains( term, L"xterm", L"screen", L"nxterm", L"rxvt" ) )
{
char *n = ttyname( STDIN_FILENO );
- if( CONTAINS( term, L"linux" ) )
+ if( contains( term, L"linux" ) )
{
return;
}
@@ -1569,8 +1569,8 @@ static void handle_history( const wchar_t *new_str )
Check if the specified string is contained in the list, using
wcscmp as a comparison function
*/
-static int contains( const wchar_t *needle,
- array_list_t *haystack )
+static int contains_al( const wchar_t *needle,
+ array_list_t *haystack )
{
int i;
for( i=0; i<al_get_count( haystack ); i++ )
@@ -1720,7 +1720,7 @@ static void handle_token_history( int forward, int reset )
}
//debug( 3, L"ok pos" );
- if( !contains( tok_last( &tok ), &data->search_prev ) )
+ if( !contains_al( tok_last( &tok ), &data->search_prev ) )
{
free(str);
data->token_history_pos = tok_get_pos( &tok );