/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2004-2009 Kitware, Inc. Copyright 2004 Alexander Neundorf (neundorf@kde.org) Copyright 2013 Eran Ifrah (eran.ifrah@gmail.com) Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more information. ============================================================================*/ #ifndef cmGlobalCodeLiteGenerator_h #define cmGlobalCodeLiteGenerator_h #include "cmExternalMakefileProjectGenerator.h" class cmLocalGenerator; class cmExtraCodeLiteGenerator : public cmExternalMakefileProjectGenerator { protected: std::string ConfigName; std::string WorkspacePath; unsigned int CpuCount; protected: std::string GetCodeLiteCompilerName(const cmMakefile* mf) const; std::string GetConfigurationName( const cmMakefile* mf ) const; std::string GetBuildCommand(const cmMakefile* mf) const; std::string GetCleanCommand(const cmMakefile* mf) const; std::string GetRebuildCommand(const cmMakefile* mf) const; std::string GetSingleFileBuildCommand(const cmMakefile* mf) const; public: cmExtraCodeLiteGenerator(); virtual std::string GetName() const { return cmExtraCodeLiteGenerator::GetActualName();} static std::string GetActualName() { return "CodeLite";} static cmExternalMakefileProjectGenerator* New() { return new cmExtraCodeLiteGenerator; } /** Get the documentation entry for this generator. */ virtual void GetDocumentation(cmDocumentationEntry& entry, const std::string& fullName) const; virtual void Generate(); void CreateProjectFile(const std::vector& lgs); void CreateNewProjectFile(const std::vector& lgs, const std::string& filename); }; #endif ='h' value='v3.8.14'/>
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-09-20 17:40:22 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-09-20 17:40:22 (GMT)
commita755e68df647bd3dc27749998d19cc47649a8b4f (patch)
tree95f40587e6e5befe6a870474fc9a15cc0f3683b1
parent6dd48686810f4806d98eaffa29e53dfabaca2e08 (diff)
downloadcpython-a755e68df647bd3dc27749998d19cc47649a8b4f.zip
cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.gz
cpython-a755e68df647bd3dc27749998d19cc47649a8b4f.tar.bz2
Export type objects to Python
-rw-r--r--Mac/Modules/ae/AEmodule.c4
-rw-r--r--Mac/Modules/cm/Cmmodule.c8
-rw-r--r--Mac/Modules/ctbmodule.c5
-rw-r--r--Mac/Modules/ctl/Ctlmodule.c4
-rw-r--r--Mac/Modules/ctl/ctledit.py2
-rw-r--r--Mac/Modules/dlg/Dlgmodule.c4
-rw-r--r--Mac/Modules/help/Helpmodule.c2
-rw-r--r--Mac/Modules/help/helpsupport.py2
-rw-r--r--Mac/Modules/list/Listmodule.c4
-rw-r--r--Mac/Modules/macfsmodule.c11
-rw-r--r--Mac/Modules/macosmodule.c6
-rw-r--r--Mac/Modules/menu/Menumodule.c4
-rw-r--r--Mac/Modules/qd/Qdmodule.c12
-rw-r--r--Mac/Modules/qt/Qtmodule.c24
-rw-r--r--Mac/Modules/res/Resmodule.c4
-rw-r--r--Mac/Modules/snd/Sndmodule.c4
-rw-r--r--Mac/Modules/te/TEmodule.c4
-rw-r--r--Mac/Modules/waste/wastemodule.c10
-rw-r--r--Mac/Modules/win/Winmodule.c4
19 files changed, 111 insertions, 7 deletions
diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c
index a2a8b14..ed20b40 100644
--- a/Mac/Modules/ae/AEmodule.c
+++ b/Mac/Modules/ae/AEmodule.c
@@ -1180,6 +1180,10 @@ void initAE()
if (AE_Error == NULL ||
PyDict_SetItemString(d, "Error", AE_Error) != 0)
Py_FatalError("can't initialize AE.Error");
+ AEDesc_Type.ob_type = &PyType_Type;
+ Py_INCREF(&AEDesc_Type);
+ if (PyDict_SetItemString(d, "AEDescType", (PyObject *)&AEDesc_Type) != 0)
+ Py_FatalError("can't initialize AEDescType");
}
/* ========================= End module AE ========================== */
diff --git a/Mac/Modules/cm/Cmmodule.c b/Mac/Modules/cm/Cmmodule.c
index 93aab45..fe35685 100644
--- a/Mac/Modules/cm/Cmmodule.c
+++ b/Mac/Modules/cm/Cmmodule.c
@@ -761,6 +761,14 @@ void initCm()
if (Cm_Error == NULL ||
PyDict_SetItemString(d, "Error", Cm_Error) != 0)
Py_FatalError("can't initialize Cm.Error");
+ ComponentInstance_Type.ob_type = &PyType_Type;
+ Py_INCREF(&ComponentInstance_Type);
+ if (PyDict_SetItemString(d, "ComponentInstanceType", (PyObject *)&ComponentInstance_Type) != 0)
+ Py_FatalError("can't initialize ComponentInstanceType");
+ Component_Type.ob_type = &PyType_Type;
+ Py_INCREF(&Component_Type);
+ if (PyDict_SetItemString(d, "ComponentType", (PyObject *)&Component_Type) != 0)
+ Py_FatalError("can't initialize ComponentType");
}
/* ========================= End module Cm ========================== */
diff --git a/Mac/Modules/ctbmodule.c b/Mac/Modules/ctbmodule.c
index 907b7bb..6eabca9 100644
--- a/Mac/Modules/ctbmodule.c
+++ b/Mac/Modules/ctbmodule.c
@@ -478,7 +478,7 @@ ctbcm_setattr(self, name, v)
statichere PyTypeObject ctbcmtype = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "ctbcm", /*tp_name*/
+ "CTBConnectionMgr", /*tp_name*/
sizeof(ctbcmobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -608,6 +608,9 @@ initctb()
ErrorObject = PyString_FromString("ctb.error");
PyDict_SetItemString(d, "error", ErrorObject);
+ ctbcmtype.ob_type = &PyType_Type;
+ Py_INCREF(&ctbcmtype);
+ PyDict_SetItemString(d, "CTBConnectionMgrType", (PyObject *)&ctbcmtype);
/* Check for errors */
if (PyErr_Occurred())
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c
index 654f671..573f581 100644
--- a/Mac/Modules/ctl/Ctlmodule.c
+++ b/Mac/Modules/ctl/Ctlmodule.c
@@ -733,6 +733,10 @@ void initCtl()
if (Ctl_Error == NULL ||
PyDict_SetItemString(d, "Error", Ctl_Error) != 0)
Py_FatalError("can't initialize Ctl.Error");
+ Control_Type.ob_type = &PyType_Type;
+ Py_INCREF(&Control_Type);
+ if (PyDict_SetItemString(d, "ControlType", (PyObject *)&Control_Type) != 0)
+ Py_FatalError("can't initialize ControlType");
}
/* ========================= End module Ctl ========================= */
diff --git a/Mac/Modules/ctl/ctledit.py b/Mac/Modules/ctl/ctledit.py
index 9240851..a23eef8 100644
--- a/Mac/Modules/ctl/ctledit.py
+++ b/Mac/Modules/ctl/ctledit.py
@@ -11,7 +11,7 @@ DisposeControl_body = """
if (!PyArg_ParseTuple(_args, ""))
return NULL;
if ( _self->ob_itself ) {
- SetCRefCon(_self->ob_itself, (long)0); /* Make it forget about us */
+ SetControlReference(_self->ob_itself, (long)0); /* Make it forget about us */
DisposeControl(_self->ob_itself);
_self->ob_itself = NULL;
}
diff --git a/Mac/Modules/dlg/Dlgmodule.c b/Mac/Modules/dlg/Dlgmodule.c
index 5949ea1..7ca2a59 100644
--- a/Mac/Modules/dlg/Dlgmodule.c
+++ b/Mac/Modules/dlg/Dlgmodule.c
@@ -1008,6 +1008,10 @@ void initDlg()
if (Dlg_Error == NULL ||
PyDict_SetItemString(d, "Error", Dlg_Error) != 0)
Py_FatalError("can't initialize Dlg.Error");
+ Dialog_Type.ob_type = &PyType_Type;
+ Py_INCREF(&Dialog_Type);
+ if (PyDict_SetItemString(d, "DialogType", (PyObject *)&Dialog_Type) != 0)
+ Py_FatalError("can't initialize DialogType");
}
/* ========================= End module Dlg ========================= */
diff --git a/Mac/Modules/help/Helpmodule.c b/Mac/Modules/help/Helpmodule.c
index aac22ad..e6cb0a2 100644
--- a/Mac/Modules/help/Helpmodule.c
+++ b/Mac/Modules/help/Helpmodule.c
@@ -60,7 +60,7 @@ static PyObject *Help_HMGetHelpMenuHandle(_self, _args)
_err = HMGetHelpMenuHandle(&mh);
if (_err != noErr) return PyMac_Error(_err);
_res = Py_BuildValue("O&",
- ResObj_New, mh);
+ MenuObj_New, mh);
return _res;
}
diff --git a/Mac/Modules/help/helpsupport.py b/Mac/Modules/help/helpsupport.py
index 570ac32..1e7ac84 100644
--- a/Mac/Modules/help/helpsupport.py
+++ b/Mac/Modules/help/helpsupport.py
@@ -21,7 +21,7 @@ OUTPUTFILE = MODNAME + "module.c" # The file generated by this program
from macsupport import *
# Create the type objects
-MenuRef = OpaqueByValueType("MenuRef", "ResObj")
+MenuRef = OpaqueByValueType("MenuRef", "MenuObj")
#WindowPeek = OpaqueByValueType("WindowPeek", OBJECTPREFIX)
diff --git a/Mac/Modules/list/Listmodule.c b/Mac/Modules/list/Listmodule.c
index b0ce515..e0eace9 100644
--- a/Mac/Modules/list/Listmodule.c
+++ b/Mac/Modules/list/Listmodule.c
@@ -673,6 +673,10 @@ void initList()
if (List_Error == NULL ||
PyDict_SetItemString(d, "Error", List_Error) != 0)
Py_FatalError("can't initialize List.Error");
+ List_Type.ob_type = &PyType_Type;
+ Py_INCREF(&List_Type);
+ if (PyDict_SetItemString(d, "ListType", (PyObject *)&List_Type) != 0)
+ Py_FatalError("can't initialize ListType");
}
/* ======================== End module List ========================= */
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 4bea8ce..2c5af1e 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -313,7 +313,7 @@ mfsi_setattr(self, name, v)
static PyTypeObject Mfsitype = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "FInfo object", /*tp_name*/
+ "FInfo", /*tp_name*/
sizeof(mfsiobject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -982,6 +982,15 @@ initmacfs()
ErrorObject = PyString_FromString("macfs.error");
PyDict_SetItemString(d, "error", ErrorObject);
+ Mfsatype.ob_type = &PyType_Type;
+ Py_INCREF(&Mfsatype);
+ PyDict_SetItemString(d, "AliasType", (PyObject *)&Mfsatype);
+ Mfsstype.ob_type = &PyType_Type;
+ Py_INCREF(&Mfsstype);
+ PyDict_SetItemString(d, "FSSpecType", (PyObject *)&Mfsstype);
+ Mfsitype.ob_type = &PyType_Type;
+ Py_INCREF(&Mfsitype);
+ PyDict_SetItemString(d, "FInfoType", (PyObject *)&Mfsitype);
/* XXXX Add constants here */
/* Check for errors */
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c