Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b2fcd086
Kaydet (Commit)
b2fcd086
authored
Ock 09, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
try it.
üst
c1a9cab8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
2 deletions
+60
-2
filescan.py
Mac/Modules/file/filescan.py
+11
-2
filesupport.py
Mac/Modules/file/filesupport.py
+49
-0
No files found.
Mac/Modules/file/filescan.py
Dosyayı görüntüle @
b2fcd086
...
...
@@ -134,8 +134,6 @@ class MyScanner(Scanner_OSX):
"CatPositionRec"
,
# State variable, not too difficult
"FSCatalogInfo"
,
# Lots of fields, difficult struct
"FSCatalogInfo_ptr"
,
# Lots of fields, difficult struct
"FSIterator"
,
# Should become an object
"FSForkInfo"
,
# Lots of fields, difficult struct
"FSSearchParams"
,
# Also catsearch stuff
...
...
@@ -180,6 +178,17 @@ class MyScanner(Scanner_OSX):
([(
'FSRef_ptr'
,
'fromFile'
,
'InMode'
)],
[(
'OptFSRefPtr'
,
'fromFile'
,
'InMode'
)]),
# FSCatalogInfo input handling
([(
'FSCatalogInfoBitmap'
,
'whichInfo'
,
'InMode'
),
(
'FSCatalogInfo_ptr'
,
'catalogInfo'
,
'InMode'
)],
[(
'FSCatalogInfoAndBitmap_in'
,
'catalogInfo'
,
'InMode'
)]),
# FSCatalogInfo output handling
([(
'FSCatalogInfoBitmap'
,
'whichInfo'
,
'InMode'
),
(
'FSCatalogInfo'
,
'catalogInfo'
,
'OutMode'
)],
[(
'FSCatalogInfoAndBitmap_out'
,
'catalogInfo'
,
'InOutMode'
)]),
]
...
...
Mac/Modules/file/filesupport.py
Dosyayı görüntüle @
b2fcd086
...
...
@@ -50,6 +50,53 @@ class OptionalFSxxxType(OpaqueByValueType):
def
declare
(
self
,
name
):
Output
(
"
%
s
%
s__buf__;"
,
self
.
typeName
,
name
)
Output
(
"
%
s *
%
s = &
%
s__buf__;"
,
self
.
typeName
,
name
,
name
)
class
FSCatalogInfoAndBitmapType
(
InputOnlyType
):
def
__init__
(
self
):
InputOnlyType
.
__init__
(
self
,
"BUG"
,
"BUG"
)
def
declare
(
self
,
name
):
Output
(
"PyObject *
%
s__object;"
,
name
)
Output
(
"FSCatalogInfoBitname
%
s__bitmap;"
,
name
)
Output
(
"FSCatalogInfo
%
s;"
,
name
)
def
getargsFormat
(
self
):
return
"lO"
def
getargsArgs
(
self
,
name
):
return
"
%
s__bitmap,
%
s__object"
%
(
name
,
name
)
def
getargsCheck
(
self
,
name
):
Output
(
"convert_FSCatalogInfo(
%
s__object,
%
s__bitmap,
%
s);"
,
name
,
name
,
name
)
def
passOutput
(
self
,
name
):
return
"
%
s__bitmap,
%
s"
%
(
name
,
name
)
def
mkvalueFormat
(
self
):
return
"O"
def
mkvalueArgs
(
self
,
name
):
return
"
%
s__object"
%
(
name
)
def
xxxxmkvalueCheck
(
self
,
name
):
Output
(
"
%
s__object = new_FSCatalogInfo(
%
s__bitmap,
%
s);"
,
name
,
name
)
class
FSCatalogInfoAndBitmap_inType
(
FSCatalogInfoAndBitmapType
,
InputOnlyMixIn
):
def
xxxxmkvalueCheck
(
self
,
name
):
pass
class
FSCatalogInfoAndBitmap_outType
(
FSCatalogInfoAndBitmapType
):
def
getargsFormat
(
self
):
return
"l"
def
getargsArgs
(
self
,
name
):
return
"
%
s__bitmap"
%
name
def
getargsCheck
(
self
,
name
):
pass
FInfo
=
OpaqueType
(
"FInfo"
,
"FInfo"
)
FInfo_ptr
=
OpaqueType
(
"FInfo"
,
"FInfo"
)
...
...
@@ -60,6 +107,8 @@ OptFSSpecPtr = OptionalFSxxxType("FSSpec", "BUG", "myPyMac_GetOptFSSpecPtr")
FSRef
=
OpaqueType
(
"FSRef"
,
"FSRef"
)
FSRef_ptr
=
OpaqueType
(
"FSRef"
,
"FSRef"
)
OptFSRefPtr
=
OptionalFSxxxType
(
"FSRef"
,
"BUG"
,
"myPyMac_GetOptFSRefPtr"
)
FSCatalogInfoAndBitmap_in
=
FSCatalogInfoAndBitmap_inType
()
FSCatalogInfoAndBitmap_out
=
FSCatalogInfoAndBitmap_outType
()
# To be done:
#CatPositionRec
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment