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
85ae4a82
Kaydet (Commit)
85ae4a82
authored
Nis 08, 1997
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Changed [SG]etCRefCon to [SG]etControlReference
üst
54956722
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Ctlmodule.c
Mac/Modules/ctl/Ctlmodule.c
+4
-4
ctlsupport.py
Mac/Modules/ctl/ctlsupport.py
+3
-3
No files found.
Mac/Modules/ctl/Ctlmodule.c
Dosyayı görüntüle @
85ae4a82
...
...
@@ -73,7 +73,7 @@ PyObject *CtlObj_New(itself)
it
=
PyObject_NEW
(
ControlObject
,
&
Control_Type
);
if
(
it
==
NULL
)
return
NULL
;
it
->
ob_itself
=
itself
;
SetC
RefCon
(
itself
,
(
long
)
it
);
SetC
ontrolReference
(
itself
,
(
long
)
it
);
return
(
PyObject
*
)
it
;
}
CtlObj_Convert
(
v
,
p_itself
)
...
...
@@ -92,7 +92,7 @@ CtlObj_Convert(v, p_itself)
static
void
CtlObj_dealloc
(
self
)
ControlObject
*
self
;
{
if
(
self
->
ob_itself
)
SetC
RefCon
(
self
->
ob_itself
,
(
long
)
0
);
/* Make it forget about us */
if
(
self
->
ob_itself
)
SetC
ontrolReference
(
self
->
ob_itself
,
(
long
)
0
);
/* Make it forget about us */
PyMem_DEL
(
self
);
}
...
...
@@ -448,7 +448,7 @@ static PyObject *CtlObj_DisposeControl(_self, _args)
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
if
(
_self
->
ob_itself
)
{
SetC
RefCon
(
_self
->
ob_itself
,
(
long
)
0
);
/* Make it forget about us */
SetC
ontrolReference
(
_self
->
ob_itself
,
(
long
)
0
);
/* Make it forget about us */
DisposeControl
(
_self
->
ob_itself
);
_self
->
ob_itself
=
NULL
;
}
...
...
@@ -674,7 +674,7 @@ CtlObj_WhichControl(ControlHandle c)
if
(
c
==
NULL
)
it
=
NULL
;
else
it
=
(
PyObject
*
)
GetC
RefCon
(
c
);
it
=
(
PyObject
*
)
GetC
ontrolReference
(
c
);
if
(
it
==
NULL
||
((
ControlObject
*
)
it
)
->
ob_itself
!=
c
)
it
=
Py_None
;
Py_INCREF
(
it
);
...
...
Mac/Modules/ctl/ctlsupport.py
Dosyayı görüntüle @
85ae4a82
...
...
@@ -54,7 +54,7 @@ CtlObj_WhichControl(ControlHandle c)
if (c == NULL)
it = NULL;
else
it = (PyObject *) GetC
RefCon
(c);
it = (PyObject *) GetC
ontrolReference
(c);
if (it == NULL || ((ControlObject *)it)->ob_itself != c)
it = Py_None;
Py_INCREF(it);
...
...
@@ -67,9 +67,9 @@ class MyObjectDefinition(GlobalObjectDefinition):
Output
(
"if (itself == NULL) return PyMac_Error(resNotFound);"
)
def
outputInitStructMembers
(
self
):
GlobalObjectDefinition
.
outputInitStructMembers
(
self
)
Output
(
"SetC
RefCon
(itself, (long)it);"
)
Output
(
"SetC
ontrolReference
(itself, (long)it);"
)
def
outputCleanupStructMembers
(
self
):
Output
(
"if (self->ob_itself) SetC
RefCon
(self->ob_itself, (long)0); /* Make it forget about us */"
)
Output
(
"if (self->ob_itself) SetC
ontrolReference
(self->ob_itself, (long)0); /* Make it forget about us */"
)
# Create the generator groups and link them
module
=
MacModule
(
MODNAME
,
MODPREFIX
,
includestuff
,
finalstuff
,
initstuff
)
...
...
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