diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-27 08:52:40 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-27 08:52:40 +0000 |
commit | a949fa9b6639b00072c03def23413ebef82d9ea0 (patch) | |
tree | 16762677f083027c0bd151fb8fc96659d7d01fad /subopt-helper.c | |
parent | 9f24b5c71f2ef8d8d6343e27acda8ad728625e1b (diff) | |
download | mpv-a949fa9b6639b00072c03def23413ebef82d9ea0.tar.bz2 mpv-a949fa9b6639b00072c03def23413ebef82d9ea0.tar.xz |
Allow string escaping via "".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16610 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subopt-helper.c')
-rw-r--r-- | subopt-helper.c | 9 |
1 files changed, 9 insertions, 0 deletions
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)]; |