WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] '!' as separator for sxp?

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] '!' as separator for sxp?
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Tue, 27 Oct 2009 15:25:30 -0600
Delivery-date: Tue, 27 Oct 2009 14:26:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.18 (X11/20081112)
I'm trying to determine if '!' is in fact a separator in domain sxp. 
According to is_separator() in tools/python/xen/xend/sxp.py it is

    def is_separator(self, c):
        return self.in_class(c, '{}()<>[]!;')

But '!' is a valid character in domain sxp, e.g.

(vbd
  (protocol x86_64-abi)
  ...
  (mode w!)
  ...
)

With '!' being a separator, mode must be quoted in order to parse the
above sxp config correctly.  I cannot find any other use of '!' in
domain sxp - and certainly no use of it as a separator.

Does anyone know of the use of '!' as a separator?  If not, the attached
patch removes it from is_separator().

Regards,
Jim


    Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>



diff -r c4958b2edaa5 tools/python/xen/xend/sxp.py
--- a/tools/python/xen/xend/sxp.py      Tue Oct 27 12:52:57 2009 +0000
+++ b/tools/python/xen/xend/sxp.py      Tue Oct 27 15:23:37 2009 -0600
@@ -142,7 +142,7 @@
         return self.in_class(c, ' \t\n\v\f\r')
 
     def is_separator(self, c):
-        return self.in_class(c, '{}()<>[]!;')
+        return self.in_class(c, '{}()<>[];')
 
     def in_comment_class(self, c):
         return self.in_class(c, '#')
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] '!' as separator for sxp?, Jim Fehlig <=