projects
/
free-sw
/
xcb
/
proto
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82f981d
)
Add is_simple boolean attribute for plain integer types.
author
Eamon Walsh
<ewalsh@tycho.nsa.gov>
Fri, 16 May 2008 18:53:49 +0000
(14:53 -0400)
committer
Eamon Walsh
<ewalsh@moss-charon.epoch.ncsc.mil>
Fri, 16 May 2008 18:53:49 +0000
(14:53 -0400)
xcbgen/types.py
patch
|
blob
|
history
diff --git
a/xcbgen/types.py
b/xcbgen/types.py
index
a84420f
..
ce2842f
100644
(file)
--- 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