Lines Matching refs:attrs
47 def __init__(self, cols, attrs):
50 self.slot = attrs['slot']
51 self.hidden = attrs['hidden']
52 self.alias = attrs['alias']
53 self.handcode = attrs['handcode']
148 attrs = {
155 # post-process attrs
156 if attrs['alias']:
158 alias = entry_dict[attrs['alias']]
160 raise Exception('failed to alias %s' % attrs['alias'])
163 attrs['alias'] = alias
164 if attrs['handcode']:
165 attrs['handcode'] = func.static_glx_name(name)
167 attrs['handcode'] = None
178 ent = ABIEntry(cols, attrs)
189 attrs = {
201 attrs['slot'] = int(val[5:])
203 attrs['hidden'] = True
205 attrs['alias'] = val[6:]
207 attrs['handcode'] = val[9:]
214 return (attrs, cols)
225 attrs, cols = abi_parse_line(line)
228 if attrs['alias']:
230 alias = entry_dict[attrs['alias']]
232 raise Exception('failed to alias %s' % attrs['alias'])
236 attrs['alias'] = alias
241 if attrs['slot'] < 0:
242 attrs['slot'] = slot
243 elif attrs['slot'] != slot:
246 ent = ABIEntry(cols, attrs)