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
43c2de23
Kaydet (Commit)
43c2de23
authored
Ock 03, 2002
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed SetEventParameter() signature: removed unneccesary length arg.
üst
8edfc542
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
CarbonEvtscan.py
Mac/Modules/carbonevt/CarbonEvtscan.py
+4
-1
CarbonEvtsupport.py
Mac/Modules/carbonevt/CarbonEvtsupport.py
+6
-0
_CarbonEvtmodule.c
Mac/Modules/carbonevt/_CarbonEvtmodule.c
+8
-8
No files found.
Mac/Modules/carbonevt/CarbonEvtscan.py
Dosyayı görüntüle @
43c2de23
...
...
@@ -107,7 +107,10 @@ class CarbonEvents_Scanner(Scanner_OSX):
# ]
def
makerepairinstructions
(
self
):
return
[]
return
[
([(
"UInt32"
,
'inSize'
,
"InMode"
),
(
"void_ptr"
,
'inDataPtr'
,
"InMode"
)],
[(
"MyInBuffer"
,
'inDataPtr'
,
"InMode"
)])
]
if
__name__
==
"__main__"
:
main
()
Mac/Modules/carbonevt/CarbonEvtsupport.py
Dosyayı görüntüle @
43c2de23
...
...
@@ -34,6 +34,12 @@ EventTypeSpec_ptr = OpaqueType("EventTypeSpec", "EventTypeSpec")
void_ptr
=
stringptr
# here are some types that are really other types
class
MyVarInputBufferType
(
VarInputBufferType
):
def
passInput
(
self
,
name
):
return
"
%
s__len__,
%
s__in__"
%
(
name
,
name
)
MyInBuffer
=
MyVarInputBufferType
(
'char'
,
'long'
,
'l'
)
# (buf, len)
EventTime
=
double
EventTimeout
=
EventTime
EventTimerInterval
=
EventTime
...
...
Mac/Modules/carbonevt/_CarbonEvtmodule.c
Dosyayı görüntüle @
43c2de23
...
...
@@ -215,19 +215,19 @@ static PyObject *EventRef_SetEventParameter(EventRefObject *_self, PyObject *_ar
OSStatus
_err
;
OSType
inName
;
OSType
inType
;
UInt32
inSize
;
char
*
inDataPtr
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&ls"
,
char
*
inDataPtr__in__
;
long
inDataPtr__len__
;
int
inDataPtr__in_len__
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&s#"
,
PyMac_GetOSType
,
&
inName
,
PyMac_GetOSType
,
&
inType
,
&
inSize
,
&
inDataPtr
))
&
inDataPtr__in__
,
&
inDataPtr__in_len__
))
return
NULL
;
inDataPtr__len__
=
inDataPtr__in_len__
;
_err
=
SetEventParameter
(
_self
->
ob_itself
,
inName
,
inType
,
inSize
,
inDataPtr
);
inDataPtr__len__
,
inDataPtr__in__
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
...
...
@@ -386,7 +386,7 @@ static PyMethodDef EventRef_methods[] = {
{
"ReleaseEvent"
,
(
PyCFunction
)
EventRef_ReleaseEvent
,
1
,
"() -> None"
},
{
"SetEventParameter"
,
(
PyCFunction
)
EventRef_SetEventParameter
,
1
,
"(OSType inName, OSType inType,
UInt32 inSize, char*
inDataPtr) -> None"
},
"(OSType inName, OSType inType,
Buffer
inDataPtr) -> None"
},
{
"GetEventClass"
,
(
PyCFunction
)
EventRef_GetEventClass
,
1
,
"() -> (UInt32 _rv)"
},
{
"GetEventKind"
,
(
PyCFunction
)
EventRef_GetEventKind
,
1
,
...
...
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