home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activetcltk / ActiveTcl8.3.4.1-8.win32-ix86.exe / ActiveTcl8.3.4.1-win32-ix86 / include / itclDecls.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-22  |  8.6 KB  |  262 lines

  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.3 2001/09/16 15:02:41 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. /* 0 */
  28. EXTERN(int)        Itcl_Init _ANSI_ARGS_((Tcl_Interp * interp));
  29. /* 1 */
  30. EXTERN(int)        Itcl_SafeInit _ANSI_ARGS_((Tcl_Interp * interp));
  31. /* 2 */
  32. EXTERN(int)        Itcl_RegisterC _ANSI_ARGS_((Tcl_Interp * interp, 
  33.                 char * name, Tcl_CmdProc * proc, 
  34.                 ClientData clientData, 
  35.                 Tcl_CmdDeleteProc * deleteProc));
  36. /* 3 */
  37. EXTERN(int)        Itcl_RegisterObjC _ANSI_ARGS_((Tcl_Interp * interp, 
  38.                 char * name, Tcl_ObjCmdProc * proc, 
  39.                 ClientData clientData, 
  40.                 Tcl_CmdDeleteProc * deleteProc));
  41. /* 4 */
  42. EXTERN(int)        Itcl_FindC _ANSI_ARGS_((Tcl_Interp * interp, 
  43.                 char * name, Tcl_CmdProc ** argProcPtr, 
  44.                 Tcl_ObjCmdProc ** objProcPtr, 
  45.                 ClientData * cDataPtr));
  46. /* 5 */
  47. EXTERN(void)        Itcl_InitStack _ANSI_ARGS_((Itcl_Stack * stack));
  48. /* 6 */
  49. EXTERN(void)        Itcl_DeleteStack _ANSI_ARGS_((Itcl_Stack * stack));
  50. /* 7 */
  51. EXTERN(void)        Itcl_PushStack _ANSI_ARGS_((ClientData cdata, 
  52.                 Itcl_Stack * stack));
  53. /* 8 */
  54. EXTERN(ClientData)    Itcl_PopStack _ANSI_ARGS_((Itcl_Stack * stack));
  55. /* 9 */
  56. EXTERN(ClientData)    Itcl_PeekStack _ANSI_ARGS_((Itcl_Stack * stack));
  57. /* 10 */
  58. EXTERN(ClientData)    Itcl_GetStackValue _ANSI_ARGS_((Itcl_Stack * stack, 
  59.                 int pos));
  60. /* 11 */
  61. EXTERN(void)        Itcl_InitList _ANSI_ARGS_((Itcl_List * listPtr));
  62. /* 12 */
  63. EXTERN(void)        Itcl_DeleteList _ANSI_ARGS_((Itcl_List * listPtr));
  64. /* 13 */
  65. EXTERN(Itcl_ListElem*)    Itcl_CreateListElem _ANSI_ARGS_((Itcl_List * listPtr));
  66. /* 14 */
  67. EXTERN(Itcl_ListElem*)    Itcl_DeleteListElem _ANSI_ARGS_((
  68.                 Itcl_ListElem * elemPtr));
  69. /* 15 */
  70. EXTERN(Itcl_ListElem*)    Itcl_InsertList _ANSI_ARGS_((Itcl_List * listPtr, 
  71.                 ClientData val));
  72. /* 16 */
  73. EXTERN(Itcl_ListElem*)    Itcl_InsertListElem _ANSI_ARGS_((Itcl_ListElem * pos, 
  74.                 ClientData val));
  75. /* 17 */
  76. EXTERN(Itcl_ListElem*)    Itcl_AppendList _ANSI_ARGS_((Itcl_List * listPtr, 
  77.                 ClientData val));
  78. /* 18 */
  79. EXTERN(Itcl_ListElem*)    Itcl_AppendListElem _ANSI_ARGS_((Itcl_ListElem * pos, 
  80.                 ClientData val));
  81. /* 19 */
  82. EXTERN(void)        Itcl_SetListValue _ANSI_ARGS_((
  83.                 Itcl_ListElem * elemPtr, ClientData val));
  84. /* 20 */
  85. EXTERN(void)        Itcl_EventuallyFree _ANSI_ARGS_((ClientData cdata, 
  86.                 Tcl_FreeProc * fproc));
  87. /* 21 */
  88. EXTERN(void)        Itcl_PreserveData _ANSI_ARGS_((ClientData cdata));
  89. /* 22 */
  90. EXTERN(void)        Itcl_ReleaseData _ANSI_ARGS_((ClientData cdata));
  91. /* 23 */
  92. EXTERN(Itcl_InterpState) Itcl_SaveInterpState _ANSI_ARGS_((
  93.                 Tcl_Interp* interp, int status));
  94. /* 24 */
  95. EXTERN(int)        Itcl_RestoreInterpState _ANSI_ARGS_((
  96.                 Tcl_Interp* interp, Itcl_InterpState state));
  97. /* 25 */
  98. EXTERN(void)        Itcl_DiscardInterpState _ANSI_ARGS_((
  99.                 Itcl_InterpState state));
  100.  
  101. typedef struct ItclStubHooks {
  102.     struct ItclIntStubs *itclIntStubs;
  103. } ItclStubHooks;
  104.  
  105. typedef struct ItclStubs {
  106.     int magic;
  107.     struct ItclStubHooks *hooks;
  108.  
  109.     int (*itcl_Init) _ANSI_ARGS_((Tcl_Interp * interp)); /* 0 */
  110.     int (*itcl_SafeInit) _ANSI_ARGS_((Tcl_Interp * interp)); /* 1 */
  111.     int (*itcl_RegisterC) _ANSI_ARGS_((Tcl_Interp * interp, char * name, Tcl_CmdProc * proc, ClientData clientData, Tcl_CmdDeleteProc * deleteProc)); /* 2 */
  112.     int (*itcl_RegisterObjC) _ANSI_ARGS_((Tcl_Interp * interp, char * name, Tcl_ObjCmdProc * proc, ClientData clientData, Tcl_CmdDeleteProc * deleteProc)); /* 3 */
  113.     int (*itcl_FindC) _ANSI_ARGS_((Tcl_Interp * interp, char * name, Tcl_CmdProc ** argProcPtr, Tcl_ObjCmdProc ** objProcPtr, ClientData * cDataPtr)); /* 4 */
  114.     void (*itcl_InitStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 5 */
  115.     void (*itcl_DeleteStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 6 */
  116.     void (*itcl_PushStack) _ANSI_ARGS_((ClientData cdata, Itcl_Stack * stack)); /* 7 */
  117.     ClientData (*itcl_PopStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 8 */
  118.     ClientData (*itcl_PeekStack) _ANSI_ARGS_((Itcl_Stack * stack)); /* 9 */
  119.     ClientData (*itcl_GetStackValue) _ANSI_ARGS_((Itcl_Stack * stack, int pos)); /* 10 */
  120.     void (*itcl_InitList) _ANSI_ARGS_((Itcl_List * listPtr)); /* 11 */
  121.     void (*itcl_DeleteList) _ANSI_ARGS_((Itcl_List * listPtr)); /* 12 */
  122.     Itcl_ListElem* (*itcl_CreateListElem) _ANSI_ARGS_((Itcl_List * listPtr)); /* 13 */
  123.     Itcl_ListElem* (*itcl_DeleteListElem) _ANSI_ARGS_((Itcl_ListElem * elemPtr)); /* 14 */
  124.     Itcl_ListElem* (*itcl_InsertList) _ANSI_ARGS_((Itcl_List * listPtr, ClientData val)); /* 15 */
  125.     Itcl_ListElem* (*itcl_InsertListElem) _ANSI_ARGS_((Itcl_ListElem * pos, ClientData val)); /* 16 */
  126.     Itcl_ListElem* (*itcl_AppendList) _ANSI_ARGS_((Itcl_List * listPtr, ClientData val)); /* 17 */
  127.     Itcl_ListElem* (*itcl_AppendListElem) _ANSI_ARGS_((Itcl_ListElem * pos, ClientData val)); /* 18 */
  128.     void (*itcl_SetListValue) _ANSI_ARGS_((Itcl_ListElem * elemPtr, ClientData val)); /* 19 */
  129.     void (*itcl_EventuallyFree) _ANSI_ARGS_((ClientData cdata, Tcl_FreeProc * fproc)); /* 20 */
  130.     void (*itcl_PreserveData) _ANSI_ARGS_((ClientData cdata)); /* 21 */
  131.     void (*itcl_ReleaseData) _ANSI_ARGS_((ClientData cdata)); /* 22 */
  132.     Itcl_InterpState (*itcl_SaveInterpState) _ANSI_ARGS_((Tcl_Interp* interp, int status)); /* 23 */
  133.     int (*itcl_RestoreInterpState) _ANSI_ARGS_((Tcl_Interp* interp, Itcl_InterpState state)); /* 24 */
  134.     void (*itcl_DiscardInterpState) _ANSI_ARGS_((Itcl_InterpState state)); /* 25 */
  135. } ItclStubs;
  136.  
  137. #ifdef __cplusplus
  138. extern "C" {
  139. #endif
  140. extern ItclStubs *itclStubsPtr;
  141. #ifdef __cplusplus
  142. }
  143. #endif
  144.  
  145. #if defined(USE_ITCL_STUBS) && !defined(USE_ITCL_STUB_PROCS)
  146.  
  147. /*
  148.  * Inline function declarations:
  149.  */
  150.  
  151. #ifndef Itcl_Init
  152. #define Itcl_Init \
  153.     (itclStubsPtr->itcl_Init) /* 0 */
  154. #endif
  155. #ifndef Itcl_SafeInit
  156. #define Itcl_SafeInit \
  157.     (itclStubsPtr->itcl_SafeInit) /* 1 */
  158. #endif
  159. #ifndef Itcl_RegisterC
  160. #define Itcl_RegisterC \
  161.     (itclStubsPtr->itcl_RegisterC) /* 2 */
  162. #endif
  163. #ifndef Itcl_RegisterObjC
  164. #define Itcl_RegisterObjC \
  165.     (itclStubsPtr->itcl_RegisterObjC) /* 3 */
  166. #endif
  167. #ifndef Itcl_FindC
  168. #define Itcl_FindC \
  169.     (itclStubsPtr->itcl_FindC) /* 4 */
  170. #endif
  171. #ifndef Itcl_InitStack
  172. #define Itcl_InitStack \
  173.     (itclStubsPtr->itcl_InitStack) /* 5 */
  174. #endif
  175. #ifndef Itcl_DeleteStack
  176. #define Itcl_DeleteStack \
  177.     (itclStubsPtr->itcl_DeleteStack) /* 6 */
  178. #endif
  179. #ifndef Itcl_PushStack
  180. #define Itcl_PushStack \
  181.     (itclStubsPtr->itcl_PushStack) /* 7 */
  182. #endif
  183. #ifndef Itcl_PopStack
  184. #define Itcl_PopStack \
  185.     (itclStubsPtr->itcl_PopStack) /* 8 */
  186. #endif
  187. #ifndef Itcl_PeekStack
  188. #define Itcl_PeekStack \
  189.     (itclStubsPtr->itcl_PeekStack) /* 9 */
  190. #endif
  191. #ifndef Itcl_GetStackValue
  192. #define Itcl_GetStackValue \
  193.     (itclStubsPtr->itcl_GetStackValue) /* 10 */
  194. #endif
  195. #ifndef Itcl_InitList
  196. #define Itcl_InitList \
  197.     (itclStubsPtr->itcl_InitList) /* 11 */
  198. #endif
  199. #ifndef Itcl_DeleteList
  200. #define Itcl_DeleteList \
  201.     (itclStubsPtr->itcl_DeleteList) /* 12 */
  202. #endif
  203. #ifndef Itcl_CreateListElem
  204. #define Itcl_CreateListElem \
  205.     (itclStubsPtr->itcl_CreateListElem) /* 13 */
  206. #endif
  207. #ifndef Itcl_DeleteListElem
  208. #define Itcl_DeleteListElem \
  209.     (itclStubsPtr->itcl_DeleteListElem) /* 14 */
  210. #endif
  211. #ifndef Itcl_InsertList
  212. #define Itcl_InsertList \
  213.     (itclStubsPtr->itcl_InsertList) /* 15 */
  214. #endif
  215. #ifndef Itcl_InsertListElem
  216. #define Itcl_InsertListElem \
  217.     (itclStubsPtr->itcl_InsertListElem) /* 16 */
  218. #endif
  219. #ifndef Itcl_AppendList
  220. #define Itcl_AppendList \
  221.     (itclStubsPtr->itcl_AppendList) /* 17 */
  222. #endif
  223. #ifndef Itcl_AppendListElem
  224. #define Itcl_AppendListElem \
  225.     (itclStubsPtr->itcl_AppendListElem) /* 18 */
  226. #endif
  227. #ifndef Itcl_SetListValue
  228. #define Itcl_SetListValue \
  229.     (itclStubsPtr->itcl_SetListValue) /* 19 */
  230. #endif
  231. #ifndef Itcl_EventuallyFree
  232. #define Itcl_EventuallyFree \
  233.     (itclStubsPtr->itcl_EventuallyFree) /* 20 */
  234. #endif
  235. #ifndef Itcl_PreserveData
  236. #define Itcl_PreserveData \
  237.     (itclStubsPtr->itcl_PreserveData) /* 21 */
  238. #endif
  239. #ifndef Itcl_ReleaseData
  240. #define Itcl_ReleaseData \
  241.     (itclStubsPtr->itcl_ReleaseData) /* 22 */
  242. #endif
  243. #ifndef Itcl_SaveInterpState
  244. #define Itcl_SaveInterpState \
  245.     (itclStubsPtr->itcl_SaveInterpState) /* 23 */
  246. #endif
  247. #ifndef Itcl_RestoreInterpState
  248. #define Itcl_RestoreInterpState \
  249.     (itclStubsPtr->itcl_RestoreInterpState) /* 24 */
  250. #endif
  251. #ifndef Itcl_DiscardInterpState
  252. #define Itcl_DiscardInterpState \
  253.     (itclStubsPtr->itcl_DiscardInterpState) /* 25 */
  254. #endif
  255.  
  256. #endif /* defined(USE_ITCL_STUBS) && !defined(USE_ITCL_STUB_PROCS) */
  257.  
  258. /* !END!: Do not edit above this line. */
  259.  
  260. #endif /* _ITCLDECLS */
  261.  
  262.