From a949fa9b6639b00072c03def23413ebef82d9ea0 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 27 Sep 2005 08:52:40 +0000 Subject: Allow string escaping via "". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16610 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subopt-helper.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'subopt-helper.c') diff --git a/subopt-helper.c b/subopt-helper.c index 9ae6669a05..0cf2299899 100644 --- a/subopt-helper.c +++ b/subopt-helper.c @@ -262,6 +262,15 @@ static char const * parse_str( char const * str, strarg_t * const valp ) match = &str[len]; } else + if (str[0] == '"') { + str = &str[1]; + match = strchr(str, '"'); + if (!match) + return NULL; + valp->len = match - str; + valp->str = str; + return &match[1]; + } if ( !match ) match = &str[strlen(str)]; -- cgit v1.2.3