|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _TCLOOINTDECLS |
|
|
#define _TCLOOINTDECLS |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TCLAPI Tcl_Object TclOOGetDefineCmdContext(Tcl_Interp *interp); |
|
|
|
|
|
TCLAPI Tcl_Method TclOOMakeProcInstanceMethod(Tcl_Interp *interp, |
|
|
Object *oPtr, int flags, Tcl_Obj *nameObj, |
|
|
Tcl_Obj *argsObj, Tcl_Obj *bodyObj, |
|
|
const Tcl_MethodType *typePtr, |
|
|
void *clientData, Proc **procPtrPtr); |
|
|
|
|
|
TCLAPI Tcl_Method TclOOMakeProcMethod(Tcl_Interp *interp, |
|
|
Class *clsPtr, int flags, Tcl_Obj *nameObj, |
|
|
const char *namePtr, Tcl_Obj *argsObj, |
|
|
Tcl_Obj *bodyObj, |
|
|
const Tcl_MethodType *typePtr, |
|
|
void *clientData, Proc **procPtrPtr); |
|
|
|
|
|
TCLAPI Method * TclOONewProcInstanceMethod(Tcl_Interp *interp, |
|
|
Object *oPtr, int flags, Tcl_Obj *nameObj, |
|
|
Tcl_Obj *argsObj, Tcl_Obj *bodyObj, |
|
|
ProcedureMethod **pmPtrPtr); |
|
|
|
|
|
TCLAPI Method * TclOONewProcMethod(Tcl_Interp *interp, Class *clsPtr, |
|
|
int flags, Tcl_Obj *nameObj, |
|
|
Tcl_Obj *argsObj, Tcl_Obj *bodyObj, |
|
|
ProcedureMethod **pmPtrPtr); |
|
|
|
|
|
TCLAPI int TclOOObjectCmdCore(Object *oPtr, Tcl_Interp *interp, |
|
|
int objc, Tcl_Obj *const *objv, |
|
|
int publicOnly, Class *startCls); |
|
|
|
|
|
TCLAPI int TclOOIsReachable(Class *targetPtr, Class *startPtr); |
|
|
|
|
|
TCLAPI Method * TclOONewForwardMethod(Tcl_Interp *interp, |
|
|
Class *clsPtr, int isPublic, |
|
|
Tcl_Obj *nameObj, Tcl_Obj *prefixObj); |
|
|
|
|
|
TCLAPI Method * TclOONewForwardInstanceMethod(Tcl_Interp *interp, |
|
|
Object *oPtr, int isPublic, Tcl_Obj *nameObj, |
|
|
Tcl_Obj *prefixObj); |
|
|
|
|
|
TCLAPI Tcl_Method TclOONewProcInstanceMethodEx(Tcl_Interp *interp, |
|
|
Tcl_Object oPtr, |
|
|
TclOO_PreCallProc *preCallPtr, |
|
|
TclOO_PostCallProc *postCallPtr, |
|
|
ProcErrorProc *errProc, void *clientData, |
|
|
Tcl_Obj *nameObj, Tcl_Obj *argsObj, |
|
|
Tcl_Obj *bodyObj, int flags, |
|
|
void **internalTokenPtr); |
|
|
|
|
|
TCLAPI Tcl_Method TclOONewProcMethodEx(Tcl_Interp *interp, |
|
|
Tcl_Class clsPtr, |
|
|
TclOO_PreCallProc *preCallPtr, |
|
|
TclOO_PostCallProc *postCallPtr, |
|
|
ProcErrorProc *errProc, void *clientData, |
|
|
Tcl_Obj *nameObj, Tcl_Obj *argsObj, |
|
|
Tcl_Obj *bodyObj, int flags, |
|
|
void **internalTokenPtr); |
|
|
|
|
|
TCLAPI int TclOOInvokeObject(Tcl_Interp *interp, |
|
|
Tcl_Object object, Tcl_Class startCls, |
|
|
int publicPrivate, int objc, |
|
|
Tcl_Obj *const *objv); |
|
|
|
|
|
TCLAPI void TclOOObjectSetFilters(Object *oPtr, int numFilters, |
|
|
Tcl_Obj *const *filters); |
|
|
|
|
|
TCLAPI void TclOOClassSetFilters(Tcl_Interp *interp, |
|
|
Class *classPtr, int numFilters, |
|
|
Tcl_Obj *const *filters); |
|
|
|
|
|
TCLAPI void TclOOObjectSetMixins(Object *oPtr, int numMixins, |
|
|
Class *const *mixins); |
|
|
|
|
|
TCLAPI void TclOOClassSetMixins(Tcl_Interp *interp, |
|
|
Class *classPtr, int numMixins, |
|
|
Class *const *mixins); |
|
|
|
|
|
typedef struct TclOOIntStubs { |
|
|
int magic; |
|
|
void *hooks; |
|
|
|
|
|
Tcl_Object (*tclOOGetDefineCmdContext) (Tcl_Interp *interp); |
|
|
Tcl_Method (*tclOOMakeProcInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, void *clientData, Proc **procPtrPtr); |
|
|
Tcl_Method (*tclOOMakeProcMethod) (Tcl_Interp *interp, Class *clsPtr, int flags, Tcl_Obj *nameObj, const char *namePtr, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, const Tcl_MethodType *typePtr, void *clientData, Proc **procPtrPtr); |
|
|
Method * (*tclOONewProcInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, ProcedureMethod **pmPtrPtr); |
|
|
Method * (*tclOONewProcMethod) (Tcl_Interp *interp, Class *clsPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, ProcedureMethod **pmPtrPtr); |
|
|
int (*tclOOObjectCmdCore) (Object *oPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const *objv, int publicOnly, Class *startCls); |
|
|
int (*tclOOIsReachable) (Class *targetPtr, Class *startPtr); |
|
|
Method * (*tclOONewForwardMethod) (Tcl_Interp *interp, Class *clsPtr, int isPublic, Tcl_Obj *nameObj, Tcl_Obj *prefixObj); |
|
|
Method * (*tclOONewForwardInstanceMethod) (Tcl_Interp *interp, Object *oPtr, int isPublic, Tcl_Obj *nameObj, Tcl_Obj *prefixObj); |
|
|
Tcl_Method (*tclOONewProcInstanceMethodEx) (Tcl_Interp *interp, Tcl_Object oPtr, TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, void **internalTokenPtr); |
|
|
Tcl_Method (*tclOONewProcMethodEx) (Tcl_Interp *interp, Tcl_Class clsPtr, TclOO_PreCallProc *preCallPtr, TclOO_PostCallProc *postCallPtr, ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, int flags, void **internalTokenPtr); |
|
|
int (*tclOOInvokeObject) (Tcl_Interp *interp, Tcl_Object object, Tcl_Class startCls, int publicPrivate, int objc, Tcl_Obj *const *objv); |
|
|
void (*tclOOObjectSetFilters) (Object *oPtr, int numFilters, Tcl_Obj *const *filters); |
|
|
void (*tclOOClassSetFilters) (Tcl_Interp *interp, Class *classPtr, int numFilters, Tcl_Obj *const *filters); |
|
|
void (*tclOOObjectSetMixins) (Object *oPtr, int numMixins, Class *const *mixins); |
|
|
void (*tclOOClassSetMixins) (Tcl_Interp *interp, Class *classPtr, int numMixins, Class *const *mixins); |
|
|
} TclOOIntStubs; |
|
|
|
|
|
extern const TclOOIntStubs *tclOOIntStubsPtr; |
|
|
|
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
|
|
|
|
#if defined(USE_TCLOO_STUBS) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define TclOOGetDefineCmdContext \ |
|
|
(tclOOIntStubsPtr->tclOOGetDefineCmdContext) |
|
|
#define TclOOMakeProcInstanceMethod \ |
|
|
(tclOOIntStubsPtr->tclOOMakeProcInstanceMethod) |
|
|
#define TclOOMakeProcMethod \ |
|
|
(tclOOIntStubsPtr->tclOOMakeProcMethod) |
|
|
#define TclOONewProcInstanceMethod \ |
|
|
(tclOOIntStubsPtr->tclOONewProcInstanceMethod) |
|
|
#define TclOONewProcMethod \ |
|
|
(tclOOIntStubsPtr->tclOONewProcMethod) |
|
|
#define TclOOObjectCmdCore \ |
|
|
(tclOOIntStubsPtr->tclOOObjectCmdCore) |
|
|
#define TclOOIsReachable \ |
|
|
(tclOOIntStubsPtr->tclOOIsReachable) |
|
|
#define TclOONewForwardMethod \ |
|
|
(tclOOIntStubsPtr->tclOONewForwardMethod) |
|
|
#define TclOONewForwardInstanceMethod \ |
|
|
(tclOOIntStubsPtr->tclOONewForwardInstanceMethod) |
|
|
#define TclOONewProcInstanceMethodEx \ |
|
|
(tclOOIntStubsPtr->tclOONewProcInstanceMethodEx) |
|
|
#define TclOONewProcMethodEx \ |
|
|
(tclOOIntStubsPtr->tclOONewProcMethodEx) |
|
|
#define TclOOInvokeObject \ |
|
|
(tclOOIntStubsPtr->tclOOInvokeObject) |
|
|
#define TclOOObjectSetFilters \ |
|
|
(tclOOIntStubsPtr->tclOOObjectSetFilters) |
|
|
#define TclOOClassSetFilters \ |
|
|
(tclOOIntStubsPtr->tclOOClassSetFilters) |
|
|
#define TclOOObjectSetMixins \ |
|
|
(tclOOIntStubsPtr->tclOOObjectSetMixins) |
|
|
#define TclOOClassSetMixins \ |
|
|
(tclOOIntStubsPtr->tclOOClassSetMixins) |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|