aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-22 00:03:44 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-22 00:03:44 +1000
commit2076944268331c1938ffd0700155c8e7936c19ef (patch)
tree84dc496981e21e2102cfc647ae65bfab4e1863e3 /input.h
parent407c96e943d10c1595d0438ca81c098b78158905 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.h b/input.h
index 8b3a3175..ff6bb1cb 100644
--- a/input.h
+++ b/input.h
@@ -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