diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-23 20:48:47 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-23 20:48:47 -0800 |
commit | 4dfe36feb16923b454ea2e44cc512adaff879127 (patch) | |
tree | b4887259911c4dd221249143cad7299d42adf59b /input.cpp | |
parent | 0d1c2a3b2ae8f3bf0691a81bc2a2fcfb49eb86ae (diff) |
Migrate input_function_get_names to wcstring_list_t
Diffstat (limited to 'input.cpp')
-rw-r--r-- | input.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -835,16 +835,10 @@ void input_terminfo_get_names( array_list_t *lst, int skip_null ) } } -void input_function_get_names( array_list_t *lst ) +wcstring_list_t input_function_get_names( void ) { - size_t i; - - CHECK( lst, ); - - for( i=0; i<(sizeof(name_arr)/sizeof(wchar_t *)); i++ ) - { - al_push( lst, name_arr[i] ); - } + size_t count = sizeof name_arr / sizeof *name_arr; + return wcstring_list_t(name_arr, name_arr + count); } wchar_t input_function_get_code( const wcstring &name ) |