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
bb7e213a
Kaydet (Commit)
bb7e213a
authored
Tem 14, 2000
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.
üst
c3f593e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
macglue.h
Mac/Include/macglue.h
+2
-0
macglue.c
Mac/Python/macglue.c
+2
-5
No files found.
Mac/Include/macglue.h
Dosyayı görüntüle @
bb7e213a
...
@@ -92,9 +92,11 @@ int PyMac_FindCodeResourceModule(PyStringObject *, char *, char *); /* Test for
...
@@ -92,9 +92,11 @@ int PyMac_FindCodeResourceModule(PyStringObject *, char *, char *); /* Test for
PyObject
*
PyMac_LoadCodeResourceModule
(
char
*
,
char
*
);
/* Load 'PYD ' resource from file */
PyObject
*
PyMac_LoadCodeResourceModule
(
char
*
,
char
*
);
/* Load 'PYD ' resource from file */
struct
filedescr
*
PyMac_FindModuleExtension
(
char
*
,
size_t
*
,
char
*
);
/* Look for module in single folder */
struct
filedescr
*
PyMac_FindModuleExtension
(
char
*
,
size_t
*
,
char
*
);
/* Look for module in single folder */
#ifndef TARGET_API_MAC_CARBON
int
PyMac_GetDirectory
(
FSSpec
*
dirfss
,
char
*
prompt
);
/* Ask user for a directory */
int
PyMac_GetDirectory
(
FSSpec
*
dirfss
,
char
*
prompt
);
/* Ask user for a directory */
void
PyMac_PromptGetFile
(
short
numTypes
,
ConstSFTypeListPtr
typeList
,
void
PyMac_PromptGetFile
(
short
numTypes
,
ConstSFTypeListPtr
typeList
,
StandardFileReply
*
reply
,
char
*
prompt
);
/* Ask user for file, with prompt */
StandardFileReply
*
reply
,
char
*
prompt
);
/* Ask user for file, with prompt */
#endif
/* TARGET_API_MAC_CARBON */
int
PyMac_GetOSType
(
PyObject
*
,
OSType
*
);
/* argument parser for OSType */
int
PyMac_GetOSType
(
PyObject
*
,
OSType
*
);
/* argument parser for OSType */
PyObject
*
PyMac_BuildOSType
(
OSType
);
/* Convert OSType to PyObject */
PyObject
*
PyMac_BuildOSType
(
OSType
);
/* Convert OSType to PyObject */
...
...
Mac/Python/macglue.c
Dosyayı görüntüle @
bb7e213a
...
@@ -754,7 +754,7 @@ myhook_proc(short item, DialogPtr theDialog, struct hook_args *dataptr)
...
@@ -754,7 +754,7 @@ myhook_proc(short item, DialogPtr theDialog, struct hook_args *dataptr)
}
}
return
item
;
return
item
;
}
}
#ifndef TARGET_API_MAC_CARBON
/*
/*
** Ask the user for a directory. I still can't understand
** Ask the user for a directory. I still can't understand
** why Apple doesn't provide a standard solution for this...
** why Apple doesn't provide a standard solution for this...
...
@@ -769,12 +769,10 @@ PyMac_GetDirectory(dirfss, prompt)
...
@@ -769,12 +769,10 @@ PyMac_GetDirectory(dirfss, prompt)
StandardFileReply
reply
;
StandardFileReply
reply
;
struct
hook_args
hook_args
;
struct
hook_args
hook_args
;
#ifndef TARGET_API_MAC_CARBON
if
(
!
upp_inited
)
{
if
(
!
upp_inited
)
{
myhook_upp
=
NewDlgHookYDProc
(
myhook_proc
);
myhook_upp
=
NewDlgHookYDProc
(
myhook_proc
);
upp_inited
=
1
;
upp_inited
=
1
;
}
}
#endif
if
(
prompt
&&
*
prompt
)
if
(
prompt
&&
*
prompt
)
hook_args
.
prompt
=
(
char
*
)
Pstring
(
prompt
);
hook_args
.
prompt
=
(
char
*
)
Pstring
(
prompt
);
else
else
...
@@ -797,12 +795,10 @@ void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
...
@@ -797,12 +795,10 @@ void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
static
Point
where
=
{
-
1
,
-
1
};
static
Point
where
=
{
-
1
,
-
1
};
struct
hook_args
hook_args
;
struct
hook_args
hook_args
;
#ifndef TARGET_API_MAC_CARBON
if
(
!
upp_inited
)
{
if
(
!
upp_inited
)
{
myhook_upp
=
NewDlgHookYDProc
(
myhook_proc
);
myhook_upp
=
NewDlgHookYDProc
(
myhook_proc
);
upp_inited
=
1
;
upp_inited
=
1
;
}
}
#endif
if
(
prompt
&&
*
prompt
)
if
(
prompt
&&
*
prompt
)
hook_args
.
prompt
=
(
char
*
)
Pstring
(
prompt
);
hook_args
.
prompt
=
(
char
*
)
Pstring
(
prompt
);
else
else
...
@@ -811,6 +807,7 @@ void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
...
@@ -811,6 +807,7 @@ void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
CustomGetFile
((
FileFilterYDUPP
)
0
,
numTypes
,
typeList
,
reply
,
GETFILEPROMPT_ID
,
where
,
CustomGetFile
((
FileFilterYDUPP
)
0
,
numTypes
,
typeList
,
reply
,
GETFILEPROMPT_ID
,
where
,
myhook_upp
,
NULL
,
NULL
,
NULL
,
(
void
*
)
&
hook_args
);
myhook_upp
,
NULL
,
NULL
,
NULL
,
(
void
*
)
&
hook_args
);
}
}
#endif
/* TARGET_API_MAC_CARBON */
/* Convert a 4-char string object argument to an OSType value */
/* Convert a 4-char string object argument to an OSType value */
int
int
...
...
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