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
c574b43d
Kaydet (Commit)
c574b43d
authored
Nis 12, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a nasty bug where FindControl could return a reference to a
destroyed python object.
üst
da6a9719
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
Ctlmodule.c
Mac/Modules/ctl/Ctlmodule.c
+1
-1
ctlgen.py
Mac/Modules/ctl/ctlgen.py
+1
-1
ctlscan.py
Mac/Modules/ctl/ctlscan.py
+2
-1
ctlsupport.py
Mac/Modules/ctl/ctlsupport.py
+3
-1
No files found.
Mac/Modules/ctl/Ctlmodule.c
Dosyayı görüntüle @
c574b43d
...
...
@@ -95,7 +95,7 @@ CtlObj_Convert(v, p_itself)
static
void
CtlObj_dealloc
(
self
)
ControlObject
*
self
;
{
/* Cleanup of self->ob_itself goes here
*/
SetCRefCon
(
self
->
ob_itself
,
(
long
)
0
);
/* Make it forget about us
*/
PyMem_DEL
(
self
);
}
...
...
Mac/Modules/ctl/ctlgen.py
Dosyayı görüntüle @
c574b43d
# Generated from '
fl
ap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
# Generated from '
S
ap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
f
=
Function
(
ControlRef
,
'NewControl'
,
(
WindowRef
,
'theWindow'
,
InMode
),
...
...
Mac/Modules/ctl/ctlscan.py
Dosyayı görüntüle @
c574b43d
...
...
@@ -3,11 +3,12 @@ import addpack
addpack
.
addpack
(
':Tools:bgen:bgen'
)
from
scantools
import
Scanner
from
bgenlocations
import
TOOLBOXDIR
def
main
():
input
=
"Controls.h"
output
=
"ctlgen.py"
defsoutput
=
"Controls.py"
defsoutput
=
TOOLBOXDIR
+
"Controls.py"
scanner
=
MyScanner
(
input
,
output
,
defsoutput
)
scanner
.
scan
()
scanner
.
close
()
...
...
Mac/Modules/ctl/ctlsupport.py
Dosyayı görüntüle @
c574b43d
...
...
@@ -68,7 +68,9 @@ class MyObjectDefinition(GlobalObjectDefinition):
def
outputInitStructMembers
(
self
):
GlobalObjectDefinition
.
outputInitStructMembers
(
self
)
Output
(
"SetCRefCon(itself, (long)it);"
)
def
outputCleanupStructMembers
(
self
):
Output
(
"SetCRefCon(self->ob_itself, (long)0); /* Make it forget about us */"
)
# Create the generator groups and link them
module
=
MacModule
(
MODNAME
,
MODPREFIX
,
includestuff
,
finalstuff
,
initstuff
)
object
=
MyObjectDefinition
(
OBJECTNAME
,
OBJECTPREFIX
,
OBJECTTYPE
)
...
...
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