Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea64dea

Browse files
committed
another round
1 parent 8cebe38 commit ea64dea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Tools/bgen/bgen/scantools.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""\
2+
23
Tools for scanning header files in search of function prototypes.
34
45
Often, the function prototypes in header files contain enough information
@@ -353,6 +354,9 @@ def processrawspec(self, raw):
353354
if self.blacklisted(type, name):
354355
self.error("*** %s %s blacklisted", type, name)
355356
return
357+
returnlist = [(type, name, 'ReturnMode')]
358+
returnlist = self.repairarglist(name, returnlist)
359+
[(type, name, returnmode)] = returnlist
356360
arglist = self.extractarglist(args)
357361
arglist = self.repairarglist(name, arglist)
358362
if self.unmanageable(type, name, arglist):
@@ -481,3 +485,4 @@ def test():
481485

482486
if __name__ == '__main__':
483487
test()
488+

0 commit comments

Comments
 (0)