From: Eamon Walsh Date: Fri, 16 May 2008 18:53:49 +0000 (-0400) Subject: Add is_simple boolean attribute for plain integer types. X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=0212c5ea88f4387a1a200ef80b2e844d01ace470;p=free-sw%2Fxcb%2Fproto Add is_simple boolean attribute for plain integer types. --- diff --git a/xcbgen/types.py b/xcbgen/types.py index a84420f..ce2842f 100644 --- a/xcbgen/types.py +++ b/xcbgen/types.py @@ -25,6 +25,7 @@ class Type(object): self.resolved = False # Screw isinstance(). + self.is_simple = False self.is_list = False self.is_expr = False self.is_container = False @@ -82,6 +83,7 @@ class SimpleType(Type): ''' def __init__(self, name, size): Type.__init__(self, name) + self.is_simple = True self.size = size self.nmemb = 1