Use the intern function to share the strings used to describe various key bindings. This saves both performance, code size and memory use, but there is a pathological case where the user continually changes key bindings, resulting in more allocated memory than needed.

darcs-hash:20060621140344-ac50b-c7eb89a94a96538215f9a6737f8e4bacd6a801fb.gz
This commit is contained in:
axel
2006-06-22 00:03:44 +10:00
parent 407c96e943
commit 2076944268
5 changed files with 17 additions and 26 deletions

View File

@@ -2080,7 +2080,7 @@ int reader_get_cursor_pos()
}
void reader_run_command( wchar_t *cmd )
void reader_run_command( const wchar_t *cmd )
{
wchar_t *ft;