summaryrefslogtreecommitdiffstats
path: root/bstr.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-22 14:54:57 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commitd232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e (patch)
tree21fcbd89ad3d1c4ecf5e0e38795b232f49b86769 /bstr.h
parent84af1733800fd78af61b2ebf5be10673192b68fe (diff)
downloadmpv-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bstr.h b/bstr.h
index 5f04a75db8..f6ce407a80 100644
--- a/bstr.h
+++ b/bstr.h
@@ -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));
}