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
bd008844
Kaydet (Commit)
bd008844
authored
Kas 05, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
First tweaks to allow MacPython to be compiled with
Universal Headers 3.4
üst
34cbe718
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
22 deletions
+9
-22
_Dlgmodule.c
Mac/Modules/dlg/_Dlgmodule.c
+1
-19
dlgscan.py
Mac/Modules/dlg/dlgscan.py
+1
-0
dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+1
-1
_Winmodule.c
Mac/Modules/win/_Winmodule.c
+3
-1
winsupport.py
Mac/Modules/win/winsupport.py
+3
-1
No files found.
Mac/Modules/dlg/_Dlgmodule.c
Dosyayı görüntüle @
bd008844
...
...
@@ -36,7 +36,7 @@ extern int _DlgObj_Convert(PyObject *, DialogRef *);
#define DlgObj_Convert _DlgObj_Convert
#endif
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
&& UNIVERSAL_INTERFACES_VERSION < 0x340
#define GetDialogTextEditHandle(dlg) (((DialogPeek)(dlg))->textH)
#define SetPortDialogPort(dlg) SetPort(dlg)
#define GetDialogPort(dlg) ((CGrafPtr)(dlg))
...
...
@@ -769,20 +769,6 @@ static PyObject *DlgObj_GetDialogPort(DialogObject *_self, PyObject *_args)
return
_res
;
}
#if !TARGET_API_MAC_CARBON
static
PyObject
*
DlgObj_SetGrafPortOfDialog
(
DialogObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
SetGrafPortOfDialog
(
_self
->
ob_itself
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
#endif
static
PyMethodDef
DlgObj_methods
[]
=
{
{
"DrawDialog"
,
(
PyCFunction
)
DlgObj_DrawDialog
,
1
,
"() -> None"
},
...
...
@@ -865,10 +851,6 @@ static PyMethodDef DlgObj_methods[] = {
{
"GetDialogPort"
,
(
PyCFunction
)
DlgObj_GetDialogPort
,
1
,
"() -> (CGrafPtr _rv)"
},
#if !TARGET_API_MAC_CARBON
{
"SetGrafPortOfDialog"
,
(
PyCFunction
)
DlgObj_SetGrafPortOfDialog
,
1
,
"() -> None"
},
#endif
{
NULL
,
NULL
,
0
}
};
...
...
Mac/Modules/dlg/dlgscan.py
Dosyayı görüntüle @
bd008844
...
...
@@ -53,6 +53,7 @@ class MyScanner(Scanner):
## # Can't find these in the CW Pro 3 libraries
'SetDialogMovableModal'
,
'GetDialogControlNotificationProc'
,
'SetGrafPortOfDialog'
,
# Funny, and probably not useful
]
def
makegreylist
(
self
):
...
...
Mac/Modules/dlg/dlgsupport.py
Dosyayı görüntüle @
bd008844
...
...
@@ -47,7 +47,7 @@ extern int _DlgObj_Convert(PyObject *, DialogRef *);
#define DlgObj_Convert _DlgObj_Convert
#endif
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
&& UNIVERSAL_INTERFACES_VERSION < 0x340
#define GetDialogTextEditHandle(dlg) (((DialogPeek)(dlg))->textH)
#define SetPortDialogPort(dlg) SetPort(dlg)
#define GetDialogPort(dlg) ((CGrafPtr)(dlg))
...
...
Mac/Modules/win/_Winmodule.c
Dosyayı görüntüle @
bd008844
...
...
@@ -36,11 +36,13 @@ extern int _WinObj_Convert(PyObject *, WindowRef *);
#define WinObj_Convert _WinObj_Convert
#endif
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
&& UNIVERSAL_INTERFACES_VERSION < 0x340
/* Carbon calls that we emulate in classic mode */
#define GetWindowSpareFlag(win) (((CWindowPeek)(win))->spareFlag)
#define GetWindowFromPort(port) ((WindowRef)(port))
#define GetWindowPortBounds(win, rectp) (*(rectp) = ((CWindowPeek)(win))->port.portRect)
#endif
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
#define IsPointerValid(p) (((long)p&3) == 0)
#endif
#if ACCESSOR_CALLS_ARE_FUNCTIONS
...
...
Mac/Modules/win/winsupport.py
Dosyayı görüntüle @
bd008844
...
...
@@ -70,11 +70,13 @@ extern int _WinObj_Convert(PyObject *, WindowRef *);
#define WinObj_Convert _WinObj_Convert
#endif
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
&& UNIVERSAL_INTERFACES_VERSION < 0x340
/* Carbon calls that we emulate in classic mode */
#define GetWindowSpareFlag(win) (((CWindowPeek)(win))->spareFlag)
#define GetWindowFromPort(port) ((WindowRef)(port))
#define GetWindowPortBounds(win, rectp) (*(rectp) = ((CWindowPeek)(win))->port.portRect)
#endif
#if !ACCESSOR_CALLS_ARE_FUNCTIONS
#define IsPointerValid(p) (((long)p&3) == 0)
#endif
#if ACCESSOR_CALLS_ARE_FUNCTIONS
...
...
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