diff options
author | wm4 <wm4@nowhere> | 2012-09-22 14:54:57 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:32 +0200 |
commit | d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e (patch) | |
tree | 21fcbd89ad3d1c4ecf5e0e38795b232f49b86769 /bstr.h | |
parent | 84af1733800fd78af61b2ebf5be10673192b68fe (diff) | |
download | mpv-d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e.tar.bz2 mpv-d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e.tar.xz |
input: handle escapes always in command parser
Previously, both the command parser and property expansion
(m_properties_expand_string) handled escapes with '\'. Move all escape
handling into the command parser, and remove it from the property code.
This removes the need to escape strings twice for commands that use
property expansion.
The command parser is practically rewritten: it uses m_option for the
actual parsing, and reduces hackish C-string handling.
Diffstat (limited to 'bstr.h')
-rw-r--r-- | bstr.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -152,7 +152,7 @@ static inline int bstr_find0(struct bstr haystack, const char *needle) return bstr_find(haystack, bstr0(needle)); } -static inline int bstr_eatstart0(struct bstr *s, char *prefix) +static inline int bstr_eatstart0(struct bstr *s, const char *prefix) { return bstr_eatstart(s, bstr0(prefix)); } |