Debian Codegraph @

generic/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 # and tclStubInit.c files
7 #
8 # Copyright © 1998-1999 Scriptics Corporation.
9 # Copyright © 2001 Kevin B. Kenny. All rights reserved.
10 # Copyright © 2007 Daniel A. Steffen <[email protected]>
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 library tcl
16
17 # Define the unsupported generic interfaces.
18
19 interface tclInt
20 scspec EXTERN
21
22 # Declare each of the functions in the unsupported internal Tcl
23 # interface. These interfaces are allowed to changed between versions.
24 # Use at your own risk. Note that the position of functions should not
25 # be changed between versions to avoid gratuitous incompatibilities.
26
27 declare 3 {
28 void TclAllocateFreeObjects(void)
29 }
30 declare 5 {
31 int TclCleanupChildren(Tcl_Interp *interp, int numPids, Tcl_Pid *pidPtr,
32 Tcl_Channel errorChan)
33 }
34 declare 6 {
35 void TclCleanupCommand(Command *cmdPtr)
36 }
37 declare 7 {
38 int TclCopyAndCollapse(int count, const char *src, char *dst)
39 }
40 declare 8 {
41 int TclCopyChannelOld(Tcl_Interp *interp, Tcl_Channel inChan,
42 Tcl_Channel outChan, int toRead, Tcl_Obj *cmdPtr)
43 }
44
45 # TclCreatePipeline unofficially exported for use by BLT.
46 declare 9 {
47 int TclCreatePipeline(Tcl_Interp *interp, int argc, const char **argv,
48 Tcl_Pid **pidArrayPtr, TclFile *inPipePtr, TclFile *outPipePtr,
49 TclFile *errFilePtr)
50 }
51 declare 10 {
52 int TclCreateProc(Tcl_Interp *interp, Namespace *nsPtr,
53 const char *procName,
54 Tcl_Obj *argsPtr, Tcl_Obj *bodyPtr, Proc **procPtrPtr)
55 }
56 declare 11 {
57 void TclDeleteCompiledLocalVars(Interp *iPtr, CallFrame *framePtr)
58 }
59 declare 12 {
60 void TclDeleteVars(Interp *iPtr, TclVarHashTable *tablePtr)
61 }
62 declare 14 {
63 int TclDumpMemoryInfo(ClientData clientData, int flags)
64 }
65 declare 16 {
66 void TclExprFloatError(Tcl_Interp *interp, double value)
67 }
68 declare 22 {
69 int TclFindElement(Tcl_Interp *interp, const char *listStr,
70 int listLength, const char **elementPtr, const char **nextPtr,
71 int *sizePtr, int *bracePtr)
72 }
73 declare 23 {
74 Proc *TclFindProc(Interp *iPtr, const char *procName)
75 }
76 # Replaced with macro (see tclInt.h) in Tcl 8.5.0, restored in 8.5.10
77 declare 24 {
78 int TclFormatInt(char *buffer, long n)
79 }
80 declare 25 {
81 void TclFreePackageInfo(Interp *iPtr)
82 }
83 declare 28 {
84 Tcl_Channel TclpGetDefaultStdChannel(int type)
85 }
86 declare 31 {
87 const char *TclGetExtension(const char *name)
88 }
89 declare 32 {
90 int TclGetFrame(Tcl_Interp *interp, const char *str,
91 CallFrame **framePtrPtr)
92 }
93 declare 34 {
94 int TclGetIntForIndex(Tcl_Interp *interp, Tcl_Obj *objPtr,
95 int endValue, int *indexPtr)
96 }
97 declare 37 {
98 int TclGetLoadedPackages(Tcl_Interp *interp, const char *targetName)
99 }
100 declare 38 {
101 int TclGetNamespaceForQualName(Tcl_Interp *interp, const char *qualName,
102 Namespace *cxtNsPtr, int flags, Namespace **nsPtrPtr,
103 Namespace **altNsPtrPtr, Namespace **actualCxtPtrPtr,
104 const char **simpleNamePtr)
105 }
106 declare 39 {
107 Tcl_ObjCmdProc *TclGetObjInterpProc(void)
108 }
109 declare 40 {
110 int TclGetOpenMode(Tcl_Interp *interp, const char *str, int *seekFlagPtr)
111 }
112 declare 41 {
113 Tcl_Command TclGetOriginalCommand(Tcl_Command command)
114 }
115 declare 42 {
116 CONST86 char *TclpGetUserHome(const char *name, Tcl_DString *bufferPtr)
117 }
118 declare 44 {
119 int TclGuessPackageName(const char *fileName, Tcl_DString *bufPtr)
120 }
121 declare 45 {
122 int TclHideUnsafeCommands(Tcl_Interp *interp)
123 }
124 declare 46 {
125 int TclInExit(void)
126 }
127 declare 50 {
128 void TclInitCompiledLocals(Tcl_Interp *interp, CallFrame *framePtr,
129 Namespace *nsPtr)
130 }
131 declare 51 {
132 int TclInterpInit(Tcl_Interp *interp)
133 }
134 declare 53 {
135 int TclInvokeObjectCommand(ClientData clientData, Tcl_Interp *interp,
136 int argc, CONST84 char **argv)
137 }
138 declare 54 {
139 int TclInvokeStringCommand(ClientData clientData, Tcl_Interp *interp,
140 int objc, Tcl_Obj *const objv[])
141 }
142 declare 55 {
143 Proc *TclIsProc(Command *cmdPtr)
144 }
145 declare 58 {
146 Var *TclLookupVar(Tcl_Interp *interp, const char *part1, const char *part2,
147 int flags, const char *msg, int createPart1, int createPart2,
148 Var **arrayPtrPtr)
149 }
150 declare 60 {
151 int TclNeedSpace(const char *start, const char *end)
152 }
153 declare 61 {
154 Tcl_Obj *TclNewProcBodyObj(Proc *procPtr)
155 }
156 declare 62 {
157 int TclObjCommandComplete(Tcl_Obj *cmdPtr)
158 }
159 declare 63 {
160 int TclObjInterpProc(ClientData clientData, Tcl_Interp *interp,
161 int objc, Tcl_Obj *const objv[])
162 }
163 declare 64 {
164 int TclObjInvoke(Tcl_Interp *interp, int objc, Tcl_Obj *const objv[],
165 int flags)
166 }
167 declare 69 {
168 char *TclpAlloc(unsigned int size)
169 }
170 declare 74 {
171 void TclpFree(char *ptr)
172 }
173 declare 75 {
174 unsigned long TclpGetClicks(void)
175 }
176 declare 76 {
177 unsigned long TclpGetSeconds(void)
178 }
179
180 # deprecated
181 declare 77 {
182 void TclpGetTime(Tcl_Time *time)
183 }
184 declare 81 {
185 char *TclpRealloc(char *ptr, unsigned int size)
186 }
187 declare 88 {
188 char *TclPrecTraceProc(ClientData clientData, Tcl_Interp *interp,
189 const char *name1, const char *name2, int flags)
190 }
191 declare 89 {
192 int TclPreventAliasLoop(Tcl_Interp *interp, Tcl_Interp *cmdInterp,
193 Tcl_Command cmd)
194 }
195 declare 91 {
196 void TclProcCleanupProc(Proc *procPtr)
197 }
198 declare 92 {
199 int TclProcCompileProc(Tcl_Interp *interp, Proc *procPtr,
200 Tcl_Obj *bodyPtr, Namespace *nsPtr, const char *description,
201 const char *procName)
202 }
203 declare 93 {
204 void TclProcDeleteProc(ClientData clientData)
205 }
206 declare 96 {
207 int TclRenameCommand(Tcl_Interp *interp, const char *oldName,
208 const char *newName)
209 }
210 declare 97 {
211 void TclResetShadowedCmdRefs(Tcl_Interp *interp, Command *newCmdPtr)
212 }
213 declare 98 {
214 int TclServiceIdle(void)
215 }
216 declare 101 {
217 CONST86 char *TclSetPreInitScript(const char *string)
218 }
219 declare 102 {
220 void TclSetupEnv(Tcl_Interp *interp)
221 }
222 declare 103 {
223 int TclSockGetPort(Tcl_Interp *interp, const char *str, const char *proto,
224 int *portPtr)
225 }
226 declare 104 {
227 int TclSockMinimumBuffersOld(int sock, int size)
228 }
229 declare 108 {
230 void TclTeardownNamespace(Namespace *nsPtr)
231 }
232 declare 109 {
233 int TclUpdateReturnInfo(Interp *iPtr)
234 }
235 declare 110 {
236 int TclSockMinimumBuffers(void *sock, int size)
237 }
238
239 # Procedures used in conjunction with Tcl namespaces. They are
240 # defined here instead of in tcl.decls since they are not stable yet.
241
242 declare 111 {
243 void Tcl_AddInterpResolvers(Tcl_Interp *interp, const char *name,
244 Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc,
245 Tcl_ResolveCompiledVarProc *compiledVarProc)
246 }
247 declare 112 {
248 int Tcl_AppendExportList(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
249 Tcl_Obj *objPtr)
250 }
251 declare 113 {
252 Tcl_Namespace *Tcl_CreateNamespace(Tcl_Interp *interp, const char *name,
253 ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc)
254 }
255 declare 114 {
256 void Tcl_DeleteNamespace(Tcl_Namespace *nsPtr)
257 }
258 declare 115 {
259 int Tcl_Export(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
260 const char *pattern, int resetListFirst)
261 }
262 declare 116 {
263 Tcl_Command Tcl_FindCommand(Tcl_Interp *interp, const char *name,
264 Tcl_Namespace *contextNsPtr, int flags)
265 }
266 declare 117 {
267 Tcl_Namespace *Tcl_FindNamespace(Tcl_Interp *interp, const char *name,
268 Tcl_Namespace *contextNsPtr, int flags)
269 }
270 declare 118 {
271 int Tcl_GetInterpResolvers(Tcl_Interp *interp, const char *name,
272 Tcl_ResolverInfo *resInfo)
273 }
274 declare 119 {
275 int Tcl_GetNamespaceResolvers(Tcl_Namespace *namespacePtr,
276 Tcl_ResolverInfo *resInfo)
277 }
278 declare 120 {
279 Tcl_Var Tcl_FindNamespaceVar(Tcl_Interp *interp, const char *name,
280 Tcl_Namespace *contextNsPtr, int flags)
281 }
282 declare 121 {
283 int Tcl_ForgetImport(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
284 const char *pattern)
285 }
286 declare 122 {
287 Tcl_Command Tcl_GetCommandFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr)
288 }
289 declare 123 {
290 void Tcl_GetCommandFullName(Tcl_Interp *interp, Tcl_Command command,
291 Tcl_Obj *objPtr)
292 }
293 declare 124 {
294 Tcl_Namespace *Tcl_GetCurrentNamespace(Tcl_Interp *interp)
295 }
296 declare 125 {
297 Tcl_Namespace *Tcl_GetGlobalNamespace(Tcl_Interp *interp)
298 }
299 declare 126 {
300 void Tcl_GetVariableFullName(Tcl_Interp *interp, Tcl_Var variable,
301 Tcl_Obj *objPtr)
302 }
303 declare 127 {
304 int Tcl_Import(Tcl_Interp *interp, Tcl_Namespace *nsPtr,
305 const char *pattern, int allowOverwrite)
306 }
307 declare 128 {
308 void Tcl_PopCallFrame(Tcl_Interp *interp)
309 }
310 declare 129 {
311 int Tcl_PushCallFrame(Tcl_Interp *interp, Tcl_CallFrame *framePtr,
312 Tcl_Namespace *nsPtr, int isProcCallFrame)
313 }
314 declare 130 {
315 int Tcl_RemoveInterpResolvers(Tcl_Interp *interp, const char *name)
316 }
317 declare 131 {
318 void Tcl_SetNamespaceResolvers(Tcl_Namespace *namespacePtr,
319 Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc,
320 Tcl_ResolveCompiledVarProc *compiledVarProc)
321 }
322 declare 132 {
323 int TclpHasSockets(Tcl_Interp *interp)
324 }
325 declare 133 {
326 struct tm *TclpGetDate(const time_t *time, int useGMT)
327 }
328 declare 138 {
329 CONST84_RETURN char *TclGetEnv(const char *name, Tcl_DString *valuePtr)
330 }
331 # This is used by TclX, but should otherwise be considered private
332 declare 141 {
333 CONST84_RETURN char *TclpGetCwd(Tcl_Interp *interp, Tcl_DString *cwdPtr)
334 }
335 declare 142 {
336 int TclSetByteCodeFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr,
337 CompileHookProc *hookProc, ClientData clientData)
338 }
339 declare 143 {
340 int TclAddLiteralObj(struct CompileEnv *envPtr, Tcl_Obj *objPtr,
341 LiteralEntry **litPtrPtr)
342 }
343 declare 144 {
344 void TclHideLiteral(Tcl_Interp *interp, struct CompileEnv *envPtr,
345 int index)
346 }
347 declare 145 {
348 const struct AuxDataType *TclGetAuxDataType(const char *typeName)
349 }
350 declare 146 {
351 TclHandle TclHandleCreate(void *ptr)
352 }
353 declare 147 {
354 void TclHandleFree(TclHandle handle)
355 }
356 declare 148 {
357 TclHandle TclHandlePreserve(TclHandle handle)
358 }
359 declare 149 {
360 void TclHandleRelease(TclHandle handle)
361 }
362 declare 150 {
363 int TclRegAbout(Tcl_Interp *interp, Tcl_RegExp re)
364 }
365 declare 151 {
366 void TclRegExpRangeUniChar(Tcl_RegExp re, int index, int *startPtr,
367 int *endPtr)
368 }
369 declare 152 {
370 void TclSetLibraryPath(Tcl_Obj *pathPtr)
371 }
372 declare 153 {
373 Tcl_Obj *TclGetLibraryPath(void)
374 }
375 declare 156 {
376 void TclRegError(Tcl_Interp *interp, const char *msg,
377 int status)
378 }
379 declare 157 {
380 Var *TclVarTraceExists(Tcl_Interp *interp, const char *varName)
381 }
382 # REMOVED (except from stub table) - use public Tcl_SetStartupScript()
383 declare 158 {
384 void TclSetStartupScriptFileName(const char *filename)
385 }
386 # REMOVED (except from stub table) - use public Tcl_GetStartupScript()
387 declare 159 {
388 const char *TclGetStartupScriptFileName(void)
389 }
390
391 declare 161 {
392 int TclChannelTransform(Tcl_Interp *interp, Tcl_Channel chan,
393 Tcl_Obj *cmdObjPtr)
394 }
395 declare 162 {
396 void TclChannelEventScriptInvoker(ClientData clientData, int flags)
397 }
398
399 # ALERT: The result of 'TclGetInstructionTable' is actually a
400 # "const InstructionDesc*" but we do not want to describe this structure in
401 # "tclInt.h". It is described in "tclCompile.h". Use a cast to the
402 # correct type when calling this procedure.
403
404 declare 163 {
405 const void *TclGetInstructionTable(void)
406 }
407
408 # ALERT: The argument of 'TclExpandCodeArray' is actually a
409 # "CompileEnv*" but we do not want to describe this structure in
410 # "tclInt.h". It is described in "tclCompile.h".
411
412 declare 164 {
413 void TclExpandCodeArray(void *envPtr)
414 }
415
416 # These functions are vfs aware, but are generally only useful internally.
417 declare 165 {
418 void TclpSetInitialEncodings(void)
419 }
420
421 # New function due to TIP #33
422 declare 166 {
423 int TclListObjSetElement(Tcl_Interp *interp, Tcl_Obj *listPtr,
424 int index, Tcl_Obj *valuePtr)
425 }
426
427 # VFS-aware versions of Tcl*StartupScriptFileName (158 and 159 above)
428 # REMOVED (except from stub table) - use public Tcl_SetStartupScript()
429 declare 167 {
430 void TclSetStartupScriptPath(Tcl_Obj *pathPtr)
431 }
432 # REMOVED (except from stub table) - use public Tcl_GetStartupScript()
433 declare 168 {
434 Tcl_Obj *TclGetStartupScriptPath(void)
435 }
436 # variant of Tcl_UtfNcmp that takes n as bytes, not chars
437 declare 169 {
438 int TclpUtfNcmp2(const char *s1, const char *s2, unsigned long n)
439 }
440 declare 170 {
441 int TclCheckInterpTraces(Tcl_Interp *interp, const char *command,
442 int numChars, Command *cmdPtr, int result, int traceFlags,
443 int objc, Tcl_Obj *const objv[])
444 }
445 declare 171 {
446 int TclCheckExecutionTraces(Tcl_Interp *interp, const char *command,
447 int numChars, Command *cmdPtr, int result, int traceFlags,
448 int objc, Tcl_Obj *const objv[])
449 }
450 declare 172 {
451 int TclInThreadExit(void)
452 }
453 declare 173 {
454 int TclUniCharMatch(const Tcl_UniChar *string, int strLen,
455 const Tcl_UniChar *pattern, int ptnLen, int flags)
456 }
457 declare 175 {
458 int TclCallVarTraces(Interp *iPtr, Var *arrayPtr, Var *varPtr,
459 const char *part1, const char *part2, int flags, int leaveErrMsg)
460 }
461 declare 176 {
462 void TclCleanupVar(Var *varPtr, Var *arrayPtr)
463 }
464 declare 177 {
465 void TclVarErrMsg(Tcl_Interp *interp, const char *part1, const char *part2,
466 const char *operation, const char *reason)
467 }
468 # TIP 338 made these public - now declared in tcl.h too
469 declare 178 {
470 void Tcl_SetStartupScript(Tcl_Obj *pathPtr, const char *encodingName)
471 }
472 declare 179 {
473 Tcl_Obj *Tcl_GetStartupScript(const char **encodingNamePtr)
474 }
475 declare 182 {
476 struct tm *TclpLocaltime(const time_t *clock)
477 }
478 declare 183 {
479 struct tm *TclpGmtime(const time_t *clock)
480 }
481
482 # For the new "Thread Storage" subsystem.
483
484 declare 198 {
485 int TclObjGetFrame(Tcl_Interp *interp, Tcl_Obj *objPtr,
486 CallFrame **framePtrPtr)
487 }
488 # 200-208 exported for use by the test suite [Bug 1054748]
489 declare 200 {
490 int TclpObjRemoveDirectory(Tcl_Obj *pathPtr, int recursive,
491 Tcl_Obj **errorPtr)
492 }
493 declare 201 {
494 int TclpObjCopyDirectory(Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr,
495 Tcl_Obj **errorPtr)
496 }
497 declare 202 {
498 int TclpObjCreateDirectory(Tcl_Obj *pathPtr)
499 }
500 declare 203 {
501 int TclpObjDeleteFile(Tcl_Obj *pathPtr)
502 }
503 declare 204 {
504 int TclpObjCopyFile(Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr)
505 }
506 declare 205 {
507 int TclpObjRenameFile(Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr)
508 }
509 declare 206 {
510 int TclpObjStat(Tcl_Obj *pathPtr, Tcl_StatBuf *buf)
511 }
512 declare 207 {
513 int TclpObjAccess(Tcl_Obj *pathPtr, int mode)
514 }
515 declare 208 {
516 Tcl_Channel TclpOpenFileChannel(Tcl_Interp *interp,
517 Tcl_Obj *pathPtr, int mode, int permissions)
518 }
519 declare 212 {
520 void TclpFindExecutable(const char *argv0)
521 }
522 declare 213 {
523 Tcl_Obj *TclGetObjNameOfExecutable(void)
524 }
525 declare 214 {
526 void TclSetObjNameOfExecutable(Tcl_Obj *name, Tcl_Encoding encoding)
527 }
528 declare 215 {
529 void *TclStackAlloc(Tcl_Interp *interp, int numBytes)
530 }
531 declare 216 {
532 void TclStackFree(Tcl_Interp *interp, void *freePtr)
533 }
534 declare 217 {
535 int TclPushStackFrame(Tcl_Interp *interp, Tcl_CallFrame **framePtrPtr,
536 Tcl_Namespace *namespacePtr, int isProcCallFrame)
537 }
538 declare 218 {
539 void TclPopStackFrame(Tcl_Interp *interp)
540 }
541
542 # for use in tclTest.c
543
544 # Bug 7371b6270b
545 declare 223 {
546 void *TclGetCStackPtr(void)
547 }
548 declare 224 {
549 TclPlatformType *TclGetPlatform(void)
550 }
551 declare 225 {
552 Tcl_Obj *TclTraceDictPath(Tcl_Interp *interp, Tcl_Obj *rootPtr,
553 int keyc, Tcl_Obj *const keyv[], int flags)
554 }
555 declare 226 {
556 int TclObjBeingDeleted(Tcl_Obj *objPtr)
557 }
558 declare 227 {
559 void TclSetNsPath(Namespace *nsPtr, int pathLength,
560 Tcl_Namespace *pathAry[])
561 }
562 declare 229 {
563 int TclPtrMakeUpvar(Tcl_Interp *interp, Var *otherP1Ptr,
564 const char *myName, int myFlags, int index)
565 }
566 declare 230 {
567 Var *TclObjLookupVar(Tcl_Interp *interp, Tcl_Obj *part1Ptr,
568 const char *part2, int flags, const char *msg,
569 int createPart1, int createPart2, Var **arrayPtrPtr)
570 }
571 declare 231 {
572 int TclGetNamespaceFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr,
573 Tcl_Namespace **nsPtrPtr)
574 }
575
576 # Bits and pieces of TIP#280's guts
577 declare 232 {
578 int TclEvalObjEx(Tcl_Interp *interp, Tcl_Obj *objPtr, int flags,
579 const CmdFrame *invoker, int word)
580 }
581 declare 233 {
582 void TclGetSrcInfoForPc(CmdFrame *contextPtr)
583 }
584
585 # Exports for VarReform compat: Itcl, XOTcl like to peek into our varTables :(
586 declare 234 {
587 Var *TclVarHashCreateVar(TclVarHashTable *tablePtr, const char *key,
588 int *newPtr)
589 }
590 declare 235 {
591 void TclInitVarHashTable(TclVarHashTable *tablePtr, Namespace *nsPtr)
592 }
593
594 # TIP 337 made this one public
595 declare 236 {
596 void TclBackgroundException(Tcl_Interp *interp, int code)
597 }
598
599 # TIP #285: Script cancellation support.
600 declare 237 {
601 int TclResetCancellation(Tcl_Interp *interp, int force)
602 }
603
604 # NRE functions for "rogue" extensions to exploit NRE; they will need to
605 # include NRE.h too.
606 declare 238 {
607 int TclNRInterpProc(ClientData clientData, Tcl_Interp *interp,
608 int objc, Tcl_Obj *const objv[])
609 }
610 declare 239 {
611 int TclNRInterpProcCore(Tcl_Interp *interp, Tcl_Obj *procNameObj,
612 int skip, ProcErrorProc *errorProc)
613 }
614 declare 240 {
615 int TclNRRunCallbacks(Tcl_Interp *interp, int result,
616 struct NRE_callback *rootPtr)
617 }
618 declare 241 {
619 int TclNREvalObjEx(Tcl_Interp *interp, Tcl_Obj *objPtr, int flags,
620 const CmdFrame *invoker, int word)
621 }
622 declare 242 {
623 int TclNREvalObjv(Tcl_Interp *interp, int objc,
624 Tcl_Obj *const objv[], int flags, Command *cmdPtr)
625 }
626
627 # Tcl_Obj leak detection support.
628 declare 243 {
629 void TclDbDumpActiveObjects(FILE *outFile)
630 }
631
632 # Functions to make things better for itcl
633 declare 244 {
634 Tcl_HashTable *TclGetNamespaceChildTable(Tcl_Namespace *nsPtr)
635 }
636 declare 245 {
637 Tcl_HashTable *TclGetNamespaceCommandTable(Tcl_Namespace *nsPtr)
638 }
639 declare 246 {
640 int TclInitRewriteEnsemble(Tcl_Interp *interp, int numRemoved,
641 int numInserted, Tcl_Obj *const *objv)
642 }
643 declare 247 {
644 void TclResetRewriteEnsemble(Tcl_Interp *interp, int isRootEnsemble)
645 }
646
647 declare 248 {
648 int TclCopyChannel(Tcl_Interp *interp, Tcl_Channel inChan,
649 Tcl_Channel outChan, Tcl_WideInt toRead, Tcl_Obj *cmdPtr)
650 }
651
652 declare 249 {
653 char *TclDoubleDigits(double dv, int ndigits, int flags,
654 int *decpt, int *signum, char **endPtr)
655 }
656 # TIP #285: Script cancellation support.
657 declare 250 {
658 void TclSetSlaveCancelFlags(Tcl_Interp *interp, int flags, int force)
659 }
660
661 # Allow extensions for optimization
662 declare 251 {
663 int TclRegisterLiteral(void *envPtr,
664 char *bytes, int length, int flags)
665 }
666
667 # Exporting of the internal API to variables.
668
669 declare 252 {
670 Tcl_Obj *TclPtrGetVar(Tcl_Interp *interp, Tcl_Var varPtr,
671 Tcl_Var arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr,
672 int flags)
673 }
674 declare 253 {
675 Tcl_Obj *TclPtrSetVar(Tcl_Interp *interp, Tcl_Var varPtr,
676 Tcl_Var arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr,
677 Tcl_Obj *newValuePtr, int flags)
678 }
679 declare 254 {
680 Tcl_Obj *TclPtrIncrObjVar(Tcl_Interp *interp, Tcl_Var varPtr,
681 Tcl_Var arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr,
682 Tcl_Obj *incrPtr, int flags)
683 }
684 declare 255 {
685 int TclPtrObjMakeUpvar(Tcl_Interp *interp, Tcl_Var otherPtr,
686 Tcl_Obj *myNamePtr, int myFlags)
687 }
688 declare 256 {
689 int TclPtrUnsetVar(Tcl_Interp *interp, Tcl_Var varPtr, Tcl_Var arrayPtr,
690 Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, int flags)
691 }
692 declare 257 {
693 void TclStaticPackage(Tcl_Interp *interp, const char *prefix,
694 Tcl_PackageInitProc *initProc, Tcl_PackageInitProc *safeInitProc)
695 }
696
697 declare 261 {
698 void TclUnusedStubEntry(void)
699 }
700
701 ##############################################################################
702
703 # Define the platform specific internal Tcl interface. These functions are
704 # only available on the designated platform.
705
706 interface tclIntPlat
707
708 ################################
709 # Windows specific functions
710
711 declare 0 win {
712 void TclWinConvertError(DWORD errCode)
713 }
714 declare 1 win {
715 void TclWinConvertWSAError(DWORD errCode)
716 }
717 declare 2 win {
718 struct servent *TclWinGetServByName(const char *nm,
719 const char *proto)
720 }
721 declare 3 win {
722 int TclWinGetSockOpt(SOCKET s, int level, int optname,
723 char *optval, int *optlen)
724 }
725 declare 4 win {
726 HINSTANCE TclWinGetTclInstance(void)
727 }
728 declare 5 win {
729 int TclUnixWaitForFile(int fd, int mask, int timeout)
730 }
731 declare 6 win {
732 unsigned short TclWinNToHS(unsigned short ns)
733 }
734 declare 7 win {
735 int TclWinSetSockOpt(SOCKET s, int level, int optname,
736 const char *optval, int optlen)
737 }
738 declare 8 win {
739 int TclpGetPid(Tcl_Pid pid)
740 }
741 declare 9 win {
742 int TclWinGetPlatformId(void)
743 }
744 declare 10 win {
745 Tcl_DirEntry *TclpReaddir(TclDIR *dir)
746 }
747
748 # Pipe channel functions
749
750 declare 11 win {
751 void TclGetAndDetachPids(Tcl_Interp *interp, Tcl_Channel chan)
752 }
753 declare 12 win {
754 int TclpCloseFile(TclFile file)
755 }
756 declare 13 win {
757 Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
758 TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr)
759 }
760 declare 14 win {
761 int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe)
762 }
763 declare 15 win {
764 int TclpCreateProcess(Tcl_Interp *interp, int argc,
765 const char **argv, TclFile inputFile, TclFile outputFile,
766 TclFile errorFile, Tcl_Pid *pidPtr)
767 }
768 declare 16 win {
769 int TclpIsAtty(int fd)
770 }
771 declare 17 win {
772 int TclUnixCopyFile(const char *src, const char *dst,
773 const Tcl_StatBuf *statBufPtr, int dontCopyAtts)
774 }
775 declare 18 win {
776 TclFile TclpMakeFile(Tcl_Channel channel, int direction)
777 }
778 declare 19 win {
779 TclFile TclpOpenFile(const char *fname, int mode)
780 }
781 declare 20 win {
782 void TclWinAddProcess(HANDLE hProcess, DWORD id)
783 }
784 declare 21 win {
785 char *TclpInetNtoa(struct in_addr addr)
786 }
787 declare 22 win {
788 TclFile TclpCreateTempFile(const char *contents)
789 }
790 declare 24 win {
791 char *TclWinNoBackslash(char *path)
792 }
793 declare 26 win {
794 void TclWinSetInterfaces(int wide)
795 }
796 declare 27 win {
797 void TclWinFlushDirtyChannels(void)
798 }
799 declare 28 win {
800 void TclWinResetInterfaces(void)
801 }
802
803 ################################
804 # Unix specific functions
805
806 # Pipe channel functions
807
808 declare 0 unix {
809 void TclGetAndDetachPids(Tcl_Interp *interp, Tcl_Channel chan)
810 }
811 declare 1 unix {
812 int TclpCloseFile(TclFile file)
813 }
814 declare 2 unix {
815 Tcl_Channel TclpCreateCommandChannel(TclFile readFile,
816 TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr)
817 }
818 declare 3 unix {
819 int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe)
820 }
821 declare 4 unix {
822 int TclpCreateProcess(Tcl_Interp *interp, int argc,
823 const char **argv, TclFile inputFile, TclFile outputFile,
824 TclFile errorFile, Tcl_Pid *pidPtr)
825 }
826 declare 5 unix {
827 int TclUnixWaitForFile_(int fd, int mask, int timeout)
828 }
829 declare 6 unix {
830 TclFile TclpMakeFile(Tcl_Channel channel, int direction)
831 }
832 declare 7 unix {
833 TclFile TclpOpenFile(const char *fname, int mode)
834 }
835 declare 8 unix {
836 int TclUnixWaitForFile(int fd, int mask, int timeout)
837 }
838
839 # Added in 8.1:
840
841 declare 9 unix {
842 TclFile TclpCreateTempFile(const char *contents)
843 }
844
845 # Added in 8.4:
846
847 declare 10 unix {
848 Tcl_DirEntry *TclpReaddir(TclDIR *dir)
849 }
850 # Slots 11 and 12 are forwarders for functions that were promoted to
851 # generic Stubs
852 declare 11 unix {
853 struct tm *TclpLocaltime_unix(const time_t *clock)
854 }
855 declare 12 unix {
856 struct tm *TclpGmtime_unix(const time_t *clock)
857 }
858 declare 13 unix {
859 char *TclpInetNtoa(struct in_addr addr)
860 }
861
862 # Added in 8.5:
863
864 declare 14 unix {
865 int TclUnixCopyFile(const char *src, const char *dst,
866 const Tcl_StatBuf *statBufPtr, int dontCopyAtts)
867 }
868
869 ################################
870 # Mac OS X specific functions
871
872 declare 15 {unix macosx} {
873 int TclMacOSXGetFileAttribute(Tcl_Interp *interp, int objIndex,
874 Tcl_Obj *fileName, Tcl_Obj **attributePtrPtr)
875 }
876 declare 16 {unix macosx} {
877 int TclMacOSXSetFileAttribute(Tcl_Interp *interp, int objIndex,
878 Tcl_Obj *fileName, Tcl_Obj *attributePtr)
879 }
880 declare 17 {unix macosx} {
881 int TclMacOSXCopyFileAttributes(const char *src, const char *dst,
882 const Tcl_StatBuf *statBufPtr)
883 }
884 declare 18 {unix macosx} {
885 int TclMacOSXMatchType(Tcl_Interp *interp, const char *pathName,
886 const char *fileName, Tcl_StatBuf *statBufPtr,
887 Tcl_GlobTypeData *types)
888 }
889 declare 19 {unix macosx} {
890 void TclMacOSXNotifierAddRunLoopMode(const void *runLoopMode)
891 }
892 declare 22 {unix macosx} {
893 TclFile TclpCreateTempFile_(const char *contents)
894 }
895
896 declare 29 {win unix} {
897 int TclWinCPUID(unsigned int index, unsigned int *regs)
898 }
899 # Added in 8.6; core of TclpOpenTemporaryFile
900 declare 30 {win unix} {
901 int TclUnixOpenTemporaryFile(Tcl_Obj *dirObj, Tcl_Obj *basenameObj,
902 Tcl_Obj *extensionObj, Tcl_Obj *resultingNameObj)
903 }
904
905 # Local Variables:
906 # mode: tcl
907 # End: