Lines Matching refs:item

61     def add(self, item):
62 if item.name in self.contents:
65 raise ValueError(f'duplicate ABI item {item.name}')
66 self.contents[item.name] = item
81 for name, item in sorted(self.contents.items()):
82 if item.kind not in kinds:
84 if item.abi_only and not include_abi_only:
87 and item.ifdef is not None
88 and item.ifdef not in ifdef):
90 yield item
94 for item in self.contents.values():
95 fields = dataclasses.fields(item)
96 yield f"[{item.kind}.{item.name}]"
100 value = getattr(item, field.name)
124 """Information on one item (function, macro, struct, etc.)"""
157 item = itemclass(name=name, kind=kind, **item_data)
158 manifest.add(item)
203 def sort_key(item):
204 return item.name.lower()
207 item.name for item in manifest.select({'feature_macro'}) if item.windows
209 for item in sorted(
215 write(f'EXPORT_FUNC({item.name})')
219 for item in sorted(
225 write(f'EXPORT_DATA({item.name})')
244 for item in manifest.select(REST_ROLES.keys(), include_abi_only=False):
245 if item.ifdef:
246 ifdef_note = manifest.contents[item.ifdef].doc
250 'role': REST_ROLES[item.kind],
251 'name': item.name,
252 'added': item.added,
255 if item.kind == 'struct':
256 row['struct_abi_kind'] = item.struct_abi_kind
257 for member_name in item.members or ():
260 'name': f'{item.name}.{member_name}',
261 'added': item.added})
311 for item in items:
312 if item.name in (
318 if item.ifdef:
319 optional_items.setdefault(item.ifdef, []).append(item.name)
321 write(f' "{item.name}",')
398 item.name for item in manifest.select({'macro'})
406 expected_symbols = set(item.name for item in manifest.select(
426 expected_defs = set(item.name for item in manifest.select(
453 for item in sorted(items):
454 print(' -', item, file=sys.stderr)
598 for name, item in manifest.contents.items():
599 if name.startswith('_') and not item.abi_only: