diff options
author | axel <axel@liljencrantz.se> | 2006-06-22 00:03:44 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-22 00:03:44 +1000 |
commit | 2076944268331c1938ffd0700155c8e7936c19ef (patch) | |
tree | 84dc496981e21e2102cfc647ae65bfab4e1863e3 /input.h | |
parent | 407c96e943d10c1595d0438ca81c098b78158905 (diff) |
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
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,6 +111,6 @@ void input_parse_inputrc_line( wchar_t *cmd ); /** Returns the function for the given function name. */ -wchar_t input_get_code( wchar_t *name ); +wchar_t input_get_code( const wchar_t *name ); #endif |