mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Bgen now understands more constant definitions, but that means that a few which are not parseable in Python have to be blacklisted.
This commit is contained in:
parent
13681b73b5
commit
b1b78d85d3
7 changed files with 32 additions and 2 deletions
|
@ -39,6 +39,10 @@ class MyScanner(Scanner):
|
|||
return [
|
||||
"GetIconCacheData",
|
||||
"SetIconCacheData",
|
||||
# Constants with funny definitions
|
||||
"kSelectorAllHugeData",
|
||||
"kSelectorAllAvailableData",
|
||||
"svAllAvailableData",
|
||||
]
|
||||
|
||||
def makeblacklisttypes(self):
|
||||
|
@ -51,6 +55,9 @@ class MyScanner(Scanner):
|
|||
def makerepairinstructions(self):
|
||||
return [
|
||||
]
|
||||
|
||||
def writeinitialdefs(self):
|
||||
self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue