diff options
author | 2008-01-14 02:47:47 +1000 | |
---|---|---|
committer | 2008-01-14 02:47:47 +1000 | |
commit | 87db9517e928c9007c66ed5b23836db2dad2b693 (patch) | |
tree | edfe373687a5afb9ba5360a456e3096d7bf2df85 /input.c | |
parent | ab3502fc8b25469429af25a94306346af590428c (diff) |
Add lots of new code comments.
darcs-hash:20080113164747-75c98-9d0cefd27be7aef7ba60772616d9da7e6bb52912.gz
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 25 |
1 files changed, 9 insertions, 16 deletions
@@ -232,6 +232,9 @@ static const wchar_t code_arr[] = */ static array_list_t mappings = {0,0,0}; +/** + List of all terminfo mappings + */ static array_list_t *terminfo_mappings = 0; @@ -240,28 +243,18 @@ static array_list_t *terminfo_mappings = 0; */ static int is_init = 0; +/** + Initialize terminfo. + */ static void input_terminfo_init(); +/** + Deallocate memory used by terminfo. Or at least try to. Terminfo leaks. + */ static void input_terminfo_destroy(); /** Returns the function description for the given function code. */ -/* -static const wchar_t *input_get_desc( wchar_t c ) -{ - - int i; - for( i = 0; i<(sizeof( code_arr )/sizeof(wchar_t)) ; i++ ) - { - if( c == code_arr[i] ) - { - return desc_arr[i]; - } - } - return 0; -} -*/ - void input_mapping_add( const wchar_t *sequence, const wchar_t *command ) |