changeset 16609:061d6e09ad62

Allow string escaping via "".
author reimar
date Tue, 27 Sep 2005 08:52:40 +0000
parents efec5fb96a13
children 744c3d53b670
files subopt-helper.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/subopt-helper.c	Tue Sep 27 08:33:33 2005 +0000
+++ b/subopt-helper.c	Tue Sep 27 08:52:40 2005 +0000
@@ -262,6 +262,15 @@
     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)];