itclDecls.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. /*
  2. * This file is (mostly) automatically generated from itcl.decls.
  3. */
  4. #ifndef _ITCLDECLS
  5. #define _ITCLDECLS
  6. #if defined(USE_ITCL_STUBS)
  7. ITCLAPI const char *Itcl_InitStubs(
  8. Tcl_Interp *, const char *version, int exact);
  9. #else
  10. #define Itcl_InitStubs(interp, version, exact) Tcl_PkgRequireEx(interp,"itcl",version,exact,NULL)
  11. #endif
  12. /* !BEGIN!: Do not edit below this line. */
  13. #define ITCL_STUBS_EPOCH 0
  14. #define ITCL_STUBS_REVISION 152
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. /*
  19. * Exported function declarations:
  20. */
  21. /* Slot 0 is reserved */
  22. /* Slot 1 is reserved */
  23. /* 2 */
  24. ITCLAPI int Itcl_RegisterC(Tcl_Interp *interp, const char *name,
  25. Tcl_CmdProc *proc, ClientData clientData,
  26. Tcl_CmdDeleteProc *deleteProc);
  27. /* 3 */
  28. ITCLAPI int Itcl_RegisterObjC(Tcl_Interp *interp,
  29. const char *name, Tcl_ObjCmdProc *proc,
  30. ClientData clientData,
  31. Tcl_CmdDeleteProc *deleteProc);
  32. /* 4 */
  33. ITCLAPI int Itcl_FindC(Tcl_Interp *interp, const char *name,
  34. Tcl_CmdProc **argProcPtr,
  35. Tcl_ObjCmdProc **objProcPtr,
  36. ClientData *cDataPtr);
  37. /* 5 */
  38. ITCLAPI void Itcl_InitStack(Itcl_Stack *stack);
  39. /* 6 */
  40. ITCLAPI void Itcl_DeleteStack(Itcl_Stack *stack);
  41. /* 7 */
  42. ITCLAPI void Itcl_PushStack(ClientData cdata, Itcl_Stack *stack);
  43. /* 8 */
  44. ITCLAPI ClientData Itcl_PopStack(Itcl_Stack *stack);
  45. /* 9 */
  46. ITCLAPI ClientData Itcl_PeekStack(Itcl_Stack *stack);
  47. /* 10 */
  48. ITCLAPI ClientData Itcl_GetStackValue(Itcl_Stack *stack, int pos);
  49. /* 11 */
  50. ITCLAPI void Itcl_InitList(Itcl_List *listPtr);
  51. /* 12 */
  52. ITCLAPI void Itcl_DeleteList(Itcl_List *listPtr);
  53. /* 13 */
  54. ITCLAPI Itcl_ListElem * Itcl_CreateListElem(Itcl_List *listPtr);
  55. /* 14 */
  56. ITCLAPI Itcl_ListElem * Itcl_DeleteListElem(Itcl_ListElem *elemPtr);
  57. /* 15 */
  58. ITCLAPI Itcl_ListElem * Itcl_InsertList(Itcl_List *listPtr, ClientData val);
  59. /* 16 */
  60. ITCLAPI Itcl_ListElem * Itcl_InsertListElem(Itcl_ListElem *pos,
  61. ClientData val);
  62. /* 17 */
  63. ITCLAPI Itcl_ListElem * Itcl_AppendList(Itcl_List *listPtr, ClientData val);
  64. /* 18 */
  65. ITCLAPI Itcl_ListElem * Itcl_AppendListElem(Itcl_ListElem *pos,
  66. ClientData val);
  67. /* 19 */
  68. ITCLAPI void Itcl_SetListValue(Itcl_ListElem *elemPtr,
  69. ClientData val);
  70. /* 20 */
  71. ITCLAPI void Itcl_EventuallyFree(ClientData cdata,
  72. Tcl_FreeProc *fproc);
  73. /* 21 */
  74. ITCLAPI void Itcl_PreserveData(ClientData cdata);
  75. /* 22 */
  76. ITCLAPI void Itcl_ReleaseData(ClientData cdata);
  77. /* 23 */
  78. ITCLAPI Itcl_InterpState Itcl_SaveInterpState(Tcl_Interp *interp, int status);
  79. /* 24 */
  80. ITCLAPI int Itcl_RestoreInterpState(Tcl_Interp *interp,
  81. Itcl_InterpState state);
  82. /* 25 */
  83. ITCLAPI void Itcl_DiscardInterpState(Itcl_InterpState state);
  84. /* 26 */
  85. ITCLAPI void * Itcl_Alloc(size_t size);
  86. /* 27 */
  87. ITCLAPI void Itcl_Free(void *ptr);
  88. typedef struct {
  89. const struct ItclIntStubs *itclIntStubs;
  90. } ItclStubHooks;
  91. typedef struct ItclStubs {
  92. int magic;
  93. int epoch;
  94. int revision;
  95. const ItclStubHooks *hooks;
  96. void (*reserved0)(void);
  97. void (*reserved1)(void);
  98. int (*itcl_RegisterC) (Tcl_Interp *interp, const char *name, Tcl_CmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc); /* 2 */
  99. int (*itcl_RegisterObjC) (Tcl_Interp *interp, const char *name, Tcl_ObjCmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc); /* 3 */
  100. int (*itcl_FindC) (Tcl_Interp *interp, const char *name, Tcl_CmdProc **argProcPtr, Tcl_ObjCmdProc **objProcPtr, ClientData *cDataPtr); /* 4 */
  101. void (*itcl_InitStack) (Itcl_Stack *stack); /* 5 */
  102. void (*itcl_DeleteStack) (Itcl_Stack *stack); /* 6 */
  103. void (*itcl_PushStack) (ClientData cdata, Itcl_Stack *stack); /* 7 */
  104. ClientData (*itcl_PopStack) (Itcl_Stack *stack); /* 8 */
  105. ClientData (*itcl_PeekStack) (Itcl_Stack *stack); /* 9 */
  106. ClientData (*itcl_GetStackValue) (Itcl_Stack *stack, int pos); /* 10 */
  107. void (*itcl_InitList) (Itcl_List *listPtr); /* 11 */
  108. void (*itcl_DeleteList) (Itcl_List *listPtr); /* 12 */
  109. Itcl_ListElem * (*itcl_CreateListElem) (Itcl_List *listPtr); /* 13 */
  110. Itcl_ListElem * (*itcl_DeleteListElem) (Itcl_ListElem *elemPtr); /* 14 */
  111. Itcl_ListElem * (*itcl_InsertList) (Itcl_List *listPtr, ClientData val); /* 15 */
  112. Itcl_ListElem * (*itcl_InsertListElem) (Itcl_ListElem *pos, ClientData val); /* 16 */
  113. Itcl_ListElem * (*itcl_AppendList) (Itcl_List *listPtr, ClientData val); /* 17 */
  114. Itcl_ListElem * (*itcl_AppendListElem) (Itcl_ListElem *pos, ClientData val); /* 18 */
  115. void (*itcl_SetListValue) (Itcl_ListElem *elemPtr, ClientData val); /* 19 */
  116. void (*itcl_EventuallyFree) (ClientData cdata, Tcl_FreeProc *fproc); /* 20 */
  117. void (*itcl_PreserveData) (ClientData cdata); /* 21 */
  118. void (*itcl_ReleaseData) (ClientData cdata); /* 22 */
  119. Itcl_InterpState (*itcl_SaveInterpState) (Tcl_Interp *interp, int status); /* 23 */
  120. int (*itcl_RestoreInterpState) (Tcl_Interp *interp, Itcl_InterpState state); /* 24 */
  121. void (*itcl_DiscardInterpState) (Itcl_InterpState state); /* 25 */
  122. void * (*itcl_Alloc) (size_t size); /* 26 */
  123. void (*itcl_Free) (void *ptr); /* 27 */
  124. } ItclStubs;
  125. extern const ItclStubs *itclStubsPtr;
  126. #ifdef __cplusplus
  127. }
  128. #endif
  129. #if defined(USE_ITCL_STUBS)
  130. /*
  131. * Inline function declarations:
  132. */
  133. /* Slot 0 is reserved */
  134. /* Slot 1 is reserved */
  135. #define Itcl_RegisterC \
  136. (itclStubsPtr->itcl_RegisterC) /* 2 */
  137. #define Itcl_RegisterObjC \
  138. (itclStubsPtr->itcl_RegisterObjC) /* 3 */
  139. #define Itcl_FindC \
  140. (itclStubsPtr->itcl_FindC) /* 4 */
  141. #define Itcl_InitStack \
  142. (itclStubsPtr->itcl_InitStack) /* 5 */
  143. #define Itcl_DeleteStack \
  144. (itclStubsPtr->itcl_DeleteStack) /* 6 */
  145. #define Itcl_PushStack \
  146. (itclStubsPtr->itcl_PushStack) /* 7 */
  147. #define Itcl_PopStack \
  148. (itclStubsPtr->itcl_PopStack) /* 8 */
  149. #define Itcl_PeekStack \
  150. (itclStubsPtr->itcl_PeekStack) /* 9 */
  151. #define Itcl_GetStackValue \
  152. (itclStubsPtr->itcl_GetStackValue) /* 10 */
  153. #define Itcl_InitList \
  154. (itclStubsPtr->itcl_InitList) /* 11 */
  155. #define Itcl_DeleteList \
  156. (itclStubsPtr->itcl_DeleteList) /* 12 */
  157. #define Itcl_CreateListElem \
  158. (itclStubsPtr->itcl_CreateListElem) /* 13 */
  159. #define Itcl_DeleteListElem \
  160. (itclStubsPtr->itcl_DeleteListElem) /* 14 */
  161. #define Itcl_InsertList \
  162. (itclStubsPtr->itcl_InsertList) /* 15 */
  163. #define Itcl_InsertListElem \
  164. (itclStubsPtr->itcl_InsertListElem) /* 16 */
  165. #define Itcl_AppendList \
  166. (itclStubsPtr->itcl_AppendList) /* 17 */
  167. #define Itcl_AppendListElem \
  168. (itclStubsPtr->itcl_AppendListElem) /* 18 */
  169. #define Itcl_SetListValue \
  170. (itclStubsPtr->itcl_SetListValue) /* 19 */
  171. #define Itcl_EventuallyFree \
  172. (itclStubsPtr->itcl_EventuallyFree) /* 20 */
  173. #define Itcl_PreserveData \
  174. (itclStubsPtr->itcl_PreserveData) /* 21 */
  175. #define Itcl_ReleaseData \
  176. (itclStubsPtr->itcl_ReleaseData) /* 22 */
  177. #define Itcl_SaveInterpState \
  178. (itclStubsPtr->itcl_SaveInterpState) /* 23 */
  179. #define Itcl_RestoreInterpState \
  180. (itclStubsPtr->itcl_RestoreInterpState) /* 24 */
  181. #define Itcl_DiscardInterpState \
  182. (itclStubsPtr->itcl_DiscardInterpState) /* 25 */
  183. #define Itcl_Alloc \
  184. (itclStubsPtr->itcl_Alloc) /* 26 */
  185. #define Itcl_Free \
  186. (itclStubsPtr->itcl_Free) /* 27 */
  187. #endif /* defined(USE_ITCL_STUBS) */
  188. /* !END!: Do not edit above this line. */
  189. #endif /* _ITCLDECLS */