Skip to content

Commit de489c0

Browse files
committed
Parse function pointers more correctly in the PyAPI_DATA headers check
1 parent 6889905 commit de489c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/scripts/stable_abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def gcc_get_limited_api_definitions(headers):
459459
re.findall(r"__EXPORT_DATA\((.*?)\)", preprocesor_output)
460460
)
461461
stable_data = set(
462-
re.findall(r"__PyAPI_DATA\(.*?\)\s*\(?(.*?)\)?\s*;", preprocesor_output)
462+
re.findall(r"__PyAPI_DATA\(.*?\)[\s\*\(]*([^);]*)\)?.*;", preprocesor_output)
463463
)
464464
return stable_data | stable_exported_data | stable_functions
465465

0 commit comments

Comments
 (0)