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
7f725e40
Kaydet (Commit)
7f725e40
authored
Nis 23, 1998
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SetPort was missing, and the defs file needs the FOUR_CHAR_CODE define.
üst
bbf4be2c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
21 deletions
+39
-21
Qdmodule.c
Mac/Modules/qd/Qdmodule.c
+34
-0
qdedit.py
Mac/Modules/qd/qdedit.py
+0
-20
qdscan.py
Mac/Modules/qd/qdscan.py
+4
-0
qdsupport.py
Mac/Modules/qd/qdsupport.py
+1
-1
No files found.
Mac/Modules/qd/Qdmodule.c
Dosyayı görüntüle @
7f725e40
...
...
@@ -3833,6 +3833,36 @@ static PyObject *Qd_CharExtra(_self, _args)
return
_res
;
}
static
PyObject
*
Qd_SetPort
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
WindowPtr
thePort
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
WinObj_Convert
,
&
thePort
))
return
NULL
;
SetPort
(
thePort
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
Qd_OpenDeskAcc
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Str255
name
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
PyMac_GetStr255
,
name
))
return
NULL
;
OpenDeskAcc
(
name
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
Qd_BitMap
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
...
...
@@ -4277,6 +4307,10 @@ static PyMethodDef Qd_methods[] = {
"() -> (FontInfo info)"
},
{
"CharExtra"
,
(
PyCFunction
)
Qd_CharExtra
,
1
,
"(Fixed extra) -> None"
},
{
"SetPort"
,
(
PyCFunction
)
Qd_SetPort
,
1
,
"(WindowPtr thePort) -> None"
},
{
"OpenDeskAcc"
,
(
PyCFunction
)
Qd_OpenDeskAcc
,
1
,
"(Str255 name) -> None"
},
{
"BitMap"
,
(
PyCFunction
)
Qd_BitMap
,
1
,
"Take (string, int, Rect) argument and create BitMap"
},
{
"RawBitMap"
,
(
PyCFunction
)
Qd_RawBitMap
,
1
,
...
...
Mac/Modules/qd/qdedit.py
Dosyayı görüntüle @
7f725e40
f
=
Function
(
void
,
'GlobalToLocal'
,
(
Point
,
'thePoint'
,
InOutMode
),
)
functions
.
append
(
f
)
f
=
Function
(
void
,
'LocalToGlobal'
,
(
Point
,
'thePoint'
,
InOutMode
),
)
functions
.
append
(
f
)
f
=
Function
(
void
,
'SetPort'
,
(
WindowPtr
,
'thePort'
,
InMode
),
)
functions
.
append
(
f
)
f
=
Function
(
void
,
'ClipRect'
,
(
Rect
,
'r'
,
InMode
),
)
functions
.
append
(
f
)
f
=
Function
(
void
,
'EraseRect'
,
(
Rect
,
'r'
,
InMode
),
)
functions
.
append
(
f
)
f
=
Function
(
void
,
'OpenDeskAcc'
,
(
Str255
,
'name'
,
InMode
),
)
...
...
Mac/Modules/qd/qdscan.py
Dosyayı görüntüle @
7f725e40
...
...
@@ -60,6 +60,10 @@ class MyScanner(Scanner):
## listname = "r_methods"
return
classname
,
listname
def
writeinitialdefs
(
self
):
self
.
defsfile
.
write
(
"def FOUR_CHAR_CODE(x): return x
\n
"
)
def
makeblacklistnames
(
self
):
return
[
'InitGraf'
,
...
...
Mac/Modules/qd/qdsupport.py
Dosyayı görüntüle @
7f725e40
...
...
@@ -302,7 +302,7 @@ Method = OSErrMethodGenerator
functions
=
[]
methods
=
[]
execfile
(
INPUTFILE
)
#
execfile(EXTRAFILE)
execfile
(
EXTRAFILE
)
# add the populated lists to the generator groups
# (in a different wordl the scan program would generate this)
...
...
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