vk/update-aliases.py: simplify addition of other concatenated prefixes
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26484>
This commit is contained in:
committed by
Marge Bot
parent
3fe90f2957
commit
04517193c5
@@ -61,9 +61,12 @@ def main(paths: list[str]):
|
||||
Entrypoint; perform the search for all the aliases and replace them.
|
||||
"""
|
||||
def prepare_identifier(identifier: str) -> str:
|
||||
# vk_find_struct() prepends `VK_STRUCTURE_TYPE_`, so that prefix
|
||||
# might not appear in the code
|
||||
identifier = remove_prefix(identifier, 'VK_STRUCTURE_TYPE_')
|
||||
for prefix in [
|
||||
# vk_find_struct() prepends `VK_STRUCTURE_TYPE_`, so that prefix
|
||||
# might not appear in the code
|
||||
'VK_STRUCTURE_TYPE_',
|
||||
]:
|
||||
identifier = remove_prefix(identifier, prefix)
|
||||
return identifier
|
||||
|
||||
aliases = {}
|
||||
|
||||
Reference in New Issue
Block a user