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
1ca65c07
Kaydet (Commit)
1ca65c07
authored
Ock 02, 2002
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rectified copy/paste oversight in comment
üst
ca3cff30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
_Menumodule.c
Mac/Modules/menu/_Menumodule.c
+2
-1
menusupport.py
Mac/Modules/menu/menusupport.py
+2
-1
No files found.
Mac/Modules/menu/_Menumodule.c
Dosyayı görüntüle @
1ca65c07
...
@@ -51,7 +51,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
...
@@ -51,7 +51,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h)
#define as_Resource(h) ((Handle)h)
/* Alternative version of
ResObj_New, which returns None for null
argument */
/* Alternative version of
MenuObj_New, which returns None for NULL
argument */
PyObject
*
OptMenuObj_New
(
MenuRef
itself
)
PyObject
*
OptMenuObj_New
(
MenuRef
itself
)
{
{
if
(
itself
==
NULL
)
{
if
(
itself
==
NULL
)
{
...
@@ -61,6 +61,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
...
@@ -61,6 +61,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return
MenuObj_New
(
itself
);
return
MenuObj_New
(
itself
);
}
}
/* Alternative version of MenuObj_Convert, which returns NULL for a None argument */
int
OptMenuObj_Convert
(
PyObject
*
v
,
MenuRef
*
p_itself
)
int
OptMenuObj_Convert
(
PyObject
*
v
,
MenuRef
*
p_itself
)
{
{
PyObject
*
tmp
;
PyObject
*
tmp
;
...
...
Mac/Modules/menu/menusupport.py
Dosyayı görüntüle @
1ca65c07
...
@@ -71,7 +71,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
...
@@ -71,7 +71,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h)
#define as_Resource(h) ((Handle)h)
/* Alternative version of
ResObj_New, which returns None for null
argument */
/* Alternative version of
MenuObj_New, which returns None for NULL
argument */
PyObject *OptMenuObj_New(MenuRef itself)
PyObject *OptMenuObj_New(MenuRef itself)
{
{
if (itself == NULL) {
if (itself == NULL) {
...
@@ -81,6 +81,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
...
@@ -81,6 +81,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return MenuObj_New(itself);
return MenuObj_New(itself);
}
}
/* Alternative version of MenuObj_Convert, which returns NULL for a None argument */
int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
{
{
PyObject *tmp;
PyObject *tmp;
...
...
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