mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- Use weaklink generators so we can support OSX-only calls without crashing on OS9.
- Convert CFString to/from Python strings. Currently always MacRoman, to be fixed later (as is unicode support). Python->CFString conversion is automatic.
This commit is contained in:
parent
c468fd28b6
commit
340d98f564
2 changed files with 41 additions and 5 deletions
|
@ -83,9 +83,11 @@ class MyScanner(Scanner_OSX):
|
|||
"CFStringGetPascalStringPtr", # TBD automatically
|
||||
"CFStringGetCStringPtr",
|
||||
"CFStringGetCharactersPtr",
|
||||
"CFStringGetCString",
|
||||
"CFStringGetCharacters",
|
||||
# OSX only, to be done
|
||||
"CFURLCreateWithFileSystemPath",
|
||||
"CFURLCreateStringWithFileSystemPath",
|
||||
## "CFURLCreateWithFileSystemPath",
|
||||
## "CFURLCreateStringWithFileSystemPath",
|
||||
]
|
||||
|
||||
def makegreylist(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue