diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-05-16 14:53:49 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil> | 2008-05-16 14:53:49 -0400 |
commit | 0212c5ea88f4387a1a200ef80b2e844d01ace470 (patch) | |
tree | 6d0ff5dd2bcf90ac19b89c8f03d9dd00e715b09b /xcbgen | |
parent | 82f981d1bda43fc3b3c8712be578c6d26e3245a5 (diff) |
Add is_simple boolean attribute for plain integer types.
Diffstat (limited to 'xcbgen')
-rw-r--r-- | xcbgen/types.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |