1/* 2 * itclDecls.h -- 3 * 4 * Declarations of functions in the platform independent public Itcl API. 5 * 6 * See the file "license.terms" for information on usage and redistribution 7 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 8 * 9 * RCS: $Id: itclDecls.h,v 1.9 2003/12/23 05:22:45 davygrvy Exp $ 10 */ 11 12#ifndef _ITCLDECLS 13#define _ITCLDECLS 14 15/* 16 * WARNING: This file is automatically generated by the tools/genStubs.tcl 17 * script. Any modifications to the function declarations below should be made 18 * in the itcl/generic/tcl.decls script. 19 */ 20 21/* !BEGIN!: Do not edit below this line. */ 22 23/* 24 * Exported function declarations: 25 */ 26 27#ifndef Itcl_Init_TCL_DECLARED 28#define Itcl_Init_TCL_DECLARED 29/* 0 */ 30TCL_EXTERN(int) Itcl_Init _ANSI_ARGS_((Tcl_Interp * interp)); 31#endif 32#ifndef Itcl_SafeInit_TCL_DECLARED 33#define Itcl_SafeInit_TCL_DECLARED 34/* 1 */ 35TCL_EXTERN(int) Itcl_SafeInit _ANSI_ARGS_((Tcl_Interp * interp)); 36#endif 37#ifndef Itcl_RegisterC_TCL_DECLARED 38#define Itcl_RegisterC_TCL_DECLARED 39/* 2 */ 40TCL_EXTERN(int) Itcl_RegisterC _ANSI_ARGS_((Tcl_Interp * interp, 41 CONST char * name, Tcl_CmdProc * proc, 42 ClientData clientData, 43 Tcl_CmdDeleteProc * deleteProc)); 44#endif 45#ifndef Itcl_RegisterObjC_TCL_DECLARED 46#define Itcl_RegisterObjC_TCL_DECLARED 47/* 3 */ 48TCL_EXTERN(int) Itcl_RegisterObjC _ANSI_ARGS_((Tcl_Interp * interp, 49 CONST char * name, Tcl_ObjCmdProc * proc, 50 ClientData clientData, 51 Tcl_CmdDeleteProc * deleteProc)); 52#endif 53#ifndef Itcl_FindC_TCL_DECLARED 54#define Itcl_FindC_TCL_DECLARED 55/* 4 */ 56TCL_EXTERN(int) Itcl_FindC _ANSI_ARGS_((Tcl_Interp * interp, 57 CONST char * name, Tcl_CmdProc ** argProcPtr, 58 Tcl_ObjCmdProc ** objProcPtr, 59 ClientData * cDataPtr)); 60#endif 61#ifndef Itcl_InitStack_TCL_DECLARED 62#define Itcl_InitStack_TCL_DECLARED 63/* 5 */ 64TCL_EXTERN(void) Itcl_InitStack _ANSI_ARGS_((Itcl_Stack * stack)); 65#endif 66#ifndef Itcl_DeleteStack_TCL_DECLARED 67#define Itcl_DeleteStack_TCL_DECLARED 68/* 6 */ 69TCL_EXTERN(void) Itcl_DeleteStack _ANSI_ARGS_((Itcl_Stack * stack)); 70#endif 71#ifndef Itcl_PushStack_TCL_DECLARED 72#define Itcl_PushStack_TCL_DECLARED 73/* 7 */ 74TCL_EXTERN(void) Itcl_PushStack _ANSI_ARGS_((ClientData cdata, 75 Itcl_Stack * stack)); 76#endif 77#ifndef Itcl_PopStack_TCL_DECLARED 78#define Itcl_PopStack_TCL_DECLARED 79/* 8 */ 80TCL_EXTERN(ClientData) Itcl_PopStack _ANSI_ARGS_((Itcl_Stack * stack)); 81#endif 82#ifndef Itcl_PeekStack_TCL_DECLARED 83#define Itcl_PeekStack_TCL_DECLARED 84/* 9 */ 85TCL_EXTERN(ClientData) Itcl_PeekStack _ANSI_ARGS_((Itcl_Stack * stack)); 86#endif 87#ifndef Itcl_GetStackValue_TCL_DECLARED 88#define Itcl_GetStackValue_TCL_DECLARED 89/* 10 */ 90TCL_EXTERN(ClientData) Itcl_GetStackValue _ANSI_ARGS_((Itcl_Stack * stack, 91 int pos)); 92#endif 93#ifndef Itcl_InitList_TCL_DECLARED 94#define Itcl_InitList_TCL_DECLARED 95/* 11 */ 96TCL_EXTERN(void) Itcl_InitList _ANSI_ARGS_((Itcl_List * listPtr)); 97#endif 98#ifndef Itcl_DeleteList_TCL_DECLARED 99#define Itcl_DeleteList_TCL_DECLARED 100/* 12 */ 101TCL_EXTERN(void) Itcl_DeleteList _ANSI_ARGS_((Itcl_List * listPtr)); 102#endif 103#ifndef Itcl_CreateListElem_TCL_DECLARED 104#define Itcl_CreateListElem_TCL_DECLARED 105/* 13 */ 106TCL_EXTERN(Itcl_ListElem*) Itcl_CreateListElem _ANSI_ARGS_(( 107 Itcl_List * listPtr)); 108#endif 109#ifndef Itcl_DeleteListElem_TCL_DECLARED 110#define Itcl_DeleteListElem_TCL_DECLARED 111/* 14 */ 112TCL_EXTERN(Itcl_ListElem*) Itcl_DeleteListElem _ANSI_ARGS_(( 113 Itcl_ListElem * elemPtr)); 114#endif 115#ifndef Itcl_InsertList_TCL_DECLARED 116#define Itcl_InsertList_TCL_DECLARED 117/* 15 */ 118TCL_EXTERN(Itcl_ListElem*) Itcl_InsertList _ANSI_ARGS_((Itcl_List * listPtr, 119 ClientData val)); 120#endif 121#ifndef Itcl_InsertListElem_TCL_DECLARED 122#define Itcl_InsertListElem_TCL_DECLARED 123/* 16 */ 124TCL_EXTERN(Itcl_ListElem*) Itcl_InsertListElem _ANSI_ARGS_(( 125 Itcl_ListElem * pos, ClientData val)); 126#endif 127#ifndef Itcl_AppendList_TCL_DECLARED 128#define Itcl_AppendList_TCL_DECLARED 129/* 17 */ 130TCL_EXTERN(Itcl_ListElem*) Itcl_AppendList _ANSI_ARGS_((Itcl_List * listPtr, 131 ClientData val)); 132#endif 133#ifndef Itcl_AppendListElem_TCL_DECLARED 134#define Itcl_AppendListElem_TCL_DECLARED 135/* 18 */ 136TCL_EXTERN(Itcl_ListElem*) Itcl_AppendListElem _ANSI_ARGS_(( 137 Itcl_ListElem * pos, ClientData val)); 138#endif 139#ifndef Itcl_SetListValue_TCL_DECLARED 140#define Itcl_SetListValue_TCL_DECLARED 141/* 19 */ 142TCL_EXTERN(void) Itcl_SetListValue _ANSI_ARGS_(( 143 Itcl_ListElem * elemPtr, ClientData val)); 144#endif 145#ifndef Itcl_EventuallyFree_TCL_DECLARED 146#define Itcl_EventuallyFree_TCL_DECLARED 147/* 20 */ 148TCL_EXTERN(void) Itcl_EventuallyFree _ANSI_ARGS_((ClientData cdata, 149 Tcl_FreeProc * fproc)); 150#endif 151#ifndef Itcl_PreserveData_TCL_DECLARED 152#define Itcl_PreserveData_TCL_DECLARED 153/* 21 */ 154TCL_EXTERN(void) Itcl_PreserveData _ANSI_ARGS_((ClientData cdata)); 155#endif 156#ifndef Itcl_ReleaseData_TCL_DECLARED 157#define Itcl_ReleaseData_TCL_DECLARED 158/* 22 */ 159TCL_EXTERN(void) Itcl_ReleaseData _ANSI_ARGS_((ClientData cdata)); 160#endif 161#ifndef Itcl_SaveInterpState_TCL_DECLARED 162#define Itcl_SaveInterpState_TCL_DECLARED 163/* 23 */ 164TCL_EXTERN(Itcl_InterpState) Itcl_SaveInterpState _ANSI_ARGS_(( 165 Tcl_Interp* interp, int status)); 166#endif 167#ifndef Itcl_RestoreInterpState_TCL_DECLARED 168#define Itcl_RestoreInterpState_TCL_DECLARED 169/* 24 */ 170TCL_EXTERN(int) Itcl_RestoreInterpState _ANSI_ARGS_(( 171 Tcl_Interp* interp, Itcl_InterpState state)); 172#endif 173#ifndef Itcl_DiscardInterpState_TCL_DECLARED 174#define Itcl_DiscardInterpState_TCL_DECLARED 175/* 25 */ 176TCL_EXTERN(void) Itcl_DiscardInterpState _ANSI_ARGS_(( 177 Itcl_InterpState state)); 178#endif 179 180typedef struct ItclStubHooks { 181 struct ItclIntStubs *itclIntStubs; 182} ItclStubHooks; 183 184typedef struct ItclStubs { 185 int magic; 186 struct ItclStubHooks *hooks; 187 188 int (*itcl_Init) _ANSI_ARGS_((Tcl_Interp * interp)); /* 0 */ 189 int (*itcl_SafeInit) _ANSI_ARGS_((Tcl_Interp * interp)); /* 1 */ 190 int (*itcl_RegisterC) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * name, Tcl_CmdProc * proc, ClientData clientData, Tcl_CmdDeleteProc * deleteProc)); /* 2 */ 191 int (*itcl_RegisterObjC) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * name, Tcl_ObjCmdProc * proc, ClientData clientData, Tcl_CmdDeleteProc * deleteProc)); /* 3 */ 192 int (*itcl_FindC) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * name, Tcl_CmdProc ** argProcPtr, Tcl_ObjCmdProc ** objProcPtr, ClientData * cDataPtr)); /* 4 */ 193 void (*itcl_InitStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 5 */ 194 void (*itcl_DeleteStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 6 */ 195 void (*itcl_PushStack) _ANSI_ARGS_((ClientData cdata, Itcl_Stack * stack)); /* 7 */ 196 ClientData (*itcl_PopStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 8 */ 197 ClientData (*itcl_PeekStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 9 */ 198 ClientData (*itcl_GetStackValue) _ANSI_ARGS_((Itcl_Stack * stack, int pos)); /* 10 */ 199 void (*itcl_InitList) _ANSI_ARGS_((Itcl_List * listPtr)); /* 11 */ 200 void (*itcl_DeleteList) _ANSI_ARGS_((Itcl_List * listPtr)); /* 12 */ 201 Itcl_ListElem* (*itcl_CreateListElem) _ANSI_ARGS_((Itcl_List * listPtr)); /* 13 */ 202 Itcl_ListElem* (*itcl_DeleteListElem) _ANSI_ARGS_((Itcl_ListElem * elemPtr)); /* 14 */ 203 Itcl_ListElem* (*itcl_InsertList) _ANSI_ARGS_((Itcl_List * listPtr, ClientData val)); /* 15 */ 204 Itcl_ListElem* (*itcl_InsertListElem) _ANSI_ARGS_((Itcl_ListElem * pos, ClientData val)); /* 16 */ 205 Itcl_ListElem* (*itcl_AppendList) _ANSI_ARGS_((Itcl_List * listPtr, ClientData val)); /* 17 */ 206 Itcl_ListElem* (*itcl_AppendListElem) _ANSI_ARGS_((Itcl_ListElem * pos, ClientData val)); /* 18 */ 207 void (*itcl_SetListValue) _ANSI_ARGS_((Itcl_ListElem * elemPtr, ClientData val)); /* 19 */ 208 void (*itcl_EventuallyFree) _ANSI_ARGS_((ClientData cdata, Tcl_FreeProc * fproc)); /* 20 */ 209 void (*itcl_PreserveData) _ANSI_ARGS_((ClientData cdata)); /* 21 */ 210 void (*itcl_ReleaseData) _ANSI_ARGS_((ClientData cdata)); /* 22 */ 211 Itcl_InterpState (*itcl_SaveInterpState) _ANSI_ARGS_((Tcl_Interp* interp, int status)); /* 23 */ 212 int (*itcl_RestoreInterpState) _ANSI_ARGS_((Tcl_Interp* interp, Itcl_InterpState state)); /* 24 */ 213 void (*itcl_DiscardInterpState) _ANSI_ARGS_((Itcl_InterpState state)); /* 25 */ 214} ItclStubs; 215 216TCL_EXTERNC ItclStubs *itclStubsPtr; 217 218#if defined(USE_ITCL_STUBS) && !defined(USE_ITCL_STUB_PROCS) 219 220/* 221 * Inline function declarations: 222 */ 223 224#ifndef Itcl_Init 225#define Itcl_Init \ 226 (itclStubsPtr->itcl_Init) /* 0 */ 227#endif 228#ifndef Itcl_SafeInit 229#define Itcl_SafeInit \ 230 (itclStubsPtr->itcl_SafeInit) /* 1 */ 231#endif 232#ifndef Itcl_RegisterC 233#define Itcl_RegisterC \ 234 (itclStubsPtr->itcl_RegisterC) /* 2 */ 235#endif 236#ifndef Itcl_RegisterObjC 237#define Itcl_RegisterObjC \ 238 (itclStubsPtr->itcl_RegisterObjC) /* 3 */ 239#endif 240#ifndef Itcl_FindC 241#define Itcl_FindC \ 242 (itclStubsPtr->itcl_FindC) /* 4 */ 243#endif 244#ifndef Itcl_InitStack 245#define Itcl_InitStack \ 246 (itclStubsPtr->itcl_InitStack) /* 5 */ 247#endif 248#ifndef Itcl_DeleteStack 249#define Itcl_DeleteStack \ 250 (itclStubsPtr->itcl_DeleteStack) /* 6 */ 251#endif 252#ifndef Itcl_PushStack 253#define Itcl_PushStack \ 254 (itclStubsPtr->itcl_PushStack) /* 7 */ 255#endif 256#ifndef Itcl_PopStack 257#define Itcl_PopStack \ 258 (itclStubsPtr->itcl_PopStack) /* 8 */ 259#endif 260#ifndef Itcl_PeekStack 261#define Itcl_PeekStack \ 262 (itclStubsPtr->itcl_PeekStack) /* 9 */ 263#endif 264#ifndef Itcl_GetStackValue 265#define Itcl_GetStackValue \ 266 (itclStubsPtr->itcl_GetStackValue) /* 10 */ 267#endif 268#ifndef Itcl_InitList 269#define Itcl_InitList \ 270 (itclStubsPtr->itcl_InitList) /* 11 */ 271#endif 272#ifndef Itcl_DeleteList 273#define Itcl_DeleteList \ 274 (itclStubsPtr->itcl_DeleteList) /* 12 */ 275#endif 276#ifndef Itcl_CreateListElem 277#define Itcl_CreateListElem \ 278 (itclStubsPtr->itcl_CreateListElem) /* 13 */ 279#endif 280#ifndef Itcl_DeleteListElem 281#define Itcl_DeleteListElem \ 282 (itclStubsPtr->itcl_DeleteListElem) /* 14 */ 283#endif 284#ifndef Itcl_InsertList 285#define Itcl_InsertList \ 286 (itclStubsPtr->itcl_InsertList) /* 15 */ 287#endif 288#ifndef Itcl_InsertListElem 289#define Itcl_InsertListElem \ 290 (itclStubsPtr->itcl_InsertListElem) /* 16 */ 291#endif 292#ifndef Itcl_AppendList 293#define Itcl_AppendList \ 294 (itclStubsPtr->itcl_AppendList) /* 17 */ 295#endif 296#ifndef Itcl_AppendListElem 297#define Itcl_AppendListElem \ 298 (itclStubsPtr->itcl_AppendListElem) /* 18 */ 299#endif 300#ifndef Itcl_SetListValue 301#define Itcl_SetListValue \ 302 (itclStubsPtr->itcl_SetListValue) /* 19 */ 303#endif 304#ifndef Itcl_EventuallyFree 305#define Itcl_EventuallyFree \ 306 (itclStubsPtr->itcl_EventuallyFree) /* 20 */ 307#endif 308#ifndef Itcl_PreserveData 309#define Itcl_PreserveData \ 310 (itclStubsPtr->itcl_PreserveData) /* 21 */ 311#endif 312#ifndef Itcl_ReleaseData 313#define Itcl_ReleaseData \ 314 (itclStubsPtr->itcl_ReleaseData) /* 22 */ 315#endif 316#ifndef Itcl_SaveInterpState 317#define Itcl_SaveInterpState \ 318 (itclStubsPtr->itcl_SaveInterpState) /* 23 */ 319#endif 320#ifndef Itcl_RestoreInterpState 321#define Itcl_RestoreInterpState \ 322 (itclStubsPtr->itcl_RestoreInterpState) /* 24 */ 323#endif 324#ifndef Itcl_DiscardInterpState 325#define Itcl_DiscardInterpState \ 326 (itclStubsPtr->itcl_DiscardInterpState) /* 25 */ 327#endif 328 329#endif /* defined(USE_ITCL_STUBS) && !defined(USE_ITCL_STUB_PROCS) */ 330 331/* !END!: Do not edit above this line. */ 332 333#endif /* _ITCLDECLS */ 334 335