diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-15 13:07:17 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-15 13:07:17 -0700 |
commit | bcf3accb7425f2cee3c679f49776bc08d78d323a (patch) | |
tree | 0a132b01f695420aa815ed5c8a4321da5fa39305 /input.h | |
parent | 1c5556334dc6fde832db9c8fe232efe117e2381e (diff) |
Eliminate a static string from input_terminfo_get_sequence
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -117,10 +117,10 @@ bool input_mapping_get(const wcstring &sequence, wcstring &cmd); /** Return the sequence for the terminfo variable of the specified name. - If no terminfo variable of the specified name could be found, return 0 and set errno to ENOENT. - If the terminfo variable does not have a value, return 0 and set errno to EILSEQ. + If no terminfo variable of the specified name could be found, return false and set errno to ENOENT. + If the terminfo variable does not have a value, return false and set errno to EILSEQ. */ -const wchar_t *input_terminfo_get_sequence(const wchar_t *name); +bool input_terminfo_get_sequence(const wchar_t *name, wcstring *out_seq); /** Return the name of the terminfo variable with the specified sequence */ bool input_terminfo_get_name(const wcstring &seq, wcstring &name); |