]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
another round
authorGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 10:11:31 +0000 (10:11 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 10:11:31 +0000 (10:11 +0000)
Tools/bgen/bgen/scantools.py

index e6f9b9ad6b8149a9ae32b527c7a53a622673ae37..4a6fd7cb2416793313958520693b08c4b8579a28 100644 (file)
@@ -1,4 +1,5 @@
 """\
+
 Tools for scanning header files in search of function prototypes.
 
 Often, the function prototypes in header files contain enough information
@@ -353,6 +354,9 @@ class Scanner:
                if self.blacklisted(type, name):
                        self.error("*** %s %s blacklisted", type, name)
                        return
+               returnlist = [(type, name, 'ReturnMode')]
+               returnlist = self.repairarglist(name, returnlist)
+               [(type, name, returnmode)] = returnlist
                arglist = self.extractarglist(args)
                arglist = self.repairarglist(name, arglist)
                if self.unmanageable(type, name, arglist):
@@ -481,3 +485,4 @@ def test():
 
 if __name__ == '__main__':
        test()
+