]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - scripts/kconfig/symbol.c
Kconfig: Enable usage of escape char '\' in string values
[people/ms/u-boot.git] / scripts / kconfig / symbol.c
index 7caabdb51c647e12e35b500bdebd262ba1545eb0..ab339ebbe30b72ff02d6603598501d8f3cad1c8d 100644 (file)
@@ -912,49 +912,6 @@ const char *sym_expand_string_value(const char *in)
        return res;
 }
 
-const char *sym_escape_string_value(const char *in)
-{
-       const char *p;
-       size_t reslen;
-       char *res;
-       size_t l;
-
-       reslen = strlen(in) + strlen("\"\"") + 1;
-
-       p = in;
-       for (;;) {
-               l = strcspn(p, "\"\\");
-               p += l;
-
-               if (p[0] == '\0')
-                       break;
-
-               reslen++;
-               p++;
-       }
-
-       res = xmalloc(reslen);
-       res[0] = '\0';
-
-       strcat(res, "\"");
-
-       p = in;
-       for (;;) {
-               l = strcspn(p, "\"\\");
-               strncat(res, p, l);
-               p += l;
-
-               if (p[0] == '\0')
-                       break;
-
-               strcat(res, "\\");
-               strncat(res, p++, 1);
-       }
-
-       strcat(res, "\"");
-       return res;
-}
-
 struct sym_match {
        struct symbol   *sym;
        off_t           so, eo;