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
248f6f1f
Kaydet (Commit)
248f6f1f
authored
Ara 26, 2002
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Second-argument alias methods were generated with a variation on
MethodGenerator, this should be OSErrMethodGenerator.
üst
9a40c1c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
53 deletions
+53
-53
_Filemodule.c
Mac/Modules/file/_Filemodule.c
+52
-52
filesupport.py
Mac/Modules/file/filesupport.py
+1
-1
No files found.
Mac/Modules/file/_Filemodule.c
Dosyayı görüntüle @
248f6f1f
...
...
@@ -320,7 +320,7 @@ static void Alias_dealloc(AliasObject *self)
static
PyObject
*
Alias_ResolveAlias
(
AliasObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
OSErr
_
rv
;
OSErr
_
err
;
FSSpec
fromFile__buf__
;
FSSpec
*
fromFile
=
&
fromFile__buf__
;
FSSpec
target
;
...
...
@@ -328,12 +328,12 @@ static PyObject *Alias_ResolveAlias(AliasObject *_self, PyObject *_args)
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
myPyMac_GetOptFSSpecPtr
,
&
fromFile
))
return
NULL
;
_
rv
=
ResolveAlias
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
);
_res
=
Py_BuildValue
(
"hO&b"
,
_rv
,
_
err
=
ResolveAlias
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&b"
,
FSSpec_New
,
&
target
,
wasChanged
);
return
_res
;
...
...
@@ -360,7 +360,7 @@ static PyObject *Alias_GetAliasInfo(AliasObject *_self, PyObject *_args)
static
PyObject
*
Alias_ResolveAliasWithMountFlags
(
AliasObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
OSErr
_
rv
;
OSErr
_
err
;
FSSpec
fromFile__buf__
;
FSSpec
*
fromFile
=
&
fromFile__buf__
;
FSSpec
target
;
...
...
@@ -370,13 +370,13 @@ static PyObject *Alias_ResolveAliasWithMountFlags(AliasObject *_self, PyObject *
myPyMac_GetOptFSSpecPtr
,
&
fromFile
,
&
mountFlags
))
return
NULL
;
_
rv
=
ResolveAliasWithMountFlags
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
,
mountFlags
);
_res
=
Py_BuildValue
(
"hO&b"
,
_rv
,
_
err
=
ResolveAliasWithMountFlags
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
,
mountFlags
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&b"
,
FSSpec_New
,
&
target
,
wasChanged
);
return
_res
;
...
...
@@ -385,7 +385,7 @@ static PyObject *Alias_ResolveAliasWithMountFlags(AliasObject *_self, PyObject *
static
PyObject
*
Alias_FollowFinderAlias
(
AliasObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
OSErr
_
rv
;
OSErr
_
err
;
FSSpec
fromFile__buf__
;
FSSpec
*
fromFile
=
&
fromFile__buf__
;
Boolean
logon
;
...
...
@@ -395,13 +395,13 @@ static PyObject *Alias_FollowFinderAlias(AliasObject *_self, PyObject *_args)
myPyMac_GetOptFSSpecPtr
,
&
fromFile
,
&
logon
))
return
NULL
;
_
rv
=
FollowFinderAlias
(
fromFile
,
_self
->
ob_itself
,
logon
,
&
target
,
&
wasChanged
);
_res
=
Py_BuildValue
(
"hO&b"
,
_rv
,
_
err
=
FollowFinderAlias
(
fromFile
,
_self
->
ob_itself
,
logon
,
&
target
,
&
wasChanged
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&b"
,
FSSpec_New
,
&
target
,
wasChanged
);
return
_res
;
...
...
@@ -410,7 +410,7 @@ static PyObject *Alias_FollowFinderAlias(AliasObject *_self, PyObject *_args)
static
PyObject
*
Alias_FSResolveAliasWithMountFlags
(
AliasObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
OSErr
_
rv
;
OSErr
_
err
;
FSRef
fromFile__buf__
;
FSRef
*
fromFile
=
&
fromFile__buf__
;
FSRef
target
;
...
...
@@ -420,13 +420,13 @@ static PyObject *Alias_FSResolveAliasWithMountFlags(AliasObject *_self, PyObject
myPyMac_GetOptFSRefPtr
,
&
fromFile
,
&
mountFlags
))
return
NULL
;
_
rv
=
FSResolveAliasWithMountFlags
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
,
mountFlags
);
_res
=
Py_BuildValue
(
"hO&b"
,
_rv
,
_
err
=
FSResolveAliasWithMountFlags
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
,
mountFlags
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&b"
,
FSRef_New
,
&
target
,
wasChanged
);
return
_res
;
...
...
@@ -435,7 +435,7 @@ static PyObject *Alias_FSResolveAliasWithMountFlags(AliasObject *_self, PyObject
static
PyObject
*
Alias_FSResolveAlias
(
AliasObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
OSErr
_
rv
;
OSErr
_
err
;
FSRef
fromFile__buf__
;
FSRef
*
fromFile
=
&
fromFile__buf__
;
FSRef
target
;
...
...
@@ -443,12 +443,12 @@ static PyObject *Alias_FSResolveAlias(AliasObject *_self, PyObject *_args)
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
myPyMac_GetOptFSRefPtr
,
&
fromFile
))
return
NULL
;
_
rv
=
FSResolveAlias
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
);
_res
=
Py_BuildValue
(
"hO&b"
,
_rv
,
_
err
=
FSResolveAlias
(
fromFile
,
_self
->
ob_itself
,
&
target
,
&
wasChanged
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&b"
,
FSRef_New
,
&
target
,
wasChanged
);
return
_res
;
...
...
@@ -457,7 +457,7 @@ static PyObject *Alias_FSResolveAlias(AliasObject *_self, PyObject *_args)
static
PyObject
*
Alias_FSFollowFinderAlias
(
AliasObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
OSErr
_
rv
;
OSErr
_
err
;
FSRef
fromFile
;
Boolean
logon
;
FSRef
target
;
...
...
@@ -465,13 +465,13 @@ static PyObject *Alias_FSFollowFinderAlias(AliasObject *_self, PyObject *_args)
if
(
!
PyArg_ParseTuple
(
_args
,
"b"
,
&
logon
))
return
NULL
;
_
rv
=
FSFollowFinderAlias
(
&
fromFile
,
_self
->
ob_itself
,
logon
,
&
target
,
&
wasChanged
);
_res
=
Py_BuildValue
(
"hO&O&b"
,
_rv
,
_
err
=
FSFollowFinderAlias
(
&
fromFile
,
_self
->
ob_itself
,
logon
,
&
target
,
&
wasChanged
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&O&b"
,
FSRef_New
,
&
fromFile
,
FSRef_New
,
&
target
,
wasChanged
);
...
...
@@ -480,19 +480,19 @@ static PyObject *Alias_FSFollowFinderAlias(AliasObject *_self, PyObject *_args)
static
PyMethodDef
Alias_methods
[]
=
{
{
"ResolveAlias"
,
(
PyCFunction
)
Alias_ResolveAlias
,
1
,
PyDoc_STR
(
"(FSSpec fromFile) -> (
OSErr _rv,
FSSpec target, Boolean wasChanged)"
)},
PyDoc_STR
(
"(FSSpec fromFile) -> (FSSpec target, Boolean wasChanged)"
)},
{
"GetAliasInfo"
,
(
PyCFunction
)
Alias_GetAliasInfo
,
1
,
PyDoc_STR
(
"(AliasInfoType index) -> (Str63 theString)"
)},
{
"ResolveAliasWithMountFlags"
,
(
PyCFunction
)
Alias_ResolveAliasWithMountFlags
,
1
,
PyDoc_STR
(
"(FSSpec fromFile, unsigned long mountFlags) -> (
OSErr _rv,
FSSpec target, Boolean wasChanged)"
)},
PyDoc_STR
(
"(FSSpec fromFile, unsigned long mountFlags) -> (FSSpec target, Boolean wasChanged)"
)},
{
"FollowFinderAlias"
,
(
PyCFunction
)
Alias_FollowFinderAlias
,
1
,
PyDoc_STR
(
"(FSSpec fromFile, Boolean logon) -> (
OSErr _rv,
FSSpec target, Boolean wasChanged)"
)},
PyDoc_STR
(
"(FSSpec fromFile, Boolean logon) -> (FSSpec target, Boolean wasChanged)"
)},
{
"FSResolveAliasWithMountFlags"
,
(
PyCFunction
)
Alias_FSResolveAliasWithMountFlags
,
1
,
PyDoc_STR
(
"(FSRef fromFile, unsigned long mountFlags) -> (
OSErr _rv,
FSRef target, Boolean wasChanged)"
)},
PyDoc_STR
(
"(FSRef fromFile, unsigned long mountFlags) -> (FSRef target, Boolean wasChanged)"
)},
{
"FSResolveAlias"
,
(
PyCFunction
)
Alias_FSResolveAlias
,
1
,
PyDoc_STR
(
"(FSRef fromFile) -> (
OSErr _rv,
FSRef target, Boolean wasChanged)"
)},
PyDoc_STR
(
"(FSRef fromFile) -> (FSRef target, Boolean wasChanged)"
)},
{
"FSFollowFinderAlias"
,
(
PyCFunction
)
Alias_FSFollowFinderAlias
,
1
,
PyDoc_STR
(
"(Boolean logon) -> (
OSErr _rv,
FSRef fromFile, FSRef target, Boolean wasChanged)"
)},
PyDoc_STR
(
"(Boolean logon) -> (FSRef fromFile, FSRef target, Boolean wasChanged)"
)},
{
NULL
,
NULL
,
0
}
};
...
...
Mac/Modules/file/filesupport.py
Dosyayı görüntüle @
248f6f1f
...
...
@@ -527,7 +527,7 @@ class AliasDefinition(PEP253Mixin, ObjectDefinition):
# Alias methods come in two flavors: those with the alias as arg1 and
# those with the alias as arg 2.
class
Arg2MethodGenerator
(
MethodGenerator
):
class
Arg2MethodGenerator
(
OSErr
MethodGenerator
):
"""Similar to MethodGenerator, but has self as second argument"""
def
parseArgumentList
(
self
,
args
):
...
...
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