Debian Codegraph @

pTk/mTk/tclGeneric/tclInt.decls

raw
1 # tclInt.decls --
2 #
3 # This file contains the declarations for all unsupported
4 # functions that are exported by the Tcl library. This file
5 # is used to generate the tclIntDecls.h, tclIntPlatDecls.h,
6 # tclIntStub.c, tclPlatStub.c, tclCompileDecls.h and tclCompileStub.c
7 # files
8 #
9 # Copyright (c) 1998-1999 by Scriptics Corporation.
10 # Copyright (c) 2001 by Kevin B. Kenny. All rights reserved.
11 #
12 # See the file "license.terms" for information on usage and redistribution
13 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 #
15 # RCS: @(#) $Id: tclInt.decls,v 1.59 2003/02/18 02:25:45 hobbs Exp $
16
17 library tcl
18
19 # Define the unsupported generic interfaces.
20
21 interface tclInt
22
23 # Declare each of the functions in the unsupported internal Tcl
24 # interface. These interfaces are allowed to changed between versions.
25 # Use at your own risk. Note that the position of functions should not
26 # be changed between versions to avoid gratuitous incompatibilities.
27
28 # Replaced by Tcl_FSAccess in 8.4:
29 #declare 0 generic {
30 # int TclAccess(CONST char *path, int mode)
31 #}
32 declare 1 generic {
33 int TclAccessDeleteProc(TclAccessProc_ *proc)
34 }
35 declare 2 generic {
36 int TclAccessInsertProc(TclAccessProc_ *proc)
37 }
38 declare 3 generic {
39 void TclAllocateFreeObjects(void)
40 }
41 # Replaced by TclpChdir in 8.1:
42 # declare 4 generic {
43 # int TclChdir(Tcl_Interp *interp, char *dirName)
44 # }
45 declare 5 {unix win} {
46 int TclCleanupChildren(Tcl_Interp *interp, int numPids, Tcl_Pid *pidPtr,
47 Tcl_Channel errorChan)
48 }
49 declare 6 generic {
50 void TclCleanupCommand(Command *cmdPtr)
51 }
52 declare 7 generic {
53 int TclCopyAndCollapse(int count, CONST char *src, char *dst)
54 }
55 declare 8 generic {
56 int TclCopyChannel(Tcl_Interp *interp, Tcl_Channel inChan,
57 Tcl_Channel outChan, int toRead, Tcl_Obj *cmdPtr)
58 }
59
60 # TclCreatePipeline unofficially exported for use by BLT.
61
62 declare 9 {unix win} {
63 int TclCreatePipeline(Tcl_Interp *interp, int argc, CONST char **argv,
64 Tcl_Pid **pidArrayPtr, TclFile *inPipePtr, TclFile *outPipePtr,
65 TclFile *errFilePtr)
66 }
67 declare 10 generic {
68 int TclCreateProc(Tcl_Interp *interp, Namespace *nsPtr,
69 CONST char *procName,
70 Tcl_Obj *argsPtr, Tcl_Obj *bodyPtr, Proc **procPtrPtr)
71 }
72 declare 11 generic {
73 void TclDeleteCompiledLocalVars(Interp *iPtr, CallFrame *framePtr)
74 }
75 declare 12 generic {
76 void TclDeleteVars(Interp *iPtr, Tcl_HashTable *tablePtr)
77 }
78 declare 13 generic {
79 int TclDoGlob(Tcl_Interp *interp, char *separators,
80 Tcl_DString *headPtr, char *tail, Tcl_GlobTypeData *types)
81 }
82 declare 14 generic {
83 void TclDumpMemoryInfo(FILE *outFile)
84 }
85 # Removed in 8.1:
86 # declare 15 generic {
87 # void TclExpandParseValue(ParseValue *pvPtr, int needed)
88 # }
89 declare 16 generic {
90 void TclExprFloatError(Tcl_Interp *interp, double value)
91 }
92 # Removed in 8.4
93 #declare 17 generic {
94 # int TclFileAttrsCmd(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
95 #}
96 #declare 18 generic {
97 # int TclFileCopyCmd(Tcl_Interp *interp, int argc, char **argv)
98 #}
99 #declare 19 generic {
100 # int TclFileDeleteCmd(Tcl_Interp *interp, int argc, char **argv)
101 #}
102 #declare 20 generic {
103 # int TclFileMakeDirsCmd(Tcl_Interp *interp, int argc, char **argv)
104 #}
105 #declare 21 generic {
106 # int TclFileRenameCmd(Tcl_Interp *interp, int argc, char **argv)
107 #}
108 declare 22 generic {
109 int TclFindElement(Tcl_Interp *interp, CONST char *listStr,
110 int listLength, CONST char **elementPtr, CONST char **nextPtr,
111 int *sizePtr, int *bracePtr)
112 }
113 declare 23 generic {
114 Proc * TclFindProc(Interp *iPtr, CONST char *procName)
115 }
116 declare 24 generic {
117 int TclFormatInt(char *buffer, long n)
118 }
119 declare 25 generic {
120 void TclFreePackageInfo(Interp *iPtr)
121 }
122 # Removed in 8.1:
123 # declare 26 generic {
124 # char * TclGetCwd(Tcl_Interp *interp)
125 # }
126 declare 27 generic {
127 int TclGetDate(char *p, unsigned long now, long zone,
128 unsigned long *timePtr)
129 }
130 declare 28 generic {
131 Tcl_Channel TclpGetDefaultStdChannel(int type)
132 }
133 # Removed in 8.4b2:
134 #declare 29 generic {
135 # Tcl_Obj * TclGetElementOfIndexedArray(Tcl_Interp *interp,
136 # int localIndex, Tcl_Obj *elemPtr, int flags)
137 #}
138 # Replaced by char * TclGetEnv(CONST char *name, Tcl_DString *valuePtr) in 8.1:
139 # declare 30 generic {
140 # char * TclGetEnv(CONST char *name)
141 # }
142 declare 31 generic {
143 char * TclGetExtension(char *name)
144 }
145 declare 32 generic {
146 int TclGetFrame(Tcl_Interp *interp, CONST char *str,
147 CallFrame **framePtrPtr)
148 }
149 declare 33 generic {
150 TclCmdProcType TclGetInterpProc(void)
151 }
152 declare 34 generic {
153 int TclGetIntForIndex(Tcl_Interp *interp, Tcl_Obj *objPtr,
154 int endValue, int *indexPtr)
155 }
156 # Removed in 8.4b2:
157 #declare 35 generic {
158 # Tcl_Obj * TclGetIndexedScalar(Tcl_Interp *interp, int localIndex,
159 # int flags)
160 #}
161 declare 36 generic {
162 int TclGetLong(Tcl_Interp *interp, CONST char *str, long *longPtr)
163 }
164 declare 37 generic {
165 int TclGetLoadedPackages(Tcl_Interp *interp, char *targetName)
166 }
167 declare 38 generic {
168 int TclGetNamespaceForQualName(Tcl_Interp *interp, CONST char *qualName,
169 Namespace *cxtNsPtr, int flags, Namespace **nsPtrPtr,
170 Namespace **altNsPtrPtr, Namespace **actualCxtPtrPtr,
171 CONST char **simpleNamePtr)
172 }
173 declare 39 generic {
174 TclObjCmdProcType TclGetObjInterpProc(void)
175 }
176 declare 40 generic {
177 int TclGetOpenMode(Tcl_Interp *interp, CONST char *str, int *seekFlagPtr)
178 }
179 declare 41 generic {
180 Tcl_Command TclGetOriginalCommand(Tcl_Command command)
181 }
182 declare 42 generic {
183 char * TclpGetUserHome(CONST char *name, Tcl_DString *bufferPtr)
184 }
185 declare 43 generic {
186 int TclGlobalInvoke(Tcl_Interp *interp, int argc, CONST84 char **argv, int flags)
187 }
188 declare 44 generic {
189 int TclGuessPackageName(CONST char *fileName, Tcl_DString *bufPtr)
190 }
191 declare 45 generic {
192 int TclHideUnsafeCommands(Tcl_Interp *interp)
193 }
194 declare 46 generic {
195 int TclInExit(void)
196 }
197 # Removed in 8.4b2:
198 #declare 47 generic {
199 # Tcl_Obj * TclIncrElementOfIndexedArray(Tcl_Interp *interp,
200 # int localIndex, Tcl_Obj *elemPtr, long incrAmount)
201 #}
202 # Removed in 8.4b2:
203 #declare 48 generic {
204 # Tcl_Obj * TclIncrIndexedScalar(Tcl_Interp *interp, int localIndex,
205 # long incrAmount)
206 #}
207 declare 49 generic {
208 Tcl_Obj * TclIncrVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr,
209 Tcl_Obj *part2Ptr, long incrAmount, int part1NotParsed)
210 }
211 declare 50 generic {
212 void TclInitCompiledLocals(Tcl_Interp *interp, CallFrame *framePtr,
213 Namespace *nsPtr)
214 }
215 declare 51 generic {
216 int TclInterpInit(Tcl_Interp *interp)
217 }
218 declare 52 generic {
219 int TclInvoke(Tcl_Interp *interp, int argc, CONST84 char **argv, int flags)
220 }
221 declare 53 generic {
222 int TclInvokeObjectCommand(ClientData clientData, Tcl_Interp *interp,
223 int argc, CONST84 char **argv)
224 }
225 declare 54 generic {
226 int TclInvokeStringCommand(ClientData clientData, Tcl_Interp *interp,
227 int objc, Tcl_Obj *CONST objv[])
228 }
229 declare 55 generic {
230 Proc * TclIsProc(Command *cmdPtr)
231 }
232 # Replaced with TclpLoadFile in 8.1:
233 # declare 56 generic {
234 # int TclLoadFile(Tcl_Interp *interp, char *fileName, char *sym1,
235 # char *sym2, Tcl_PackageInitProc **proc1Ptr,
236 # Tcl_PackageInitProc **proc2Ptr)
237 # }
238 # Signature changed to take a length in 8.1:
239 # declare 57 generic {
240 # int TclLooksLikeInt(char *p)
241 # }
242 declare 58 generic {
243 Var * TclLookupVar(Tcl_Interp *interp, CONST char *part1, CONST char *part2,
244 int flags, CONST char *msg, int createPart1, int createPart2,
245 Var **arrayPtrPtr)
246 }
247 # Replaced by Tcl_FSMatchInDirectory in 8.4
248 #declare 59 generic {
249 # int TclpMatchFiles(Tcl_Interp *interp, char *separators,
250 # Tcl_DString *dirPtr, char *pattern, char *tail)
251 #}
252 declare 60 generic {
253 int TclNeedSpace(CONST char *start, CONST char *end)
254 }
255 declare 61 generic {
256 Tcl_Obj * TclNewProcBodyObj(Proc *procPtr)
257 }
258 declare 62 generic {
259 int TclObjCommandComplete(Tcl_Obj *cmdPtr)
260 }
261 declare 63 generic {
262 int TclObjInterpProc(ClientData clientData, Tcl_Interp *interp,
263 int objc, Tcl_Obj *CONST objv[])
264 }
265 declare 64 generic {
266 int TclObjInvoke(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[],
267 int flags)
268 }
269 declare 65 generic {
270 int TclObjInvokeGlobal(Tcl_Interp *interp, int objc,
271 Tcl_Obj *CONST objv[], int flags)
272 }
273 declare 66 generic {
274 int TclOpenFileChannelDeleteProc(TclOpenFileChannelProc_ *proc)
275 }
276 declare 67 generic {
277 int TclOpenFileChannelInsertProc(TclOpenFileChannelProc_ *proc)
278 }
279 # Replaced by Tcl_FSAccess in 8.4:
280 #declare 68 generic {
281 # int TclpAccess(CONST char *path, int mode)
282 #}
283 declare 69 generic {
284 char * TclpAlloc(unsigned int size)
285 }
286 #declare 70 generic {
287 # int TclpCopyFile(CONST char *source, CONST char *dest)
288 #}
289 #declare 71 generic {
290 # int TclpCopyDirectory(CONST char *source, CONST char *dest,
291 # Tcl_DString *errorPtr)
292 #}
293 #declare 72 generic {
294 # int TclpCreateDirectory(CONST char *path)
295 #}
296 #declare 73 generic {
297 # int TclpDeleteFile(CONST char *path)
298 #}
299 declare 74 generic {
300 void TclpFree(char *ptr)
301 }
302 declare 75 generic {
303 unsigned long TclpGetClicks(void)
304 }
305 declare 76 generic {
306 unsigned long TclpGetSeconds(void)
307 }
308
309 # deprecated
310 declare 77 generic {
311 void TclpGetTime(Tcl_Time *time)
312 }
313
314 declare 78 generic {
315 int TclpGetTimeZone(unsigned long time)
316 }
317 # Replaced by Tcl_FSListVolumes in 8.4:
318 #declare 79 generic {
319 # int TclpListVolumes(Tcl_Interp *interp)
320 #}
321 # Replaced by Tcl_FSOpenFileChannel in 8.4:
322 #declare 80 generic {
323 # Tcl_Channel TclpOpenFileChannel(Tcl_Interp *interp, char *fileName,
324 # char *modeString, int permissions)
325 #}
326 declare 81 generic {
327 char * TclpRealloc(char *ptr, unsigned int size)
328 }
329 #declare 82 generic {
330 # int TclpRemoveDirectory(CONST char *path, int recursive,
331 # Tcl_DString *errorPtr)
332 #}
333 #declare 83 generic {
334 # int TclpRenameFile(CONST char *source, CONST char *dest)
335 #}
336 # Removed in 8.1:
337 # declare 84 generic {
338 # int TclParseBraces(Tcl_Interp *interp, char *str, char **termPtr,
339 # ParseValue *pvPtr)
340 # }
341 # declare 85 generic {
342 # int TclParseNestedCmd(Tcl_Interp *interp, char *str, int flags,
343 # char **termPtr, ParseValue *pvPtr)
344 # }
345 # declare 86 generic {
346 # int TclParseQuotes(Tcl_Interp *interp, char *str, int termChar,
347 # int flags, char **termPtr, ParseValue *pvPtr)
348 # }
349 # declare 87 generic {
350 # void TclPlatformInit(Tcl_Interp *interp)
351 # }
352 declare 88 generic {
353 char * TclPrecTraceProc(ClientData clientData, Tcl_Interp *interp,
354 CONST char *name1, CONST char *name2, int flags)
355 }
356 declare 89 generic {
357 int TclPreventAliasLoop(Tcl_Interp *interp, Tcl_Interp *cmdInterp,
358 Tcl_Command cmd)
359 }
360 # Removed in 8.1 (only available if compiled with TCL_COMPILE_DEBUG):
361 # declare 90 generic {
362 # void TclPrintByteCodeObj(Tcl_Interp *interp, Tcl_Obj *objPtr)
363 # }
364 declare 91 generic {
365 void TclProcCleanupProc(Proc *procPtr)
366 }
367 declare 92 generic {
368 int TclProcCompileProc(Tcl_Interp *interp, Proc *procPtr,
369 Tcl_Obj *bodyPtr, Namespace *nsPtr, CONST char *description,
370 CONST char *procName)
371 }
372 declare 93 generic {
373 void TclProcDeleteProc(ClientData clientData)
374 }
375 declare 94 generic {
376 int TclProcInterpProc(ClientData clientData, Tcl_Interp *interp,
377 int argc, CONST84 char **argv)
378 }
379 # Replaced by Tcl_FSStat in 8.4:
380 #declare 95 generic {
381 # int TclpStat(CONST char *path, Tcl_StatBuf *buf)
382 #}
383 declare 96 generic {
384 int TclRenameCommand(Tcl_Interp *interp, char *oldName, char *newName)
385 }
386 declare 97 generic {
387 void TclResetShadowedCmdRefs(Tcl_Interp *interp, Command *newCmdPtr)
388 }
389 declare 98 generic {
390 int TclServiceIdle(void)
391 }
392 # Removed in 8.4b2:
393 #declare 99 generic {
394 # Tcl_Obj * TclSetElementOfIndexedArray(Tcl_Interp *interp, int localIndex,
395 # Tcl_Obj *elemPtr, Tcl_Obj *objPtr, int flags)
396 #}
397 # Removed in 8.4b2:
398 #declare 100 generic {
399 # Tcl_Obj * TclSetIndexedScalar(Tcl_Interp *interp, int localIndex,
400 # Tcl_Obj *objPtr, int flags)
401 #}
402 declare 101 generic {
403 char * TclSetPreInitScript(char *string)
404 }
405 declare 102 generic {
406 void TclSetupEnv(Tcl_Interp *interp)
407 }
408 declare 103 generic {
409 int TclSockGetPort(Tcl_Interp *interp, char *str, char *proto,
410 int *portPtr)
411 }
412 declare 104 {unix win} {
413 int TclSockMinimumBuffers(int sock, int size)
414 }
415 # Replaced by Tcl_FSStat in 8.4:
416 #declare 105 generic {
417 # int TclStat(CONST char *path, Tcl_StatBuf *buf)
418 #}
419 declare 106 generic {
420 int TclStatDeleteProc(TclStatProc_ *proc)
421 }
422 declare 107 generic {
423 int TclStatInsertProc(TclStatProc_ *proc)
424 }
425 declare 108 generic {
426 void TclTeardownNamespace(Namespace *nsPtr)
427 }
428 declare 109 generic {
429 int TclUpdateReturnInfo(Interp *iPtr)
430 }
431 # Removed in 8.1:
432 # declare 110 generic {
433 # char * TclWordEnd(char *start, char *lastChar, int nested, int *semiPtr)
434 # }
435
436 # Procedures used in conjunction with Tcl namespaces. They are
437 # defined here instead of in tcl.decls since they are not stable yet.
438
439 declare 111 generic {
440 void Tcl_AddInterpResolvers(Tcl_Interp *interp, CONST char *name,
441 Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc,
442 Tcl_ResolveCompiledVarProc *compiledVarProc)
443 }
444 declare 112 generic {
445 int Tcl_AppendExportList(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
446 Tcl_Obj *objPtr)
447 }
448 declare 113 generic {
449 Tcl_Namespace * Tcl_CreateNamespace(Tcl_Interp *interp, CONST char *name,
450 ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc)
451 }
452 declare 114 generic {
453 void Tcl_DeleteNamespace(Tcl_Namespace *nsPtr)
454 }
455 declare 115 generic {
456 int Tcl_Export(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
457 CONST char *pattern, int resetListFirst)
458 }
459 declare 116 generic {
460 Tcl_Command Tcl_FindCommand(Tcl_Interp *interp, CONST char *name,
461 Tcl_Namespace *contextNsPtr, int flags)
462 }
463 declare 117 generic {
464 Tcl_Namespace * Tcl_FindNamespace(Tcl_Interp *interp, CONST char *name,
465 Tcl_Namespace *contextNsPtr, int flags)
466 }
467 declare 118 generic {
468 int Tcl_GetInterpResolvers(Tcl_Interp *interp, CONST char *name,
469 Tcl_ResolverInfo *resInfo)
470 }
471 declare 119 generic {
472 int Tcl_GetNamespaceResolvers(Tcl_Namespace *namespacePtr,
473 Tcl_ResolverInfo *resInfo)
474 }
475 declare 120 generic {
476 Tcl_Var Tcl_FindNamespaceVar(Tcl_Interp *interp, CONST char *name,
477 Tcl_Namespace *contextNsPtr, int flags)
478 }
479 declare 121 generic {
480 int Tcl_ForgetImport(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
481 CONST char *pattern)
482 }
483 declare 122 generic {
484 Tcl_Command Tcl_GetCommandFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr)
485 }
486 declare 123 generic {
487 void Tcl_GetCommandFullName(Tcl_Interp *interp, Tcl_Command command,
488 Tcl_Obj *objPtr)
489 }
490 declare 124 generic {
491 Tcl_Namespace * Tcl_GetCurrentNamespace(Tcl_Interp *interp)
492 }
493 declare 125 generic {
494 Tcl_Namespace * Tcl_GetGlobalNamespace(Tcl_Interp *interp)
495 }
496 declare 126 generic {
497 void Tcl_GetVariableFullName(Tcl_Interp *interp, Tcl_Var variable,
498 Tcl_Obj *objPtr)
499 }
500 declare 127 generic {
501 int Tcl_Import(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
502 CONST char *pattern, int allowOverwrite)
503 }
504 declare 128 generic {
505 void Tcl_PopCallFrame(Tcl_Interp* interp)
506 }
507 declare 129 generic {
508 int Tcl_PushCallFrame(Tcl_Interp* interp, Tcl_CallFrame *framePtr,
509 Tcl_Namespace *nsPtr, int isProcCallFrame)
510 }
511 declare 130 generic {
512 int Tcl_RemoveInterpResolvers(Tcl_Interp *interp, CONST char *name)
513 }
514 declare 131 generic {
515 void Tcl_SetNamespaceResolvers(Tcl_Namespace *namespacePtr,
516 Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc,
517 Tcl_ResolveCompiledVarProc *compiledVarProc)
518 }
519 declare 132 generic {
520 int TclpHasSockets(Tcl_Interp *interp)
521 }
522 declare 133 generic {
523 struct tm * TclpGetDate(TclpTime_t time, int useGMT)
524 }
525 declare 134 generic {
526 size_t TclpStrftime(char *s, size_t maxsize, CONST char *format,
527 CONST struct tm *t, int useGMT)
528 }
529 declare 135 generic {
530 int TclpCheckStackSpace(void)
531 }
532
533 # Added in 8.1:
534
535 #declare 137 generic {
536 # int TclpChdir(CONST char *dirName)
537 #}
538 declare 138 generic {
539 CONST84_RETURN char * TclGetEnv(CONST char *name, Tcl_DString *valuePtr)
540 }
541 #declare 139 generic {
542 # int TclpLoadFile(Tcl_Interp *interp, char *fileName, char *sym1,
543 # char *sym2, Tcl_PackageInitProc **proc1Ptr,
544 # Tcl_PackageInitProc **proc2Ptr, ClientData *clientDataPtr)
545 #}
546 declare 140 generic {
547 int TclLooksLikeInt(CONST char *bytes, int length)
548 }
549 # This is used by TclX, but should otherwise be considered private
550 declare 141 generic {
551 CONST84_RETURN char *TclpGetCwd(Tcl_Interp *interp, Tcl_DString *cwdPtr)
552 }
553 declare 142 generic {
554 int TclSetByteCodeFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr,
555 CompileHookProc *hookProc, ClientData clientData)
556 }
557 declare 143 generic {
558 int TclAddLiteralObj(struct CompileEnv *envPtr, Tcl_Obj *objPtr,
559 LiteralEntry **litPtrPtr)
560 }
561 declare 144 generic {
562 void TclHideLiteral(Tcl_Interp *interp, struct CompileEnv *envPtr,
563 int index)
564 }
565 declare 145 generic {
566 struct AuxDataType *TclGetAuxDataType(char *typeName)
567 }
568
569 declare 146 generic {
570 TclHandle TclHandleCreate(VOID *ptr)
571 }
572
573 declare 147 generic {
574 void TclHandleFree(TclHandle handle)
575 }
576
577 declare 148 generic {
578 TclHandle TclHandlePreserve(TclHandle handle)
579 }
580
581 declare 149 generic {
582 void TclHandleRelease(TclHandle handle)
583 }
584
585 # Added for Tcl 8.2
586
587 declare 150 generic {
588 int TclRegAbout(Tcl_Interp *interp, Tcl_RegExp re)
589 }
590 declare 151 generic {
591 void TclRegExpRangeUniChar(Tcl_RegExp re, int index, int *startPtr,
592 int *endPtr)
593 }
594
595 declare 152 generic {
596 void TclSetLibraryPath(Tcl_Obj *pathPtr)
597 }
598 declare 153 generic {
599 Tcl_Obj *TclGetLibraryPath(void)
600 }
601
602 # moved to tclTest.c (static) in 8.3.2/8.4a2
603 #declare 154 generic {
604 # int TclTestChannelCmd(ClientData clientData,
605 # Tcl_Interp *interp, int argc, char **argv)
606 #}
607 #declare 155 generic {
608 # int TclTestChannelEventCmd(ClientData clientData,
609 # Tcl_Interp *interp, int argc, char **argv)
610 #}
611
612 declare 156 generic {
613 void TclRegError (Tcl_Interp *interp, CONST char *msg,
614 int status)
615 }
616 declare 157 generic {
617 Var * TclVarTraceExists (Tcl_Interp *interp, CONST char *varName)
618 }
619 declare 158 generic {
620 void TclSetStartupScriptFileName(CONST char *filename)
621 }
622 declare 159 generic {
623 CONST84_RETURN char *TclGetStartupScriptFileName(void)
624 }
625 #declare 160 generic {
626 # int TclpMatchFilesTypes(Tcl_Interp *interp, char *separators,
627 # Tcl_DString *dirPtr, char *pattern, char *tail, GlobTypeData *types)
628 #}
629
630 # new in 8.3.2/8.4a2
631 declare 161 generic {
632 int TclChannelTransform(Tcl_Interp *interp, Tcl_Channel chan,
633 Tcl_Obj *cmdObjPtr)
634 }
635 declare 162 generic {
636 void TclChannelEventScriptInvoker(ClientData clientData, int flags)
637 }
638
639 # ALERT: The result of 'TclGetInstructionTable' is actually an
640 # "InstructionDesc*" but we do not want to describe this structure in
641 # "tclInt.h". It is described in "tclCompile.h". Use a cast to the
642 # correct type when calling this procedure.
643
644 declare 163 generic {
645 void * TclGetInstructionTable (void)
646 }
647
648 # ALERT: The argument of 'TclExpandCodeArray' is actually a
649 # "CompileEnv*" but we do not want to describe this structure in
650 # "tclInt.h". It is described in "tclCompile.h".
651
652 declare 164 generic {
653 void TclExpandCodeArray (void *envPtr)
654 }
655
656 # These functions are vfs aware, but are generally only useful internally.
657 declare 165 generic {
658 void TclpSetInitialEncodings(void)
659 }
660
661 # New function due to TIP #33
662 declare 166 generic {
663 int TclListObjSetElement(Tcl_Interp *interp, Tcl_Obj *listPtr,
664 int index, Tcl_Obj *valuePtr)
665 }
666
667 # VFS-aware versions of Tcl*StartupScriptFileName (158 and 159 above)
668 declare 167 generic {
669 void TclSetStartupScriptPath(Tcl_Obj *pathPtr)
670 }
671 declare 168 generic {
672 Tcl_Obj *TclGetStartupScriptPath(void)
673 }
674 # variant of Tcl_UtfNCmp that takes n as bytes, not chars
675 declare 169 generic {
676 int TclpUtfNcmp2(CONST char *s1, CONST char *s2, unsigned long n)
677 }
678 declare 170 generic {
679 int TclCheckInterpTraces (Tcl_Interp *interp, CONST char *command, int numChars, \
680 Command *cmdPtr, int result, int traceFlags, int objc, \
681 Tcl_Obj *CONST objv[])
682 }
683 declare 171 generic {
684 int TclCheckExecutionTraces (Tcl_Interp *interp, CONST char *command, int numChars, \
685 Command *cmdPtr, int result, int traceFlags, int objc, \
686 Tcl_Obj *CONST objv[])
687 }
688
689 declare 172 generic {
690 int TclInThreadExit(void)
691 }
692
693 # added for 8.4.2
694
695 declare 173 generic {
696 int TclUniCharMatch (CONST Tcl_UniChar *string, int strLen, \
697 CONST Tcl_UniChar *pattern, int ptnLen, int nocase)
698 }
699
700 ##############################################################################
701
702 # Define the platform specific internal Tcl interface. These functions are
703 # only available on the designated platform.
704
705 interface tclIntPlat
706
707 ########################
708 # Mac specific internals
709
710 declare 0 mac {
711 VOID * TclpSysAlloc(long size, int isBin)
712 }
713 declare 1 mac {
714 void TclpSysFree(VOID *ptr)
715 }
716 declare 2 mac {
717 VOID * TclpSysRealloc(VOID *cp, unsigned int size)
718 }
719 declare 3 mac {
720 void TclpExit(int status)
721 }
722
723 # Prototypes for functions found in the tclMacUtil.c compatability library.
724
725 declare 4 mac {
726 int FSpGetDefaultDir(FSSpecPtr theSpec)
727 }
728 declare 5 mac {
729 int FSpSetDefaultDir(FSSpecPtr theSpec)
730 }
731 declare 6 mac {
732 OSErr FSpFindFolder(short vRefNum, OSType folderType,
733 Boolean createFolder, FSSpec *spec)
734 }
735 declare 7 mac {
736 void GetGlobalMouseTcl(Point *mouse)
737 }
738
739 # The following routines are utility functions in Tcl. They are exported
740 # here because they are needed in Tk. They are not officially supported,
741 # however. The first set are from the MoreFiles package.
742
743 declare 8 mac {
744 pascal OSErr FSpGetDirectoryIDTcl(CONST FSSpec *spec, long *theDirID,
745 Boolean *isDirectory)
746 }
747 declare 9 mac {
748 pascal short FSpOpenResFileCompatTcl(CONST FSSpec *spec,
749 SignedByte permission)
750 }
751 declare 10 mac {
752 pascal void FSpCreateResFileCompatTcl(CONST FSSpec *spec, OSType creator,
753 OSType fileType, ScriptCode scriptTag)
754 }
755
756 # Like the MoreFiles routines these fix problems in the standard
757 # Mac calls. These routines are from tclMacUtils.h.
758
759 declare 11 mac {
760 int FSpLocationFromPath(int length, CONST char *path, FSSpecPtr theSpec)
761 }
762 declare 12 mac {
763 OSErr FSpPathFromLocation(FSSpecPtr theSpec, int *length,
764 Handle *fullPath)
765 }
766
767 # Prototypes of Mac only internal functions.
768
769 declare 13 mac {
770 void TclMacExitHandler(void)
771 }
772 declare 14 mac {
773 void TclMacInitExitToShell(int usePatch)
774 }
775 declare 15 mac {
776 OSErr TclMacInstallExitToShellPatch(ExitToShellProcPtr newProc)
777 }
778 declare 16 mac {
779 int TclMacOSErrorToPosixError(int error)
780 }
781 declare 17 mac {
782 void TclMacRemoveTimer(void *timerToken)
783 }
784 declare 18 mac {
785 void * TclMacStartTimer(long ms)
786 }
787 declare 19 mac {
788 int TclMacTimerExpired(void *timerToken)
789 }
790 declare 20 mac {
791 int TclMacRegisterResourceFork(short fileRef, Tcl_Obj *tokenPtr,
792 int insert)
793 }
794 declare 21 mac {
795 short TclMacUnRegisterResourceFork(char *tokenPtr, Tcl_Obj *resultPtr)
796 }
797 declare 22 mac {
798 int TclMacCreateEnv(void)
799 }
800 declare 23 mac {
801 FILE * TclMacFOpenHack(CONST char *path, CONST char *mode)
802 }
803 # Replaced in 8.1 by TclpReadLink:
804 # declare 24 mac {
805 # int TclMacReadlink(char *path, char *buf, int size)
806 # }
807 declare 24 mac {
808 char * TclpGetTZName(int isdst)
809 }
810 declare 25 mac {
811 int TclMacChmod(CONST char *path, int mode)
812 }
813 # version of FSpLocationFromPath that doesn't resolve the last path component
814 declare 26 mac {
815 int FSpLLocationFromPath(int length, CONST char *path, FSSpecPtr theSpec)
816 }
817
818 ############################
819 # Windows specific internals
820
821 declare 0 win {
822 void TclWinConvertError(DWORD errCode)
823 }
824 declare 1 win {
825 void TclWinConvertWSAError(DWORD errCode)
826 }
827 declare 2 win {
828 struct servent * TclWinGetServByName(CONST char *nm,
829 CONST char *proto)
830 }
831 declare 3 win {
832 int TclWinGetSockOpt(SOCKET s, int level, int optname,
833 char FAR * optval, int FAR *optlen)
834 }
835 declare 4 win {
836 HINSTANCE TclWinGetTclInstance(void)
837 }
838 # Removed in 8.1:
839 # declare 5 win {
840 # HINSTANCE TclWinLoadLibrary(char *name)
841 # }
842 declare 6 win {
843 u_short TclWinNToHS(u_short ns)
844 }
845 declare 7 win {
846 int TclWinSetSockOpt(SOCKET s, int level, int optname,
847 CONST char FAR * optval, int optlen)
848 }
849 declare 8 win {
850 unsigned long TclpGetPid(Tcl_Pid pid)
851 }
852 declare 9 win {
853 int TclWinGetPlatformId(void)
854 }
855 # Removed in 8.3.1 (for Win32s only)
856 #declare 10 win {
857 # int TclWinSynchSpawn(void *args, int type, void **trans, Tcl_Pid *pidPtr)
858 #}
859
860 # Pipe channel functions
861
862 declare 11 win {
863 void TclGetAndDetachPids(Tcl_Interp *interp, Tcl_Channel chan)
864 }
865 declare 12 win {
866 int TclpCloseFile(TclFile file)
867 }
868 declare 13 win {
869 Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
870 TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr)
871 }
872 declare 14 win {
873 int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe)
874 }
875 declare 15 win {
876 int TclpCreateProcess(Tcl_Interp *interp, int argc, CONST char **argv,
877 TclFile inputFile, TclFile outputFile, TclFile errorFile,
878 Tcl_Pid *pidPtr)
879 }
880 # Signature changed in 8.1:
881 # declare 16 win {
882 # TclFile TclpCreateTempFile(char *contents, Tcl_DString *namePtr)
883 # }
884 # declare 17 win {
885 # char * TclpGetTZName(void)
886 # }
887 declare 18 win {
888 TclFile TclpMakeFile(Tcl_Channel channel, int direction)
889 }
890 declare 19 win {
891 TclFile TclpOpenFile(CONST char *fname, int mode)
892 }
893 declare 20 win {
894 void TclWinAddProcess(HANDLE hProcess, DWORD id)
895 }
896
897 # removed permanently for 8.4
898 #declare 21 win {
899 # void TclpAsyncMark(Tcl_AsyncHandler async)
900 #}
901
902 # Added in 8.1:
903 declare 22 win {
904 TclFile TclpCreateTempFile(CONST char *contents)
905 }
906 declare 23 win {
907 char * TclpGetTZName(int isdst)
908 }
909 declare 24 win {
910 char * TclWinNoBackslash(char *path)
911 }
912 declare 25 win {
913 TclPlatformType *TclWinGetPlatform(void)
914 }
915 declare 26 win {
916 void TclWinSetInterfaces(int wide)
917 }
918
919 # Added in Tcl 8.3.3 / 8.4
920
921 declare 27 win {
922 void TclWinFlushDirtyChannels (void)
923 }
924
925 # Added in 8.4.2
926
927 declare 28 win {
928 void TclWinResetInterfaces(void)
929 }
930
931 #########################
932 # Unix specific internals
933
934 # Pipe channel functions
935
936 declare 0 unix {
937 void TclGetAndDetachPids(Tcl_Interp *interp, Tcl_Channel chan)
938 }
939 declare 1 unix {
940 int TclpCloseFile(TclFile file)
941 }
942 declare 2 unix {
943 Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
944 TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr)
945 }
946 declare 3 unix {
947 int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe)
948 }
949 declare 4 unix {
950 int TclpCreateProcess(Tcl_Interp *interp, int argc, CONST char **argv,
951 TclFile inputFile, TclFile outputFile, TclFile errorFile,
952 Tcl_Pid *pidPtr)
953 }
954 # Signature changed in 8.1:
955 # declare 5 unix {
956 # TclFile TclpCreateTempFile(char *contents, Tcl_DString *namePtr)
957 # }
958 declare 6 unix {
959 TclFile TclpMakeFile(Tcl_Channel channel, int direction)
960 }
961 declare 7 unix {
962 TclFile TclpOpenFile(CONST char *fname, int mode)
963 }
964 declare 8 unix {
965 int TclUnixWaitForFile(int fd, int mask, int timeout)
966 }
967
968 # Added in 8.1:
969
970 declare 9 unix {
971 TclFile TclpCreateTempFile(CONST char *contents)
972 }
973
974 # Added in 8.4:
975
976 declare 10 unix {
977 Tcl_DirEntry * TclpReaddir(DIR * dir)
978 }
979
980 declare 11 unix {
981 struct tm * TclpLocaltime(time_t * clock)
982 }
983
984 declare 12 unix {
985 struct tm * TclpGmtime(time_t * clock)
986 }
987
988 declare 13 unix {
989 char * TclpInetNtoa(struct in_addr addr)
990 }
991