summaryrefslogtreecommitdiff
path: root/xcbgen
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2017-01-20 14:07:01 +0100
committerChristian Linhart <chris@demorecorder.com>2017-03-11 10:48:30 +0100
commitf521896716a49331ae6ccc75a5bab7e47aa2aca8 (patch)
tree2018b8b7b62f9b37bb8e9e45af867e195246f798 /xcbgen
parenta909451a51a907ee90969213a56e4e6ecc0b03de (diff)
downloadxcb-proto-f521896716a49331ae6ccc75a5bab7e47aa2aca8.tar.gz
move symboltable lookup of sumof expr to the parser
Set the lenfield of a sumof expression object, so that libxcb or other generators won't need to look it up. This object is trivially available in the parser but needs a complex lookup in generators. Signed-off-by: Christian Linhart <chris@demorecorder.com>
Diffstat (limited to 'xcbgen')
-rw-r--r--xcbgen/expr.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/xcbgen/expr.py b/xcbgen/expr.py
index a716d34..bf46c63 100644
--- a/xcbgen/expr.py
+++ b/xcbgen/expr.py
@@ -169,6 +169,7 @@ class Expression(object):
else:
self.lenfield_parent = p
self.lenfield_type = fields[self.lenfield_name].field_type
+ self.lenfield = fields[self.lenfield_name]
break
self.recursive_resolve_tasks(module, parents)