mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
another round
This commit is contained in:
parent
8cebe3815f
commit
ea64dea05f
1 changed files with 5 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
"""\
|
"""\
|
||||||
|
|
||||||
Tools for scanning header files in search of function prototypes.
|
Tools for scanning header files in search of function prototypes.
|
||||||
|
|
||||||
Often, the function prototypes in header files contain enough information
|
Often, the function prototypes in header files contain enough information
|
||||||
|
|
@ -353,6 +354,9 @@ class Scanner:
|
||||||
if self.blacklisted(type, name):
|
if self.blacklisted(type, name):
|
||||||
self.error("*** %s %s blacklisted", type, name)
|
self.error("*** %s %s blacklisted", type, name)
|
||||||
return
|
return
|
||||||
|
returnlist = [(type, name, 'ReturnMode')]
|
||||||
|
returnlist = self.repairarglist(name, returnlist)
|
||||||
|
[(type, name, returnmode)] = returnlist
|
||||||
arglist = self.extractarglist(args)
|
arglist = self.extractarglist(args)
|
||||||
arglist = self.repairarglist(name, arglist)
|
arglist = self.repairarglist(name, arglist)
|
||||||
if self.unmanageable(type, name, arglist):
|
if self.unmanageable(type, name, arglist):
|
||||||
|
|
@ -481,3 +485,4 @@ def test():
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
test()
|
test()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue