1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
|
# tclInt.decls --
#
# This file contains the declarations for all unsupported
# functions that are exported by the Tcl library. This file
# is used to generate the tclIntDecls.h, tclIntPlatDecls.h,
# tclIntStub.c, and tclPlatStub.c files.
#
# Copyright (c) 1998-1999 by Scriptics Corporation.
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# RCS: @(#) $Id: tclInt.decls,v 1.2 1999/03/04 01:01:58 stanton Exp $
library tcl
# Define the unsupported generic interfaces.
interface tclInt
# Declare each of the functions in the unsupported internal Tcl
# interface. These interfaces are allowed to changed between versions.
# Use at your own risk. Note that the position of functions should not
# be changed between versions to avoid gratuitous incompatibilities.
declare 0 generic {
int TclAccess(CONST char *path, int mode)
}
declare 1 generic {
int TclAccessDeleteProc(TclAccessProc_ *proc)
}
declare 2 generic {
int TclAccessInsertProc(TclAccessProc_ *proc)
}
declare 3 generic {
void TclAllocateFreeObjects(void)
}
declare 4 generic {
int TclChdir(Tcl_Interp *interp, char *dirName)
}
declare 5 generic {
int TclCleanupChildren(Tcl_Interp *interp, int numPids, Tcl_Pid *pidPtr, \
Tcl_Channel errorChan)
}
declare 6 generic {
void TclCleanupCommand(Command *cmdPtr)
}
declare 7 generic {
int TclCopyAndCollapse(int count, char *src, char *dst)
}
declare 8 generic {
int TclCopyChannel(Tcl_Interp *interp, Tcl_Channel inChan, \
Tcl_Channel outChan, int toRead, Tcl_Obj *cmdPtr)
}
# TclCreatePipeline unofficially exported for use by BLT.
declare 9 generic {
int TclCreatePipeline(Tcl_Interp *interp, int argc, char **argv, \
Tcl_Pid **pidArrayPtr, TclFile *inPipePtr, TclFile *outPipePtr, \
TclFile *errFilePtr)
}
declare 10 generic {
int TclCreateProc(Tcl_Interp *interp, Namespace *nsPtr, char *procName, \
Tcl_Obj *argsPtr, Tcl_Obj *bodyPtr, Proc **procPtrPtr)
}
declare 11 generic {
void TclDeleteCompiledLocalVars(Interp *iPtr, CallFrame *framePtr)
}
declare 12 generic {
void TclDeleteVars(Interp *iPtr, Tcl_HashTable *tablePtr)
}
declare 13 generic {
int TclDoGlob(Tcl_Interp *interp, char *separators, \
Tcl_DString *headPtr, char *tail)
}
declare 14 generic {
void TclDumpMemoryInfo(FILE *outFile)
}
declare 15 generic {
void TclExpandParseValue(ParseValue *pvPtr, int needed)
}
declare 16 generic {
void TclExprFloatError(Tcl_Interp *interp, double value)
}
declare 17 generic {
int TclFileAttrsCmd(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
}
declare 18 generic {
int TclFileCopyCmd(Tcl_Interp *interp, int argc, char **argv)
}
declare 19 generic {
int TclFileDeleteCmd(Tcl_Interp *interp, int argc, char **argv)
}
declare 20 generic {
int TclFileMakeDirsCmd(Tcl_Interp *interp, int argc, char **argv)
}
declare 21 generic {
int TclFileRenameCmd(Tcl_Interp *interp, int argc, char **argv)
}
declare 22 generic {
void TclFinalizeCompExecEnv(void)
}
declare 23 generic {
void TclFinalizeEnvironment(void)
}
declare 24 generic {
void TclFinalizeExecEnv(void)
}
declare 25 generic {
int TclFindElement(Tcl_Interp *interp, char *list, int listLength, \
char **elementPtr, char **nextPtr, int *sizePtr, int *bracePtr)
}
declare 26 generic {
Proc * TclFindProc(Interp *iPtr, char *procName)
}
declare 27 generic {
int TclFormatInt(char *buffer, long n)
}
declare 28 generic {
void TclFreePackageInfo(Interp *iPtr)
}
declare 29 generic {
char * TclGetCwd(Tcl_Interp *interp)
}
declare 30 generic {
int TclGetDate(char *p, unsigned long now, long zone, \
unsigned long *timePtr)
}
declare 31 generic {
Tcl_Channel TclGetDefaultStdChannel(int type)
}
declare 32 generic {
Tcl_Obj * TclGetElementOfIndexedArray(Tcl_Interp *interp, \
int localIndex, Tcl_Obj *elemPtr, int leaveErrorMsg)
}
declare 33 generic {
char * TclGetEnv(CONST char *name)
}
declare 34 generic {
char * TclGetExtension(char *name)
}
declare 35 generic {
int TclGetFrame(Tcl_Interp *interp, char *string, CallFrame **framePtrPtr)
}
declare 36 generic {
TclCmdProcType TclGetInterpProc(void)
}
declare 37 generic {
int TclGetIntForIndex(Tcl_Interp *interp, Tcl_Obj *objPtr, \
int endValue, int *indexPtr)
}
declare 38 generic {
Tcl_Obj * TclGetIndexedScalar(Tcl_Interp *interp, int localIndex, \
int leaveErrorMsg)
}
declare 39 generic {
int TclGetLong(Tcl_Interp *interp, char *string, long *longPtr)
}
declare 40 generic {
int TclGetLoadedPackages(Tcl_Interp *interp, char *targetName)
}
declare 41 generic {
int TclGetNamespaceForQualName(Tcl_Interp *interp, char *qualName, \
Namespace *cxtNsPtr, int flags, Namespace **nsPtrPtr, \
Namespace **altNsPtrPtr, Namespace **actualCxtPtrPtr, \
char **simpleNamePtr)
}
declare 42 generic {
TclObjCmdProcType TclGetObjInterpProc(void)
}
declare 43 generic {
int TclGetOpenMode(Tcl_Interp *interp, char *string, int *seekFlagPtr)
}
declare 44 generic {
Tcl_Command TclGetOriginalCommand(Tcl_Command command)
}
declare 45 generic {
char * TclGetUserHome(char *name, Tcl_DString *bufferPtr)
}
declare 46 generic {
int TclGlobalInvoke(Tcl_Interp *interp, int argc, char **argv, int flags)
}
declare 47 generic {
int TclGuessPackageName(char *fileName, Tcl_DString *bufPtr)
}
declare 48 generic {
int TclHideUnsafeCommands(Tcl_Interp *interp)
}
declare 49 generic {
int TclInExit(void)
}
declare 50 generic {
Tcl_Obj * TclIncrElementOfIndexedArray(Tcl_Interp *interp, \
int localIndex, Tcl_Obj *elemPtr, long incrAmount)
}
declare 51 generic {
Tcl_Obj * TclIncrIndexedScalar(Tcl_Interp *interp, int localIndex, \
long incrAmount)
}
declare 52 generic {
Tcl_Obj * TclIncrVar2(Tcl_Interp *interp, Tcl_Obj *part1Ptr, \
Tcl_Obj *part2Ptr, long incrAmount, int part1NotParsed)
}
declare 53 generic {
void TclInitCompiledLocals(Tcl_Interp *interp, CallFrame *framePtr, \
Namespace *nsPtr)
}
declare 54 generic {
void TclInitNamespaces(void)
}
declare 55 generic {
int TclInterpInit(Tcl_Interp *interp)
}
declare 56 generic {
int TclInvoke(Tcl_Interp *interp, int argc, char **argv, int flags)
}
declare 57 generic {
int TclInvokeObjectCommand(ClientData clientData, Tcl_Interp *interp, \
int argc, char **argv)
}
declare 58 generic {
int TclInvokeStringCommand(ClientData clientData, Tcl_Interp *interp, \
int objc, Tcl_Obj *CONST objv[])
}
declare 59 generic {
Proc * TclIsProc(Command *cmdPtr)
}
declare 60 generic {
int TclLoadFile(Tcl_Interp *interp, char *fileName, char *sym1, \
char *sym2, Tcl_PackageInitProc **proc1Ptr, \
Tcl_PackageInitProc **proc2Ptr)
}
declare 61 generic {
int TclLooksLikeInt(char *p)
}
declare 62 generic {
Var * TclLookupVar(Tcl_Interp *interp, char *part1, char *part2, \
int flags, char *msg, int createPart1, int createPart2, \
Var **arrayPtrPtr)
}
declare 63 generic {
int TclMatchFiles(Tcl_Interp *interp, char *separators, \
Tcl_DString *dirPtr, char *pattern, char *tail)
}
declare 64 generic {
int TclNeedSpace(char *start, char *end)
}
declare 65 generic {
Tcl_Obj * TclNewProcBodyObj(Proc *procPtr)
}
declare 66 generic {
int TclObjCommandComplete(Tcl_Obj *cmdPtr)
}
declare 67 generic {
int TclObjInterpProc(ClientData clientData, Tcl_Interp *interp, \
int objc, Tcl_Obj *CONST objv[])
}
declare 68 generic {
int TclObjInvoke(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], \
int flags)
}
declare 69 generic {
int TclObjInvokeGlobal(Tcl_Interp *interp, int objc, \
Tcl_Obj *CONST objv[], int flags)
}
declare 70 generic {
int TclOpenFileChannelDeleteProc(TclOpenFileChannelProc_ *proc)
}
declare 71 generic {
int TclOpenFileChannelInsertProc(TclOpenFileChannelProc_ *proc)
}
declare 72 generic {
int TclpAccess(CONST char *path, int mode)
}
declare 73 generic {
char * TclpAlloc(unsigned int size)
}
declare 74 generic {
int TclpCopyFile(char *source, char *dest)
}
declare 75 generic {
int TclpCopyDirectory(char *source, char *dest, Tcl_DString *errorPtr)
}
declare 76 generic {
int TclpCreateDirectory(char *path)
}
declare 77 generic {
int TclpDeleteFile(char *path)
}
declare 78 generic {
void TclpFree(char *ptr)
}
declare 79 generic {
unsigned long TclpGetClicks(void)
}
declare 80 generic {
unsigned long TclpGetSeconds(void)
}
declare 81 generic {
void TclpGetTime(Tcl_Time *time)
}
declare 82 generic {
int TclpGetTimeZone(unsigned long time)
}
declare 83 generic {
int TclpListVolumes(Tcl_Interp *interp)
}
declare 84 generic {
Tcl_Channel TclpOpenFileChannel(Tcl_Interp *interp, char *fileName, \
char *modeString, int permissions)
}
declare 85 generic {
char * TclpRealloc(char *ptr, unsigned int size)
}
declare 86 generic {
int TclpRemoveDirectory(char *path, int recursive, Tcl_DString *errorPtr)
}
declare 87 generic {
int TclpRenameFile(char *source, char *dest)
}
declare 88 generic {
int TclParseBraces(Tcl_Interp *interp, char *string, char **termPtr, \
ParseValue *pvPtr)
}
declare 89 generic {
int TclParseNestedCmd(Tcl_Interp *interp, char *string, int flags, \
char **termPtr, ParseValue *pvPtr)
}
declare 90 generic {
int TclParseQuotes(Tcl_Interp *interp, char *string, int termChar, \
int flags, char **termPtr, ParseValue *pvPtr)
}
declare 91 generic {
void TclPlatformInit(Tcl_Interp *interp)
}
declare 92 generic {
char * TclPrecTraceProc(ClientData clientData, Tcl_Interp *interp, \
char *name1, char *name2, int flags)
}
declare 93 generic {
int TclPreventAliasLoop(Tcl_Interp *interp, Tcl_Interp *cmdInterp, \
Tcl_Command cmd)
}
declare 94 generic {
void TclPrintByteCodeObj(Tcl_Interp *interp, Tcl_Obj *objPtr)
}
declare 95 generic {
void TclProcCleanupProc(Proc *procPtr)
}
declare 96 generic {
int TclProcCompileProc(Tcl_Interp *interp, Proc *procPtr, \
Tcl_Obj *bodyPtr, Namespace *nsPtr, CONST char *description, \
CONST char *procName)
}
declare 97 generic {
void TclProcDeleteProc(ClientData clientData)
}
declare 98 generic {
int TclProcInterpProc(ClientData clientData, Tcl_Interp *interp, \
int argc, char **argv)
}
declare 99 generic {
int TclpStat(CONST char *path, struct stat *buf)
}
declare 100 generic {
int TclRenameCommand(Tcl_Interp *interp, char *oldName, char *newName)
}
declare 101 generic {
void TclResetShadowedCmdRefs(Tcl_Interp *interp, Command *newCmdPtr)
}
declare 102 generic {
int TclServiceIdle(void)
}
declare 103 generic {
Tcl_Obj * TclSetElementOfIndexedArray(Tcl_Interp *interp, \
int localIndex, Tcl_Obj *elemPtr, Tcl_Obj *objPtr, int leaveErrorMsg)
}
declare 104 generic {
Tcl_Obj * TclSetIndexedScalar(Tcl_Interp *interp, int localIndex, \
Tcl_Obj *objPtr, int leaveErrorMsg)
}
declare 105 generic {
char * TclSetPreInitScript(char *string)
}
declare 106 generic {
void TclSetupEnv(Tcl_Interp *interp)
}
declare 107 generic {
int TclSockGetPort(Tcl_Interp *interp, char *string, char *proto, \
int *portPtr)
}
declare 108 generic {
int TclSockMinimumBuffers(int sock, int size)
}
declare 109 generic {
int TclStat(CONST char *path, TclStat_ *buf)
}
declare 110 generic {
int TclStatDeleteProc(TclStatProc_ *proc)
}
declare 111 generic {
int TclStatInsertProc(TclStatProc_ *proc)
}
declare 112 generic {
void TclTeardownNamespace(Namespace *nsPtr)
}
declare 113 generic {
int TclUpdateReturnInfo(Interp *iPtr)
}
declare 114 generic {
char * TclWordEnd(char *start, char *lastChar, int nested, int *semiPtr)
}
# Procedures used in conjunction with Tcl namespaces. They are
# defined here instead of in tcl.decls since they are not stable yet.
declare 115 generic {
void Tcl_AddInterpResolvers(Tcl_Interp *interp, char *name, \
Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc, \
Tcl_ResolveCompiledVarProc *compiledVarProc)
}
declare 116 generic {
int Tcl_AppendExportList(Tcl_Interp *interp, Tcl_Namespace *nsPtr, \
Tcl_Obj *objPtr)
}
declare 117 generic {
Tcl_Namespace * Tcl_CreateNamespace(Tcl_Interp *interp, char *name, \
ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc)
}
declare 118 generic {
void Tcl_DeleteNamespace(Tcl_Namespace *nsPtr)
}
declare 119 generic {
int Tcl_Export(Tcl_Interp *interp, Tcl_Namespace *nsPtr, char *pattern, \
int resetListFirst)
}
declare 120 generic {
Tcl_Command Tcl_FindCommand(Tcl_Interp *interp, char *name, \
Tcl_Namespace *contextNsPtr, int flags)
}
declare 121 generic {
Tcl_Namespace * Tcl_FindNamespace(Tcl_Interp *interp, char *name, \
Tcl_Namespace *contextNsPtr, int flags)
}
declare 122 generic {
int Tcl_GetInterpResolvers(Tcl_Interp *interp, char *name, \
Tcl_ResolverInfo *resInfo)
}
declare 123 generic {
int Tcl_GetNamespaceResolvers(Tcl_Namespace *namespacePtr, \
Tcl_ResolverInfo *resInfo)
}
declare 124 generic {
Tcl_Var Tcl_FindNamespaceVar(Tcl_Interp *interp, char *name, \
Tcl_Namespace *contextNsPtr, int flags)
}
declare 125 generic {
int Tcl_ForgetImport(Tcl_Interp *interp, Tcl_Namespace *nsPtr, \
char *pattern)
}
declare 126 generic {
Tcl_Command Tcl_GetCommandFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr)
}
declare 127 generic {
void Tcl_GetCommandFullName(Tcl_Interp *interp, Tcl_Command command, \
Tcl_Obj *objPtr)
}
declare 128 generic {
Tcl_Namespace * Tcl_GetCurrentNamespace(Tcl_Interp *interp)
}
declare 129 generic {
Tcl_Namespace * Tcl_GetGlobalNamespace(Tcl_Interp *interp)
}
declare 130 generic {
void Tcl_GetVariableFullName(Tcl_Interp *interp, Tcl_Var variable, \
Tcl_Obj *objPtr)
}
declare 131 generic {
int Tcl_Import(Tcl_Interp *interp, Tcl_Namespace *nsPtr, \
char *pattern, int allowOverwrite)
}
declare 132 generic {
void Tcl_PopCallFrame(Tcl_Interp* interp)
}
declare 133 generic {
int Tcl_PushCallFrame(Tcl_Interp* interp, Tcl_CallFrame *framePtr, \
Tcl_Namespace *nsPtr, int isProcCallFrame)
}
declare 134 generic {
int Tcl_RemoveInterpResolvers(Tcl_Interp *interp, char *name)
}
declare 135 generic {
void Tcl_SetNamespaceResolvers(Tcl_Namespace *namespacePtr, \
Tcl_ResolveCmdProc *cmdProc, Tcl_ResolveVarProc *varProc, \
Tcl_ResolveCompiledVarProc *compiledVarProc)
}
# Compilation procedures for commands in the generic core:
declare 136 generic {
int TclCompileBreakCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 137 generic {
int TclCompileCatchCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 138 generic {
int TclCompileContinueCmd(Tcl_Interp *interp, char *string, \
char *lastChar, int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 139 generic {
int TclCompileExprCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 140 generic {
int TclCompileForCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 141 generic {
int TclCompileForeachCmd(Tcl_Interp *interp, char *string, \
char *lastChar, int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 142 generic {
int TclCompileIfCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 143 generic {
int TclCompileIncrCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 144 generic {
int TclCompileSetCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 145 generic {
int TclCompileWhileCmd(Tcl_Interp *interp, char *string, char *lastChar, \
int compileFlags, struct CompileEnv *compileEnvPtr)
}
declare 146 generic {
int TclHasSockets(Tcl_Interp *interp)
}
declare 147 generic {
struct tm * TclpGetDate(TclpTime_t time, int useGMT)
}
declare 148 generic {
size_t TclStrftime(char *s, size_t maxsize, const char *format, \
const struct tm *t)
}
declare 149 generic {
int TclpCheckStackSpace(void)
}
##############################################################################
# Define the platform specific internal Tcl interface. These functions are
# only available on the designated platform.
interface tclIntPlat
########################
# Mac specific internals
declare 0 mac {
VOID * TclpSysAlloc(long size, int isBin)
}
declare 1 mac {
void TclpSysFree(VOID *ptr)
}
declare 2 mac {
VOID * TclpSysRealloc(VOID *cp, unsigned int size)
}
declare 3 mac {
void TclPlatformExit(int status)
}
# Prototypes for functions found in the tclMacUtil.c compatability library.
declare 4 mac {
int FSpGetDefaultDir(FSSpecPtr theSpec)
}
declare 5 mac {
int FSpSetDefaultDir(FSSpecPtr theSpec)
}
declare 6 mac {
OSErr FSpFindFolder(short vRefNum, OSType folderType, \
Boolean createFolder, FSSpec *spec)
}
declare 7 mac {
void GetGlobalMouse(Point *mouse)
}
# The following routines are utility functions in Tcl. They are exported
# here because they are needed in Tk. They are not officially supported,
# however. The first set are from the MoreFiles package.
declare 8 mac {
pascal OSErr FSpGetDirectoryID(const FSSpec *spec, long *theDirID, \
Boolean *isDirectory)
}
declare 9 mac {
pascal short FSpOpenResFileCompat(const FSSpec *spec, \
SignedByte permission)
}
declare 10 mac {
pascal void FSpCreateResFileCompat(const FSSpec *spec, OSType creator, \
OSType fileType, ScriptCode scriptTag)
}
# Like the MoreFiles routines these fix problems in the standard
# Mac calls. These routines are from tclMacUtils.h.
declare 11 mac {
int FSpLocationFromPath(int length, CONST char *path, FSSpecPtr theSpec)
}
declare 12 mac {
OSErr FSpPathFromLocation(FSSpecPtr theSpec, int *length, \
Handle *fullPath)
}
# Prototypes of Mac only internal functions.
declare 13 mac {
void TclMacExitHandler(void)
}
declare 14 mac {
void TclMacInitExitToShell(int usePatch)
}
declare 15 mac {
OSErr TclMacInstallExitToShellPatch(ExitToShellProcPtr newProc)
}
declare 16 mac {
int TclMacOSErrorToPosixError(int error)
}
declare 17 mac {
void TclMacRemoveTimer(void *timerToken)
}
declare 18 mac {
void * TclMacStartTimer(long ms)
}
declare 19 mac {
int TclMacTimerExpired(void *timerToken)
}
declare 20 mac {
int TclMacRegisterResourceFork(short fileRef, Tcl_Obj *tokenPtr, \
int insert)
}
declare 21 mac {
short TclMacUnRegisterResourceFork(char *tokenPtr, Tcl_Obj *resultPtr)
}
declare 22 mac {
int TclMacCreateEnv(void)
}
declare 23 mac {
FILE * TclMacFOpenHack(const char *path, const char *mode)
}
declare 24 mac {
int TclMacReadlink(char *path, char *buf, int size)
}
declare 25 mac {
int TclMacChmod(char *path, int mode)
}
############################
# Windows specific internals
declare 0 win {
void TclWinConvertError(DWORD errCode)
}
declare 1 win {
void TclWinConvertWSAError(DWORD errCode)
}
declare 2 win {
struct servent * TclWinGetServByName(const char *nm, \
const char *proto)
}
declare 3 win {
int TclWinGetSockOpt(SOCKET s, int level, int optname, \
char FAR * optval, int FAR *optlen)
}
declare 4 win {
HINSTANCE TclWinGetTclInstance(void)
}
declare 5 win {
HINSTANCE TclWinLoadLibrary(char *name)
}
declare 6 win {
u_short TclWinNToHS(u_short ns)
}
declare 7 win {
int TclWinSetSockOpt(SOCKET s, int level, int optname, \
const char FAR * optval, int optlen)
}
declare 8 win {
unsigned long TclpGetPid(Tcl_Pid pid)
}
declare 9 win {
void TclpFinalize(void)
}
declare 10 win {
int TclWinGetPlatformId(void)
}
declare 11 win {
void TclWinInit(HINSTANCE hInst)
}
declare 12 win {
int TclWinSynchSpawn(void *args, int type, void **trans, Tcl_Pid *pidPtr)
}
# Pipe channel functions
declare 13 win {
void TclGetAndDetachPids(Tcl_Interp *interp, Tcl_Channel chan)
}
declare 14 win {
int TclpCloseFile(TclFile file)
}
declare 15 win {
Tcl_Channel TclpCreateCommandChannel(TclFile readFile, \
TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr)
}
declare 16 win {
int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe)
}
declare 17 win {
int TclpCreateProcess(Tcl_Interp *interp, int argc, char **argv, \
TclFile inputFile, TclFile outputFile, TclFile errorFile, \
Tcl_Pid *pidPtr)
}
declare 18 win {
TclFile TclpCreateTempFile(char *contents,
Tcl_DString *namePtr)
}
declare 19 win {
char * TclpGetTZName(void)
}
declare 20 win {
TclFile TclpMakeFile(Tcl_Channel channel, int direction)
}
declare 21 win {
TclFile TclpOpenFile(char *fname, int mode)
}
#########################
# Unix specific internals
# Pipe channel functions
declare 0 unix {
void TclGetAndDetachPids(Tcl_Interp *interp, Tcl_Channel chan)
}
declare 1 unix {
int TclpCloseFile(TclFile file)
}
declare 2 unix {
Tcl_Channel TclpCreateCommandChannel(TclFile readFile, \
TclFile writeFile, TclFile errorFile, int numPids, Tcl_Pid *pidPtr)
}
declare 3 unix {
int TclpCreatePipe(TclFile *readPipe, TclFile *writePipe)
}
declare 4 unix {
int TclpCreateProcess(Tcl_Interp *interp, int argc, char **argv, \
TclFile inputFile, TclFile outputFile, TclFile errorFile, \
Tcl_Pid *pidPtr)
}
declare 5 unix {
TclFile TclpCreateTempFile(char *contents,
Tcl_DString *namePtr)
}
declare 6 unix {
TclFile TclpMakeFile(Tcl_Channel channel, int direction)
}
declare 7 unix {
TclFile TclpOpenFile(char *fname, int mode)
}
declare 8 unix {
int TclUnixWaitForFile(int fd, int mask, int timeout)
}
|