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
8ce4d510
Kaydet (Commit)
8ce4d510
authored
Agu 17, 1995
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Different arg to GetEventHandler (but I cannot really remember fixing
this.... Hope it is correct)
üst
7e0da905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
AEmodule.c
Mac/Modules/ae/AEmodule.c
+7
-5
No files found.
Mac/Modules/ae/AEmodule.c
Dosyayı görüntüle @
8ce4d510
...
...
@@ -14,6 +14,7 @@
#include <Controls.h>
extern
PyObject
*
ResObj_New
(
Handle
);
extern
PyObject
*
ResObj_OptNew
(
Handle
);
extern
int
ResObj_Convert
(
PyObject
*
,
Handle
*
);
extern
PyObject
*
WinObj_New
(
WindowPtr
);
...
...
@@ -1051,19 +1052,20 @@ static PyObject *AE_AEGetEventHandler(_self, _args)
OSErr
_err
;
AEEventClass
theAEEventClass
;
AEEventID
theAEEventID
;
long
procptr
,
handlerpt
r
;
AEEventHandlerUPP
handler__proc__
=
upp_GenericEventHandle
r
;
PyObject
*
handler
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
PyMac_GetOSType
,
&
theAEEventClass
,
PyMac_GetOSType
,
&
theAEEventID
))
return
NULL
;
_err
=
AEGetEventHandler
(
theAEEventClass
,
theAEEventID
,
(
AEEventHandlerUPP
*
)
&
procptr
,
&
handlerpt
r
,
&
handler__proc__
,
(
long
*
)
&
handle
r
,
0
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"ll"
,
(
long
)
procptr
,
(
long
)
handlerptr
);
_res
=
Py_BuildValue
(
"O"
,
handler
);
Py_INCREF
(
handler
);
/* XXX leak, but needed */
return
_res
;
}
...
...
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