summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2007-12-05 20:07:36 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2007-12-05 20:07:36 +0000
commitba687525c5cd03b1ba4384180d80fba828c84cf1 (patch)
tree6dcfd514cd4a5ff9ac864f66e1d0e3d904f636f0
parent0b60a14f13a9fa67b7d7980f4516f869042e91a7 (diff)
downloadcpython-git-ba687525c5cd03b1ba4384180d80fba828c84cf1.tar.gz
This "fixes" compilation issues for the Carbon._OSA module on OSX Leopard
by purging bindings to OSA's debug API's. Those APIs we're completely unsupported on OSX 10.4 and are no longer available on OSX 10.5. Note that this patches a generated file. This is somewhat acceptable because regenerating the file is non-trivial and wouldn't use system headers anyway.
-rw-r--r--Mac/Modules/osa/_OSAmodule.c336
1 files changed, 0 insertions, 336 deletions
diff --git a/Mac/Modules/osa/_OSAmodule.c b/Mac/Modules/osa/_OSAmodule.c
index fca4f9b6ae..ab30320210 100644
--- a/Mac/Modules/osa/_OSAmodule.c
+++ b/Mac/Modules/osa/_OSAmodule.c
@@ -726,314 +726,6 @@ static PyObject *OSAObj_OSAMakeContext(OSAComponentInstanceObject *_self, PyObje
return _res;
}
-static PyObject *OSAObj_OSADebuggerCreateSession(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSAID inScript;
- OSAID inContext;
- OSADebugSessionRef outSession;
-#ifndef OSADebuggerCreateSession
- PyMac_PRECHECK(OSADebuggerCreateSession);
-#endif
- if (!PyArg_ParseTuple(_args, "ll",
- &inScript,
- &inContext))
- return NULL;
- _err = OSADebuggerCreateSession(_self->ob_itself,
- inScript,
- inContext,
- &outSession);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outSession);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetSessionState(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- AERecord outState;
-#ifndef OSADebuggerGetSessionState
- PyMac_PRECHECK(OSADebuggerGetSessionState);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetSessionState(_self->ob_itself,
- inSession,
- &outState);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- AEDesc_New, &outState);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerSessionStep(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- OSADebugStepKind inKind;
-#ifndef OSADebuggerSessionStep
- PyMac_PRECHECK(OSADebuggerSessionStep);
-#endif
- if (!PyArg_ParseTuple(_args, "ll",
- &inSession,
- &inKind))
- return NULL;
- _err = OSADebuggerSessionStep(_self->ob_itself,
- inSession,
- inKind);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerDisposeSession(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
-#ifndef OSADebuggerDisposeSession
- PyMac_PRECHECK(OSADebuggerDisposeSession);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerDisposeSession(_self->ob_itself,
- inSession);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetStatementRanges(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- AEDescList outStatementRangeArray;
-#ifndef OSADebuggerGetStatementRanges
- PyMac_PRECHECK(OSADebuggerGetStatementRanges);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetStatementRanges(_self->ob_itself,
- inSession,
- &outStatementRangeArray);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- AEDesc_New, &outStatementRangeArray);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetBreakpoint(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- UInt32 inSrcOffset;
- OSAID outBreakpoint;
-#ifndef OSADebuggerGetBreakpoint
- PyMac_PRECHECK(OSADebuggerGetBreakpoint);
-#endif
- if (!PyArg_ParseTuple(_args, "ll",
- &inSession,
- &inSrcOffset))
- return NULL;
- _err = OSADebuggerGetBreakpoint(_self->ob_itself,
- inSession,
- inSrcOffset,
- &outBreakpoint);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outBreakpoint);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerSetBreakpoint(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- UInt32 inSrcOffset;
- OSAID inBreakpoint;
-#ifndef OSADebuggerSetBreakpoint
- PyMac_PRECHECK(OSADebuggerSetBreakpoint);
-#endif
- if (!PyArg_ParseTuple(_args, "lll",
- &inSession,
- &inSrcOffset,
- &inBreakpoint))
- return NULL;
- _err = OSADebuggerSetBreakpoint(_self->ob_itself,
- inSession,
- inSrcOffset,
- inBreakpoint);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetDefaultBreakpoint(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- OSAID outBreakpoint;
-#ifndef OSADebuggerGetDefaultBreakpoint
- PyMac_PRECHECK(OSADebuggerGetDefaultBreakpoint);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetDefaultBreakpoint(_self->ob_itself,
- inSession,
- &outBreakpoint);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outBreakpoint);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetCurrentCallFrame(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugSessionRef inSession;
- OSADebugCallFrameRef outCallFrame;
-#ifndef OSADebuggerGetCurrentCallFrame
- PyMac_PRECHECK(OSADebuggerGetCurrentCallFrame);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inSession))
- return NULL;
- _err = OSADebuggerGetCurrentCallFrame(_self->ob_itself,
- inSession,
- &outCallFrame);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outCallFrame);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetCallFrameState(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
- AERecord outState;
-#ifndef OSADebuggerGetCallFrameState
- PyMac_PRECHECK(OSADebuggerGetCallFrameState);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inCallFrame))
- return NULL;
- _err = OSADebuggerGetCallFrameState(_self->ob_itself,
- inCallFrame,
- &outState);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("O&",
- AEDesc_New, &outState);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetVariable(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
- AEDesc inVariableName;
- OSAID outVariable;
-#ifndef OSADebuggerGetVariable
- PyMac_PRECHECK(OSADebuggerGetVariable);
-#endif
- if (!PyArg_ParseTuple(_args, "lO&",
- &inCallFrame,
- AEDesc_Convert, &inVariableName))
- return NULL;
- _err = OSADebuggerGetVariable(_self->ob_itself,
- inCallFrame,
- &inVariableName,
- &outVariable);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outVariable);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerSetVariable(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
- AEDesc inVariableName;
- OSAID inVariable;
-#ifndef OSADebuggerSetVariable
- PyMac_PRECHECK(OSADebuggerSetVariable);
-#endif
- if (!PyArg_ParseTuple(_args, "lO&l",
- &inCallFrame,
- AEDesc_Convert, &inVariableName,
- &inVariable))
- return NULL;
- _err = OSADebuggerSetVariable(_self->ob_itself,
- inCallFrame,
- &inVariableName,
- inVariable);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerGetPreviousCallFrame(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCurrentFrame;
- OSADebugCallFrameRef outPrevFrame;
-#ifndef OSADebuggerGetPreviousCallFrame
- PyMac_PRECHECK(OSADebuggerGetPreviousCallFrame);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inCurrentFrame))
- return NULL;
- _err = OSADebuggerGetPreviousCallFrame(_self->ob_itself,
- inCurrentFrame,
- &outPrevFrame);
- if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("l",
- outPrevFrame);
- return _res;
-}
-
-static PyObject *OSAObj_OSADebuggerDisposeCallFrame(OSAComponentInstanceObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- OSAError _err;
- OSADebugCallFrameRef inCallFrame;
-#ifndef OSADebuggerDisposeCallFrame
- PyMac_PRECHECK(OSADebuggerDisposeCallFrame);
-#endif
- if (!PyArg_ParseTuple(_args, "l",
- &inCallFrame))
- return NULL;
- _err = OSADebuggerDisposeCallFrame(_self->ob_itself,
- inCallFrame);
- if (_err != noErr) return PyMac_Error(_err);
- Py_INCREF(Py_None);
- _res = Py_None;
- return _res;
-}
-
static PyMethodDef OSAObj_methods[] = {
{"OSALoad", (PyCFunction)OSAObj_OSALoad, 1,
PyDoc_STR("(AEDesc scriptData, long modeFlags) -> (OSAID resultingScriptID)")},
@@ -1091,34 +783,6 @@ static PyMethodDef OSAObj_methods[] = {
PyDoc_STR("(AppleEvent theAppleEvent, OSAID contextID, long modeFlags) -> (AppleEvent reply)")},
{"OSAMakeContext", (PyCFunction)OSAObj_OSAMakeContext, 1,
PyDoc_STR("(AEDesc contextName, OSAID parentContext) -> (OSAID resultingContextID)")},
- {"OSADebuggerCreateSession", (PyCFunction)OSAObj_OSADebuggerCreateSession, 1,
- PyDoc_STR("(OSAID inScript, OSAID inContext) -> (OSADebugSessionRef outSession)")},
- {"OSADebuggerGetSessionState", (PyCFunction)OSAObj_OSADebuggerGetSessionState, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (AERecord outState)")},
- {"OSADebuggerSessionStep", (PyCFunction)OSAObj_OSADebuggerSessionStep, 1,
- PyDoc_STR("(OSADebugSessionRef inSession, OSADebugStepKind inKind) -> None")},
- {"OSADebuggerDisposeSession", (PyCFunction)OSAObj_OSADebuggerDisposeSession, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> None")},
- {"OSADebuggerGetStatementRanges", (PyCFunction)OSAObj_OSADebuggerGetStatementRanges, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (AEDescList outStatementRangeArray)")},
- {"OSADebuggerGetBreakpoint", (PyCFunction)OSAObj_OSADebuggerGetBreakpoint, 1,
- PyDoc_STR("(OSADebugSessionRef inSession, UInt32 inSrcOffset) -> (OSAID outBreakpoint)")},
- {"OSADebuggerSetBreakpoint", (PyCFunction)OSAObj_OSADebuggerSetBreakpoint, 1,
- PyDoc_STR("(OSADebugSessionRef inSession, UInt32 inSrcOffset, OSAID inBreakpoint) -> None")},
- {"OSADebuggerGetDefaultBreakpoint", (PyCFunction)OSAObj_OSADebuggerGetDefaultBreakpoint, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (OSAID outBreakpoint)")},
- {"OSADebuggerGetCurrentCallFrame", (PyCFunction)OSAObj_OSADebuggerGetCurrentCallFrame, 1,
- PyDoc_STR("(OSADebugSessionRef inSession) -> (OSADebugCallFrameRef outCallFrame)")},
- {"OSADebuggerGetCallFrameState", (PyCFunction)OSAObj_OSADebuggerGetCallFrameState, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame) -> (AERecord outState)")},
- {"OSADebuggerGetVariable", (PyCFunction)OSAObj_OSADebuggerGetVariable, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame, AEDesc inVariableName) -> (OSAID outVariable)")},
- {"OSADebuggerSetVariable", (PyCFunction)OSAObj_OSADebuggerSetVariable, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame, AEDesc inVariableName, OSAID inVariable) -> None")},
- {"OSADebuggerGetPreviousCallFrame", (PyCFunction)OSAObj_OSADebuggerGetPreviousCallFrame, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCurrentFrame) -> (OSADebugCallFrameRef outPrevFrame)")},
- {"OSADebuggerDisposeCallFrame", (PyCFunction)OSAObj_OSADebuggerDisposeCallFrame, 1,
- PyDoc_STR("(OSADebugCallFrameRef inCallFrame) -> None")},
{NULL, NULL, 0}
};