]> sourceware.org Git - systemtap.git/commitdiff
miscellany: support '\x' hex codes in string literal
authorSerguei Makarov <smakarov@redhat.com>
Tue, 25 Jun 2013 18:43:09 +0000 (14:43 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Tue, 25 Jun 2013 18:43:27 +0000 (14:43 -0400)
parse.cxx

index bbdc2ad783c267066e944a6ea6bfa00c8ae50f07..afee87b08c8ce7ab4dafaa3c20f5bc9454585963 100644 (file)
--- a/parse.cxx
+++ b/parse.cxx
@@ -1619,6 +1619,9 @@ skip:
              c = input_get ();
              switch (c)
                {
+                case 'x':
+                  if (strverscmp(session.compatible.c_str(), "2.3") < 0)
+                    goto the_default;
                case 'a':
                case 'b':
                case 't':
@@ -1634,9 +1637,9 @@ skip:
                  n->content.push_back('\\');
 
                   // fall through
-               default:
-                 n->content.push_back(c);
-                 break;
+               default: the_default:
+                    n->content.push_back(c);
+                    break;
                }
            }
          else
This page took 0.030638 seconds and 5 git commands to generate.