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
65cbf93f
Kaydet (Commit)
65cbf93f
authored
Ara 13, 2002
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of support for Universal Headers older than 3.4 and various other
outdated things.
üst
55309a31
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
6 additions
and
78 deletions
+6
-78
_AEmodule.c
Mac/Modules/ae/_AEmodule.c
+0
-8
aesupport.py
Mac/Modules/ae/aesupport.py
+0
-8
_Dlgmodule.c
Mac/Modules/dlg/_Dlgmodule.c
+0
-7
dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+0
-7
hfsplusmodule.c
Mac/Modules/hfsplusmodule.c
+0
-8
wastemodule.c
Mac/Modules/waste/wastemodule.c
+3
-7
wastesupport.py
Mac/Modules/waste/wastesupport.py
+3
-7
_Winmodule.c
Mac/Modules/win/_Winmodule.c
+0
-11
winsupport.py
Mac/Modules/win/winsupport.py
+0
-11
macgetargv.c
Mac/Python/macgetargv.c
+0
-4
No files found.
Mac/Modules/ae/_AEmodule.c
Dosyayı görüntüle @
65cbf93f
...
@@ -38,11 +38,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *);
...
@@ -38,11 +38,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *);
#define AEDesc_Convert _AEDesc_Convert
#define AEDesc_Convert _AEDesc_Convert
#endif
#endif
#if UNIVERSAL_INTERFACES_VERSION >= 0x0340
typedef
long
refcontype
;
typedef
long
refcontype
;
#else
typedef
unsigned
long
refcontype
;
#endif
static
pascal
OSErr
GenericEventHandler
(
const
AppleEvent
*
request
,
AppleEvent
*
reply
,
refcontype
refcon
);
/* Forward */
static
pascal
OSErr
GenericEventHandler
(
const
AppleEvent
*
request
,
AppleEvent
*
reply
,
refcontype
refcon
);
/* Forward */
...
@@ -1426,11 +1422,7 @@ void init_AE(void)
...
@@ -1426,11 +1422,7 @@ void init_AE(void)
upp_AEIdleProc
=
NewAEIdleUPP
(
AEIdleProc
);
upp_AEIdleProc
=
NewAEIdleUPP
(
AEIdleProc
);
#if UNIVERSAL_INTERFACES_VERSION >= 0x03400
upp_GenericEventHandler
=
NewAEEventHandlerUPP
(
&
GenericEventHandler
);
#else
upp_GenericEventHandler
=
NewAEEventHandlerUPP
(
GenericEventHandler
);
upp_GenericEventHandler
=
NewAEEventHandlerUPP
(
GenericEventHandler
);
#endif
PyMac_INIT_TOOLBOX_OBJECT_NEW
(
AEDesc
*
,
AEDesc_New
);
PyMac_INIT_TOOLBOX_OBJECT_NEW
(
AEDesc
*
,
AEDesc_New
);
PyMac_INIT_TOOLBOX_OBJECT_CONVERT
(
AEDesc
,
AEDesc_Convert
);
PyMac_INIT_TOOLBOX_OBJECT_CONVERT
(
AEDesc
,
AEDesc_Convert
);
...
...
Mac/Modules/ae/aesupport.py
Dosyayı görüntüle @
65cbf93f
...
@@ -100,11 +100,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *);
...
@@ -100,11 +100,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *);
#define AEDesc_Convert _AEDesc_Convert
#define AEDesc_Convert _AEDesc_Convert
#endif
#endif
#if UNIVERSAL_INTERFACES_VERSION >= 0x0340
typedef long refcontype;
typedef long refcontype;
#else
typedef unsigned long refcontype;
#endif
static pascal OSErr GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype refcon); /* Forward */
static pascal OSErr GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype refcon); /* Forward */
...
@@ -163,11 +159,7 @@ GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype ref
...
@@ -163,11 +159,7 @@ GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype ref
initstuff
=
initstuff
+
"""
initstuff
=
initstuff
+
"""
upp_AEIdleProc = NewAEIdleUPP(AEIdleProc);
upp_AEIdleProc = NewAEIdleUPP(AEIdleProc);
#if UNIVERSAL_INTERFACES_VERSION >= 0x03400
upp_GenericEventHandler = NewAEEventHandlerUPP(&GenericEventHandler);
#else
upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler);
upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler);
#endif
PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New);
PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New);
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert);
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert);
"""
"""
...
...
Mac/Modules/dlg/_Dlgmodule.c
Dosyayı görüntüle @
65cbf93f
...
@@ -36,13 +36,6 @@ extern int _DlgObj_Convert(PyObject *, DialogRef *);
...
@@ -36,13 +36,6 @@ extern int _DlgObj_Convert(PyObject *, DialogRef *);
#define DlgObj_Convert _DlgObj_Convert
#define DlgObj_Convert _DlgObj_Convert
#endif
#endif
#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))
#define GetDialogFromWindow(win) ((DialogRef)(win))
#endif
/* XXX Shouldn't this be a stack? */
/* XXX Shouldn't this be a stack? */
static
PyObject
*
Dlg_FilterProc_callback
=
NULL
;
static
PyObject
*
Dlg_FilterProc_callback
=
NULL
;
...
...
Mac/Modules/dlg/dlgsupport.py
Dosyayı görüntüle @
65cbf93f
...
@@ -47,13 +47,6 @@ extern int _DlgObj_Convert(PyObject *, DialogRef *);
...
@@ -47,13 +47,6 @@ extern int _DlgObj_Convert(PyObject *, DialogRef *);
#define DlgObj_Convert _DlgObj_Convert
#define DlgObj_Convert _DlgObj_Convert
#endif
#endif
#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))
#define GetDialogFromWindow(win) ((DialogRef)(win))
#endif
/* XXX Shouldn't this be a stack? */
/* XXX Shouldn't this be a stack? */
static PyObject *Dlg_FilterProc_callback = NULL;
static PyObject *Dlg_FilterProc_callback = NULL;
...
...
Mac/Modules/hfsplusmodule.c
Dosyayı görüntüle @
65cbf93f
...
@@ -1390,9 +1390,7 @@ static
...
@@ -1390,9 +1390,7 @@ static
int
cataloginfo_from_dict
(
FSCatalogInfoBitmap
bitmap
,
FSCatalogInfo
*
info
,
const
PyObject
*
dict
)
int
cataloginfo_from_dict
(
FSCatalogInfoBitmap
bitmap
,
FSCatalogInfo
*
info
,
const
PyObject
*
dict
)
{
{
UInt32
storage
;
UInt32
storage
;
#if UNIVERSAL_INTERFACES_VERSION > 0x0332
FSPermissionInfo
*
permissions
;
FSPermissionInfo
*
permissions
;
#endif
// Dates
// Dates
if
(
fetch_utcdatetime
(
bitmap
,
kFSCatInfoCreateDate
,
dict
,
_kFSCatInfoCreateDate
,
&
info
->
createDate
))
return
NULL
;
if
(
fetch_utcdatetime
(
bitmap
,
kFSCatInfoCreateDate
,
dict
,
_kFSCatInfoCreateDate
,
&
info
->
createDate
))
return
NULL
;
...
@@ -1401,7 +1399,6 @@ int cataloginfo_from_dict(FSCatalogInfoBitmap bitmap, FSCatalogInfo *info, const
...
@@ -1401,7 +1399,6 @@ int cataloginfo_from_dict(FSCatalogInfoBitmap bitmap, FSCatalogInfo *info, const
if
(
fetch_utcdatetime
(
bitmap
,
kFSCatInfoAccessDate
,
dict
,
_kFSCatInfoAccessDate
,
&
info
->
accessDate
))
return
NULL
;
if
(
fetch_utcdatetime
(
bitmap
,
kFSCatInfoAccessDate
,
dict
,
_kFSCatInfoAccessDate
,
&
info
->
accessDate
))
return
NULL
;
if
(
fetch_utcdatetime
(
bitmap
,
kFSCatInfoBackupDate
,
dict
,
_kFSCatInfoBackupDate
,
&
info
->
backupDate
))
return
NULL
;
if
(
fetch_utcdatetime
(
bitmap
,
kFSCatInfoBackupDate
,
dict
,
_kFSCatInfoBackupDate
,
&
info
->
backupDate
))
return
NULL
;
#if UNIVERSAL_INTERFACES_VERSION > 0x0332
// Permissions
// Permissions
permissions
=
(
FSPermissionInfo
*
)
info
->
permissions
;
permissions
=
(
FSPermissionInfo
*
)
info
->
permissions
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserID
,
&
permissions
->
userID
))
return
NULL
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserID
,
&
permissions
->
userID
))
return
NULL
;
...
@@ -1410,7 +1407,6 @@ int cataloginfo_from_dict(FSCatalogInfoBitmap bitmap, FSCatalogInfo *info, const
...
@@ -1410,7 +1407,6 @@ int cataloginfo_from_dict(FSCatalogInfoBitmap bitmap, FSCatalogInfo *info, const
permissions
->
mode
=
(
UInt16
)
storage
;
permissions
->
mode
=
(
UInt16
)
storage
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserAccess
,
&
storage
))
return
NULL
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserAccess
,
&
storage
))
return
NULL
;
permissions
->
userAccess
=
(
UInt8
)
storage
;
permissions
->
userAccess
=
(
UInt8
)
storage
;
#endif
// IDs
// IDs
if
(
fetch_long
(
bitmap
,
kFSCatInfoTextEncoding
,
dict
,
_kFSCatInfoTextEncoding
,
&
info
->
textEncodingHint
))
return
NULL
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoTextEncoding
,
dict
,
_kFSCatInfoTextEncoding
,
&
info
->
textEncodingHint
))
return
NULL
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoNodeFlags
,
dict
,
_kFSCatInfoNodeFlags
,
&
storage
))
return
NULL
;
if
(
fetch_long
(
bitmap
,
kFSCatInfoNodeFlags
,
dict
,
_kFSCatInfoNodeFlags
,
&
storage
))
return
NULL
;
...
@@ -1441,9 +1437,7 @@ PyObject *dict_from_cataloginfo(FSCatalogInfoBitmap bitmap, const FSCatalogInfo
...
@@ -1441,9 +1437,7 @@ PyObject *dict_from_cataloginfo(FSCatalogInfoBitmap bitmap, const FSCatalogInfo
{
{
PyObject
*
dict
;
PyObject
*
dict
;
PyObject
*
id
;
PyObject
*
id
;
#if UNIVERSAL_INTERFACES_VERSION > 0x0332
FSPermissionInfo
*
permissions
;
FSPermissionInfo
*
permissions
;
#endif
char
buffer
[
1024
];
char
buffer
[
1024
];
dict
=
PyDict_New
();
dict
=
PyDict_New
();
...
@@ -1473,14 +1467,12 @@ PyObject *dict_from_cataloginfo(FSCatalogInfoBitmap bitmap, const FSCatalogInfo
...
@@ -1473,14 +1467,12 @@ PyObject *dict_from_cataloginfo(FSCatalogInfoBitmap bitmap, const FSCatalogInfo
if
(
insert_longlong
(
bitmap
,
kFSCatInfoRsrcSizes
,
dict
,
_kFSCatInfoRsrcLogical
,
info
->
rsrcLogicalSize
))
return
NULL
;
if
(
insert_longlong
(
bitmap
,
kFSCatInfoRsrcSizes
,
dict
,
_kFSCatInfoRsrcLogical
,
info
->
rsrcLogicalSize
))
return
NULL
;
if
(
insert_longlong
(
bitmap
,
kFSCatInfoRsrcSizes
,
dict
,
_kFSCatInfoRsrcPhysical
,
info
->
rsrcPhysicalSize
))
return
NULL
;
if
(
insert_longlong
(
bitmap
,
kFSCatInfoRsrcSizes
,
dict
,
_kFSCatInfoRsrcPhysical
,
info
->
rsrcPhysicalSize
))
return
NULL
;
#if UNIVERSAL_INTERFACES_VERSION > 0x0332
// Permissions
// Permissions
permissions
=
(
FSPermissionInfo
*
)
info
->
permissions
;
permissions
=
(
FSPermissionInfo
*
)
info
->
permissions
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserID
,
permissions
->
userID
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserID
,
permissions
->
userID
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoGroupID
,
permissions
->
groupID
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoGroupID
,
permissions
->
groupID
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserAccess
,
permissions
->
userAccess
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoUserAccess
,
permissions
->
userAccess
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoMode
,
permissions
->
mode
))
return
NULL
;
if
(
insert_long
(
bitmap
,
kFSCatInfoPermissions
,
dict
,
_kFSCatInfoMode
,
permissions
->
mode
))
return
NULL
;
#endif
// Dates
// Dates
if
(
insert_utcdatetime
(
bitmap
,
kFSCatInfoCreateDate
,
dict
,
_kFSCatInfoCreateDate
,
&
info
->
createDate
))
return
NULL
;
if
(
insert_utcdatetime
(
bitmap
,
kFSCatInfoCreateDate
,
dict
,
_kFSCatInfoCreateDate
,
&
info
->
createDate
))
return
NULL
;
...
...
Mac/Modules/waste/wastemodule.c
Dosyayı görüntüle @
65cbf93f
...
@@ -43,8 +43,7 @@ static PyObject *ExistingwasteObj_New(WEReference);
...
@@ -43,8 +43,7 @@ static PyObject *ExistingwasteObj_New(WEReference);
** Parse/generate TextStyle records
** Parse/generate TextStyle records
*/
*/
static
static
PyObject
*
TextStyle_New
(
itself
)
PyObject
*
TextStyle_New
(
TextStylePtr
itself
)
TextStylePtr
itself
;
{
{
return
Py_BuildValue
(
"lllO&"
,
(
long
)
itself
->
tsFont
,
(
long
)
itself
->
tsFace
,
(
long
)
itself
->
tsSize
,
QdRGB_New
,
return
Py_BuildValue
(
"lllO&"
,
(
long
)
itself
->
tsFont
,
(
long
)
itself
->
tsFace
,
(
long
)
itself
->
tsSize
,
QdRGB_New
,
...
@@ -52,9 +51,7 @@ PyObject *TextStyle_New(itself)
...
@@ -52,9 +51,7 @@ PyObject *TextStyle_New(itself)
}
}
static
static
TextStyle_Convert
(
v
,
p_itself
)
TextStyle_Convert
(
PyObject
*
v
,
TextStylePtr
p_itself
)
PyObject
*
v
;
TextStylePtr
p_itself
;
{
{
long
font
,
face
,
size
;
long
font
,
face
,
size
;
...
@@ -70,8 +67,7 @@ TextStyle_Convert(v, p_itself)
...
@@ -70,8 +67,7 @@ TextStyle_Convert(v, p_itself)
** Parse/generate RunInfo records
** Parse/generate RunInfo records
*/
*/
static
static
PyObject
*
RunInfo_New
(
itself
)
PyObject
*
RunInfo_New
(
WERunInfo
*
itself
)
WERunInfo
*
itself
;
{
{
return
Py_BuildValue
(
"llhhO&O&"
,
itself
->
runStart
,
itself
->
runEnd
,
itself
->
runHeight
,
return
Py_BuildValue
(
"llhhO&O&"
,
itself
->
runStart
,
itself
->
runEnd
,
itself
->
runHeight
,
...
...
Mac/Modules/waste/wastesupport.py
Dosyayı görüntüle @
65cbf93f
...
@@ -83,8 +83,7 @@ static PyObject *ExistingwasteObj_New(WEReference);
...
@@ -83,8 +83,7 @@ static PyObject *ExistingwasteObj_New(WEReference);
** Parse/generate TextStyle records
** Parse/generate TextStyle records
*/
*/
static
static
PyObject *TextStyle_New(itself)
PyObject *TextStyle_New(TextStylePtr itself)
TextStylePtr itself;
{
{
return Py_BuildValue("lllO&", (long)itself->tsFont, (long)itself->tsFace, (long)itself->tsSize, QdRGB_New,
return Py_BuildValue("lllO&", (long)itself->tsFont, (long)itself->tsFace, (long)itself->tsSize, QdRGB_New,
...
@@ -92,9 +91,7 @@ PyObject *TextStyle_New(itself)
...
@@ -92,9 +91,7 @@ PyObject *TextStyle_New(itself)
}
}
static
static
TextStyle_Convert(v, p_itself)
TextStyle_Convert(PyObject *v, TextStylePtr p_itself)
PyObject *v;
TextStylePtr p_itself;
{
{
long font, face, size;
long font, face, size;
...
@@ -110,8 +107,7 @@ TextStyle_Convert(v, p_itself)
...
@@ -110,8 +107,7 @@ TextStyle_Convert(v, p_itself)
** Parse/generate RunInfo records
** Parse/generate RunInfo records
*/
*/
static
static
PyObject *RunInfo_New(itself)
PyObject *RunInfo_New(WERunInfo *itself)
WERunInfo *itself;
{
{
return Py_BuildValue("llhhO&O&", itself->runStart, itself->runEnd, itself->runHeight,
return Py_BuildValue("llhhO&O&", itself->runStart, itself->runEnd, itself->runHeight,
...
...
Mac/Modules/win/_Winmodule.c
Dosyayı görüntüle @
65cbf93f
...
@@ -36,21 +36,10 @@ extern int _WinObj_Convert(PyObject *, WindowRef *);
...
@@ -36,21 +36,10 @@ extern int _WinObj_Convert(PyObject *, WindowRef *);
#define WinObj_Convert _WinObj_Convert
#define WinObj_Convert _WinObj_Convert
#endif
#endif
#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
/* Classic calls that we emulate in carbon mode */
/* Classic calls that we emulate in carbon mode */
#define GetWindowUpdateRgn(win, rgn) GetWindowRegion((win), kWindowUpdateRgn, (rgn))
#define GetWindowUpdateRgn(win, rgn) GetWindowRegion((win), kWindowUpdateRgn, (rgn))
#define GetWindowStructureRgn(win, rgn) GetWindowRegion((win), kWindowStructureRgn, (rgn))
#define GetWindowStructureRgn(win, rgn) GetWindowRegion((win), kWindowStructureRgn, (rgn))
#define GetWindowContentRgn(win, rgn) GetWindowRegion((win), kWindowContentRgn, (rgn))
#define GetWindowContentRgn(win, rgn) GetWindowRegion((win), kWindowContentRgn, (rgn))
#endif
/* Function to dispose a window, with a "normal" calling sequence */
/* Function to dispose a window, with a "normal" calling sequence */
static
void
static
void
...
...
Mac/Modules/win/winsupport.py
Dosyayı görüntüle @
65cbf93f
...
@@ -74,21 +74,10 @@ extern int _WinObj_Convert(PyObject *, WindowRef *);
...
@@ -74,21 +74,10 @@ extern int _WinObj_Convert(PyObject *, WindowRef *);
#define WinObj_Convert _WinObj_Convert
#define WinObj_Convert _WinObj_Convert
#endif
#endif
#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
/* Classic calls that we emulate in carbon mode */
/* Classic calls that we emulate in carbon mode */
#define GetWindowUpdateRgn(win, rgn) GetWindowRegion((win), kWindowUpdateRgn, (rgn))
#define GetWindowUpdateRgn(win, rgn) GetWindowRegion((win), kWindowUpdateRgn, (rgn))
#define GetWindowStructureRgn(win, rgn) GetWindowRegion((win), kWindowStructureRgn, (rgn))
#define GetWindowStructureRgn(win, rgn) GetWindowRegion((win), kWindowStructureRgn, (rgn))
#define GetWindowContentRgn(win, rgn) GetWindowRegion((win), kWindowContentRgn, (rgn))
#define GetWindowContentRgn(win, rgn) GetWindowRegion((win), kWindowContentRgn, (rgn))
#endif
/* Function to dispose a window, with a "normal" calling sequence */
/* Function to dispose a window, with a "normal" calling sequence */
static void
static void
...
...
Mac/Python/macgetargv.c
Dosyayı görüntüle @
65cbf93f
...
@@ -45,11 +45,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -45,11 +45,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <Carbon/Carbon.h>
#include <Carbon/Carbon.h>
#endif
/* WITHOUT_FRAMEWORKS */
#endif
/* WITHOUT_FRAMEWORKS */
#if UNIVERSAL_INTERFACES_VERSION >= 0x0340
typedef
long
refcontype
;
typedef
long
refcontype
;
#else
typedef
unsigned
long
refcontype
;
#endif
#include "Python.h"
#include "Python.h"
#include "macglue.h"
#include "macglue.h"
...
...
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