From d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 22 Sep 2012 14:54:57 +0200 Subject: 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. --- bstr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bstr.h') 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)); } -- cgit v1.2.3