Tcl Source Code

Hex Artifact Content
Login

Artifact 90e62868e98caee0d672dcf8cfad211a3e2db4ac:


0000: 27 5c 22 0a 27 5c 22 20 43 6f 70 79 72 69 67 68  '\".'\" Copyrigh
0010: 74 20 28 63 29 20 31 39 39 38 2d 31 39 39 39 20  t (c) 1998-1999 
0020: 53 63 72 69 70 74 69 63 73 20 43 6f 72 70 6f 72  Scriptics Corpor
0030: 61 74 69 6f 6e 0a 27 5c 22 0a 27 5c 22 20 53 65  ation.'\".'\" Se
0040: 65 20 74 68 65 20 66 69 6c 65 20 22 6c 69 63 65  e the file "lice
0050: 6e 73 65 2e 74 65 72 6d 73 22 20 66 6f 72 20 69  nse.terms" for i
0060: 6e 66 6f 72 6d 61 74 69 6f 6e 20 6f 6e 20 75 73  nformation on us
0070: 61 67 65 20 61 6e 64 20 72 65 64 69 73 74 72 69  age and redistri
0080: 62 75 74 69 6f 6e 0a 27 5c 22 20 6f 66 20 74 68  bution.'\" of th
0090: 69 73 20 66 69 6c 65 2c 20 61 6e 64 20 66 6f 72  is file, and for
00a0: 20 61 20 44 49 53 43 4c 41 49 4d 45 52 20 4f 46   a DISCLAIMER OF
00b0: 20 41 4c 4c 20 57 41 52 52 41 4e 54 49 45 53 2e   ALL WARRANTIES.
00c0: 0a 27 5c 22 0a 2e 54 48 20 54 63 6c 5f 49 6e 69  .'\"..TH Tcl_Ini
00d0: 74 53 74 75 62 73 20 33 20 38 2e 31 20 54 63 6c  tStubs 3 8.1 Tcl
00e0: 20 22 54 63 6c 20 4c 69 62 72 61 72 79 20 50 72   "Tcl Library Pr
00f0: 6f 63 65 64 75 72 65 73 22 0a 2e 73 6f 20 6d 61  ocedures"..so ma
0100: 6e 2e 6d 61 63 72 6f 73 0a 2e 42 53 0a 2e 53 48  n.macros..BS..SH
0110: 20 4e 41 4d 45 0a 54 63 6c 5f 49 6e 69 74 53 74   NAME.Tcl_InitSt
0120: 75 62 73 20 5c 2d 20 69 6e 69 74 69 61 6c 69 7a  ubs \- initializ
0130: 65 20 74 68 65 20 54 63 6c 20 73 74 75 62 73 20  e the Tcl stubs 
0140: 6d 65 63 68 61 6e 69 73 6d 0a 2e 53 48 20 53 59  mechanism..SH SY
0150: 4e 4f 50 53 49 53 0a 2e 6e 66 0a 5c 66 42 23 69  NOPSIS..nf.\fB#i
0160: 6e 63 6c 75 64 65 20 3c 74 63 6c 2e 68 3e 5c 66  nclude <tcl.h>\f
0170: 52 0a 2e 73 70 0a 63 6f 6e 73 74 20 63 68 61 72  R..sp.const char
0180: 20 2a 0a 5c 66 42 54 63 6c 5f 49 6e 69 74 53 74   *.\fBTcl_InitSt
0190: 75 62 73 5c 66 52 28 5c 66 49 69 6e 74 65 72 70  ubs\fR(\fIinterp
01a0: 2c 20 76 65 72 73 69 6f 6e 2c 20 65 78 61 63 74  , version, exact
01b0: 5c 66 52 29 0a 2e 53 48 20 41 52 47 55 4d 45 4e  \fR)..SH ARGUMEN
01c0: 54 53 0a 2e 41 53 20 54 63 6c 5f 49 6e 74 65 72  TS..AS Tcl_Inter
01d0: 70 20 2a 69 6e 74 65 72 70 0a 2e 41 50 20 54 63  p *interp..AP Tc
01e0: 6c 5f 49 6e 74 65 72 70 20 2a 69 6e 74 65 72 70  l_Interp *interp
01f0: 20 69 6e 0a 54 63 6c 20 69 6e 74 65 72 70 72 65   in.Tcl interpre
0200: 74 65 72 20 68 61 6e 64 6c 65 2e 0a 2e 41 50 20  ter handle...AP 
0210: 22 63 6f 6e 73 74 20 63 68 61 72 22 20 2a 76 65  "const char" *ve
0220: 72 73 69 6f 6e 20 69 6e 0a 41 20 76 65 72 73 69  rsion in.A versi
0230: 6f 6e 20 73 74 72 69 6e 67 20 63 6f 6e 73 69 73  on string consis
0240: 74 69 6e 67 20 6f 66 20 6f 6e 65 20 6f 72 20 6d  ting of one or m
0250: 6f 72 65 20 64 65 63 69 6d 61 6c 20 6e 75 6d 62  ore decimal numb
0260: 65 72 73 0a 73 65 70 61 72 61 74 65 64 20 62 79  ers.separated by
0270: 20 64 6f 74 73 2e 0a 2e 41 50 20 69 6e 74 20 65   dots...AP int e
0280: 78 61 63 74 20 69 6e 0a 4e 6f 6e 2d 7a 65 72 6f  xact in.Non-zero
0290: 20 6d 65 61 6e 73 20 74 68 61 74 20 6f 6e 6c 79   means that only
02a0: 20 74 68 65 20 70 61 72 74 69 63 75 6c 61 72 20   the particular 
02b0: 76 65 72 73 69 6f 6e 20 73 70 65 63 69 66 69 65  version specifie
02c0: 64 20 62 79 0a 5c 66 49 76 65 72 73 69 6f 6e 5c  d by.\fIversion\
02d0: 66 52 20 69 73 20 61 63 63 65 70 74 61 62 6c 65  fR is acceptable
02e0: 2e 0a 5a 65 72 6f 20 6d 65 61 6e 73 20 74 68 61  ..Zero means tha
02f0: 74 20 76 65 72 73 69 6f 6e 73 20 6e 65 77 65 72  t versions newer
0300: 20 74 68 61 6e 20 5c 66 49 76 65 72 73 69 6f 6e   than \fIversion
0310: 5c 66 52 20 61 72 65 20 61 6c 73 6f 0a 61 63 63  \fR are also.acc
0320: 65 70 74 61 62 6c 65 20 61 73 20 6c 6f 6e 67 20  eptable as long 
0330: 61 73 20 74 68 65 79 20 68 61 76 65 20 74 68 65  as they have the
0340: 20 73 61 6d 65 20 6d 61 6a 6f 72 20 76 65 72 73   same major vers
0350: 69 6f 6e 20 6e 75 6d 62 65 72 0a 61 73 20 5c 66  ion number.as \f
0360: 49 76 65 72 73 69 6f 6e 5c 66 52 2e 0a 2e 42 45  Iversion\fR...BE
0370: 0a 2e 53 48 20 49 4e 54 52 4f 44 55 43 54 49 4f  ..SH INTRODUCTIO
0380: 4e 0a 2e 50 50 0a 54 68 65 20 54 63 6c 20 73 74  N..PP.The Tcl st
0390: 75 62 73 20 6d 65 63 68 61 6e 69 73 6d 20 64 65  ubs mechanism de
03a0: 66 69 6e 65 73 20 61 20 77 61 79 20 74 6f 20 64  fines a way to d
03b0: 79 6e 61 6d 69 63 61 6c 6c 79 20 62 69 6e 64 0a  ynamically bind.
03c0: 65 78 74 65 6e 73 69 6f 6e 73 20 74 6f 20 61 20  extensions to a 
03d0: 70 61 72 74 69 63 75 6c 61 72 20 54 63 6c 20 69  particular Tcl i
03e0: 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 61 74  mplementation at
03f0: 20 72 75 6e 20 74 69 6d 65 2e 0a 54 68 69 73 20   run time..This 
0400: 70 72 6f 76 69 64 65 73 20 74 77 6f 20 73 69 67  provides two sig
0410: 6e 69 66 69 63 61 6e 74 20 62 65 6e 65 66 69 74  nificant benefit
0420: 73 20 74 6f 20 54 63 6c 20 75 73 65 72 73 3a 0a  s to Tcl users:.
0430: 2e 49 50 20 31 29 20 35 0a 45 78 74 65 6e 73 69  .IP 1) 5.Extensi
0440: 6f 6e 73 20 74 68 61 74 20 75 73 65 20 74 68 65  ons that use the
0450: 20 73 74 75 62 73 20 6d 65 63 68 61 6e 69 73 6d   stubs mechanism
0460: 20 63 61 6e 20 62 65 20 6c 6f 61 64 65 64 20 69   can be loaded i
0470: 6e 74 6f 0a 6d 75 6c 74 69 70 6c 65 20 76 65 72  nto.multiple ver
0480: 73 69 6f 6e 73 20 6f 66 20 54 63 6c 20 77 69 74  sions of Tcl wit
0490: 68 6f 75 74 20 62 65 69 6e 67 20 72 65 63 6f 6d  hout being recom
04a0: 70 69 6c 65 64 20 6f 72 0a 72 65 6c 69 6e 6b 65  piled or.relinke
04b0: 64 2e 0a 2e 49 50 20 32 29 20 35 0a 45 78 74 65  d...IP 2) 5.Exte
04c0: 6e 73 69 6f 6e 73 20 74 68 61 74 20 75 73 65 20  nsions that use 
04d0: 74 68 65 20 73 74 75 62 73 20 6d 65 63 68 61 6e  the stubs mechan
04e0: 69 73 6d 20 63 61 6e 20 62 65 20 64 79 6e 61 6d  ism can be dynam
04f0: 69 63 61 6c 6c 79 0a 6c 6f 61 64 65 64 20 69 6e  ically.loaded in
0500: 74 6f 20 73 74 61 74 69 63 61 6c 6c 79 2d 6c 69  to statically-li
0510: 6e 6b 65 64 20 54 63 6c 20 61 70 70 6c 69 63 61  nked Tcl applica
0520: 74 69 6f 6e 73 2e 0a 2e 50 50 0a 54 68 65 20 73  tions...PP.The s
0530: 74 75 62 73 20 6d 65 63 68 61 6e 69 73 6d 20 61  tubs mechanism a
0540: 63 63 6f 6d 70 6c 69 73 68 65 73 20 74 68 69 73  ccomplishes this
0550: 20 62 79 20 65 78 70 6f 72 74 69 6e 67 20 66 75   by exporting fu
0560: 6e 63 74 69 6f 6e 20 74 61 62 6c 65 73 0a 74 68  nction tables.th
0570: 61 74 20 64 65 66 69 6e 65 20 61 6e 20 69 6e 74  at define an int
0580: 65 72 66 61 63 65 20 74 6f 20 74 68 65 20 54 63  erface to the Tc
0590: 6c 20 41 50 49 2e 20 20 54 68 65 20 65 78 74 65  l API.  The exte
05a0: 6e 73 69 6f 6e 20 74 68 65 6e 20 61 63 63 65 73  nsion then acces
05b0: 73 65 73 0a 74 68 65 20 54 63 6c 20 41 50 49 20  ses.the Tcl API 
05c0: 74 68 72 6f 75 67 68 20 6f 66 66 73 65 74 73 20  through offsets 
05d0: 69 6e 74 6f 20 74 68 65 20 66 75 6e 63 74 69 6f  into the functio
05e0: 6e 20 74 61 62 6c 65 2c 20 73 6f 20 74 68 65 72  n table, so ther
05f0: 65 20 61 72 65 20 6e 6f 0a 64 69 72 65 63 74 20  e are no.direct 
0600: 72 65 66 65 72 65 6e 63 65 73 20 74 6f 20 61 6e  references to an
0610: 79 20 6f 66 20 74 68 65 20 54 63 6c 20 6c 69 62  y of the Tcl lib
0620: 72 61 72 79 27 73 20 73 79 6d 62 6f 6c 73 2e 20  rary's symbols. 
0630: 20 54 68 69 73 0a 72 65 64 69 72 65 63 74 69 6f   This.redirectio
0640: 6e 20 69 73 20 74 72 61 6e 73 70 61 72 65 6e 74  n is transparent
0650: 20 74 6f 20 74 68 65 20 65 78 74 65 6e 73 69 6f   to the extensio
0660: 6e 2c 20 73 6f 20 61 6e 20 65 78 74 65 6e 73 69  n, so an extensi
0670: 6f 6e 20 77 72 69 74 65 72 0a 63 61 6e 20 63 6f  on writer.can co
0680: 6e 74 69 6e 75 65 20 74 6f 20 75 73 65 20 61 6c  ntinue to use al
0690: 6c 20 70 75 62 6c 69 63 20 54 63 6c 20 66 75 6e  l public Tcl fun
06a0: 63 74 69 6f 6e 73 20 61 73 20 64 6f 63 75 6d 65  ctions as docume
06b0: 6e 74 65 64 2e 0a 2e 50 50 0a 54 68 65 20 73 74  nted...PP.The st
06c0: 75 62 73 20 6d 65 63 68 61 6e 69 73 6d 20 72 65  ubs mechanism re
06d0: 71 75 69 72 65 73 20 6e 6f 20 63 68 61 6e 67 65  quires no change
06e0: 73 20 74 6f 20 61 70 70 6c 69 63 61 74 69 6f 6e  s to application
06f0: 73 20 69 6e 63 6f 72 70 6f 72 61 74 69 6e 67 0a  s incorporating.
0700: 54 63 6c 20 69 6e 74 65 72 70 72 65 74 65 72 73  Tcl interpreters
0710: 2e 20 20 4f 6e 6c 79 20 64 65 76 65 6c 6f 70 65  .  Only develope
0720: 72 73 20 63 72 65 61 74 69 6e 67 20 43 2d 62 61  rs creating C-ba
0730: 73 65 64 20 54 63 6c 20 65 78 74 65 6e 73 69 6f  sed Tcl extensio
0740: 6e 73 0a 6e 65 65 64 20 74 6f 20 74 61 6b 65 20  ns.need to take 
0750: 73 74 65 70 73 20 74 6f 20 75 73 65 20 74 68 65  steps to use the
0760: 20 73 74 75 62 73 20 6d 65 63 68 61 6e 69 73 6d   stubs mechanism
0770: 20 77 69 74 68 20 74 68 65 69 72 20 65 78 74 65   with their exte
0780: 6e 73 69 6f 6e 73 2e 0a 2e 50 50 0a 45 6e 61 62  nsions...PP.Enab
0790: 6c 69 6e 67 20 74 68 65 20 73 74 75 62 73 20 6d  ling the stubs m
07a0: 65 63 68 61 6e 69 73 6d 20 66 6f 72 20 61 6e 20  echanism for an 
07b0: 65 78 74 65 6e 73 69 6f 6e 20 72 65 71 75 69 72  extension requir
07c0: 65 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67  es the following
07d0: 0a 73 74 65 70 73 3a 0a 2e 49 50 20 31 29 20 35  .steps:..IP 1) 5
07e0: 0a 43 61 6c 6c 20 5c 66 42 54 63 6c 5f 49 6e 69  .Call \fBTcl_Ini
07f0: 74 53 74 75 62 73 5c 66 52 20 69 6e 20 74 68 65  tStubs\fR in the
0800: 20 65 78 74 65 6e 73 69 6f 6e 20 62 65 66 6f 72   extension befor
0810: 65 20 63 61 6c 6c 69 6e 67 20 61 6e 79 20 6f 74  e calling any ot
0820: 68 65 72 0a 54 63 6c 20 66 75 6e 63 74 69 6f 6e  her.Tcl function
0830: 73 2e 0a 2e 49 50 20 32 29 20 35 0a 44 65 66 69  s...IP 2) 5.Defi
0840: 6e 65 20 74 68 65 20 5c 66 42 55 53 45 5f 54 43  ne the \fBUSE_TC
0850: 4c 5f 53 54 55 42 53 5c 66 52 20 73 79 6d 62 6f  L_STUBS\fR symbo
0860: 6c 2e 20 20 54 79 70 69 63 61 6c 6c 79 2c 20 79  l.  Typically, y
0870: 6f 75 20 77 6f 75 6c 64 20 69 6e 63 6c 75 64 65  ou would include
0880: 20 74 68 65 0a 5c 66 42 5c 2d 44 55 53 45 5f 54   the.\fB\-DUSE_T
0890: 43 4c 5f 53 54 55 42 53 5c 66 52 20 66 6c 61 67  CL_STUBS\fR flag
08a0: 20 77 68 65 6e 20 63 6f 6d 70 69 6c 69 6e 67 20   when compiling 
08b0: 74 68 65 20 65 78 74 65 6e 73 69 6f 6e 2e 0a 2e  the extension...
08c0: 49 50 20 33 29 20 35 0a 4c 69 6e 6b 20 74 68 65  IP 3) 5.Link the
08d0: 20 65 78 74 65 6e 73 69 6f 6e 20 77 69 74 68 20   extension with 
08e0: 74 68 65 20 54 63 6c 20 73 74 75 62 73 20 6c 69  the Tcl stubs li
08f0: 62 72 61 72 79 20 69 6e 73 74 65 61 64 20 6f 66  brary instead of
0900: 20 74 68 65 20 73 74 61 6e 64 61 72 64 0a 54 63   the standard.Tc
0910: 6c 20 6c 69 62 72 61 72 79 2e 20 20 46 6f 72 20  l library.  For 
0920: 65 78 61 6d 70 6c 65 2c 20 74 6f 20 75 73 65 20  example, to use 
0930: 74 68 65 20 54 63 6c 20 38 2e 36 20 41 42 49 20  the Tcl 8.6 ABI 
0940: 6f 6e 20 55 6e 69 78 20 70 6c 61 74 66 6f 72 6d  on Unix platform
0950: 73 2c 0a 74 68 65 20 6c 69 62 72 61 72 79 20 6e  s,.the library n
0960: 61 6d 65 20 69 73 20 5c 66 49 6c 69 62 74 63 6c  ame is \fIlibtcl
0970: 73 74 75 62 38 2e 36 2e 61 5c 66 52 3b 20 6f 6e  stub8.6.a\fR; on
0980: 20 57 69 6e 64 6f 77 73 20 70 6c 61 74 66 6f 72   Windows platfor
0990: 6d 73 2c 20 74 68 65 0a 6c 69 62 72 61 72 79 20  ms, the.library 
09a0: 6e 61 6d 65 20 69 73 20 5c 66 49 74 63 6c 73 74  name is \fItclst
09b0: 75 62 38 36 2e 6c 69 62 5c 66 52 2e 0a 2e 50 50  ub86.lib\fR...PP
09c0: 0a 49 66 20 74 68 65 20 65 78 74 65 6e 73 69 6f  .If the extensio
09d0: 6e 20 61 6c 73 6f 20 72 65 71 75 69 72 65 73 20  n also requires 
09e0: 74 68 65 20 54 6b 20 41 50 49 2c 20 69 74 20 6d  the Tk API, it m
09f0: 75 73 74 20 61 6c 73 6f 20 63 61 6c 6c 0a 5c 66  ust also call.\f
0a00: 42 54 6b 5f 49 6e 69 74 53 74 75 62 73 5c 66 52  BTk_InitStubs\fR
0a10: 20 74 6f 20 69 6e 69 74 69 61 6c 69 7a 65 20 74   to initialize t
0a20: 68 65 20 54 6b 20 73 74 75 62 73 20 69 6e 74 65  he Tk stubs inte
0a30: 72 66 61 63 65 20 61 6e 64 20 6c 69 6e 6b 0a 77  rface and link.w
0a40: 69 74 68 20 74 68 65 20 54 6b 20 73 74 75 62 73  ith the Tk stubs
0a50: 20 6c 69 62 72 61 72 69 65 73 2e 20 20 53 65 65   libraries.  See
0a60: 20 74 68 65 20 5c 66 42 54 6b 5f 49 6e 69 74 53   the \fBTk_InitS
0a70: 74 75 62 73 5c 66 52 20 70 61 67 65 20 66 6f 72  tubs\fR page for
0a80: 0a 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 74 69 6f  .more informatio
0a90: 6e 2e 0a 2e 53 48 20 44 45 53 43 52 49 50 54 49  n...SH DESCRIPTI
0aa0: 4f 4e 0a 5c 66 42 54 63 6c 5f 49 6e 69 74 53 74  ON.\fBTcl_InitSt
0ab0: 75 62 73 5c 66 52 20 61 74 74 65 6d 70 74 73 20  ubs\fR attempts 
0ac0: 74 6f 20 69 6e 69 74 69 61 6c 69 7a 65 20 74 68  to initialize th
0ad0: 65 20 73 74 75 62 20 74 61 62 6c 65 20 70 6f 69  e stub table poi
0ae0: 6e 74 65 72 73 0a 61 6e 64 20 65 6e 73 75 72 65  nters.and ensure
0af0: 20 74 68 61 74 20 74 68 65 20 63 6f 72 72 65 63   that the correc
0b00: 74 20 76 65 72 73 69 6f 6e 20 6f 66 20 54 63 6c  t version of Tcl
0b10: 20 69 73 20 6c 6f 61 64 65 64 2e 20 20 49 6e 20   is loaded.  In 
0b20: 61 64 64 69 74 69 6f 6e 0a 74 6f 20 61 6e 20 69  addition.to an i
0b30: 6e 74 65 72 70 72 65 74 65 72 20 68 61 6e 64 6c  nterpreter handl
0b40: 65 2c 20 69 74 20 61 63 63 65 70 74 73 20 61 73  e, it accepts as
0b50: 20 61 72 67 75 6d 65 6e 74 73 20 61 20 76 65 72   arguments a ver
0b60: 73 69 6f 6e 20 6e 75 6d 62 65 72 0a 61 6e 64 20  sion number.and 
0b70: 61 20 42 6f 6f 6c 65 61 6e 20 66 6c 61 67 20 69  a Boolean flag i
0b80: 6e 64 69 63 61 74 69 6e 67 20 77 68 65 74 68 65  ndicating whethe
0b90: 72 20 74 68 65 20 65 78 74 65 6e 73 69 6f 6e 20  r the extension 
0ba0: 72 65 71 75 69 72 65 73 0a 61 6e 20 65 78 61 63  requires.an exac
0bb0: 74 20 76 65 72 73 69 6f 6e 20 6d 61 74 63 68 20  t version match 
0bc0: 6f 72 20 6e 6f 74 2e 20 20 49 66 20 5c 66 49 65  or not.  If \fIe
0bd0: 78 61 63 74 5c 66 52 20 69 73 20 30 2c 20 74 68  xact\fR is 0, th
0be0: 65 6e 20 74 68 65 0a 65 78 74 65 6e 73 69 6f 6e  en the.extension
0bf0: 20 69 73 20 69 6e 64 69 63 61 74 69 6e 67 20 74   is indicating t
0c00: 68 61 74 20 6e 65 77 65 72 20 76 65 72 73 69 6f  hat newer versio
0c10: 6e 73 20 6f 66 20 54 63 6c 20 61 72 65 20 61 63  ns of Tcl are ac
0c20: 63 65 70 74 61 62 6c 65 0a 61 73 20 6c 6f 6e 67  ceptable.as long
0c30: 20 61 73 20 74 68 65 79 20 68 61 76 65 20 74 68   as they have th
0c40: 65 20 73 61 6d 65 20 6d 61 6a 6f 72 20 76 65 72  e same major ver
0c50: 73 69 6f 6e 20 6e 75 6d 62 65 72 20 61 73 20 5c  sion number as \
0c60: 66 49 76 65 72 73 69 6f 6e 5c 66 52 3b 0a 6e 6f  fIversion\fR;.no
0c70: 6e 2d 7a 65 72 6f 20 6d 65 61 6e 73 20 74 68 61  n-zero means tha
0c80: 74 20 6f 6e 6c 79 20 74 68 65 20 73 70 65 63 69  t only the speci
0c90: 66 69 65 64 20 5c 66 49 76 65 72 73 69 6f 6e 5c  fied \fIversion\
0ca0: 66 52 20 69 73 20 61 63 63 65 70 74 61 62 6c 65  fR is acceptable
0cb0: 2e 0a 5c 66 42 54 63 6c 5f 49 6e 69 74 53 74 75  ..\fBTcl_InitStu
0cc0: 62 73 5c 66 52 20 72 65 74 75 72 6e 73 20 61 20  bs\fR returns a 
0cd0: 73 74 72 69 6e 67 20 63 6f 6e 74 61 69 6e 69 6e  string containin
0ce0: 67 20 74 68 65 20 61 63 74 75 61 6c 20 76 65 72  g the actual ver
0cf0: 73 69 6f 6e 0a 6f 66 20 54 63 6c 20 73 61 74 69  sion.of Tcl sati
0d00: 73 66 79 69 6e 67 20 74 68 65 20 72 65 71 75 65  sfying the reque
0d10: 73 74 2c 20 6f 72 20 4e 55 4c 4c 20 69 66 20 74  st, or NULL if t
0d20: 68 65 20 54 63 6c 20 76 65 72 73 69 6f 6e 20 69  he Tcl version i
0d30: 73 20 6e 6f 74 0a 61 63 63 65 70 74 61 62 6c 65  s not.acceptable
0d40: 2c 20 64 6f 65 73 20 6e 6f 74 20 73 75 70 70 6f  , does not suppo
0d50: 72 74 20 73 74 75 62 73 2c 20 6f 72 20 61 6e 79  rt stubs, or any
0d60: 20 6f 74 68 65 72 20 65 72 72 6f 72 20 63 6f 6e   other error con
0d70: 64 69 74 69 6f 6e 20 6f 63 63 75 72 72 65 64 2e  dition occurred.
0d80: 0a 2e 53 48 20 22 53 45 45 20 41 4c 53 4f 22 0a  ..SH "SEE ALSO".
0d90: 54 6b 5f 49 6e 69 74 53 74 75 62 73 0a 2e 53 48  Tk_InitStubs..SH
0da0: 20 4b 45 59 57 4f 52 44 53 0a 73 74 75 62 73 0a   KEYWORDS.stubs.