home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 0998
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 70 65 | 74 65 72 40 66 69 63 63 |From: pe|ter@ficc|
|00000010| 2e 75 75 2e 6e 65 74 20 | 28 50 65 74 65 72 20 64 |.uu.net |(Peter d|
|00000020| 61 20 53 69 6c 76 61 29 | 0a 4e 65 77 73 67 72 6f |a Silva)|.Newsgro|
|00000030| 75 70 73 3a 20 61 6c 74 | 2e 73 6f 75 72 63 65 73 |ups: alt|.sources|
|00000040| 0a 53 75 62 6a 65 63 74 | 3a 20 54 43 4c 20 64 6f |.Subject|: TCL do|
|00000050| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 28 70 61 72 |cumentat|ion (par|
|00000060| 74 20 30 32 2f 30 32 29 | 0a 4d 65 73 73 61 67 65 |t 02/02)|.Message|
|00000070| 2d 49 44 3a 20 3c 39 54 | 33 32 4f 2b 38 66 69 63 |-ID: <9T|32O+8fic|
|00000080| 63 40 66 69 63 63 2e 75 | 75 2e 6e 65 74 3e 0a 44 |c@ficc.u|u.net>.D|
|00000090| 61 74 65 3a 20 39 20 4d | 61 72 20 39 30 20 30 33 |ate: 9 M|ar 90 03|
|000000a0| 3a 34 38 3a 34 32 20 47 | 4d 54 0a 0a 41 72 63 68 |:48:42 G|MT..Arch|
|000000b0| 69 76 65 2d 6e 61 6d 65 | 3a 20 74 63 6c 2f 44 6f |ive-name|: tcl/Do|
|000000c0| 63 50 61 72 74 30 32 0a | 0a 23 21 20 2f 62 69 6e |cPart02.|.#! /bin|
|000000d0| 2f 73 68 0a 23 20 54 68 | 69 73 20 69 73 20 61 20 |/sh.# Th|is is a |
|000000e0| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2e 20 20 |shell ar|chive. |
|000000f0| 52 65 6d 6f 76 65 20 61 | 6e 79 74 68 69 6e 67 20 |Remove a|nything |
|00000100| 62 65 66 6f 72 65 20 74 | 68 69 73 20 6c 69 6e 65 |before t|his line|
|00000110| 2c 20 74 68 65 6e 20 66 | 65 65 64 20 69 74 0a 23 |, then f|eed it.#|
|00000120| 20 69 6e 74 6f 20 61 20 | 73 68 65 6c 6c 20 76 69 | into a |shell vi|
|00000130| 61 20 22 73 68 20 66 69 | 6c 65 22 20 6f 72 20 73 |a "sh fi|le" or s|
|00000140| 69 6d 69 6c 61 72 2e 20 | 20 54 6f 20 6f 76 65 72 |imilar. | To over|
|00000150| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00000160| 69 6c 65 73 2c 0a 23 20 | 74 79 70 65 20 22 73 68 |iles,.# |type "sh|
|00000170| 20 66 69 6c 65 20 2d 63 | 22 2e 0a 23 20 54 68 65 | file -c|"..# The|
|00000180| 20 74 6f 6f 6c 20 74 68 | 61 74 20 67 65 6e 65 72 | tool th|at gener|
|00000190| 61 74 65 64 20 74 68 69 | 73 20 61 70 70 65 61 72 |ated thi|s appear|
|000001a0| 65 64 20 69 6e 20 74 68 | 65 20 63 6f 6d 70 2e 73 |ed in th|e comp.s|
|000001b0| 6f 75 72 63 65 73 2e 75 | 6e 69 78 20 6e 65 77 73 |ources.u|nix news|
|000001c0| 67 72 6f 75 70 3b 0a 23 | 20 73 65 6e 64 20 6d 61 |group;.#| send ma|
|000001d0| 69 6c 20 74 6f 20 63 6f | 6d 70 2d 73 6f 75 72 63 |il to co|mp-sourc|
|000001e0| 65 73 2d 75 6e 69 78 40 | 75 75 6e 65 74 2e 75 75 |es-unix@|uunet.uu|
|000001f0| 2e 6e 65 74 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |.net if |you want|
|00000200| 20 74 68 61 74 20 74 6f | 6f 6c 2e 0a 23 20 49 66 | that to|ol..# If|
|00000210| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|00000220| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 20 77 | complet|e, you w|
|00000230| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|00000240| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|00000250| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|00000260| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 32 20 28 |d of arc|hive 2 (|
|00000270| 6f 66 20 32 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 2).".|# Conten|
|00000280| 74 73 3a 20 20 42 61 63 | 6b 73 6c 61 73 68 2e 33 |ts: Bac|kslash.3|
|00000290| 20 43 72 65 61 74 65 43 | 6f 6d 6d 2e 33 20 43 72 | CreateC|omm.3 Cr|
|000002a0| 65 61 74 65 49 6e 74 65 | 2e 33 20 43 72 65 61 74 |eateInte|.3 Creat|
|000002b0| 65 54 72 61 63 2e 33 0a | 23 20 20 20 44 65 6c 65 |eTrac.3.|# Dele|
|000002c0| 74 65 43 6f 6d 6d 2e 33 | 20 44 65 6c 65 74 65 49 |teComm.3| DeleteI|
|000002d0| 6e 74 65 2e 33 20 44 65 | 6c 65 74 65 54 72 61 63 |nte.3 De|leteTrac|
|000002e0| 2e 33 20 45 76 61 6c 2e | 33 20 45 78 70 72 2e 33 |.3 Eval.|3 Expr.3|
|000002f0| 20 47 65 74 56 61 72 2e | 33 0a 23 20 20 20 49 6e | GetVar.|3.# In|
|00000300| 74 65 72 70 2e 33 20 4d | 61 6b 65 66 69 6c 65 20 |terp.3 M|akefile |
|00000310| 4d 65 72 67 65 2e 33 20 | 52 65 74 75 72 6e 2e 33 |Merge.3 |Return.3|
|00000320| 20 53 65 74 56 61 72 2e | 33 20 53 70 6c 69 74 4c | SetVar.|3 SplitL|
|00000330| 69 73 74 2e 33 0a 23 20 | 20 20 53 74 72 69 6e 67 |ist.3.# | String|
|00000340| 4d 61 74 63 2e 33 20 57 | 61 74 63 68 49 6e 74 65 |Matc.3 W|atchInte|
|00000350| 72 2e 33 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |r.3.# Wr|apped by|
|00000360| 20 70 65 74 65 72 40 66 | 69 63 63 2e 75 75 2e 6e | peter@f|icc.uu.n|
|00000370| 65 74 20 6f 6e 20 54 68 | 75 20 4d 61 72 20 20 38 |et on Th|u Mar 8|
|00000380| 20 32 31 3a 34 35 3a 34 | 32 20 31 39 39 30 0a 50 | 21:45:4|2 1990.P|
|00000390| 41 54 48 3d 2f 62 69 6e | 3a 2f 75 73 72 2f 62 69 |ATH=/bin|:/usr/bi|
|000003a0| 6e 3a 2f 75 73 72 2f 75 | 63 62 20 3b 20 65 78 70 |n:/usr/u|cb ; exp|
|000003b0| 6f 72 74 20 50 41 54 48 | 0a 69 66 20 74 65 73 74 |ort PATH|.if test|
|000003c0| 20 2d 66 20 27 42 61 63 | 6b 73 6c 61 73 68 2e 33 | -f 'Bac|kslash.3|
|000003d0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000003e0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000003f0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00000400| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00000410| 6e 67 20 66 69 6c 65 20 | 5c 22 27 42 61 63 6b 73 |ng file |\"'Backs|
|00000420| 6c 61 73 68 2e 33 27 5c | 22 0a 65 6c 73 65 0a 65 |lash.3'\|".else.e|
|00000430| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000440| 74 69 6e 67 20 5c 22 27 | 42 61 63 6b 73 6c 61 73 |ting \"'|Backslas|
|00000450| 68 2e 33 27 5c 22 20 5c | 28 31 37 37 31 20 63 68 |h.3'\" \|(1771 ch|
|00000460| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00000470| 73 2f 5e 58 2f 2f 22 20 | 3e 27 42 61 63 6b 73 6c |s/^X//" |>'Backsl|
|00000480| 61 73 68 2e 33 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |ash.3' <|<'END_OF|
|00000490| 5f 46 49 4c 45 27 0a 58 | 27 5c 22 20 43 6f 70 79 |_FILE'.X|'\" Copy|
|000004a0| 72 69 67 68 74 20 31 39 | 38 39 20 52 65 67 65 6e |right 19|89 Regen|
|000004b0| 74 73 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |ts of th|e Univer|
|000004c0| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|000004d0| 69 61 0a 58 27 5c 22 20 | 50 65 72 6d 69 73 73 69 |ia.X'\" |Permissi|
|000004e0| 6f 6e 20 74 6f 20 75 73 | 65 2c 20 63 6f 70 79 2c |on to us|e, copy,|
|000004f0| 20 6d 6f 64 69 66 79 2c | 20 61 6e 64 20 64 69 73 | modify,| and dis|
|00000500| 74 72 69 62 75 74 65 20 | 74 68 69 73 0a 58 27 5c |tribute |this.X'\|
|00000510| 22 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |" docume|ntation |
|00000520| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 20 |for any |purpose |
|00000530| 61 6e 64 20 77 69 74 68 | 6f 75 74 20 66 65 65 20 |and with|out fee |
|00000540| 69 73 20 68 65 72 65 62 | 79 0a 58 27 5c 22 20 67 |is hereb|y.X'\" g|
|00000550| 72 61 6e 74 65 64 2c 20 | 70 72 6f 76 69 64 65 64 |ranted, |provided|
|00000560| 20 74 68 61 74 20 74 68 | 69 73 20 6e 6f 74 69 63 | that th|is notic|
|00000570| 65 20 61 70 70 65 61 72 | 73 20 69 6e 20 61 6c 6c |e appear|s in all|
|00000580| 20 63 6f 70 69 65 73 2e | 0a 58 27 5c 22 20 54 68 | copies.|.X'\" Th|
|00000590| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|000005a0| 43 61 6c 69 66 6f 72 6e | 69 61 20 6d 61 6b 65 73 |Californ|ia makes|
|000005b0| 20 6e 6f 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 | no repr|esentati|
|000005c0| 6f 6e 73 20 61 62 6f 75 | 74 0a 58 27 5c 22 20 74 |ons abou|t.X'\" t|
|000005d0| 68 65 20 73 75 69 74 61 | 62 69 6c 69 74 79 20 6f |he suita|bility o|
|000005e0| 66 20 74 68 69 73 20 6d | 61 74 65 72 69 61 6c 20 |f this m|aterial |
|000005f0| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 2e |for any |purpose.|
|00000600| 20 20 49 74 20 69 73 0a | 58 27 5c 22 20 70 72 6f | It is.|X'\" pro|
|00000610| 76 69 64 65 64 20 22 61 | 73 20 69 73 22 20 77 69 |vided "a|s is" wi|
|00000620| 74 68 6f 75 74 20 65 78 | 70 72 65 73 73 20 6f 72 |thout ex|press or|
|00000630| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|00000640| 79 2e 0a 58 27 5c 22 20 | 0a 58 27 5c 22 20 24 48 |y..X'\" |.X'\" $H|
|00000650| 65 61 64 65 72 3a 20 2f | 73 70 72 69 74 65 2f 73 |eader: /|sprite/s|
|00000660| 72 63 2f 6c 69 62 2f 74 | 63 6c 2f 52 43 53 2f 54 |rc/lib/t|cl/RCS/T|
|00000670| 63 6c 5f 42 61 63 6b 73 | 6c 61 73 68 2e 6d 61 6e |cl_Backs|lash.man|
|00000680| 2c 76 20 31 2e 34 20 38 | 39 2f 30 35 2f 31 38 20 |,v 1.4 8|9/05/18 |
|00000690| 31 36 3a 32 39 3a 30 31 | 20 6f 75 73 74 65 72 20 |16:29:01| ouster |
|000006a0| 45 78 70 20 24 20 53 50 | 52 49 54 45 20 28 42 65 |Exp $ SP|RITE (Be|
|000006b0| 72 6b 65 6c 65 79 29 0a | 58 27 5c 22 20 0a 58 2e |rkeley).|X'\" .X.|
|000006c0| 73 6f 20 5c 2a 28 5d 6c | 74 6d 61 63 2e 73 70 72 |so \*(]l|tmac.spr|
|000006d0| 69 74 65 0a 58 2e 48 53 | 20 54 63 6c 5f 42 61 63 |ite.X.HS| Tcl_Bac|
|000006e0| 6b 73 6c 61 73 68 20 74 | 63 6c 0a 58 2e 42 53 0a |kslash t|cl.X.BS.|
|000006f0| 58 2e 53 48 20 4e 41 4d | 45 0a 58 54 63 6c 5f 42 |X.SH NAM|E.XTcl_B|
|00000700| 61 63 6b 73 6c 61 73 68 | 20 5c 2d 20 70 61 72 73 |ackslash| \- pars|
|00000710| 65 20 61 20 62 61 63 6b | 73 6c 61 73 68 20 73 65 |e a back|slash se|
|00000720| 71 75 65 6e 63 65 0a 58 | 2e 53 48 20 53 59 4e 4f |quence.X|.SH SYNO|
|00000730| 50 53 49 53 0a 58 2e 6e | 66 0a 58 5c 66 42 23 69 |PSIS.X.n|f.X\fB#i|
|00000740| 6e 63 6c 75 64 65 20 3c | 74 63 6c 2e 68 3e 5c 66 |nclude <|tcl.h>\f|
|00000750| 52 0a 58 2e 73 70 0a 58 | 63 68 61 72 0a 58 5c 66 |R.X.sp.X|char.X\f|
|00000760| 42 54 63 6c 5f 42 61 63 | 6b 73 6c 61 73 68 5c 66 |BTcl_Bac|kslash\f|
|00000770| 52 28 5c 66 49 73 72 63 | 2c 20 63 6f 75 6e 74 50 |R(\fIsrc|, countP|
|00000780| 74 72 5c 66 52 29 0a 58 | 2e 53 48 20 41 52 47 55 |tr\fR).X|.SH ARGU|
|00000790| 4d 45 4e 54 53 0a 58 2e | 41 50 20 63 68 61 72 20 |MENTS.X.|AP char |
|000007a0| 2a 73 72 63 20 69 6e 0a | 58 50 6f 69 6e 74 65 72 |*src in.|XPointer|
|000007b0| 20 74 6f 20 61 20 73 74 | 72 69 6e 67 20 73 74 61 | to a st|ring sta|
|000007c0| 72 74 69 6e 67 20 77 69 | 74 68 20 61 20 62 61 63 |rting wi|th a bac|
|000007d0| 6b 73 6c 61 73 68 2e 0a | 58 2e 41 50 20 69 6e 74 |kslash..|X.AP int|
|000007e0| 20 2a 63 6f 75 6e 74 50 | 74 72 20 6f 75 74 0a 58 | *countP|tr out.X|
|000007f0| 49 66 20 5c 66 49 63 6f | 75 6e 74 50 74 72 5c 66 |If \fIco|untPtr\f|
|00000800| 52 20 69 73 6e 27 74 20 | 4e 55 4c 4c 2c 20 5c 66 |R isn't |NULL, \f|
|00000810| 49 2a 63 6f 75 6e 74 50 | 74 72 5c 66 52 20 67 65 |I*countP|tr\fR ge|
|00000820| 74 73 20 66 69 6c 6c 65 | 64 0a 58 69 6e 20 77 69 |ts fille|d.Xin wi|
|00000830| 74 68 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |th numbe|r of cha|
|00000840| 72 61 63 74 65 72 73 20 | 69 6e 20 74 68 65 20 62 |racters |in the b|
|00000850| 61 63 6b 73 6c 61 73 68 | 20 73 65 71 75 65 6e 63 |ackslash| sequenc|
|00000860| 65 2c 20 69 6e 63 6c 75 | 64 69 6e 67 0a 58 74 68 |e, inclu|ding.Xth|
|00000870| 65 20 62 61 63 6b 73 6c | 61 73 68 20 63 68 61 72 |e backsl|ash char|
|00000880| 61 63 74 65 72 2e 0a 58 | 2e 42 45 0a 58 0a 58 2e |acter..X|.BE.X.X.|
|00000890| 53 48 20 44 45 53 43 52 | 49 50 54 49 4f 4e 0a 58 |SH DESCR|IPTION.X|
|000008a0| 2e 50 50 0a 58 54 68 69 | 73 20 69 73 20 61 20 75 |.PP.XThi|s is a u|
|000008b0| 74 69 6c 69 74 79 20 70 | 72 6f 63 65 64 75 72 65 |tility p|rocedure|
|000008c0| 20 75 73 65 64 20 62 79 | 20 73 65 76 65 72 61 6c | used by| several|
|000008d0| 20 6f 66 20 74 68 65 20 | 54 63 6c 0a 58 63 6f 6d | of the |Tcl.Xcom|
|000008e0| 6d 61 6e 64 73 2e 20 20 | 49 74 20 70 61 72 73 65 |mands. |It parse|
|000008f0| 73 20 61 20 62 61 63 6b | 73 6c 61 73 68 20 73 65 |s a back|slash se|
|00000900| 71 75 65 6e 63 65 20 61 | 6e 64 20 72 65 74 75 72 |quence a|nd retur|
|00000910| 6e 73 0a 58 74 68 65 20 | 73 69 6e 67 6c 65 20 63 |ns.Xthe |single c|
|00000920| 68 61 72 61 63 74 65 72 | 20 63 6f 72 72 65 73 70 |haracter| corresp|
|00000930| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 73 65 |onding t|o the se|
|00000940| 71 75 65 6e 63 65 2e 0a | 58 5c 66 42 54 63 6c 5f |quence..|X\fBTcl_|
|00000950| 42 61 63 6b 73 6c 61 73 | 68 5c 66 52 20 6d 6f 64 |Backslas|h\fR mod|
|00000960| 69 66 69 65 73 20 5c 66 | 49 2a 63 6f 75 6e 74 50 |ifies \f|I*countP|
|00000970| 74 72 5c 66 52 20 74 6f | 20 63 6f 6e 74 61 69 6e |tr\fR to| contain|
|00000980| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00000990| 68 61 72 61 63 74 65 72 | 73 20 69 6e 0a 58 74 68 |haracter|s in.Xth|
|000009a0| 65 20 62 61 63 6b 73 6c | 61 73 68 20 73 65 71 75 |e backsl|ash sequ|
|000009b0| 65 6e 63 65 2e 20 20 49 | 66 20 5c 66 49 73 72 63 |ence. I|f \fIsrc|
|000009c0| 5c 66 52 20 64 6f 65 73 | 6e 27 74 20 70 6f 69 6e |\fR does|n't poin|
|000009d0| 74 20 74 6f 20 61 20 62 | 61 63 6b 73 6c 61 73 68 |t to a b|ackslash|
|000009e0| 0a 58 73 65 71 75 65 6e | 63 65 20 75 6e 64 65 72 |.Xsequen|ce under|
|000009f0| 73 74 6f 6f 64 20 62 79 | 20 54 63 6c 2c 20 74 68 |stood by| Tcl, th|
|00000a00| 65 6e 20 54 63 6c 5f 42 | 61 63 6b 73 6c 61 73 68 |en Tcl_B|ackslash|
|00000a10| 20 72 65 74 75 72 6e 73 | 20 61 20 62 61 63 6b 73 | returns| a backs|
|00000a20| 6c 61 73 68 0a 58 61 73 | 20 69 74 73 20 72 65 73 |lash.Xas| its res|
|00000a30| 75 6c 74 20 61 6e 64 20 | 5c 66 49 2a 63 6f 75 6e |ult and |\fI*coun|
|00000a40| 74 50 74 72 5c 66 52 20 | 67 65 74 73 20 73 65 74 |tPtr\fR |gets set|
|00000a50| 20 74 6f 20 31 20 28 69 | 6e 20 74 68 69 73 20 63 | to 1 (i|n this c|
|00000a60| 61 73 65 20 74 68 65 0a | 58 62 61 63 6b 73 6c 61 |ase the.|Xbacksla|
|00000a70| 73 68 20 63 68 61 72 61 | 63 74 65 72 20 73 68 6f |sh chara|cter sho|
|00000a80| 75 6c 64 20 6e 6f 74 20 | 67 65 74 20 61 6e 79 20 |uld not |get any |
|00000a90| 73 70 65 63 69 61 6c 20 | 74 72 65 61 74 6d 65 6e |special |treatmen|
|00000aa0| 74 29 2e 0a 58 2e 50 50 | 0a 58 53 65 65 20 74 68 |t)..X.PP|.XSee th|
|00000ab0| 65 20 54 63 6c 20 6d 61 | 6e 75 61 6c 20 65 6e 74 |e Tcl ma|nual ent|
|00000ac0| 72 79 20 66 6f 72 20 69 | 6e 66 6f 72 6d 61 74 69 |ry for i|nformati|
|00000ad0| 6f 6e 20 6f 6e 20 74 68 | 65 20 76 61 6c 69 64 0a |on on th|e valid.|
|00000ae0| 58 62 61 63 6b 73 6c 61 | 73 68 20 73 65 71 75 65 |Xbacksla|sh seque|
|00000af0| 6e 63 65 73 2e 20 20 41 | 6c 6c 20 6f 66 20 74 68 |nces. A|ll of th|
|00000b00| 65 20 73 65 71 75 65 6e | 63 65 73 20 64 65 73 63 |e sequen|ces desc|
|00000b10| 72 69 62 65 64 20 69 6e | 20 74 68 65 20 54 63 6c |ribed in| the Tcl|
|00000b20| 0a 58 2e 56 53 0a 58 6d | 61 6e 75 61 6c 20 65 6e |.X.VS.Xm|anual en|
|00000b30| 74 72 79 20 61 72 65 20 | 73 75 70 70 6f 72 74 65 |try are |supporte|
|00000b40| 64 20 62 79 20 5c 66 42 | 54 63 6c 5f 42 61 63 6b |d by \fB|Tcl_Back|
|00000b50| 73 6c 61 73 68 5c 66 52 | 20 65 78 63 65 70 74 0a |slash\fR| except.|
|00000b60| 58 62 61 63 6b 73 6c 61 | 73 68 2d 6e 65 77 6c 69 |Xbacksla|sh-newli|
|00000b70| 6e 65 2c 20 77 68 69 63 | 68 20 69 73 20 6e 6f 74 |ne, whic|h is not|
|00000b80| 20 75 6e 64 65 72 73 74 | 6f 6f 64 2e 0a 58 2e 56 | underst|ood..X.V|
|00000b90| 45 0a 58 0a 58 2e 53 48 | 20 4b 45 59 57 4f 52 44 |E.X.X.SH| KEYWORD|
|00000ba0| 53 0a 58 62 61 63 6b 73 | 6c 61 73 68 2c 20 70 61 |S.Xbacks|lash, pa|
|00000bb0| 72 73 65 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |rse.END_|OF_FILE.|
|00000bc0| 69 66 20 74 65 73 74 20 | 31 37 37 31 20 2d 6e 65 |if test |1771 -ne|
|00000bd0| 20 60 77 63 20 2d 63 20 | 3c 27 42 61 63 6b 73 6c | `wc -c |<'Backsl|
|00000be0| 61 73 68 2e 33 27 60 3b | 20 74 68 65 6e 0a 20 20 |ash.3'`;| then. |
|00000bf0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00000c00| 42 61 63 6b 73 6c 61 73 | 68 2e 33 27 5c 22 20 75 |Backslas|h.3'\" u|
|00000c10| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00000c20| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00000c30| 64 20 6f 66 20 27 42 61 | 63 6b 73 6c 61 73 68 2e |d of 'Ba|ckslash.|
|00000c40| 33 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |3'.fi.if| test -f|
|00000c50| 20 27 43 72 65 61 74 65 | 43 6f 6d 6d 2e 33 27 20 | 'Create|Comm.3' |
|00000c60| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00000c70| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00000c80| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00000c90| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00000ca0| 20 66 69 6c 65 20 5c 22 | 27 43 72 65 61 74 65 43 | file \"|'CreateC|
|00000cb0| 6f 6d 6d 2e 33 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |omm.3'\"|.else.ec|
|00000cc0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00000cd0| 69 6e 67 20 5c 22 27 43 | 72 65 61 74 65 43 6f 6d |ing \"'C|reateCom|
|00000ce0| 6d 2e 33 27 5c 22 20 5c | 28 34 36 38 32 20 63 68 |m.3'\" \|(4682 ch|
|00000cf0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00000d00| 73 2f 5e 58 2f 2f 22 20 | 3e 27 43 72 65 61 74 65 |s/^X//" |>'Create|
|00000d10| 43 6f 6d 6d 2e 33 27 20 | 3c 3c 27 45 4e 44 5f 4f |Comm.3' |<<'END_O|
|00000d20| 46 5f 46 49 4c 45 27 0a | 58 27 5c 22 20 43 6f 70 |F_FILE'.|X'\" Cop|
|00000d30| 79 72 69 67 68 74 20 31 | 39 38 39 20 52 65 67 65 |yright 1|989 Rege|
|00000d40| 6e 74 73 20 6f 66 20 74 | 68 65 20 55 6e 69 76 65 |nts of t|he Unive|
|00000d50| 72 73 69 74 79 20 6f 66 | 20 43 61 6c 69 66 6f 72 |rsity of| Califor|
|00000d60| 6e 69 61 0a 58 27 5c 22 | 20 50 65 72 6d 69 73 73 |nia.X'\"| Permiss|
|00000d70| 69 6f 6e 20 74 6f 20 75 | 73 65 2c 20 63 6f 70 79 |ion to u|se, copy|
|00000d80| 2c 20 6d 6f 64 69 66 79 | 2c 20 61 6e 64 20 64 69 |, modify|, and di|
|00000d90| 73 74 72 69 62 75 74 65 | 20 74 68 69 73 0a 58 27 |stribute| this.X'|
|00000da0| 5c 22 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |\" docum|entation|
|00000db0| 20 66 6f 72 20 61 6e 79 | 20 70 75 72 70 6f 73 65 | for any| purpose|
|00000dc0| 20 61 6e 64 20 77 69 74 | 68 6f 75 74 20 66 65 65 | and wit|hout fee|
|00000dd0| 20 69 73 20 68 65 72 65 | 62 79 0a 58 27 5c 22 20 | is here|by.X'\" |
|00000de0| 67 72 61 6e 74 65 64 2c | 20 70 72 6f 76 69 64 65 |granted,| provide|
|00000df0| 64 20 74 68 61 74 20 74 | 68 69 73 20 6e 6f 74 69 |d that t|his noti|
|00000e00| 63 65 20 61 70 70 65 61 | 72 73 20 69 6e 20 61 6c |ce appea|rs in al|
|00000e10| 6c 20 63 6f 70 69 65 73 | 2e 0a 58 27 5c 22 20 54 |l copies|..X'\" T|
|00000e20| 68 65 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |he Unive|rsity of|
|00000e30| 20 43 61 6c 69 66 6f 72 | 6e 69 61 20 6d 61 6b 65 | Califor|nia make|
|00000e40| 73 20 6e 6f 20 72 65 70 | 72 65 73 65 6e 74 61 74 |s no rep|resentat|
|00000e50| 69 6f 6e 73 20 61 62 6f | 75 74 0a 58 27 5c 22 20 |ions abo|ut.X'\" |
|00000e60| 74 68 65 20 73 75 69 74 | 61 62 69 6c 69 74 79 20 |the suit|ability |
|00000e70| 6f 66 20 74 68 69 73 20 | 6d 61 74 65 72 69 61 6c |of this |material|
|00000e80| 20 66 6f 72 20 61 6e 79 | 20 70 75 72 70 6f 73 65 | for any| purpose|
|00000e90| 2e 20 20 49 74 20 69 73 | 0a 58 27 5c 22 20 70 72 |. It is|.X'\" pr|
|00000ea0| 6f 76 69 64 65 64 20 22 | 61 73 20 69 73 22 20 77 |ovided "|as is" w|
|00000eb0| 69 74 68 6f 75 74 20 65 | 78 70 72 65 73 73 20 6f |ithout e|xpress o|
|00000ec0| 72 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |r implie|d warran|
|00000ed0| 74 79 2e 0a 58 27 5c 22 | 20 0a 58 27 5c 22 20 24 |ty..X'\"| .X'\" $|
|00000ee0| 48 65 61 64 65 72 3a 20 | 2f 73 70 72 69 74 65 2f |Header: |/sprite/|
|00000ef0| 73 72 63 2f 6c 69 62 2f | 74 63 6c 2f 52 43 53 2f |src/lib/|tcl/RCS/|
|00000f00| 54 63 6c 5f 43 72 65 61 | 74 65 43 6f 6d 6d 61 6e |Tcl_Crea|teComman|
|00000f10| 64 2e 6d 61 6e 2c 76 20 | 31 2e 32 20 38 39 2f 30 |d.man,v |1.2 89/0|
|00000f20| 33 2f 32 34 20 31 34 3a | 31 35 3a 35 38 20 6f 75 |3/24 14:|15:58 ou|
|00000f30| 73 74 65 72 20 45 78 70 | 20 24 20 53 50 52 49 54 |ster Exp| $ SPRIT|
|00000f40| 45 20 28 42 65 72 6b 65 | 6c 65 79 29 0a 58 27 5c |E (Berke|ley).X'\|
|00000f50| 22 20 0a 58 2e 73 6f 20 | 5c 2a 28 5d 6c 74 6d 61 |" .X.so |\*(]ltma|
|00000f60| 63 2e 73 70 72 69 74 65 | 0a 58 2e 48 53 20 54 63 |c.sprite|.X.HS Tc|
|00000f70| 6c 5f 43 72 65 61 74 65 | 43 6f 6d 6d 61 6e 64 20 |l_Create|Command |
|00000f80| 74 63 6c 0a 58 2e 42 53 | 0a 58 2e 53 48 20 4e 41 |tcl.X.BS|.X.SH NA|
|00000f90| 4d 45 0a 58 54 63 6c 5f | 43 72 65 61 74 65 43 6f |ME.XTcl_|CreateCo|
|00000fa0| 6d 6d 61 6e 64 20 5c 2d | 20 64 65 66 69 6e 65 20 |mmand \-| define |
|00000fb0| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2d 73 |an appli|cation-s|
|00000fc0| 70 65 63 69 66 69 63 20 | 63 6f 6d 6d 61 6e 64 20 |pecific |command |
|00000fd0| 62 69 6e 64 69 6e 67 0a | 58 2e 53 48 20 53 59 4e |binding.|X.SH SYN|
|00000fe0| 4f 50 53 49 53 0a 58 2e | 6e 66 0a 58 5c 66 42 23 |OPSIS.X.|nf.X\fB#|
|00000ff0| 69 6e 63 6c 75 64 65 20 | 3c 74 63 6c 2e 68 3e 5c |include |<tcl.h>\|
|00001000| 66 52 0a 58 2e 73 70 0a | 58 5c 66 42 54 63 6c 5f |fR.X.sp.|X\fBTcl_|
|00001010| 43 72 65 61 74 65 43 6f | 6d 6d 61 6e 64 5c 66 52 |CreateCo|mmand\fR|
|00001020| 28 5c 66 49 69 6e 74 65 | 72 70 2c 20 63 6d 64 4e |(\fIinte|rp, cmdN|
|00001030| 61 6d 65 2c 20 70 72 6f | 63 2c 20 63 6c 69 65 6e |ame, pro|c, clien|
|00001040| 74 44 61 74 61 2c 20 64 | 65 6c 65 74 65 50 72 6f |tData, d|eletePro|
|00001050| 63 5c 66 52 29 0a 58 2e | 53 48 20 41 52 47 55 4d |c\fR).X.|SH ARGUM|
|00001060| 45 4e 54 53 0a 58 2e 41 | 53 20 43 6c 69 65 6e 74 |ENTS.X.A|S Client|
|00001070| 44 61 74 61 20 28 2a 64 | 65 6c 65 74 65 50 72 6f |Data (*d|eletePro|
|00001080| 63 29 28 29 0a 58 2e 41 | 50 20 54 63 6c 5f 49 6e |c)().X.A|P Tcl_In|
|00001090| 74 65 72 70 20 2a 69 6e | 74 65 72 70 20 69 6e 0a |terp *in|terp in.|
|000010a0| 58 49 6e 74 65 72 70 72 | 65 74 65 72 20 69 6e 20 |XInterpr|eter in |
|000010b0| 77 68 69 63 68 20 74 6f | 20 63 72 65 61 74 65 20 |which to| create |
|000010c0| 6e 65 77 20 63 6f 6d 6d | 61 6e 64 2e 0a 58 2e 41 |new comm|and..X.A|
|000010d0| 50 20 63 68 61 72 20 2a | 63 6d 64 4e 61 6d 65 20 |P char *|cmdName |
|000010e0| 69 6e 0a 58 4e 61 6d 65 | 20 6f 66 20 6e 65 77 20 |in.XName| of new |
|000010f0| 63 6f 6d 6d 61 6e 64 2e | 20 20 54 63 6c 5f 43 72 |command.| Tcl_Cr|
|00001100| 65 61 74 65 43 6f 6d 6d | 61 6e 64 20 6d 61 6b 65 |eateComm|and make|
|00001110| 73 20 61 20 63 6f 70 79 | 20 6f 66 20 74 68 69 73 |s a copy| of this|
|00001120| 20 76 61 6c 75 65 0a 58 | 66 6f 72 20 69 74 73 20 | value.X|for its |
|00001130| 6f 77 6e 20 75 73 65 2e | 0a 58 2e 41 50 20 69 6e |own use.|.X.AP in|
|00001140| 74 20 28 2a 70 72 6f 63 | 29 28 29 20 69 6e 0a 58 |t (*proc|)() in.X|
|00001150| 49 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |Implemen|tation o|
|00001160| 66 20 6e 65 77 20 63 6f | 6d 6d 61 6e 64 3a 20 20 |f new co|mmand: |
|00001170| 5c 66 49 70 72 6f 63 5c | 66 52 20 77 69 6c 6c 20 |\fIproc\|fR will |
|00001180| 62 65 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 65 76 |be calle|d whenev|
|00001190| 65 72 0a 58 5c 66 49 63 | 6d 64 4e 61 6d 65 5c 66 |er.X\fIc|mdName\f|
|000011a0| 52 20 69 73 20 69 6e 76 | 6f 6b 65 64 20 61 73 20 |R is inv|oked as |
|000011b0| 61 20 63 6f 6d 6d 61 6e | 64 2e 0a 58 2e 41 50 20 |a comman|d..X.AP |
|000011c0| 43 6c 69 65 6e 74 44 61 | 74 61 20 63 6c 69 65 6e |ClientDa|ta clien|
|000011d0| 74 44 61 74 61 20 69 6e | 0a 58 41 72 62 69 74 72 |tData in|.XArbitr|
|000011e0| 61 72 79 20 6f 6e 65 2d | 77 6f 72 64 20 76 61 6c |ary one-|word val|
|000011f0| 75 65 20 74 6f 20 70 61 | 73 73 20 74 6f 20 5c 66 |ue to pa|ss to \f|
|00001200| 49 70 72 6f 63 5c 66 52 | 20 61 6e 64 20 5c 66 49 |Iproc\fR| and \fI|
|00001210| 64 65 6c 65 74 65 50 72 | 6f 63 5c 66 52 2e 0a 58 |deletePr|oc\fR..X|
|00001220| 2e 41 50 20 76 6f 69 64 | 20 28 2a 64 65 6c 65 74 |.AP void| (*delet|
|00001230| 65 50 72 6f 63 29 28 29 | 20 69 6e 0a 58 50 72 6f |eProc)()| in.XPro|
|00001240| 63 65 64 75 72 65 20 74 | 6f 20 63 61 6c 6c 20 62 |cedure t|o call b|
|00001250| 65 66 6f 72 65 20 5c 66 | 49 63 6d 64 4e 61 6d 65 |efore \f|IcmdName|
|00001260| 5c 66 52 20 69 73 20 64 | 65 6c 65 74 65 64 20 66 |\fR is d|eleted f|
|00001270| 72 6f 6d 20 74 68 65 20 | 69 6e 74 65 72 70 72 65 |rom the |interpre|
|00001280| 74 65 72 3b 0a 58 61 6c | 6c 6f 77 73 20 66 6f 72 |ter;.Xal|lows for|
|00001290| 20 63 6f 6d 6d 61 6e 64 | 2d 73 70 65 63 69 66 69 | command|-specifi|
|000012a0| 63 20 63 6c 65 61 6e 75 | 70 2e 20 20 49 66 20 4e |c cleanu|p. If N|
|000012b0| 55 4c 4c 2c 20 74 68 65 | 6e 20 6e 6f 20 70 72 6f |ULL, the|n no pro|
|000012c0| 63 65 64 75 72 65 20 69 | 73 0a 58 63 61 6c 6c 65 |cedure i|s.Xcalle|
|000012d0| 64 20 62 65 66 6f 72 65 | 20 74 68 65 20 63 6f 6d |d before| the com|
|000012e0| 6d 61 6e 64 20 69 73 20 | 64 65 6c 65 74 65 64 2e |mand is |deleted.|
|000012f0| 0a 58 2e 42 45 0a 58 0a | 58 2e 53 48 20 44 45 53 |.X.BE.X.|X.SH DES|
|00001300| 43 52 49 50 54 49 4f 4e | 0a 58 2e 50 50 0a 58 5c |CRIPTION|.X.PP.X\|
|00001310| 66 42 54 63 6c 5f 43 72 | 65 61 74 65 43 6f 6d 6d |fBTcl_Cr|eateComm|
|00001320| 61 6e 64 5c 66 52 20 64 | 65 66 69 6e 65 73 20 61 |and\fR d|efines a|
|00001330| 20 6e 65 77 20 63 6f 6d | 6d 61 6e 64 20 69 6e 20 | new com|mand in |
|00001340| 5c 66 49 69 6e 74 65 72 | 70 5c 66 52 20 61 6e 64 |\fIinter|p\fR and|
|00001350| 20 61 73 73 6f 63 69 61 | 74 65 73 0a 58 69 74 20 | associa|tes.Xit |
|00001360| 77 69 74 68 20 70 72 6f | 63 65 64 75 72 65 20 5c |with pro|cedure \|
|00001370| 66 49 70 72 6f 63 5c 66 | 52 20 73 75 63 68 20 74 |fIproc\f|R such t|
|00001380| 68 61 74 20 77 68 65 6e | 65 76 65 72 20 5c 66 49 |hat when|ever \fI|
|00001390| 63 6d 64 4e 61 6d 65 5c | 66 52 20 69 73 0a 58 69 |cmdName\|fR is.Xi|
|000013a0| 6e 76 6f 6b 65 64 20 61 | 73 20 61 20 54 63 6c 20 |nvoked a|s a Tcl |
|000013b0| 63 6f 6d 6d 61 6e 64 20 | 28 76 69 61 20 61 20 63 |command |(via a c|
|000013c0| 61 6c 6c 20 74 6f 20 5c | 66 42 54 63 6c 5f 45 76 |all to \|fBTcl_Ev|
|000013d0| 61 6c 5c 66 52 29 20 74 | 68 65 20 54 63 6c 20 69 |al\fR) t|he Tcl i|
|000013e0| 6e 74 65 72 70 72 65 74 | 65 72 0a 58 77 69 6c 6c |nterpret|er.Xwill|
|000013f0| 20 63 61 6c 6c 20 5c 66 | 49 70 72 6f 63 5c 66 52 | call \f|Iproc\fR|
|00001400| 0a 58 74 6f 20 70 72 6f | 63 65 73 73 20 74 68 65 |.Xto pro|cess the|
|00001410| 20 63 6f 6d 6d 61 6e 64 | 2e 20 20 49 66 20 74 68 | command|. If th|
|00001420| 65 72 65 20 69 73 20 61 | 6c 72 65 61 64 79 20 61 |ere is a|lready a|
|00001430| 20 63 6f 6d 6d 61 6e 64 | 20 5c 66 49 63 6d 64 4e | command| \fIcmdN|
|00001440| 61 6d 65 5c 66 52 0a 58 | 61 73 73 6f 63 69 61 74 |ame\fR.X|associat|
|00001450| 65 64 20 77 69 74 68 20 | 74 68 65 20 69 6e 74 65 |ed with |the inte|
|00001460| 72 70 72 65 74 65 72 2c | 20 69 74 20 69 73 20 64 |rpreter,| it is d|
|00001470| 65 6c 65 74 65 64 2e 20 | 20 5c 66 49 50 72 6f 63 |eleted. | \fIProc|
|00001480| 5c 66 50 20 73 68 6f 75 | 6c 64 0a 58 68 61 76 65 |\fP shou|ld.Xhave|
|00001490| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 | the fol|lowing s|
|000014a0| 74 72 75 63 74 75 72 65 | 3a 0a 58 2e 6e 66 0a 58 |tructure|:.X.nf.X|
|000014b0| 2e 52 53 0a 58 69 6e 74 | 0a 58 70 72 6f 63 28 5c |.RS.Xint|.Xproc(\|
|000014c0| 66 49 63 6c 69 65 6e 74 | 44 61 74 61 2c 20 69 6e |fIclient|Data, in|
|000014d0| 74 65 72 70 2c 20 61 72 | 67 63 2c 20 61 72 67 76 |terp, ar|gc, argv|
|000014e0| 5c 66 50 29 0a 58 2e 52 | 53 0a 58 43 6c 69 65 6e |\fP).X.R|S.XClien|
|000014f0| 74 44 61 74 61 20 5c 66 | 49 63 6c 69 65 6e 74 44 |tData \f|IclientD|
|00001500| 61 74 61 5c 66 50 3b 0a | 58 54 63 6c 5f 49 6e 74 |ata\fP;.|XTcl_Int|
|00001510| 65 72 70 20 2a 5c 66 49 | 69 6e 74 65 72 70 5c 66 |erp *\fI|interp\f|
|00001520| 50 3b 0a 58 69 6e 74 20 | 5c 66 49 61 72 67 63 5c |P;.Xint |\fIargc\|
|00001530| 66 50 3b 0a 58 63 68 61 | 72 20 2a 5c 66 49 61 72 |fP;.Xcha|r *\fIar|
|00001540| 67 76 5b 5d 5c 66 50 3b | 0a 58 2e 52 45 0a 58 7b |gv[]\fP;|.X.RE.X{|
|00001550| 0a 58 7d 0a 58 2e 52 45 | 0a 58 2e 66 69 0a 58 54 |.X}.X.RE|.X.fi.XT|
|00001560| 68 65 20 5c 66 49 63 6c | 69 65 6e 74 44 61 74 61 |he \fIcl|ientData|
|00001570| 5c 66 50 20 61 6e 64 20 | 5c 66 49 69 6e 74 65 72 |\fP and |\fIinter|
|00001580| 70 5c 66 52 20 70 61 72 | 61 6d 65 74 65 72 73 20 |p\fR par|ameters |
|00001590| 61 72 65 0a 58 63 6f 70 | 69 65 73 20 6f 66 20 74 |are.Xcop|ies of t|
|000015a0| 68 65 20 5c 66 49 63 6c | 69 65 6e 74 44 61 74 61 |he \fIcl|ientData|
|000015b0| 5c 66 50 20 61 6e 64 20 | 5c 66 49 69 6e 74 65 72 |\fP and |\fIinter|
|000015c0| 70 5c 66 52 20 61 72 67 | 75 6d 65 6e 74 73 20 67 |p\fR arg|uments g|
|000015d0| 69 76 65 6e 0a 58 74 6f | 20 5c 66 42 54 63 6c 5f |iven.Xto| \fBTcl_|
|000015e0| 43 72 65 61 74 65 43 6f | 6d 6d 61 6e 64 5c 66 52 |CreateCo|mmand\fR|
|000015f0| 2e 0a 58 54 79 70 69 63 | 61 6c 6c 79 2c 20 5c 66 |..XTypic|ally, \f|
|00001600| 49 63 6c 69 65 6e 74 44 | 61 74 61 5c 66 52 20 70 |IclientD|ata\fR p|
|00001610| 6f 69 6e 74 73 20 74 6f | 20 61 6e 20 61 70 70 6c |oints to| an appl|
|00001620| 69 63 61 74 69 6f 6e 2d | 73 70 65 63 69 66 69 63 |ication-|specific|
|00001630| 0a 58 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |.Xdata s|tructure|
|00001640| 20 74 68 61 74 20 64 65 | 73 63 72 69 62 65 73 20 | that de|scribes |
|00001650| 77 68 61 74 20 74 6f 20 | 64 6f 20 77 68 65 6e 20 |what to |do when |
|00001660| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 70 72 6f 63 |the comm|and proc|
|00001670| 65 64 75 72 65 0a 58 69 | 73 20 69 6e 76 6f 6b 65 |edure.Xi|s invoke|
|00001680| 64 2e 20 20 5c 66 49 41 | 72 67 63 5c 66 52 20 61 |d. \fIA|rgc\fR a|
|00001690| 6e 64 20 5c 66 49 61 72 | 67 76 5c 66 52 20 64 65 |nd \fIar|gv\fR de|
|000016a0| 73 63 72 69 62 65 20 74 | 68 65 20 61 72 67 75 6d |scribe t|he argum|
|000016b0| 65 6e 74 73 20 74 6f 0a | 58 74 68 65 20 63 6f 6d |ents to.|Xthe com|
|000016c0| 6d 61 6e 64 2c 20 5c 66 | 49 61 72 67 63 5c 66 52 |mand, \f|Iargc\fR|
|000016d0| 20 67 69 76 69 6e 67 20 | 74 68 65 20 6e 75 6d 62 | giving |the numb|
|000016e0| 65 72 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 20 |er of ar|guments |
|000016f0| 28 69 6e 63 6c 75 64 69 | 6e 67 0a 58 74 68 65 20 |(includi|ng.Xthe |
|00001700| 63 6f 6d 6d 61 6e 64 20 | 6e 61 6d 65 29 20 61 6e |command |name) an|
|00001710| 64 20 5c 66 49 61 72 67 | 76 5c 66 52 20 67 69 76 |d \fIarg|v\fR giv|
|00001720| 69 6e 67 20 74 68 65 20 | 76 61 6c 75 65 73 20 6f |ing the |values o|
|00001730| 66 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 73 0a |f the ar|guments.|
|00001740| 58 61 73 20 73 74 72 69 | 6e 67 73 2e 20 20 54 68 |Xas stri|ngs. Th|
|00001750| 65 20 5c 66 49 61 72 67 | 76 5c 66 52 20 61 72 72 |e \fIarg|v\fR arr|
|00001760| 61 79 20 77 69 6c 6c 20 | 63 6f 6e 74 61 69 6e 20 |ay will |contain |
|00001770| 5c 66 49 61 72 67 63 5c | 66 52 2b 31 20 76 61 6c |\fIargc\|fR+1 val|
|00001780| 75 65 73 3b 0a 58 74 68 | 65 20 66 69 72 73 74 20 |ues;.Xth|e first |
|00001790| 5c 66 49 61 72 67 63 5c | 66 52 20 76 61 6c 75 65 |\fIargc\|fR value|
|000017a0| 73 20 70 6f 69 6e 74 20 | 74 6f 20 74 68 65 20 61 |s point |to the a|
|000017b0| 72 67 75 6d 65 6e 74 20 | 73 74 72 69 6e 67 73 2c |rgument |strings,|
|000017c0| 20 61 6e 64 20 74 68 65 | 0a 58 6c 61 73 74 20 76 | and the|.Xlast v|
|000017d0| 61 6c 75 65 20 69 73 20 | 4e 55 4c 4c 2e 0a 58 2e |alue is |NULL..X.|
|000017e0| 50 50 0a 58 5c 66 49 50 | 72 6f 63 5c 66 52 20 6d |PP.X\fIP|roc\fR m|
|000017f0| 75 73 74 20 72 65 74 75 | 72 6e 20 61 6e 20 69 6e |ust retu|rn an in|
|00001800| 74 65 67 65 72 20 63 6f | 64 65 20 74 68 61 74 20 |teger co|de that |
|00001810| 69 73 20 65 69 74 68 65 | 72 20 5c 66 42 54 43 4c |is eithe|r \fBTCL|
|00001820| 5f 4f 4b 5c 66 52 2c 20 | 5c 66 42 54 43 4c 5f 45 |_OK\fR, |\fBTCL_E|
|00001830| 52 52 4f 52 5c 66 52 2c | 0a 58 5c 66 42 54 43 4c |RROR\fR,|.X\fBTCL|
|00001840| 5f 52 45 54 55 52 4e 5c | 66 52 2c 20 5c 66 42 54 |_RETURN\|fR, \fBT|
|00001850| 43 4c 5f 42 52 45 41 4b | 5c 66 52 2c 20 6f 72 20 |CL_BREAK|\fR, or |
|00001860| 5c 66 42 54 43 4c 5f 43 | 4f 4e 54 49 4e 55 45 5c |\fBTCL_C|ONTINUE\|
|00001870| 66 52 2e 20 20 53 65 65 | 20 74 68 65 20 54 63 6c |fR. See| the Tcl|
|00001880| 20 6f 76 65 72 76 69 65 | 77 20 6d 61 6e 20 70 61 | overvie|w man pa|
|00001890| 67 65 0a 58 66 6f 72 20 | 64 65 74 61 69 6c 73 20 |ge.Xfor |details |
|000018a0| 6f 6e 20 77 68 61 74 20 | 74 68 65 73 65 20 63 6f |on what |these co|
|000018b0| 64 65 73 20 6d 65 61 6e | 2e 20 20 4d 6f 73 74 20 |des mean|. Most |
|000018c0| 6e 6f 72 6d 61 6c 20 63 | 6f 6d 6d 61 6e 64 73 20 |normal c|ommands |
|000018d0| 77 69 6c 6c 20 6f 6e 6c | 79 0a 58 72 65 74 75 72 |will onl|y.Xretur|
|000018e0| 6e 20 5c 66 42 54 43 4c | 5f 4f 4b 5c 66 52 20 6f |n \fBTCL|_OK\fR o|
|000018f0| 72 20 5c 66 42 54 43 4c | 5f 45 52 52 4f 52 5c 66 |r \fBTCL|_ERROR\f|
|00001900| 52 2e 20 20 49 6e 20 61 | 64 64 69 74 69 6f 6e 2c |R. In a|ddition,|
|00001910| 20 5c 66 49 70 72 6f 63 | 5c 66 52 20 6d 75 73 74 | \fIproc|\fR must|
|00001920| 20 73 65 74 0a 58 5c 66 | 49 69 6e 74 65 72 70 2d | set.X\f|Iinterp-|
|00001930| 3e 72 65 73 75 6c 74 5c | 66 52 20 74 6f 20 70 6f |>result\|fR to po|
|00001940| 69 6e 74 20 74 6f 20 61 | 20 73 74 72 69 6e 67 20 |int to a| string |
|00001950| 76 61 6c 75 65 3b 0a 58 | 69 6e 20 74 68 65 20 63 |value;.X|in the c|
|00001960| 61 73 65 20 6f 66 20 61 | 20 5c 66 42 54 43 4c 5f |ase of a| \fBTCL_|
|00001970| 4f 4b 5c 66 52 20 72 65 | 74 75 72 6e 20 63 6f 64 |OK\fR re|turn cod|
|00001980| 65 20 74 68 69 73 20 67 | 69 76 65 73 20 74 68 65 |e this g|ives the|
|00001990| 20 72 65 73 75 6c 74 0a | 58 6f 66 20 74 68 65 20 | result.|Xof the |
|000019a0| 63 6f 6d 6d 61 6e 64 2c | 20 61 6e 64 20 69 6e 20 |command,| and in |
|000019b0| 74 68 65 20 63 61 73 65 | 20 6f 66 20 5c 66 42 54 |the case| of \fBT|
|000019c0| 43 4c 5f 45 52 52 4f 52 | 5c 66 52 20 69 74 20 67 |CL_ERROR|\fR it g|
|000019d0| 69 76 65 73 20 61 6e 20 | 65 72 72 6f 72 20 6d 65 |ives an |error me|
|000019e0| 73 73 61 67 65 2e 0a 58 | 54 68 65 20 5c 66 42 54 |ssage..X|The \fBT|
|000019f0| 63 6c 5f 52 65 74 75 72 | 6e 5c 66 52 20 70 72 6f |cl_Retur|n\fR pro|
|00001a00| 63 65 64 75 72 65 20 70 | 72 6f 76 69 64 65 73 20 |cedure p|rovides |
|00001a10| 61 6e 20 65 61 73 79 20 | 69 6e 74 65 72 66 61 63 |an easy |interfac|
|00001a20| 65 20 66 6f 72 20 73 65 | 74 74 69 6e 67 20 74 68 |e for se|tting th|
|00001a30| 65 20 72 65 74 75 72 6e | 0a 58 76 61 6c 75 65 3b |e return|.Xvalue;|
|00001a40| 20 20 66 6f 72 20 63 6f | 6d 70 6c 65 74 65 20 64 | for co|mplete d|
|00001a50| 65 74 61 69 6c 73 20 6f | 6e 20 68 6f 77 20 74 68 |etails o|n how th|
|00001a60| 65 20 5c 66 49 69 6e 74 | 65 72 70 2d 3e 72 65 73 |e \fIint|erp->res|
|00001a70| 75 6c 74 5c 66 52 20 66 | 69 65 6c 64 20 69 73 20 |ult\fR f|ield is |
|00001a80| 6d 61 6e 61 67 65 64 2c | 0a 58 73 65 65 20 74 68 |managed,|.Xsee th|
|00001a90| 65 20 5c 66 42 54 63 6c | 5f 49 6e 74 65 72 70 5c |e \fBTcl|_Interp\|
|00001aa0| 66 52 20 6d 61 6e 20 70 | 61 67 65 2e 20 20 42 65 |fR man p|age. Be|
|00001ab0| 66 6f 72 65 20 69 6e 76 | 6f 6b 69 6e 67 20 61 20 |fore inv|oking a |
|00001ac0| 63 6f 6d 6d 61 6e 64 20 | 70 72 6f 63 65 64 75 72 |command |procedur|
|00001ad0| 65 2c 0a 58 5c 66 42 54 | 63 6c 5f 45 76 61 6c 5c |e,.X\fBT|cl_Eval\|
|00001ae0| 66 52 20 73 65 74 73 20 | 5c 66 49 69 6e 74 65 72 |fR sets |\fIinter|
|00001af0| 70 2d 3e 72 65 73 75 6c | 74 5c 66 52 20 74 6f 20 |p->resul|t\fR to |
|00001b00| 70 6f 69 6e 74 20 74 6f | 20 61 6e 20 65 6d 70 74 |point to| an empt|
|00001b10| 79 20 73 74 72 69 6e 67 | 2c 20 73 6f 20 73 69 6d |y string|, so sim|
|00001b20| 70 6c 65 0a 58 63 6f 6d | 6d 61 6e 64 73 20 63 61 |ple.Xcom|mands ca|
|00001b30| 6e 20 72 65 74 75 72 6e | 20 61 6e 20 65 6d 70 74 |n return| an empt|
|00001b40| 79 20 72 65 73 75 6c 74 | 20 62 79 20 64 6f 69 6e |y result| by doin|
|00001b50| 67 20 6e 6f 74 68 69 6e | 67 20 61 74 20 61 6c 6c |g nothin|g at all|
|00001b60| 2e 0a 58 2e 50 50 0a 58 | 54 68 65 20 63 6f 6e 74 |..X.PP.X|The cont|
|00001b70| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 5c 66 49 61 |ents of |the \fIa|
|00001b80| 72 67 76 5c 66 52 20 61 | 72 72 61 79 20 61 72 65 |rgv\fR a|rray are|
|00001b90| 20 63 6f 70 69 65 73 20 | 6d 61 64 65 20 62 79 20 | copies |made by |
|00001ba0| 74 68 65 20 54 63 6c 20 | 69 6e 74 65 72 70 72 65 |the Tcl |interpre|
|00001bb0| 74 65 72 0a 58 66 6f 72 | 20 74 68 65 20 75 73 65 |ter.Xfor| the use|
|00001bc0| 20 6f 66 20 5c 66 49 70 | 72 6f 63 5c 66 52 2e 20 | of \fIp|roc\fR. |
|00001bd0| 20 5c 66 49 50 72 6f 63 | 5c 66 52 20 6d 61 79 20 | \fIProc|\fR may |
|00001be0| 61 6c 74 65 72 20 61 6e | 79 20 6f 66 20 74 68 65 |alter an|y of the|
|00001bf0| 20 73 74 72 69 6e 67 73 | 0a 58 69 6e 20 5c 66 49 | strings|.Xin \fI|
|00001c00| 61 72 67 76 5c 66 52 2e | 20 20 48 6f 77 65 76 65 |argv\fR.| Howeve|
|00001c10| 72 2c 20 74 68 65 20 5c | 66 49 61 72 67 76 5c 66 |r, the \|fIargv\f|
|00001c20| 52 20 61 72 72 61 79 0a | 58 69 73 20 72 65 63 79 |R array.|Xis recy|
|00001c30| 63 6c 65 64 20 61 73 20 | 73 6f 6f 6e 20 61 73 20 |cled as |soon as |
|00001c40| 5c 66 49 70 72 6f 63 5c | 66 52 20 72 65 74 75 72 |\fIproc\|fR retur|
|00001c50| 6e 73 2c 20 73 6f 20 5c | 66 49 70 72 6f 63 5c 66 |ns, so \|fIproc\f|
|00001c60| 52 20 6d 75 73 74 20 6e | 6f 74 20 73 65 74 0a 58 |R must n|ot set.X|
|00001c70| 5c 66 49 69 6e 74 65 72 | 70 2d 3e 72 65 73 75 6c |\fIinter|p->resul|
|00001c80| 74 5c 66 52 20 74 6f 20 | 70 6f 69 6e 74 20 61 6e |t\fR to |point an|
|00001c90| 79 77 68 65 72 65 20 77 | 69 74 68 69 6e 20 74 68 |ywhere w|ithin th|
|00001ca0| 65 20 5c 66 49 61 72 67 | 76 5c 66 52 20 76 61 6c |e \fIarg|v\fR val|
|00001cb0| 75 65 73 20 28 63 61 6c | 6c 20 54 63 6c 5f 52 65 |ues (cal|l Tcl_Re|
|00001cc0| 74 75 72 6e 0a 58 77 69 | 74 68 20 73 74 61 74 75 |turn.Xwi|th statu|
|00001cd0| 73 20 5c 66 42 54 43 4c | 5f 56 4f 4c 41 54 49 4c |s \fBTCL|_VOLATIL|
|00001ce0| 45 5c 66 52 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |E\fR if |you want|
|00001cf0| 20 74 6f 20 72 65 74 75 | 72 6e 20 73 6f 6d 65 74 | to retu|rn somet|
|00001d00| 68 69 6e 67 20 66 72 6f | 6d 20 74 68 65 0a 58 5c |hing fro|m the.X\|
|00001d10| 66 49 61 72 67 76 5c 66 | 52 20 61 72 72 61 79 29 |fIargv\f|R array)|
|00001d20| 2e 0a 58 2e 50 50 0a 58 | 5c 66 49 44 65 6c 65 74 |..X.PP.X|\fIDelet|
|00001d30| 65 50 72 6f 63 5c 66 52 | 20 77 69 6c 6c 20 62 65 |eProc\fR| will be|
|00001d40| 20 69 6e 76 6f 6b 65 64 | 20 77 68 65 6e 20 28 69 | invoked| when (i|
|00001d50| 66 29 20 5c 66 49 63 6d | 64 4e 61 6d 65 5c 66 52 |f) \fIcm|dName\fR|
|00001d60| 20 69 73 20 64 65 6c 65 | 74 65 64 2e 0a 58 54 68 | is dele|ted..XTh|
|00001d70| 69 73 20 63 61 6e 20 6f | 63 63 75 72 20 74 68 72 |is can o|ccur thr|
|00001d80| 6f 75 67 68 20 61 20 63 | 61 6c 6c 20 74 6f 20 5c |ough a c|all to \|
|00001d90| 66 42 54 63 6c 5f 44 65 | 6c 65 74 65 43 6f 6d 6d |fBTcl_De|leteComm|
|00001da0| 61 6e 64 5c 66 52 20 6f | 72 20 5c 66 42 54 63 6c |and\fR o|r \fBTcl|
|00001db0| 5f 44 65 6c 65 74 65 49 | 6e 74 65 72 70 5c 66 52 |_DeleteI|nterp\fR|
|00001dc0| 2c 0a 58 6f 72 20 62 79 | 20 72 65 70 6c 61 63 69 |,.Xor by| replaci|
|00001dd0| 6e 67 20 5c 66 49 63 6d | 64 4e 61 6d 65 5c 66 52 |ng \fIcm|dName\fR|
|00001de0| 20 69 6e 20 61 6e 6f 74 | 68 65 72 20 63 61 6c 6c | in anot|her call|
|00001df0| 20 74 6f 20 54 63 6c 5f | 43 72 65 61 74 65 43 6f | to Tcl_|CreateCo|
|00001e00| 6d 6d 61 6e 64 2e 0a 58 | 5c 66 49 44 65 6c 65 74 |mmand..X|\fIDelet|
|00001e10| 65 50 72 6f 63 5c 66 52 | 20 69 73 20 69 6e 76 6f |eProc\fR| is invo|
|00001e20| 6b 65 64 20 62 65 66 6f | 72 65 20 74 68 65 20 63 |ked befo|re the c|
|00001e30| 6f 6d 6d 61 6e 64 20 69 | 73 20 64 65 6c 65 74 65 |ommand i|s delete|
|00001e40| 64 2c 20 61 6e 64 20 67 | 69 76 65 73 20 74 68 65 |d, and g|ives the|
|00001e50| 0a 58 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 61 6e |.Xapplic|ation an|
|00001e60| 20 6f 70 70 6f 72 74 75 | 6e 69 74 79 20 74 6f 20 | opportu|nity to |
|00001e70| 72 65 6c 65 61 73 65 20 | 61 6e 79 20 73 74 72 75 |release |any stru|
|00001e80| 63 74 75 72 65 73 20 61 | 73 73 6f 63 69 61 74 65 |ctures a|ssociate|
|00001e90| 64 0a 58 77 69 74 68 20 | 74 68 65 20 63 6f 6d 6d |d.Xwith |the comm|
|00001ea0| 61 6e 64 2e 20 20 5c 66 | 49 44 65 6c 65 74 65 50 |and. \f|IDeleteP|
|00001eb0| 72 6f 63 5c 66 52 20 73 | 68 6f 75 6c 64 20 68 61 |roc\fR s|hould ha|
|00001ec0| 76 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ve the f|ollowing|
|00001ed0| 20 66 6f 72 6d 3a 0a 58 | 2e 6e 66 0a 58 2e 52 53 | form:.X|.nf.X.RS|
|00001ee0| 0a 58 76 6f 69 64 0a 58 | 64 65 6c 65 74 65 50 72 |.Xvoid.X|deletePr|
|00001ef0| 6f 63 28 5c 66 49 63 6c | 69 65 6e 74 44 61 74 61 |oc(\fIcl|ientData|
|00001f00| 5c 66 50 29 0a 58 2e 52 | 53 0a 58 43 6c 69 65 6e |\fP).X.R|S.XClien|
|00001f10| 74 44 61 74 61 20 5c 66 | 49 63 6c 69 65 6e 74 44 |tData \f|IclientD|
|00001f20| 61 74 61 5c 66 50 3b 0a | 58 2e 52 45 0a 58 7b 0a |ata\fP;.|X.RE.X{.|
|00001f30| 58 7d 0a 58 2e 52 45 0a | 58 2e 66 69 0a 58 54 68 |X}.X.RE.|X.fi.XTh|
|00001f40| 65 20 5c 66 49 63 6c 69 | 65 6e 74 44 61 74 61 5c |e \fIcli|entData\|
|00001f50| 66 52 20 61 72 67 75 6d | 65 6e 74 20 77 69 6c 6c |fR argum|ent will|
|00001f60| 20 62 65 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 | be the |same as |
|00001f70| 74 68 65 20 5c 66 49 63 | 6c 69 65 6e 74 44 61 74 |the \fIc|lientDat|
|00001f80| 61 5c 66 52 0a 58 61 72 | 67 75 6d 65 6e 74 20 70 |a\fR.Xar|gument p|
|00001f90| 61 73 73 65 64 20 74 6f | 20 5c 66 42 54 63 6c 5f |assed to| \fBTcl_|
|00001fa0| 43 72 65 61 74 65 43 6f | 6d 6d 61 6e 64 5c 66 52 |CreateCo|mmand\fR|
|00001fb0| 2e 0a 58 0a 58 2e 53 48 | 20 4b 45 59 57 4f 52 44 |..X.X.SH| KEYWORD|
|00001fc0| 53 0a 58 62 69 6e 64 2c | 20 63 6f 6d 6d 61 6e 64 |S.Xbind,| command|
|00001fd0| 2c 20 63 72 65 61 74 65 | 2c 20 69 6e 74 65 72 70 |, create|, interp|
|00001fe0| 72 65 74 65 72 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |reter.EN|D_OF_FIL|
|00001ff0| 45 0a 69 66 20 74 65 73 | 74 20 34 36 38 32 20 2d |E.if tes|t 4682 -|
|00002000| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 43 72 65 61 |ne `wc -|c <'Crea|
|00002010| 74 65 43 6f 6d 6d 2e 33 | 27 60 3b 20 74 68 65 6e |teComm.3|'`; then|
|00002020| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00002030| 5c 22 27 43 72 65 61 74 | 65 43 6f 6d 6d 2e 33 27 |\"'Creat|eComm.3'|
|00002040| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00002050| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00002060| 23 20 65 6e 64 20 6f 66 | 20 27 43 72 65 61 74 65 |# end of| 'Create|
|00002070| 43 6f 6d 6d 2e 33 27 0a | 66 69 0a 69 66 20 74 65 |Comm.3'.|fi.if te|
|00002080| 73 74 20 2d 66 20 27 43 | 72 65 61 74 65 49 6e 74 |st -f 'C|reateInt|
|00002090| 65 2e 33 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |e.3' -a |"${1}" !|
|000020a0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000020b0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|000020c0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|000020d0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 43 72 |sting fi|le \"'Cr|
|000020e0| 65 61 74 65 49 6e 74 65 | 2e 33 27 5c 22 0a 65 6c |eateInte|.3'\".el|
|000020f0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00002100| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 43 72 65 61 |tracting| \"'Crea|
|00002110| 74 65 49 6e 74 65 2e 33 | 27 5c 22 20 5c 28 31 33 |teInte.3|'\" \(13|
|00002120| 37 32 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |72 chara|cters\).|
|00002130| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 43 |sed "s/^|X//" >'C|
|00002140| 72 65 61 74 65 49 6e 74 | 65 2e 33 27 20 3c 3c 27 |reateInt|e.3' <<'|
|00002150| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 27 5c |END_OF_F|ILE'.X'\|
|00002160| 22 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 38 39 |" Copyri|ght 1989|
|00002170| 20 52 65 67 65 6e 74 73 | 20 6f 66 20 74 68 65 20 | Regents| of the |
|00002180| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 43 61 |Universi|ty of Ca|
|00002190| 6c 69 66 6f 72 6e 69 61 | 0a 58 27 5c 22 20 50 65 |lifornia|.X'\" Pe|
|000021a0| 72 6d 69 73 73 69 6f 6e | 20 74 6f 20 75 73 65 2c |rmission| to use,|
|000021b0| 20 63 6f 70 79 2c 20 6d | 6f 64 69 66 79 2c 20 61 | copy, m|odify, a|
|000021c0| 6e 64 20 64 69 73 74 72 | 69 62 75 74 65 20 74 68 |nd distr|ibute th|
|000021d0| 69 73 0a 58 27 5c 22 20 | 64 6f 63 75 6d 65 6e 74 |is.X'\" |document|
|000021e0| 61 74 69 6f 6e 20 66 6f | 72 20 61 6e 79 20 70 75 |ation fo|r any pu|
|000021f0| 72 70 6f 73 65 20 61 6e | 64 20 77 69 74 68 6f 75 |rpose an|d withou|
|00002200| 74 20 66 65 65 20 69 73 | 20 68 65 72 65 62 79 0a |t fee is| hereby.|
|00002210| 58 27 5c 22 20 67 72 61 | 6e 74 65 64 2c 20 70 72 |X'\" gra|nted, pr|
|00002220| 6f 76 69 64 65 64 20 74 | 68 61 74 20 74 68 69 73 |ovided t|hat this|
|00002230| 20 6e 6f 74 69 63 65 20 | 61 70 70 65 61 72 73 20 | notice |appears |
|00002240| 69 6e 20 61 6c 6c 20 63 | 6f 70 69 65 73 2e 0a 58 |in all c|opies..X|
|00002250| 27 5c 22 20 54 68 65 20 | 55 6e 69 76 65 72 73 69 |'\" The |Universi|
|00002260| 74 79 20 6f 66 20 43 61 | 6c 69 66 6f 72 6e 69 61 |ty of Ca|lifornia|
|00002270| 20 6d 61 6b 65 73 20 6e | 6f 20 72 65 70 72 65 73 | makes n|o repres|
|00002280| 65 6e 74 61 74 69 6f 6e | 73 20 61 62 6f 75 74 0a |entation|s about.|
|00002290| 58 27 5c 22 20 74 68 65 | 20 73 75 69 74 61 62 69 |X'\" the| suitabi|
|000022a0| 6c 69 74 79 20 6f 66 20 | 74 68 69 73 20 6d 61 74 |lity of |this mat|
|000022b0| 65 72 69 61 6c 20 66 6f | 72 20 61 6e 79 20 70 75 |erial fo|r any pu|
|000022c0| 72 70 6f 73 65 2e 20 20 | 49 74 20 69 73 0a 58 27 |rpose. |It is.X'|
|000022d0| 5c 22 20 70 72 6f 76 69 | 64 65 64 20 22 61 73 20 |\" provi|ded "as |
|000022e0| 69 73 22 20 77 69 74 68 | 6f 75 74 20 65 78 70 72 |is" with|out expr|
|000022f0| 65 73 73 20 6f 72 20 69 | 6d 70 6c 69 65 64 20 77 |ess or i|mplied w|
|00002300| 61 72 72 61 6e 74 79 2e | 0a 58 27 5c 22 20 0a 58 |arranty.|.X'\" .X|
|00002310| 27 5c 22 20 24 48 65 61 | 64 65 72 3a 20 2f 73 70 |'\" $Hea|der: /sp|
|00002320| 72 69 74 65 2f 73 72 63 | 2f 6c 69 62 2f 74 63 6c |rite/src|/lib/tcl|
|00002330| 2f 52 43 53 2f 54 63 6c | 5f 43 72 65 61 74 65 49 |/RCS/Tcl|_CreateI|
|00002340| 6e 74 65 72 70 2e 6d 61 | 6e 2c 76 20 31 2e 32 20 |nterp.ma|n,v 1.2 |
|00002350| 38 39 2f 30 33 2f 32 34 | 20 31 34 3a 31 36 3a 30 |89/03/24| 14:16:0|
|00002360| 30 20 6f 75 73 74 65 72 | 20 45 78 70 20 24 20 53 |0 ouster| Exp $ S|
|00002370| 50 52 49 54 45 20 28 42 | 65 72 6b 65 6c 65 79 29 |PRITE (B|erkeley)|
|00002380| 0a 58 27 5c 22 20 0a 58 | 2e 73 6f 20 5c 2a 28 5d |.X'\" .X|.so \*(]|
|00002390| 6c 74 6d 61 63 2e 73 70 | 72 69 74 65 0a 58 2e 48 |ltmac.sp|rite.X.H|
|000023a0| 53 20 54 63 6c 5f 43 72 | 65 61 74 65 49 6e 74 65 |S Tcl_Cr|eateInte|
|000023b0| 72 70 20 74 63 6c 0a 58 | 2e 42 53 0a 58 2e 53 48 |rp tcl.X|.BS.X.SH|
|000023c0| 20 4e 41 4d 45 0a 58 54 | 63 6c 5f 43 72 65 61 74 | NAME.XT|cl_Creat|
|000023d0| 65 49 6e 74 65 72 70 20 | 5c 2d 20 73 65 74 20 75 |eInterp |\- set u|
|000023e0| 70 20 61 20 6e 65 77 20 | 54 63 6c 20 63 6f 6d 6d |p a new |Tcl comm|
|000023f0| 61 6e 64 20 69 6e 74 65 | 72 70 72 65 74 65 72 0a |and inte|rpreter.|
|00002400| 58 2e 53 48 20 53 59 4e | 4f 50 53 49 53 0a 58 2e |X.SH SYN|OPSIS.X.|
|00002410| 6e 66 0a 58 5c 66 42 23 | 69 6e 63 6c 75 64 65 20 |nf.X\fB#|include |
|00002420| 3c 74 63 6c 2e 68 3e 5c | 66 52 0a 58 2e 73 70 0a |<tcl.h>\|fR.X.sp.|
|00002430| 58 54 63 6c 5f 49 6e 74 | 65 72 70 20 2a 0a 58 5c |XTcl_Int|erp *.X\|
|00002440| 66 42 54 63 6c 5f 43 72 | 65 61 74 65 49 6e 74 65 |fBTcl_Cr|eateInte|
|00002450| 72 70 5c 66 52 28 29 0a | 58 2e 42 45 0a 58 0a 58 |rp\fR().|X.BE.X.X|
|00002460| 2e 53 48 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.SH DESC|RIPTION.|
|00002470| 58 2e 50 50 0a 58 5c 66 | 42 54 63 6c 5f 43 72 65 |X.PP.X\f|BTcl_Cre|
|00002480| 61 74 65 49 6e 74 65 72 | 70 5c 66 52 20 63 72 65 |ateInter|p\fR cre|
|00002490| 61 74 65 73 20 61 20 6e | 65 77 20 69 6e 74 65 72 |ates a n|ew inter|
|000024a0| 70 72 65 74 65 72 20 73 | 74 72 75 63 74 75 72 65 |preter s|tructure|
|000024b0| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 0a 58 61 20 | and ret|urns.Xa |
|000024c0| 74 6f 6b 65 6e 20 66 6f | 72 20 69 74 2e 20 20 54 |token fo|r it. T|
|000024d0| 68 65 20 74 6f 6b 65 6e | 20 69 73 20 72 65 71 75 |he token| is requ|
|000024e0| 69 72 65 64 20 69 6e 20 | 63 61 6c 6c 73 20 74 6f |ired in |calls to|
|000024f0| 20 6d 6f 73 74 20 6f 74 | 68 65 72 20 54 63 6c 0a | most ot|her Tcl.|
|00002500| 58 70 72 6f 63 65 64 75 | 72 65 73 2c 20 73 75 63 |Xprocedu|res, suc|
|00002510| 68 20 61 73 20 5c 66 42 | 54 63 6c 5f 43 72 65 61 |h as \fB|Tcl_Crea|
|00002520| 74 65 43 6f 6d 6d 61 6e | 64 5c 66 52 2c 20 5c 66 |teComman|d\fR, \f|
|00002530| 42 54 63 6c 5f 45 76 61 | 6c 5c 66 52 2c 20 61 6e |BTcl_Eva|l\fR, an|
|00002540| 64 0a 58 5c 66 42 54 63 | 6c 5f 44 65 6c 65 74 65 |d.X\fBTc|l_Delete|
|00002550| 49 6e 74 65 72 70 5c 66 | 52 2e 0a 58 43 6c 69 65 |Interp\f|R..XClie|
|00002560| 6e 74 73 20 61 72 65 20 | 6f 6e 6c 79 20 61 6c 6c |nts are |only all|
|00002570| 6f 77 65 64 20 74 6f 20 | 61 63 63 65 73 73 20 74 |owed to |access t|
|00002580| 68 65 20 66 69 65 6c 64 | 73 20 6f 66 20 54 63 6c |he field|s of Tcl|
|00002590| 5f 49 6e 74 65 72 70 20 | 73 74 72 75 63 74 75 72 |_Interp |structur|
|000025a0| 65 73 0a 58 72 65 6c 61 | 74 65 64 20 74 6f 20 63 |es.Xrela|ted to c|
|000025b0| 6f 6d 6d 61 6e 64 20 72 | 65 74 75 72 6e 20 76 61 |ommand r|eturn va|
|000025c0| 6c 75 65 73 3b 20 20 73 | 65 65 20 74 68 65 20 54 |lues; s|ee the T|
|000025d0| 63 6c 5f 49 6e 74 65 72 | 70 0a 58 61 6e 64 20 5c |cl_Inter|p.Xand \|
|000025e0| 66 42 54 63 6c 5f 43 72 | 65 61 74 65 43 6f 6d 6d |fBTcl_Cr|eateComm|
|000025f0| 61 6e 64 5c 66 52 20 6d | 61 6e 20 70 61 67 65 73 |and\fR m|an pages|
|00002600| 20 66 6f 72 20 64 65 74 | 61 69 6c 73 2e 0a 58 54 | for det|ails..XT|
|00002610| 68 65 20 6e 65 77 20 69 | 6e 74 65 72 70 72 65 74 |he new i|nterpret|
|00002620| 65 72 20 69 73 20 69 6e | 69 74 69 61 6c 69 7a 65 |er is in|itialize|
|00002630| 64 20 77 69 74 68 20 6e | 6f 20 64 65 66 69 6e 65 |d with n|o define|
|00002640| 64 20 76 61 72 69 61 62 | 6c 65 73 20 61 6e 64 20 |d variab|les and |
|00002650| 6f 6e 6c 79 0a 58 74 68 | 65 20 62 75 69 6c 74 2d |only.Xth|e built-|
|00002660| 69 6e 20 54 63 6c 20 63 | 6f 6d 6d 61 6e 64 73 2e |in Tcl c|ommands.|
|00002670| 20 20 54 6f 20 62 69 6e | 64 20 69 6e 20 61 64 64 | To bin|d in add|
|00002680| 69 74 69 6f 6e 61 6c 20 | 63 6f 6d 6d 61 6e 64 73 |itional |commands|
|00002690| 2c 20 63 61 6c 6c 0a 58 | 5c 66 42 54 63 6c 5f 43 |, call.X|\fBTcl_C|
|000026a0| 72 65 61 74 65 43 6f 6d | 6d 61 6e 64 5c 66 52 2e |reateCom|mand\fR.|
|000026b0| 0a 58 0a 58 2e 53 48 20 | 4b 45 59 57 4f 52 44 53 |.X.X.SH |KEYWORDS|
|000026c0| 0a 58 63 6f 6d 6d 61 6e | 64 2c 20 63 72 65 61 74 |.Xcomman|d, creat|
|000026d0| 65 2c 20 69 6e 74 65 72 | 70 72 65 74 65 72 0a 45 |e, inter|preter.E|
|000026e0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|000026f0| 73 74 20 31 33 37 32 20 | 2d 6e 65 20 60 77 63 20 |st 1372 |-ne `wc |
|00002700| 2d 63 20 3c 27 43 72 65 | 61 74 65 49 6e 74 65 2e |-c <'Cre|ateInte.|
|00002710| 33 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |3'`; the|n. ec|
|00002720| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 43 72 65 61 |ho shar:| \"'Crea|
|00002730| 74 65 49 6e 74 65 2e 33 | 27 5c 22 20 75 6e 70 61 |teInte.3|'\" unpa|
|00002740| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00002750| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00002760| 66 20 27 43 72 65 61 74 | 65 49 6e 74 65 2e 33 27 |f 'Creat|eInte.3'|
|00002770| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00002780| 43 72 65 61 74 65 54 72 | 61 63 2e 33 27 20 2d 61 |CreateTr|ac.3' -a|
|00002790| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|000027a0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|000027b0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|000027c0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000027d0| 69 6c 65 20 5c 22 27 43 | 72 65 61 74 65 54 72 61 |ile \"'C|reateTra|
|000027e0| 63 2e 33 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |c.3'\".e|lse.echo|
|000027f0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00002800| 67 20 5c 22 27 43 72 65 | 61 74 65 54 72 61 63 2e |g \"'Cre|ateTrac.|
|00002810| 33 27 5c 22 20 5c 28 34 | 33 32 32 20 63 68 61 72 |3'\" \(4|322 char|
|00002820| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00002830| 5e 58 2f 2f 22 20 3e 27 | 43 72 65 61 74 65 54 72 |^X//" >'|CreateTr|
|00002840| 61 63 2e 33 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |ac.3' <<|'END_OF_|
|00002850| 46 49 4c 45 27 0a 58 27 | 5c 22 20 43 6f 70 79 72 |FILE'.X'|\" Copyr|
|00002860| 69 67 68 74 20 31 39 38 | 39 20 52 65 67 65 6e 74 |ight 198|9 Regent|
|00002870| 73 20 6f 66 20 74 68 65 | 20 55 6e 69 76 65 72 73 |s of the| Univers|
|00002880| 69 74 79 20 6f 66 20 43 | 61 6c 69 66 6f 72 6e 69 |ity of C|aliforni|
|00002890| 61 0a 58 27 5c 22 20 50 | 65 72 6d 69 73 73 69 6f |a.X'\" P|ermissio|
|000028a0| 6e 20 74 6f 20 75 73 65 | 2c 20 63 6f 70 79 2c 20 |n to use|, copy, |
|000028b0| 6d 6f 64 69 66 79 2c 20 | 61 6e 64 20 64 69 73 74 |modify, |and dist|
|000028c0| 72 69 62 75 74 65 20 74 | 68 69 73 0a 58 27 5c 22 |ribute t|his.X'\"|
|000028d0| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|000028e0| 6f 72 20 61 6e 79 20 70 | 75 72 70 6f 73 65 20 61 |or any p|urpose a|
|000028f0| 6e 64 20 77 69 74 68 6f | 75 74 20 66 65 65 20 69 |nd witho|ut fee i|
|00002900| 73 20 68 65 72 65 62 79 | 0a 58 27 5c 22 20 67 72 |s hereby|.X'\" gr|
|00002910| 61 6e 74 65 64 2c 20 70 | 72 6f 76 69 64 65 64 20 |anted, p|rovided |
|00002920| 74 68 61 74 20 74 68 69 | 73 20 6e 6f 74 69 63 65 |that thi|s notice|
|00002930| 20 61 70 70 65 61 72 73 | 20 69 6e 20 61 6c 6c 20 | appears| in all |
|00002940| 63 6f 70 69 65 73 2e 0a | 58 27 5c 22 20 54 68 65 |copies..|X'\" The|
|00002950| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 43 | Univers|ity of C|
|00002960| 61 6c 69 66 6f 72 6e 69 | 61 20 6d 61 6b 65 73 20 |aliforni|a makes |
|00002970| 6e 6f 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |no repre|sentatio|
|00002980| 6e 73 20 61 62 6f 75 74 | 0a 58 27 5c 22 20 74 68 |ns about|.X'\" th|
|00002990| 65 20 73 75 69 74 61 62 | 69 6c 69 74 79 20 6f 66 |e suitab|ility of|
|000029a0| 20 74 68 69 73 20 6d 61 | 74 65 72 69 61 6c 20 66 | this ma|terial f|
|000029b0| 6f 72 20 61 6e 79 20 70 | 75 72 70 6f 73 65 2e 20 |or any p|urpose. |
|000029c0| 20 49 74 20 69 73 0a 58 | 27 5c 22 20 70 72 6f 76 | It is.X|'\" prov|
|000029d0| 69 64 65 64 20 22 61 73 | 20 69 73 22 20 77 69 74 |ided "as| is" wit|
|000029e0| 68 6f 75 74 20 65 78 70 | 72 65 73 73 20 6f 72 20 |hout exp|ress or |
|000029f0| 69 6d 70 6c 69 65 64 20 | 77 61 72 72 61 6e 74 79 |implied |warranty|
|00002a00| 2e 0a 58 27 5c 22 20 0a | 58 27 5c 22 20 24 48 65 |..X'\" .|X'\" $He|
|00002a10| 61 64 65 72 3a 20 2f 73 | 70 72 69 74 65 2f 73 72 |ader: /s|prite/sr|
|00002a20| 63 2f 6c 69 62 2f 74 63 | 6c 2f 52 43 53 2f 54 63 |c/lib/tc|l/RCS/Tc|
|00002a30| 6c 5f 43 72 65 61 74 65 | 54 72 61 63 65 2e 6d 61 |l_Create|Trace.ma|
|00002a40| 6e 2c 76 20 31 2e 32 20 | 38 39 2f 30 33 2f 32 34 |n,v 1.2 |89/03/24|
|00002a50| 20 31 34 3a 31 36 3a 30 | 31 20 6f 75 73 74 65 72 | 14:16:0|1 ouster|
|00002a60| 20 45 78 70 20 24 20 53 | 50 52 49 54 45 20 28 42 | Exp $ S|PRITE (B|
|00002a70| 65 72 6b 65 6c 65 79 29 | 0a 58 27 5c 22 20 0a 58 |erkeley)|.X'\" .X|
|00002a80| 2e 73 6f 20 5c 2a 28 5d | 6c 74 6d 61 63 2e 73 70 |.so \*(]|ltmac.sp|
|00002a90| 72 69 74 65 0a 58 2e 48 | 53 20 54 63 6c 5f 43 72 |rite.X.H|S Tcl_Cr|
|00002aa0| 65 61 74 65 54 72 61 63 | 65 20 74 63 6c 0a 58 2e |eateTrac|e tcl.X.|
|00002ab0| 42 53 0a 58 2e 53 48 20 | 4e 41 4d 45 0a 58 54 63 |BS.X.SH |NAME.XTc|
|00002ac0| 6c 5f 43 72 65 61 74 65 | 54 72 61 63 65 20 5c 2d |l_Create|Trace \-|
|00002ad0| 20 61 72 72 61 6e 67 65 | 20 66 6f 72 20 63 6f 6d | arrange| for com|
|00002ae0| 6d 61 6e 64 20 65 78 65 | 63 75 74 69 6f 6e 20 74 |mand exe|cution t|
|00002af0| 6f 20 62 65 20 74 72 61 | 63 65 64 0a 58 2e 53 48 |o be tra|ced.X.SH|
|00002b00| 20 53 59 4e 4f 50 53 49 | 53 0a 58 2e 6e 66 0a 58 | SYNOPSI|S.X.nf.X|
|00002b10| 5c 66 42 23 69 6e 63 6c | 75 64 65 20 3c 74 63 6c |\fB#incl|ude <tcl|
|00002b20| 2e 68 3e 5c 66 52 0a 58 | 2e 73 70 0a 58 54 63 6c |.h>\fR.X|.sp.XTcl|
|00002b30| 5f 54 72 61 63 65 0a 58 | 5c 66 42 54 63 6c 5f 43 |_Trace.X|\fBTcl_C|
|00002b40| 72 65 61 74 65 54 72 61 | 63 65 5c 66 52 28 5c 66 |reateTra|ce\fR(\f|
|00002b50| 49 69 6e 74 65 72 70 2c | 20 6c 65 76 65 6c 2c 20 |Iinterp,| level, |
|00002b60| 70 72 6f 63 2c 20 63 6c | 69 65 6e 74 44 61 74 61 |proc, cl|ientData|
|00002b70| 5c 66 52 29 0a 58 2e 53 | 48 20 41 52 47 55 4d 45 |\fR).X.S|H ARGUME|
|00002b80| 4e 54 53 0a 58 2e 41 53 | 20 43 6c 69 65 6e 74 44 |NTS.X.AS| ClientD|
|00002b90| 61 74 61 20 28 63 6c 69 | 65 6e 74 44 61 74 61 29 |ata (cli|entData)|
|00002ba0| 28 29 0a 58 2e 41 50 20 | 54 63 6c 5f 49 6e 74 65 |().X.AP |Tcl_Inte|
|00002bb0| 72 70 20 2a 69 6e 74 65 | 72 70 20 69 6e 0a 58 49 |rp *inte|rp in.XI|
|00002bc0| 6e 74 65 72 70 72 65 74 | 65 72 20 69 6e 20 77 68 |nterpret|er in wh|
|00002bd0| 69 63 68 20 74 6f 20 63 | 72 65 61 74 65 20 6e 65 |ich to c|reate ne|
|00002be0| 77 20 63 6f 6d 6d 61 6e | 64 2e 0a 58 2e 41 50 20 |w comman|d..X.AP |
|00002bf0| 69 6e 74 20 6c 65 76 65 | 6c 20 69 6e 0a 58 4f 6e |int leve|l in.XOn|
|00002c00| 6c 79 20 63 6f 6d 6d 61 | 6e 64 73 20 61 74 20 6f |ly comma|nds at o|
|00002c10| 72 20 62 65 6c 6f 77 20 | 74 68 69 73 20 6e 65 73 |r below |this nes|
|00002c20| 74 69 6e 67 20 6c 65 76 | 65 6c 20 77 69 6c 6c 20 |ting lev|el will |
|00002c30| 62 65 20 74 72 61 63 65 | 64 2e 20 20 31 20 6d 65 |be trace|d. 1 me|
|00002c40| 61 6e 73 0a 58 74 6f 70 | 2d 6c 65 76 65 6c 20 63 |ans.Xtop|-level c|
|00002c50| 6f 6d 6d 61 6e 64 73 20 | 6f 6e 6c 79 2c 20 32 20 |ommands |only, 2 |
|00002c60| 6d 65 61 6e 73 20 74 6f | 70 2d 6c 65 76 65 6c 20 |means to|p-level |
|00002c70| 63 6f 6d 6d 61 6e 64 73 | 20 6f 72 20 74 68 6f 73 |commands| or thos|
|00002c80| 65 20 74 68 61 74 20 61 | 72 65 0a 58 69 6e 76 6f |e that a|re.Xinvo|
|00002c90| 6b 65 64 20 61 73 20 69 | 6d 6d 65 64 69 61 74 65 |ked as i|mmediate|
|00002ca0| 20 63 6f 6e 73 65 71 75 | 65 6e 63 65 73 20 6f 66 | consequ|ences of|
|00002cb0| 20 65 78 65 63 75 74 69 | 6e 67 20 74 6f 70 2d 6c | executi|ng top-l|
|00002cc0| 65 76 65 6c 20 63 6f 6d | 6d 61 6e 64 73 0a 58 28 |evel com|mands.X(|
|00002cd0| 70 72 6f 63 65 64 75 72 | 65 20 62 6f 64 69 65 73 |procedur|e bodies|
|00002ce0| 2c 20 62 72 61 63 6b 65 | 74 65 64 20 63 6f 6d 6d |, bracke|ted comm|
|00002cf0| 61 6e 64 73 2c 20 65 74 | 63 2e 29 20 61 6e 64 20 |ands, et|c.) and |
|00002d00| 73 6f 20 6f 6e 2e 0a 58 | 2e 41 50 20 76 6f 69 64 |so on..X|.AP void|
|00002d10| 20 28 2a 70 72 6f 63 29 | 28 29 20 69 6e 0a 58 50 | (*proc)|() in.XP|
|00002d20| 72 6f 63 65 64 75 72 65 | 20 74 6f 20 63 61 6c 6c |rocedure| to call|
|00002d30| 20 66 6f 72 20 65 61 63 | 68 20 63 6f 6d 6d 61 6e | for eac|h comman|
|00002d40| 64 20 74 68 61 74 27 73 | 20 65 78 65 63 75 74 65 |d that's| execute|
|00002d50| 64 2e 20 20 53 65 65 20 | 62 65 6c 6f 77 20 66 6f |d. See |below fo|
|00002d60| 72 0a 58 64 65 74 61 69 | 6c 73 20 6f 6e 20 74 68 |r.Xdetai|ls on th|
|00002d70| 65 20 63 61 6c 6c 69 6e | 67 20 73 65 71 75 65 6e |e callin|g sequen|
|00002d80| 63 65 2e 0a 58 2e 41 50 | 20 43 6c 69 65 6e 74 44 |ce..X.AP| ClientD|
|00002d90| 61 74 61 20 63 6c 69 65 | 6e 74 44 61 74 61 20 69 |ata clie|ntData i|
|00002da0| 6e 0a 58 41 72 62 69 74 | 72 61 72 79 20 6f 6e 65 |n.XArbit|rary one|
|00002db0| 2d 77 6f 72 64 20 76 61 | 6c 75 65 20 74 6f 20 70 |-word va|lue to p|
|00002dc0| 61 73 73 20 74 6f 20 5c | 66 49 70 72 6f 63 5c 66 |ass to \|fIproc\f|
|00002dd0| 52 2e 0a 58 2e 42 45 0a | 58 0a 58 2e 53 48 20 44 |R..X.BE.|X.X.SH D|
|00002de0| 45 53 43 52 49 50 54 49 | 4f 4e 0a 58 2e 50 50 0a |ESCRIPTI|ON.X.PP.|
|00002df0| 58 5c 66 42 54 63 6c 5f | 43 72 65 61 74 65 54 72 |X\fBTcl_|CreateTr|
|00002e00| 61 63 65 5c 66 52 20 61 | 72 72 61 6e 67 65 73 20 |ace\fR a|rranges |
|00002e10| 66 6f 72 20 63 6f 6d 6d | 61 6e 64 20 74 72 61 63 |for comm|and trac|
|00002e20| 69 6e 67 2e 20 20 46 72 | 6f 6d 20 6e 6f 77 20 6f |ing. Fr|om now o|
|00002e30| 6e 2c 20 5c 66 49 70 72 | 6f 63 5c 66 52 0a 58 77 |n, \fIpr|oc\fR.Xw|
|00002e40| 69 6c 6c 20 62 65 20 69 | 6e 76 6f 6b 65 64 20 62 |ill be i|nvoked b|
|00002e50| 65 66 6f 72 65 20 54 63 | 6c 20 63 61 6c 6c 73 20 |efore Tc|l calls |
|00002e60| 63 6f 6d 6d 61 6e 64 20 | 70 72 6f 63 65 64 75 72 |command |procedur|
|00002e70| 65 73 20 74 6f 20 70 72 | 6f 63 65 73 73 0a 58 63 |es to pr|ocess.Xc|
|00002e80| 6f 6d 6d 61 6e 64 73 20 | 69 6e 20 5c 66 49 69 6e |ommands |in \fIin|
|00002e90| 74 65 72 70 5c 66 52 2e | 20 20 54 68 65 20 72 65 |terp\fR.| The re|
|00002ea0| 74 75 72 6e 20 76 61 6c | 75 65 20 66 72 6f 6d 0a |turn val|ue from.|
|00002eb0| 58 5c 66 42 54 63 6c 5f | 43 72 65 61 74 65 54 72 |X\fBTcl_|CreateTr|
|00002ec0| 61 63 65 5c 66 52 20 69 | 73 20 61 20 74 6f 6b 65 |ace\fR i|s a toke|
|00002ed0| 6e 20 66 6f 72 20 74 68 | 65 20 74 72 61 63 65 2c |n for th|e trace,|
|00002ee0| 0a 58 77 68 69 63 68 20 | 6d 61 79 20 62 65 20 70 |.Xwhich |may be p|
|00002ef0| 61 73 73 65 64 20 74 6f | 20 5c 66 42 54 63 6c 5f |assed to| \fBTcl_|
|00002f00| 44 65 6c 65 74 65 54 72 | 61 63 65 5c 66 52 20 74 |DeleteTr|ace\fR t|
|00002f10| 6f 20 72 65 6d 6f 76 65 | 20 74 68 65 20 74 72 61 |o remove| the tra|
|00002f20| 63 65 2e 20 20 54 68 65 | 72 65 20 6d 61 79 0a 58 |ce. The|re may.X|
|00002f30| 62 65 20 6d 61 6e 79 20 | 74 72 61 63 65 73 20 69 |be many |traces i|
|00002f40| 6e 20 65 66 66 65 63 74 | 20 73 69 6d 75 6c 74 61 |n effect| simulta|
|00002f50| 6e 65 6f 75 73 6c 79 20 | 66 6f 72 20 74 68 65 20 |neously |for the |
|00002f60| 73 61 6d 65 20 63 6f 6d | 6d 61 6e 64 20 69 6e 74 |same com|mand int|
|00002f70| 65 72 70 72 65 74 65 72 | 2e 0a 58 2e 50 50 0a 58 |erpreter|..X.PP.X|
|00002f80| 5c 66 49 50 72 6f 63 5c | 66 52 20 73 68 6f 75 6c |\fIProc\|fR shoul|
|00002f90| 64 20 68 61 76 65 20 74 | 68 65 20 66 6f 6c 6c 6f |d have t|he follo|
|00002fa0| 77 69 6e 67 20 73 74 72 | 75 63 74 75 72 65 3a 0a |wing str|ucture:.|
|00002fb0| 58 2e 6e 66 0a 58 2e 52 | 53 0a 58 76 6f 69 64 0a |X.nf.X.R|S.Xvoid.|
|00002fc0| 58 70 72 6f 63 28 5c 66 | 49 63 6c 69 65 6e 74 44 |Xproc(\f|IclientD|
|00002fd0| 61 74 61 2c 20 69 6e 74 | 65 72 70 2c 20 6c 65 76 |ata, int|erp, lev|
|00002fe0| 65 6c 2c 20 63 6f 6d 6d | 61 6e 64 2c 20 63 6d 64 |el, comm|and, cmd|
|00002ff0| 50 72 6f 63 2c 20 63 6d | 64 43 6c 69 65 6e 74 44 |Proc, cm|dClientD|
|00003000| 61 74 61 2c 20 61 72 67 | 63 2c 20 61 72 67 76 5c |ata, arg|c, argv\|
|00003010| 66 50 29 0a 58 2e 52 53 | 0a 58 43 6c 69 65 6e 74 |fP).X.RS|.XClient|
|00003020| 44 61 74 61 20 5c 66 49 | 63 6c 69 65 6e 74 44 61 |Data \fI|clientDa|
|00003030| 74 61 5c 66 50 3b 0a 58 | 54 63 6c 5f 49 6e 74 65 |ta\fP;.X|Tcl_Inte|
|00003040| 72 70 20 2a 5c 66 49 69 | 6e 74 65 72 70 5c 66 50 |rp *\fIi|nterp\fP|
|00003050| 3b 0a 58 69 6e 74 20 5c | 66 49 6c 65 76 65 6c 5c |;.Xint \|fIlevel\|
|00003060| 66 50 3b 0a 58 63 68 61 | 72 20 2a 5c 66 49 63 6f |fP;.Xcha|r *\fIco|
|00003070| 6d 6d 61 6e 64 5c 66 50 | 3b 0a 58 69 6e 74 20 28 |mmand\fP|;.Xint (|
|00003080| 2a 5c 66 49 63 6d 64 50 | 72 6f 63 5c 66 50 29 28 |*\fIcmdP|roc\fP)(|
|00003090| 29 3b 0a 58 43 6c 69 65 | 6e 74 44 61 74 61 20 5c |);.XClie|ntData \|
|000030a0| 66 49 63 6d 64 43 6c 69 | 65 6e 74 44 61 74 61 5c |fIcmdCli|entData\|
|000030b0| 66 50 3b 0a 58 69 6e 74 | 20 5c 66 49 61 72 67 63 |fP;.Xint| \fIargc|
|000030c0| 5c 66 50 3b 0a 58 63 68 | 61 72 20 2a 5c 66 49 61 |\fP;.Xch|ar *\fIa|
|000030d0| 72 67 76 5c 66 50 5b 5d | 3b 0a 58 2e 52 45 0a 58 |rgv\fP[]|;.X.RE.X|
|000030e0| 7b 0a 58 7d 0a 58 2e 52 | 45 0a 58 2e 66 69 0a 58 |{.X}.X.R|E.X.fi.X|
|000030f0| 54 68 65 20 5c 66 49 63 | 6c 69 65 6e 74 44 61 74 |The \fIc|lientDat|
|00003100| 61 5c 66 50 20 61 6e 64 | 20 5c 66 49 69 6e 74 65 |a\fP and| \fIinte|
|00003110| 72 70 5c 66 50 20 70 61 | 72 61 6d 65 74 65 72 73 |rp\fP pa|rameters|
|00003120| 20 61 72 65 0a 58 63 6f | 70 69 65 73 20 6f 66 20 | are.Xco|pies of |
|00003130| 74 68 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |the corr|espondin|
|00003140| 67 20 61 72 67 75 6d 65 | 6e 74 73 20 67 69 76 65 |g argume|nts give|
|00003150| 6e 20 74 6f 20 5c 66 42 | 54 63 6c 5f 43 72 65 61 |n to \fB|Tcl_Crea|
|00003160| 74 65 54 72 61 63 65 5c | 66 52 2e 0a 58 5c 66 49 |teTrace\|fR..X\fI|
|00003170| 43 6c 69 65 6e 74 44 61 | 74 61 5c 66 52 20 74 79 |ClientDa|ta\fR ty|
|00003180| 70 69 63 61 6c 6c 79 20 | 70 6f 69 6e 74 73 20 74 |pically |points t|
|00003190| 6f 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |o an app|lication|
|000031a0| 2d 73 70 65 63 69 66 69 | 63 0a 58 64 61 74 61 20 |-specifi|c.Xdata |
|000031b0| 73 74 72 75 63 74 75 72 | 65 20 74 68 61 74 20 64 |structur|e that d|
|000031c0| 65 73 63 72 69 62 65 73 | 20 77 68 61 74 20 74 6f |escribes| what to|
|000031d0| 20 64 6f 20 77 68 65 6e | 20 5c 66 49 70 72 6f 63 | do when| \fIproc|
|000031e0| 5c 66 52 0a 58 69 73 20 | 69 6e 76 6f 6b 65 64 2e |\fR.Xis |invoked.|
|000031f0| 20 20 5c 66 49 4c 65 76 | 65 6c 5c 66 52 20 67 69 | \fILev|el\fR gi|
|00003200| 76 65 73 20 74 68 65 20 | 6e 65 73 74 69 6e 67 20 |ves the |nesting |
|00003210| 6c 65 76 65 6c 20 6f 66 | 20 74 68 65 20 63 6f 6d |level of| the com|
|00003220| 6d 61 6e 64 0a 58 28 31 | 20 66 6f 72 20 74 6f 70 |mand.X(1| for top|
|00003230| 2d 6c 65 76 65 6c 20 63 | 6f 6d 6d 61 6e 64 73 20 |-level c|ommands |
|00003240| 70 61 73 73 65 64 20 74 | 6f 20 5c 66 42 54 63 6c |passed t|o \fBTcl|
|00003250| 5f 45 76 61 6c 5c 66 52 | 20 62 79 20 74 68 65 20 |_Eval\fR| by the |
|00003260| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 0a 58 32 20 |applicat|ion,.X2 |
|00003270| 66 6f 72 20 74 68 65 20 | 6e 65 78 74 2d 6c 65 76 |for the |next-lev|
|00003280| 65 6c 20 63 6f 6d 6d 61 | 6e 64 73 20 70 61 73 73 |el comma|nds pass|
|00003290| 65 64 20 74 6f 20 5c 66 | 42 54 63 6c 5f 45 76 61 |ed to \f|BTcl_Eva|
|000032a0| 6c 5c 66 52 20 61 73 20 | 70 61 72 74 20 6f 66 20 |l\fR as |part of |
|000032b0| 70 61 72 73 69 6e 67 0a | 58 6f 72 20 69 6e 74 65 |parsing.|Xor inte|
|000032c0| 72 70 72 65 74 69 6e 67 | 20 6c 65 76 65 6c 2d 31 |rpreting| level-1|
|000032d0| 20 63 6f 6d 6d 61 6e 64 | 73 2c 20 61 6e 64 20 73 | command|s, and s|
|000032e0| 6f 20 6f 6e 29 2e 20 20 | 5c 66 49 43 6f 6d 6d 61 |o on). |\fIComma|
|000032f0| 6e 64 5c 66 52 0a 58 70 | 6f 69 6e 74 73 20 74 6f |nd\fR.Xp|oints to|
|00003300| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|00003310| 6e 69 6e 67 20 74 68 65 | 20 74 65 78 74 20 6f 66 |ning the| text of|
|00003320| 20 74 68 65 0a 58 63 6f | 6d 6d 61 6e 64 2c 20 62 | the.Xco|mmand, b|
|00003330| 65 66 6f 72 65 20 61 6e | 79 20 61 72 67 75 6d 65 |efore an|y argume|
|00003340| 6e 74 20 73 75 62 73 74 | 69 74 75 74 69 6f 6e 2e |nt subst|itution.|
|00003350| 0a 58 5c 66 49 43 6d 64 | 50 72 6f 63 5c 66 52 20 |.X\fICmd|Proc\fR |
|00003360| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 61 64 64 |contains| the add|
|00003370| 72 65 73 73 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d |ress of |the comm|
|00003380| 61 6e 64 20 70 72 6f 63 | 65 64 75 72 65 20 74 68 |and proc|edure th|
|00003390| 61 74 0a 58 77 69 6c 6c | 20 62 65 20 63 61 6c 6c |at.Xwill| be call|
|000033a0| 65 64 20 74 6f 20 70 72 | 6f 63 65 73 73 20 74 68 |ed to pr|ocess th|
|000033b0| 65 20 63 6f 6d 6d 61 6e | 64 20 28 69 2e 65 2e 20 |e comman|d (i.e. |
|000033c0| 74 68 65 20 5c 66 49 70 | 72 6f 63 5c 66 52 20 61 |the \fIp|roc\fR a|
|000033d0| 72 67 75 6d 65 6e 74 0a | 58 6f 66 20 73 6f 6d 65 |rgument.|Xof some|
|000033e0| 20 70 72 65 76 69 6f 75 | 73 20 63 61 6c 6c 20 74 | previou|s call t|
|000033f0| 6f 20 5c 66 42 54 63 6c | 5f 43 72 65 61 74 65 43 |o \fBTcl|_CreateC|
|00003400| 6f 6d 6d 61 6e 64 5c 66 | 52 29 20 61 6e 64 20 5c |ommand\f|R) and \|
|00003410| 66 49 63 6d 64 43 6c 69 | 65 6e 74 44 61 74 61 5c |fIcmdCli|entData\|
|00003420| 66 52 0a 58 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |fR.Xcont|ains the|
|00003430| 20 61 73 73 6f 63 69 61 | 74 65 64 20 63 6c 69 65 | associa|ted clie|
|00003440| 6e 74 20 64 61 74 61 20 | 66 6f 72 20 5c 66 49 63 |nt data |for \fIc|
|00003450| 6d 64 50 72 6f 63 5c 66 | 52 20 28 74 68 65 20 5c |mdProc\f|R (the \|
|00003460| 66 49 63 6c 69 65 6e 74 | 44 61 74 61 5c 66 52 0a |fIclient|Data\fR.|
|00003470| 58 76 61 6c 75 65 20 70 | 61 73 73 65 64 20 74 6f |Xvalue p|assed to|
|00003480| 20 5c 66 42 54 63 6c 5f | 43 72 65 61 74 65 43 6f | \fBTcl_|CreateCo|
|00003490| 6d 6d 61 6e 64 5c 66 52 | 29 2e 20 20 5c 66 49 41 |mmand\fR|). \fIA|
|000034a0| 72 67 63 5c 66 52 20 61 | 6e 64 20 5c 66 49 61 72 |rgc\fR a|nd \fIar|
|000034b0| 67 76 5c 66 52 20 67 69 | 76 65 0a 58 74 68 65 20 |gv\fR gi|ve.Xthe |
|000034c0| 66 69 6e 61 6c 20 61 72 | 67 75 6d 65 6e 74 20 69 |final ar|gument i|
|000034d0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 68 61 74 20 |nformati|on that |
|000034e0| 77 69 6c 6c 20 62 65 20 | 70 61 73 73 65 64 20 74 |will be |passed t|
|000034f0| 6f 20 5c 66 49 63 6d 64 | 50 72 6f 63 5c 66 52 2c |o \fIcmd|Proc\fR,|
|00003500| 20 61 66 74 65 72 0a 58 | 63 6f 6d 6d 61 6e 64 2c | after.X|command,|
|00003510| 20 76 61 72 69 61 62 6c | 65 2c 20 61 6e 64 20 62 | variabl|e, and b|
|00003520| 61 63 6b 73 6c 61 73 68 | 20 73 75 62 73 74 69 74 |ackslash| substit|
|00003530| 75 74 69 6f 6e 2e 0a 58 | 5c 66 49 50 72 6f 63 5c |ution..X|\fIProc\|
|00003540| 66 52 20 6d 75 73 74 20 | 6e 6f 74 20 6d 6f 64 69 |fR must |not modi|
|00003550| 66 79 20 74 68 65 20 5c | 66 49 63 6f 6d 6d 61 6e |fy the \|fIcomman|
|00003560| 64 5c 66 52 20 6f 72 20 | 5c 66 49 61 72 67 76 5c |d\fR or |\fIargv\|
|00003570| 66 52 20 73 74 72 69 6e | 67 73 2e 0a 58 2e 50 50 |fR strin|gs..X.PP|
|00003580| 0a 58 54 72 61 63 69 6e | 67 20 77 69 6c 6c 20 6f |.XTracin|g will o|
|00003590| 6e 6c 79 20 6f 63 63 75 | 72 20 66 6f 72 20 63 6f |nly occu|r for co|
|000035a0| 6d 6d 61 6e 64 73 20 61 | 74 20 6e 65 73 74 69 6e |mmands a|t nestin|
|000035b0| 67 20 6c 65 76 65 6c 20 | 6c 65 73 73 20 74 68 61 |g level |less tha|
|000035c0| 6e 0a 58 6f 72 20 65 71 | 75 61 6c 20 74 6f 20 74 |n.Xor eq|ual to t|
|000035d0| 68 65 20 5c 66 49 6c 65 | 76 65 6c 5c 66 52 20 70 |he \fIle|vel\fR p|
|000035e0| 61 72 61 6d 65 74 65 72 | 20 28 69 2e 65 2e 20 74 |arameter| (i.e. t|
|000035f0| 68 65 20 5c 66 49 6c 65 | 76 65 6c 5c 66 52 0a 58 |he \fIle|vel\fR.X|
|00003600| 70 61 72 61 6d 65 74 65 | 72 20 74 6f 20 5c 66 49 |paramete|r to \fI|
|00003610| 70 72 6f 63 5c 66 52 20 | 77 69 6c 6c 20 61 6c 77 |proc\fR |will alw|
|00003620| 61 79 73 20 62 65 20 6c | 65 73 73 20 74 68 61 6e |ays be l|ess than|
|00003630| 20 6f 72 20 65 71 75 61 | 6c 20 74 6f 20 74 68 65 | or equa|l to the|
|00003640| 0a 58 5c 66 49 6c 65 76 | 65 6c 5c 66 52 20 70 61 |.X\fIlev|el\fR pa|
|00003650| 72 61 6d 65 74 65 72 20 | 74 6f 20 5c 66 42 54 63 |rameter |to \fBTc|
|00003660| 6c 5f 43 72 65 61 74 65 | 54 72 61 63 65 5c 66 52 |l_Create|Trace\fR|
|00003670| 29 2e 0a 58 2e 50 50 0a | 58 43 61 6c 6c 73 20 74 |)..X.PP.|XCalls t|
|00003680| 6f 20 5c 66 49 70 72 6f | 63 5c 66 52 20 77 69 6c |o \fIpro|c\fR wil|
|00003690| 6c 20 62 65 20 6d 61 64 | 65 20 62 79 20 74 68 65 |l be mad|e by the|
|000036a0| 20 54 63 6c 20 70 61 72 | 73 65 72 20 69 6d 6d 65 | Tcl par|ser imme|
|000036b0| 64 69 61 74 65 6c 79 20 | 62 65 66 6f 72 65 0a 58 |diately |before.X|
|000036c0| 69 74 20 63 61 6c 6c 73 | 20 74 68 65 20 63 6f 6d |it calls| the com|
|000036d0| 6d 61 6e 64 20 70 72 6f | 63 65 64 75 72 65 20 66 |mand pro|cedure f|
|000036e0| 6f 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 28 |or the c|ommand (|
|000036f0| 5c 66 49 63 6d 64 50 72 | 6f 63 5c 66 52 29 2e 20 |\fIcmdPr|oc\fR). |
|00003700| 20 54 68 69 73 0a 58 6f | 63 63 75 72 73 20 61 66 | This.Xo|ccurs af|
|00003710| 74 65 72 20 61 72 67 75 | 6d 65 6e 74 20 70 61 72 |ter argu|ment par|
|00003720| 73 69 6e 67 20 61 6e 64 | 20 73 75 62 73 74 69 74 |sing and| substit|
|00003730| 75 74 69 6f 6e 2c 20 73 | 6f 20 74 72 61 63 69 6e |ution, s|o tracin|
|00003740| 67 20 66 6f 72 0a 58 73 | 75 62 73 74 69 74 75 74 |g for.Xs|ubstitut|
|00003750| 65 64 20 63 6f 6d 6d 61 | 6e 64 73 20 6f 63 63 75 |ed comma|nds occu|
|00003760| 72 73 20 62 65 66 6f 72 | 65 20 74 72 61 63 69 6e |rs befor|e tracin|
|00003770| 67 20 6f 66 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |g of the| command|
|00003780| 73 0a 58 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |s.Xconta|ining th|
|00003790| 65 20 73 75 62 73 74 69 | 74 75 74 69 6f 6e 73 2e |e substi|tutions.|
|000037a0| 20 20 49 66 20 74 68 65 | 72 65 20 69 73 20 61 20 | If the|re is a |
|000037b0| 73 79 6e 74 61 78 20 65 | 72 72 6f 72 20 69 6e 20 |syntax e|rror in |
|000037c0| 61 0a 58 63 6f 6d 6d 61 | 6e 64 2c 20 6f 72 20 69 |a.Xcomma|nd, or i|
|000037d0| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 63 6f |f there |is no co|
|000037e0| 6d 6d 61 6e 64 20 70 72 | 6f 63 65 64 75 72 65 20 |mmand pr|ocedure |
|000037f0| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00003800| 61 0a 58 63 6f 6d 6d 61 | 6e 64 20 6e 61 6d 65 2c |a.Xcomma|nd name,|
|00003810| 20 74 68 65 6e 20 6e 6f | 20 74 72 61 63 69 6e 67 | then no| tracing|
|00003820| 20 77 69 6c 6c 20 6f 63 | 63 75 72 20 66 6f 72 20 | will oc|cur for |
|00003830| 74 68 61 74 20 63 6f 6d | 6d 61 6e 64 2e 20 20 49 |that com|mand. I|
|00003840| 66 20 61 0a 58 73 74 72 | 69 6e 67 20 70 61 73 73 |f a.Xstr|ing pass|
|00003850| 65 64 20 74 6f 20 54 63 | 6c 5f 45 76 61 6c 20 63 |ed to Tc|l_Eval c|
|00003860| 6f 6e 74 61 69 6e 73 20 | 6d 75 6c 74 69 70 6c 65 |ontains |multiple|
|00003870| 20 63 6f 6d 6d 61 6e 64 | 73 20 28 62 72 61 63 6b | command|s (brack|
|00003880| 65 74 65 64 2c 20 6f 72 | 0a 58 6f 6e 20 64 69 66 |eted, or|.Xon dif|
|00003890| 66 65 72 65 6e 74 20 6c | 69 6e 65 73 29 20 74 68 |ferent l|ines) th|
|000038a0| 65 6e 20 6d 75 6c 74 69 | 70 6c 65 20 63 61 6c 6c |en multi|ple call|
|000038b0| 73 20 74 6f 20 5c 66 49 | 70 72 6f 63 5c 66 52 20 |s to \fI|proc\fR |
|000038c0| 77 69 6c 6c 20 6f 63 63 | 75 72 2c 0a 58 6f 6e 65 |will occ|ur,.Xone|
|000038d0| 20 66 6f 72 20 65 61 63 | 68 20 63 6f 6d 6d 61 6e | for eac|h comman|
|000038e0| 64 2e 20 20 54 68 65 20 | 5c 66 49 63 6f 6d 6d 61 |d. The |\fIcomma|
|000038f0| 6e 64 5c 66 52 20 73 74 | 72 69 6e 67 20 66 6f 72 |nd\fR st|ring for|
|00003900| 20 65 61 63 68 20 6f 66 | 20 74 68 65 73 65 0a 58 | each of| these.X|
|00003910| 74 72 61 63 65 20 63 61 | 6c 6c 73 20 77 69 6c 6c |trace ca|lls will|
|00003920| 20 72 65 66 6c 65 63 74 | 20 6f 6e 6c 79 20 61 20 | reflect| only a |
|00003930| 73 69 6e 67 6c 65 20 63 | 6f 6d 6d 61 6e 64 2c 20 |single c|ommand, |
|00003940| 6e 6f 74 20 74 68 65 20 | 65 6e 74 69 72 65 20 73 |not the |entire s|
|00003950| 74 72 69 6e 67 0a 58 70 | 61 73 73 65 64 20 74 6f |tring.Xp|assed to|
|00003960| 20 54 63 6c 5f 45 76 61 | 6c 2e 0a 58 0a 58 2e 53 | Tcl_Eva|l..X.X.S|
|00003970| 48 20 4b 45 59 57 4f 52 | 44 53 0a 58 63 6f 6d 6d |H KEYWOR|DS.Xcomm|
|00003980| 61 6e 64 2c 20 63 72 65 | 61 74 65 2c 20 69 6e 74 |and, cre|ate, int|
|00003990| 65 72 70 72 65 74 65 72 | 2c 20 74 72 61 63 65 0a |erpreter|, trace.|
|000039a0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000039b0| 65 73 74 20 34 33 32 32 | 20 2d 6e 65 20 60 77 63 |est 4322| -ne `wc|
|000039c0| 20 2d 63 20 3c 27 43 72 | 65 61 74 65 54 72 61 63 | -c <'Cr|eateTrac|
|000039d0| 2e 33 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.3'`; th|en. e|
|000039e0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 43 72 65 |cho shar|: \"'Cre|
|000039f0| 61 74 65 54 72 61 63 2e | 33 27 5c 22 20 75 6e 70 |ateTrac.|3'\" unp|
|00003a00| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003a10| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00003a20| 6f 66 20 27 43 72 65 61 | 74 65 54 72 61 63 2e 33 |of 'Crea|teTrac.3|
|00003a30| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00003a40| 27 44 65 6c 65 74 65 43 | 6f 6d 6d 2e 33 27 20 2d |'DeleteC|omm.3' -|
|00003a50| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00003a60| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00003a70| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00003a80| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00003a90| 66 69 6c 65 20 5c 22 27 | 44 65 6c 65 74 65 43 6f |file \"'|DeleteCo|
|00003aa0| 6d 6d 2e 33 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |mm.3'\".|else.ech|
|00003ab0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00003ac0| 6e 67 20 5c 22 27 44 65 | 6c 65 74 65 43 6f 6d 6d |ng \"'De|leteComm|
|00003ad0| 2e 33 27 5c 22 20 5c 28 | 31 33 37 35 20 63 68 61 |.3'\" \(|1375 cha|
|00003ae0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00003af0| 2f 5e 58 2f 2f 22 20 3e | 27 44 65 6c 65 74 65 43 |/^X//" >|'DeleteC|
|00003b00| 6f 6d 6d 2e 33 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |omm.3' <|<'END_OF|
|00003b10| 5f 46 49 4c 45 27 0a 58 | 27 5c 22 20 43 6f 70 79 |_FILE'.X|'\" Copy|
|00003b20| 72 69 67 68 74 20 31 39 | 38 39 20 52 65 67 65 6e |right 19|89 Regen|
|00003b30| 74 73 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |ts of th|e Univer|
|00003b40| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00003b50| 69 61 0a 58 27 5c 22 20 | 50 65 72 6d 69 73 73 69 |ia.X'\" |Permissi|
|00003b60| 6f 6e 20 74 6f 20 75 73 | 65 2c 20 63 6f 70 79 2c |on to us|e, copy,|
|00003b70| 20 6d 6f 64 69 66 79 2c | 20 61 6e 64 20 64 69 73 | modify,| and dis|
|00003b80| 74 72 69 62 75 74 65 20 | 74 68 69 73 0a 58 27 5c |tribute |this.X'\|
|00003b90| 22 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |" docume|ntation |
|00003ba0| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 20 |for any |purpose |
|00003bb0| 61 6e 64 20 77 69 74 68 | 6f 75 74 20 66 65 65 20 |and with|out fee |
|00003bc0| 69 73 20 68 65 72 65 62 | 79 0a 58 27 5c 22 20 67 |is hereb|y.X'\" g|
|00003bd0| 72 61 6e 74 65 64 2c 20 | 70 72 6f 76 69 64 65 64 |ranted, |provided|
|00003be0| 20 74 68 61 74 20 74 68 | 69 73 20 6e 6f 74 69 63 | that th|is notic|
|00003bf0| 65 20 61 70 70 65 61 72 | 73 20 69 6e 20 61 6c 6c |e appear|s in all|
|00003c00| 20 63 6f 70 69 65 73 2e | 0a 58 27 5c 22 20 54 68 | copies.|.X'\" Th|
|00003c10| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00003c20| 43 61 6c 69 66 6f 72 6e | 69 61 20 6d 61 6b 65 73 |Californ|ia makes|
|00003c30| 20 6e 6f 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 | no repr|esentati|
|00003c40| 6f 6e 73 20 61 62 6f 75 | 74 0a 58 27 5c 22 20 74 |ons abou|t.X'\" t|
|00003c50| 68 65 20 73 75 69 74 61 | 62 69 6c 69 74 79 20 6f |he suita|bility o|
|00003c60| 66 20 74 68 69 73 20 6d | 61 74 65 72 69 61 6c 20 |f this m|aterial |
|00003c70| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 2e |for any |purpose.|
|00003c80| 20 20 49 74 20 69 73 0a | 58 27 5c 22 20 70 72 6f | It is.|X'\" pro|
|00003c90| 76 69 64 65 64 20 22 61 | 73 20 69 73 22 20 77 69 |vided "a|s is" wi|
|00003ca0| 74 68 6f 75 74 20 65 78 | 70 72 65 73 73 20 6f 72 |thout ex|press or|
|00003cb0| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|00003cc0| 79 2e 0a 58 27 5c 22 20 | 0a 58 27 5c 22 20 24 48 |y..X'\" |.X'\" $H|
|00003cd0| 65 61 64 65 72 3a 20 2f | 73 70 72 69 74 65 2f 73 |eader: /|sprite/s|
|00003ce0| 72 63 2f 6c 69 62 2f 74 | 63 6c 2f 52 43 53 2f 54 |rc/lib/t|cl/RCS/T|
|00003cf0| 63 6c 5f 44 65 6c 65 74 | 65 43 6f 6d 6d 61 6e 64 |cl_Delet|eCommand|
|00003d00| 2e 6d 61 6e 2c 76 20 31 | 2e 32 20 38 39 2f 30 33 |.man,v 1|.2 89/03|
|00003d10| 2f 32 34 20 31 34 3a 31 | 36 3a 30 33 20 6f 75 73 |/24 14:1|6:03 ous|
|00003d20| 74 65 72 20 45 78 70 20 | 24 20 53 50 52 49 54 45 |ter Exp |$ SPRITE|
|00003d30| 20 28 42 65 72 6b 65 6c | 65 79 29 0a 58 27 5c 22 | (Berkel|ey).X'\"|
|00003d40| 20 0a 58 2e 73 6f 20 5c | 2a 28 5d 6c 74 6d 61 63 | .X.so \|*(]ltmac|
|00003d50| 2e 73 70 72 69 74 65 0a | 58 2e 48 53 20 54 63 6c |.sprite.|X.HS Tcl|
|00003d60| 5f 44 65 6c 65 74 65 43 | 6f 6d 6d 61 6e 64 20 74 |_DeleteC|ommand t|
|00003d70| 63 6c 0a 58 2e 42 53 0a | 58 2e 53 48 20 4e 41 4d |cl.X.BS.|X.SH NAM|
|00003d80| 45 0a 58 54 63 6c 5f 44 | 65 6c 65 74 65 43 6f 6d |E.XTcl_D|eleteCom|
|00003d90| 6d 61 6e 64 20 5c 2d 20 | 72 65 6d 6f 76 65 20 61 |mand \- |remove a|
|00003da0| 20 63 6f 6d 6d 61 6e 64 | 20 66 72 6f 6d 20 61 20 | command| from a |
|00003db0| 54 63 6c 20 69 6e 74 65 | 72 70 72 65 74 65 72 0a |Tcl inte|rpreter.|
|00003dc0| 58 2e 53 48 20 53 59 4e | 4f 50 53 49 53 0a 58 2e |X.SH SYN|OPSIS.X.|
|00003dd0| 6e 66 0a 58 5c 66 42 23 | 69 6e 63 6c 75 64 65 20 |nf.X\fB#|include |
|00003de0| 3c 74 63 6c 2e 68 3e 5c | 66 52 0a 58 2e 73 70 0a |<tcl.h>\|fR.X.sp.|
|00003df0| 58 5c 66 42 54 63 6c 5f | 44 65 6c 65 74 65 43 6f |X\fBTcl_|DeleteCo|
|00003e00| 6d 6d 61 6e 64 5c 66 52 | 28 5c 66 49 69 6e 74 65 |mmand\fR|(\fIinte|
|00003e10| 72 70 2c 20 63 6d 64 4e | 61 6d 65 5c 66 52 29 0a |rp, cmdN|ame\fR).|
|00003e20| 58 2e 53 48 20 41 52 47 | 55 4d 45 4e 54 53 0a 58 |X.SH ARG|UMENTS.X|
|00003e30| 2e 41 53 20 54 63 6c 5f | 49 6e 74 65 72 70 20 2a |.AS Tcl_|Interp *|
|00003e40| 63 6d 64 4e 61 6d 65 0a | 58 2e 41 50 20 54 63 6c |cmdName.|X.AP Tcl|
|00003e50| 5f 49 6e 74 65 72 70 20 | 2a 69 6e 74 65 72 70 20 |_Interp |*interp |
|00003e60| 69 6e 0a 58 49 6e 74 65 | 72 70 72 65 74 65 72 20 |in.XInte|rpreter |
|00003e70| 69 6e 20 77 68 69 63 68 | 20 74 6f 20 64 65 6c 65 |in which| to dele|
|00003e80| 74 65 20 63 6f 6d 6d 61 | 6e 64 2e 0a 58 2e 41 50 |te comma|nd..X.AP|
|00003e90| 20 63 68 61 72 20 2a 63 | 6d 64 4e 61 6d 65 20 69 | char *c|mdName i|
|00003ea0| 6e 0a 58 4e 61 6d 65 20 | 6f 66 20 63 6f 6d 6d 61 |n.XName |of comma|
|00003eb0| 6e 64 20 74 6f 20 62 65 | 20 64 65 6c 65 74 65 64 |nd to be| deleted|
|00003ec0| 2e 0a 58 2e 42 45 0a 58 | 0a 58 2e 53 48 20 44 45 |..X.BE.X|.X.SH DE|
|00003ed0| 53 43 52 49 50 54 49 4f | 4e 0a 58 2e 50 50 0a 58 |SCRIPTIO|N.X.PP.X|
|00003ee0| 54 68 69 73 20 70 72 6f | 63 65 64 75 72 65 20 64 |This pro|cedure d|
|00003ef0| 65 6c 65 74 65 73 20 61 | 20 63 6f 6d 6d 61 6e 64 |eletes a| command|
|00003f00| 20 66 72 6f 6d 20 61 20 | 63 6f 6d 6d 61 6e 64 20 | from a |command |
|00003f10| 69 6e 74 65 72 70 72 65 | 74 65 72 2e 0a 58 4f 6e |interpre|ter..XOn|
|00003f20| 63 65 20 74 68 65 20 63 | 61 6c 6c 20 63 6f 6d 70 |ce the c|all comp|
|00003f30| 6c 65 74 65 73 2c 20 61 | 74 74 65 6d 70 74 73 20 |letes, a|ttempts |
|00003f40| 74 6f 20 69 6e 76 6f 6b | 65 20 5c 66 49 63 6d 64 |to invok|e \fIcmd|
|00003f50| 4e 61 6d 65 5c 66 52 20 | 69 6e 0a 58 5c 66 49 69 |Name\fR |in.X\fIi|
|00003f60| 6e 74 65 72 70 5c 66 52 | 20 77 69 6c 6c 20 72 65 |nterp\fR| will re|
|00003f70| 73 75 6c 74 20 69 6e 20 | 65 72 72 6f 72 73 2e 20 |sult in |errors. |
|00003f80| 20 49 66 20 5c 66 49 63 | 6d 64 4e 61 6d 65 5c 66 | If \fIc|mdName\f|
|00003f90| 52 20 69 73 6e 27 74 20 | 62 6f 75 6e 64 0a 58 61 |R isn't |bound.Xa|
|00003fa0| 73 20 61 20 63 6f 6d 6d | 61 6e 64 20 69 6e 20 5c |s a comm|and in \|
|00003fb0| 66 49 69 6e 74 65 72 70 | 5c 66 52 20 74 68 65 6e |fIinterp|\fR then|
|00003fc0| 20 5c 66 42 54 63 6c 5f | 44 65 6c 65 74 65 43 6f | \fBTcl_|DeleteCo|
|00003fd0| 6d 6d 61 6e 64 5c 66 52 | 20 64 6f 65 73 20 6e 6f |mmand\fR| does no|
|00003fe0| 74 68 69 6e 67 2e 0a 58 | 54 68 65 72 65 20 61 72 |thing..X|There ar|
|00003ff0| 65 20 6e 6f 20 72 65 73 | 74 72 69 63 74 69 6f 6e |e no res|triction|
|00004000| 73 20 6f 6e 20 5c 66 49 | 63 6d 64 4e 61 6d 65 5c |s on \fI|cmdName\|
|00004010| 66 52 3a 20 20 69 74 20 | 6d 61 79 20 72 65 66 65 |fR: it |may refe|
|00004020| 72 20 74 6f 0a 58 61 20 | 62 75 69 6c 74 2d 69 6e |r to.Xa |built-in|
|00004030| 20 63 6f 6d 6d 61 6e 64 | 2c 20 61 6e 20 61 70 70 | command|, an app|
|00004040| 6c 69 63 61 74 69 6f 6e | 2d 73 70 65 63 69 66 69 |lication|-specifi|
|00004050| 63 20 63 6f 6d 6d 61 6e | 64 2c 20 6f 72 20 61 20 |c comman|d, or a |
|00004060| 54 63 6c 20 70 72 6f 63 | 65 64 75 72 65 2e 0a 58 |Tcl proc|edure..X|
|00004070| 0a 58 2e 53 48 20 4b 45 | 59 57 4f 52 44 53 0a 58 |.X.SH KE|YWORDS.X|
|00004080| 63 6f 6d 6d 61 6e 64 2c | 20 64 65 6c 65 74 65 2c |command,| delete,|
|00004090| 20 69 6e 74 65 72 70 72 | 65 74 65 72 0a 45 4e 44 | interpr|eter.END|
|000040a0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000040b0| 20 31 33 37 35 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1375 -n|e `wc -c|
|000040c0| 20 3c 27 44 65 6c 65 74 | 65 43 6f 6d 6d 2e 33 27 | <'Delet|eComm.3'|
|000040d0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|000040e0| 20 73 68 61 72 3a 20 5c | 22 27 44 65 6c 65 74 65 | shar: \|"'Delete|
|000040f0| 43 6f 6d 6d 2e 33 27 5c | 22 20 75 6e 70 61 63 6b |Comm.3'\|" unpack|
|00004100| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004110| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00004120| 27 44 65 6c 65 74 65 43 | 6f 6d 6d 2e 33 27 0a 66 |'DeleteC|omm.3'.f|
|00004130| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 44 65 |i.if tes|t -f 'De|
|00004140| 6c 65 74 65 49 6e 74 65 | 2e 33 27 20 2d 61 20 22 |leteInte|.3' -a "|
|00004150| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004160| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00004170| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00004180| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00004190| 65 20 5c 22 27 44 65 6c | 65 74 65 49 6e 74 65 2e |e \"'Del|eteInte.|
|000041a0| 33 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |3'\".els|e.echo s|
|000041b0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|000041c0| 5c 22 27 44 65 6c 65 74 | 65 49 6e 74 65 2e 33 27 |\"'Delet|eInte.3'|
|000041d0| 5c 22 20 5c 28 31 31 38 | 30 20 63 68 61 72 61 63 |\" \(118|0 charac|
|000041e0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|000041f0| 2f 2f 22 20 3e 27 44 65 | 6c 65 74 65 49 6e 74 65 |//" >'De|leteInte|
|00004200| 2e 33 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.3' <<'E|ND_OF_FI|
|00004210| 4c 45 27 0a 58 27 5c 22 | 20 43 6f 70 79 72 69 67 |LE'.X'\"| Copyrig|
|00004220| 68 74 20 31 39 38 39 20 | 52 65 67 65 6e 74 73 20 |ht 1989 |Regents |
|00004230| 6f 66 20 74 68 65 20 55 | 6e 69 76 65 72 73 69 74 |of the U|niversit|
|00004240| 79 20 6f 66 20 43 61 6c | 69 66 6f 72 6e 69 61 0a |y of Cal|ifornia.|
|00004250| 58 27 5c 22 20 50 65 72 | 6d 69 73 73 69 6f 6e 20 |X'\" Per|mission |
|00004260| 74 6f 20 75 73 65 2c 20 | 63 6f 70 79 2c 20 6d 6f |to use, |copy, mo|
|00004270| 64 69 66 79 2c 20 61 6e | 64 20 64 69 73 74 72 69 |dify, an|d distri|
|00004280| 62 75 74 65 20 74 68 69 | 73 0a 58 27 5c 22 20 64 |bute thi|s.X'\" d|
|00004290| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|000042a0| 20 61 6e 79 20 70 75 72 | 70 6f 73 65 20 61 6e 64 | any pur|pose and|
|000042b0| 20 77 69 74 68 6f 75 74 | 20 66 65 65 20 69 73 20 | without| fee is |
|000042c0| 68 65 72 65 62 79 0a 58 | 27 5c 22 20 67 72 61 6e |hereby.X|'\" gran|
|000042d0| 74 65 64 2c 20 70 72 6f | 76 69 64 65 64 20 74 68 |ted, pro|vided th|
|000042e0| 61 74 20 74 68 69 73 20 | 6e 6f 74 69 63 65 20 61 |at this |notice a|
|000042f0| 70 70 65 61 72 73 20 69 | 6e 20 61 6c 6c 20 63 6f |ppears i|n all co|
|00004300| 70 69 65 73 2e 0a 58 27 | 5c 22 20 54 68 65 20 55 |pies..X'|\" The U|
|00004310| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 43 61 6c |niversit|y of Cal|
|00004320| 69 66 6f 72 6e 69 61 20 | 6d 61 6b 65 73 20 6e 6f |ifornia |makes no|
|00004330| 20 72 65 70 72 65 73 65 | 6e 74 61 74 69 6f 6e 73 | represe|ntations|
|00004340| 20 61 62 6f 75 74 0a 58 | 27 5c 22 20 74 68 65 20 | about.X|'\" the |
|00004350| 73 75 69 74 61 62 69 6c | 69 74 79 20 6f 66 20 74 |suitabil|ity of t|
|00004360| 68 69 73 20 6d 61 74 65 | 72 69 61 6c 20 66 6f 72 |his mate|rial for|
|00004370| 20 61 6e 79 20 70 75 72 | 70 6f 73 65 2e 20 20 49 | any pur|pose. I|
|00004380| 74 20 69 73 0a 58 27 5c | 22 20 70 72 6f 76 69 64 |t is.X'\|" provid|
|00004390| 65 64 20 22 61 73 20 69 | 73 22 20 77 69 74 68 6f |ed "as i|s" witho|
|000043a0| 75 74 20 65 78 70 72 65 | 73 73 20 6f 72 20 69 6d |ut expre|ss or im|
|000043b0| 70 6c 69 65 64 20 77 61 | 72 72 61 6e 74 79 2e 0a |plied wa|rranty..|
|000043c0| 58 27 5c 22 20 0a 58 27 | 5c 22 20 24 48 65 61 64 |X'\" .X'|\" $Head|
|000043d0| 65 72 3a 20 2f 73 70 72 | 69 74 65 2f 73 72 63 2f |er: /spr|ite/src/|
|000043e0| 6c 69 62 2f 74 63 6c 2f | 52 43 53 2f 54 63 6c 5f |lib/tcl/|RCS/Tcl_|
|000043f0| 44 65 6c 65 74 65 49 6e | 74 65 72 70 2e 6d 61 6e |DeleteIn|terp.man|
|00004400| 2c 76 20 31 2e 32 20 38 | 39 2f 30 33 2f 32 34 20 |,v 1.2 8|9/03/24 |
|00004410| 31 34 3a 31 36 3a 30 36 | 20 6f 75 73 74 65 72 20 |14:16:06| ouster |
|00004420| 45 78 70 20 24 20 53 50 | 52 49 54 45 20 28 42 65 |Exp $ SP|RITE (Be|
|00004430| 72 6b 65 6c 65 79 29 0a | 58 27 5c 22 20 0a 58 2e |rkeley).|X'\" .X.|
|00004440| 73 6f 20 5c 2a 28 5d 6c | 74 6d 61 63 2e 73 70 72 |so \*(]l|tmac.spr|
|00004450| 69 74 65 0a 58 2e 48 53 | 20 54 63 6c 5f 44 65 6c |ite.X.HS| Tcl_Del|
|00004460| 65 74 65 49 6e 74 65 72 | 70 20 74 63 6c 0a 58 2e |eteInter|p tcl.X.|
|00004470| 42 53 0a 58 2e 53 48 20 | 4e 41 4d 45 0a 58 54 63 |BS.X.SH |NAME.XTc|
|00004480| 6c 5f 44 65 6c 65 74 65 | 49 6e 74 65 72 70 20 5c |l_Delete|Interp \|
|00004490| 2d 20 64 65 73 74 72 6f | 79 20 61 20 54 63 6c 20 |- destro|y a Tcl |
|000044a0| 63 6f 6d 6d 61 6e 64 20 | 69 6e 74 65 72 70 72 65 |command |interpre|
|000044b0| 74 65 72 0a 58 2e 53 48 | 20 53 59 4e 4f 50 53 49 |ter.X.SH| SYNOPSI|
|000044c0| 53 0a 58 2e 6e 66 0a 58 | 5c 66 42 23 69 6e 63 6c |S.X.nf.X|\fB#incl|
|000044d0| 75 64 65 20 3c 74 63 6c | 2e 68 3e 5c 66 52 0a 58 |ude <tcl|.h>\fR.X|
|000044e0| 2e 73 70 0a 58 5c 66 42 | 54 63 6c 5f 44 65 6c 65 |.sp.X\fB|Tcl_Dele|
|000044f0| 74 65 49 6e 74 65 72 70 | 5c 66 52 28 5c 66 49 69 |teInterp|\fR(\fIi|
|00004500| 6e 74 65 72 70 5c 66 52 | 29 0a 58 2e 53 48 20 41 |nterp\fR|).X.SH A|
|00004510| 52 47 55 4d 45 4e 54 53 | 0a 58 2e 41 53 20 54 63 |RGUMENTS|.X.AS Tc|
|00004520| 6c 5f 49 6e 74 65 72 70 | 20 2a 69 6e 74 65 72 70 |l_Interp| *interp|
|00004530| 0a 58 2e 41 50 20 54 63 | 6c 5f 49 6e 74 65 72 70 |.X.AP Tc|l_Interp|
|00004540| 20 2a 69 6e 74 65 72 70 | 20 69 6e 0a 58 54 6f 6b | *interp| in.XTok|
|00004550| 65 6e 20 66 6f 72 20 69 | 6e 74 65 72 70 72 65 74 |en for i|nterpret|
|00004560| 65 72 20 74 6f 20 62 65 | 20 64 65 73 74 72 6f 79 |er to be| destroy|
|00004570| 65 64 2e 0a 58 2e 42 45 | 0a 58 0a 58 2e 53 48 20 |ed..X.BE|.X.X.SH |
|00004580| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 2e 50 50 |DESCRIPT|ION.X.PP|
|00004590| 0a 58 54 68 69 73 20 70 | 72 6f 63 65 64 75 72 65 |.XThis p|rocedure|
|000045a0| 20 64 65 73 74 72 6f 79 | 73 20 61 20 63 6f 6d 6d | destroy|s a comm|
|000045b0| 61 6e 64 20 69 6e 74 65 | 72 70 72 65 74 65 72 20 |and inte|rpreter |
|000045c0| 61 6e 64 20 72 65 6c 65 | 61 73 65 73 20 61 6c 6c |and rele|ases all|
|000045d0| 20 6f 66 0a 58 74 68 65 | 20 72 65 73 6f 75 72 63 | of.Xthe| resourc|
|000045e0| 65 73 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |es assoc|iated wi|
|000045f0| 74 68 20 69 74 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |th it, i|ncluding|
|00004600| 20 76 61 72 69 61 62 6c | 65 73 2c 20 70 72 6f 63 | variabl|es, proc|
|00004610| 65 64 75 72 65 73 2c 0a | 58 61 6e 64 20 61 70 70 |edures,.|Xand app|
|00004620| 6c 69 63 61 74 69 6f 6e | 2d 73 70 65 63 69 66 69 |lication|-specifi|
|00004630| 63 20 63 6f 6d 6d 61 6e | 64 20 62 69 6e 64 69 6e |c comman|d bindin|
|00004640| 67 73 2e 20 20 41 66 74 | 65 72 20 5c 66 42 54 63 |gs. Aft|er \fBTc|
|00004650| 6c 5f 44 65 6c 65 74 65 | 49 6e 74 65 72 70 5c 66 |l_Delete|Interp\f|
|00004660| 52 0a 58 72 65 74 75 72 | 6e 73 20 74 68 65 20 63 |R.Xretur|ns the c|
|00004670| 61 6c 6c 65 72 20 73 68 | 6f 75 6c 64 20 6e 65 76 |aller sh|ould nev|
|00004680| 65 72 20 61 67 61 69 6e | 20 75 73 65 20 74 68 65 |er again| use the|
|00004690| 20 5c 66 49 69 6e 74 65 | 72 70 5c 66 52 20 74 6f | \fIinte|rp\fR to|
|000046a0| 6b 65 6e 2e 0a 58 0a 58 | 2e 53 48 20 4b 45 59 57 |ken..X.X|.SH KEYW|
|000046b0| 4f 52 44 53 0a 58 63 6f | 6d 6d 61 6e 64 2c 20 64 |ORDS.Xco|mmand, d|
|000046c0| 65 6c 65 74 65 2c 20 69 | 6e 74 65 72 70 72 65 74 |elete, i|nterpret|
|000046d0| 65 72 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |er.END_O|F_FILE.i|
|000046e0| 66 20 74 65 73 74 20 31 | 31 38 30 20 2d 6e 65 20 |f test 1|180 -ne |
|000046f0| 60 77 63 20 2d 63 20 3c | 27 44 65 6c 65 74 65 49 |`wc -c <|'DeleteI|
|00004700| 6e 74 65 2e 33 27 60 3b | 20 74 68 65 6e 0a 20 20 |nte.3'`;| then. |
|00004710| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00004720| 44 65 6c 65 74 65 49 6e | 74 65 2e 33 27 5c 22 20 |DeleteIn|te.3'\" |
|00004730| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00004740| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00004750| 6e 64 20 6f 66 20 27 44 | 65 6c 65 74 65 49 6e 74 |nd of 'D|eleteInt|
|00004760| 65 2e 33 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |e.3'.fi.|if test |
|00004770| 2d 66 20 27 44 65 6c 65 | 74 65 54 72 61 63 2e 33 |-f 'Dele|teTrac.3|
|00004780| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004790| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000047a0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000047b0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000047c0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 44 65 6c 65 74 |ng file |\"'Delet|
|000047d0| 65 54 72 61 63 2e 33 27 | 5c 22 0a 65 6c 73 65 0a |eTrac.3'|\".else.|
|000047e0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000047f0| 63 74 69 6e 67 20 5c 22 | 27 44 65 6c 65 74 65 54 |cting \"|'DeleteT|
|00004800| 72 61 63 2e 33 27 5c 22 | 20 5c 28 31 32 33 33 20 |rac.3'\"| \(1233 |
|00004810| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00004820| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 44 65 6c 65 | "s/^X//|" >'Dele|
|00004830| 74 65 54 72 61 63 2e 33 | 27 20 3c 3c 27 45 4e 44 |teTrac.3|' <<'END|
|00004840| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 27 5c 22 20 43 |_OF_FILE|'.X'\" C|
|00004850| 6f 70 79 72 69 67 68 74 | 20 31 39 38 39 20 52 65 |opyright| 1989 Re|
|00004860| 67 65 6e 74 73 20 6f 66 | 20 74 68 65 20 55 6e 69 |gents of| the Uni|
|00004870| 76 65 72 73 69 74 79 20 | 6f 66 20 43 61 6c 69 66 |versity |of Calif|
|00004880| 6f 72 6e 69 61 0a 58 27 | 5c 22 20 50 65 72 6d 69 |ornia.X'|\" Permi|
|00004890| 73 73 69 6f 6e 20 74 6f | 20 75 73 65 2c 20 63 6f |ssion to| use, co|
|000048a0| 70 79 2c 20 6d 6f 64 69 | 66 79 2c 20 61 6e 64 20 |py, modi|fy, and |
|000048b0| 64 69 73 74 72 69 62 75 | 74 65 20 74 68 69 73 0a |distribu|te this.|
|000048c0| 58 27 5c 22 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 |X'\" doc|umentati|
|000048d0| 6f 6e 20 66 6f 72 20 61 | 6e 79 20 70 75 72 70 6f |on for a|ny purpo|
|000048e0| 73 65 20 61 6e 64 20 77 | 69 74 68 6f 75 74 20 66 |se and w|ithout f|
|000048f0| 65 65 20 69 73 20 68 65 | 72 65 62 79 0a 58 27 5c |ee is he|reby.X'\|
|00004900| 22 20 67 72 61 6e 74 65 | 64 2c 20 70 72 6f 76 69 |" grante|d, provi|
|00004910| 64 65 64 20 74 68 61 74 | 20 74 68 69 73 20 6e 6f |ded that| this no|
|00004920| 74 69 63 65 20 61 70 70 | 65 61 72 73 20 69 6e 20 |tice app|ears in |
|00004930| 61 6c 6c 20 63 6f 70 69 | 65 73 2e 0a 58 27 5c 22 |all copi|es..X'\"|
|00004940| 20 54 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | The Uni|versity |
|00004950| 6f 66 20 43 61 6c 69 66 | 6f 72 6e 69 61 20 6d 61 |of Calif|ornia ma|
|00004960| 6b 65 73 20 6e 6f 20 72 | 65 70 72 65 73 65 6e 74 |kes no r|epresent|
|00004970| 61 74 69 6f 6e 73 20 61 | 62 6f 75 74 0a 58 27 5c |ations a|bout.X'\|
|00004980| 22 20 74 68 65 20 73 75 | 69 74 61 62 69 6c 69 74 |" the su|itabilit|
|00004990| 79 20 6f 66 20 74 68 69 | 73 20 6d 61 74 65 72 69 |y of thi|s materi|
|000049a0| 61 6c 20 66 6f 72 20 61 | 6e 79 20 70 75 72 70 6f |al for a|ny purpo|
|000049b0| 73 65 2e 20 20 49 74 20 | 69 73 0a 58 27 5c 22 20 |se. It |is.X'\" |
|000049c0| 70 72 6f 76 69 64 65 64 | 20 22 61 73 20 69 73 22 |provided| "as is"|
|000049d0| 20 77 69 74 68 6f 75 74 | 20 65 78 70 72 65 73 73 | without| express|
|000049e0| 20 6f 72 20 69 6d 70 6c | 69 65 64 20 77 61 72 72 | or impl|ied warr|
|000049f0| 61 6e 74 79 2e 0a 58 27 | 5c 22 20 0a 58 27 5c 22 |anty..X'|\" .X'\"|
|00004a00| 20 24 48 65 61 64 65 72 | 3a 20 2f 73 70 72 69 74 | $Header|: /sprit|
|00004a10| 65 2f 73 72 63 2f 6c 69 | 62 2f 74 63 6c 2f 52 43 |e/src/li|b/tcl/RC|
|00004a20| 53 2f 54 63 6c 5f 44 65 | 6c 65 74 65 54 72 61 63 |S/Tcl_De|leteTrac|
|00004a30| 65 2e 6d 61 6e 2c 76 20 | 31 2e 32 20 38 39 2f 30 |e.man,v |1.2 89/0|
|00004a40| 33 2f 32 34 20 31 34 3a | 31 36 3a 30 38 20 6f 75 |3/24 14:|16:08 ou|
|00004a50| 73 74 65 72 20 45 78 70 | 20 24 20 53 50 52 49 54 |ster Exp| $ SPRIT|
|00004a60| 45 20 28 42 65 72 6b 65 | 6c 65 79 29 0a 58 27 5c |E (Berke|ley).X'\|
|00004a70| 22 20 0a 58 2e 73 6f 20 | 5c 2a 28 5d 6c 74 6d 61 |" .X.so |\*(]ltma|
|00004a80| 63 2e 73 70 72 69 74 65 | 0a 58 2e 48 53 20 54 63 |c.sprite|.X.HS Tc|
|00004a90| 6c 5f 44 65 6c 65 74 65 | 54 72 61 63 65 20 74 63 |l_Delete|Trace tc|
|00004aa0| 6c 0a 58 2e 42 53 0a 58 | 2e 53 48 20 4e 41 4d 45 |l.X.BS.X|.SH NAME|
|00004ab0| 0a 58 54 63 6c 5f 44 65 | 6c 65 74 65 54 72 61 63 |.XTcl_De|leteTrac|
|00004ac0| 65 20 5c 2d 20 72 65 6d | 6f 76 65 20 61 20 70 72 |e \- rem|ove a pr|
|00004ad0| 65 76 69 6f 75 73 6c 79 | 2d 65 73 74 61 62 6c 69 |eviously|-establi|
|00004ae0| 73 68 65 64 20 63 6f 6d | 6d 61 6e 64 20 74 72 61 |shed com|mand tra|
|00004af0| 63 65 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |ce.X.SH |SYNOPSIS|
|00004b00| 0a 58 2e 6e 66 0a 58 5c | 66 42 23 69 6e 63 6c 75 |.X.nf.X\|fB#inclu|
|00004b10| 64 65 20 3c 74 63 6c 2e | 68 3e 5c 66 52 0a 58 2e |de <tcl.|h>\fR.X.|
|00004b20| 73 70 0a 58 5c 66 42 54 | 63 6c 5f 44 65 6c 65 74 |sp.X\fBT|cl_Delet|
|00004b30| 65 54 72 61 63 65 5c 66 | 52 28 5c 66 49 69 6e 74 |eTrace\f|R(\fIint|
|00004b40| 65 72 70 2c 20 74 72 61 | 63 65 5c 66 52 29 0a 58 |erp, tra|ce\fR).X|
|00004b50| 2e 53 48 20 41 52 47 55 | 4d 45 4e 54 53 0a 58 2e |.SH ARGU|MENTS.X.|
|00004b60| 41 53 20 54 63 6c 5f 49 | 6e 74 65 72 70 20 2a 69 |AS Tcl_I|nterp *i|
|00004b70| 6e 74 65 72 70 0a 58 2e | 41 50 20 54 63 6c 5f 49 |nterp.X.|AP Tcl_I|
|00004b80| 6e 74 65 72 70 20 2a 69 | 6e 74 65 72 70 20 69 6e |nterp *i|nterp in|
|00004b90| 0a 58 49 6e 74 65 72 70 | 72 65 74 65 72 20 63 6f |.XInterp|reter co|
|00004ba0| 6e 74 61 69 6e 69 6e 67 | 20 5c 66 49 74 72 61 63 |ntaining| \fItrac|
|00004bb0| 65 5c 66 52 2e 0a 58 2e | 41 50 20 54 63 6c 5f 54 |e\fR..X.|AP Tcl_T|
|00004bc0| 72 61 63 65 20 74 72 61 | 63 65 20 69 6e 0a 58 54 |race tra|ce in.XT|
|00004bd0| 6f 6b 65 6e 20 66 6f 72 | 20 74 72 61 63 65 20 74 |oken for| trace t|
|00004be0| 6f 20 62 65 20 72 65 6d | 6f 76 65 64 20 28 72 65 |o be rem|oved (re|
|00004bf0| 74 75 72 6e 20 76 61 6c | 75 65 20 66 72 6f 6d 20 |turn val|ue from |
|00004c00| 70 72 65 76 69 6f 75 73 | 20 63 61 6c 6c 0a 58 74 |previous| call.Xt|
|00004c10| 6f 20 54 63 6c 5f 43 72 | 65 61 74 65 54 72 61 63 |o Tcl_Cr|eateTrac|
|00004c20| 65 29 2e 0a 58 2e 42 45 | 0a 58 0a 58 2e 53 48 20 |e)..X.BE|.X.X.SH |
|00004c30| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 2e 50 50 |DESCRIPT|ION.X.PP|
|00004c40| 0a 58 54 68 69 73 20 70 | 72 6f 63 65 64 75 72 65 |.XThis p|rocedure|
|00004c50| 20 72 65 6d 6f 76 65 73 | 20 61 20 74 72 61 63 65 | removes| a trace|
|00004c60| 2c 20 73 6f 20 74 68 61 | 74 20 6e 6f 20 66 75 74 |, so tha|t no fut|
|00004c70| 75 72 65 20 63 61 6c 6c | 73 20 77 69 6c 6c 20 62 |ure call|s will b|
|00004c80| 65 0a 58 6d 61 64 65 20 | 74 6f 20 74 68 65 20 70 |e.Xmade |to the p|
|00004c90| 72 6f 63 65 64 75 72 65 | 20 61 73 73 6f 63 69 61 |rocedure| associa|
|00004ca0| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 74 72 61 |ted with| the tra|
|00004cb0| 63 65 2e 20 20 41 66 74 | 65 72 20 5c 66 42 54 63 |ce. Aft|er \fBTc|
|00004cc0| 6c 5f 44 65 6c 65 74 65 | 54 72 61 63 65 5c 66 52 |l_Delete|Trace\fR|
|00004cd0| 0a 58 72 65 74 75 72 6e | 73 2c 20 74 68 65 20 63 |.Xreturn|s, the c|
|00004ce0| 61 6c 6c 65 72 20 73 68 | 6f 75 6c 64 20 6e 65 76 |aller sh|ould nev|
|00004cf0| 65 72 20 61 67 61 69 6e | 20 75 73 65 20 74 68 65 |er again| use the|
|00004d00| 20 5c 66 49 74 72 61 63 | 65 5c 66 52 20 74 6f 6b | \fItrac|e\fR tok|
|00004d10| 65 6e 2e 0a 58 0a 58 2e | 53 48 20 4b 45 59 57 4f |en..X.X.|SH KEYWO|
|00004d20| 52 44 53 0a 58 64 65 6c | 65 74 65 2c 20 69 6e 74 |RDS.Xdel|ete, int|
|00004d30| 65 72 70 72 65 74 65 72 | 2c 20 74 72 61 63 65 0a |erpreter|, trace.|
|00004d40| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00004d50| 65 73 74 20 31 32 33 33 | 20 2d 6e 65 20 60 77 63 |est 1233| -ne `wc|
|00004d60| 20 2d 63 20 3c 27 44 65 | 6c 65 74 65 54 72 61 63 | -c <'De|leteTrac|
|00004d70| 2e 33 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.3'`; th|en. e|
|00004d80| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 44 65 6c |cho shar|: \"'Del|
|00004d90| 65 74 65 54 72 61 63 2e | 33 27 5c 22 20 75 6e 70 |eteTrac.|3'\" unp|
|00004da0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00004db0| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00004dc0| 6f 66 20 27 44 65 6c 65 | 74 65 54 72 61 63 2e 33 |of 'Dele|teTrac.3|
|00004dd0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00004de0| 27 45 76 61 6c 2e 33 27 | 20 2d 61 20 22 24 7b 31 |'Eval.3'| -a "${1|
|00004df0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00004e00| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00004e10| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00004e20| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00004e30| 22 27 45 76 61 6c 2e 33 | 27 5c 22 0a 65 6c 73 65 |"'Eval.3|'\".else|
|00004e40| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00004e50| 61 63 74 69 6e 67 20 5c | 22 27 45 76 61 6c 2e 33 |acting \|"'Eval.3|
|00004e60| 27 5c 22 20 5c 28 33 37 | 31 33 20 63 68 61 72 61 |'\" \(37|13 chara|
|00004e70| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00004e80| 58 2f 2f 22 20 3e 27 45 | 76 61 6c 2e 33 27 20 3c |X//" >'E|val.3' <|
|00004e90| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00004ea0| 27 5c 22 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |'\" Copy|right 19|
|00004eb0| 38 39 20 52 65 67 65 6e | 74 73 20 6f 66 20 74 68 |89 Regen|ts of th|
|00004ec0| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00004ed0| 43 61 6c 69 66 6f 72 6e | 69 61 0a 58 27 5c 22 20 |Californ|ia.X'\" |
|00004ee0| 50 65 72 6d 69 73 73 69 | 6f 6e 20 74 6f 20 75 73 |Permissi|on to us|
|00004ef0| 65 2c 20 63 6f 70 79 2c | 20 6d 6f 64 69 66 79 2c |e, copy,| modify,|
|00004f00| 20 61 6e 64 20 64 69 73 | 74 72 69 62 75 74 65 20 | and dis|tribute |
|00004f10| 74 68 69 73 0a 58 27 5c | 22 20 64 6f 63 75 6d 65 |this.X'\|" docume|
|00004f20| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 61 6e 79 20 |ntation |for any |
|00004f30| 70 75 72 70 6f 73 65 20 | 61 6e 64 20 77 69 74 68 |purpose |and with|
|00004f40| 6f 75 74 20 66 65 65 20 | 69 73 20 68 65 72 65 62 |out fee |is hereb|
|00004f50| 79 0a 58 27 5c 22 20 67 | 72 61 6e 74 65 64 2c 20 |y.X'\" g|ranted, |
|00004f60| 70 72 6f 76 69 64 65 64 | 20 74 68 61 74 20 74 68 |provided| that th|
|00004f70| 69 73 20 6e 6f 74 69 63 | 65 20 61 70 70 65 61 72 |is notic|e appear|
|00004f80| 73 20 69 6e 20 61 6c 6c | 20 63 6f 70 69 65 73 2e |s in all| copies.|
|00004f90| 0a 58 27 5c 22 20 54 68 | 65 20 55 6e 69 76 65 72 |.X'\" Th|e Univer|
|00004fa0| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00004fb0| 69 61 20 6d 61 6b 65 73 | 20 6e 6f 20 72 65 70 72 |ia makes| no repr|
|00004fc0| 65 73 65 6e 74 61 74 69 | 6f 6e 73 20 61 62 6f 75 |esentati|ons abou|
|00004fd0| 74 0a 58 27 5c 22 20 74 | 68 65 20 73 75 69 74 61 |t.X'\" t|he suita|
|00004fe0| 62 69 6c 69 74 79 20 6f | 66 20 74 68 69 73 20 6d |bility o|f this m|
|00004ff0| 61 74 65 72 69 61 6c 20 | 66 6f 72 20 61 6e 79 20 |aterial |for any |
|00005000| 70 75 72 70 6f 73 65 2e | 20 20 49 74 20 69 73 0a |purpose.| It is.|
|00005010| 58 27 5c 22 20 70 72 6f | 76 69 64 65 64 20 22 61 |X'\" pro|vided "a|
|00005020| 73 20 69 73 22 20 77 69 | 74 68 6f 75 74 20 65 78 |s is" wi|thout ex|
|00005030| 70 72 65 73 73 20 6f 72 | 20 69 6d 70 6c 69 65 64 |press or| implied|
|00005040| 20 77 61 72 72 61 6e 74 | 79 2e 0a 58 27 5c 22 20 | warrant|y..X'\" |
|00005050| 0a 58 27 5c 22 20 24 48 | 65 61 64 65 72 3a 20 2f |.X'\" $H|eader: /|
|00005060| 73 70 72 69 74 65 2f 73 | 72 63 2f 6c 69 62 2f 74 |sprite/s|rc/lib/t|
|00005070| 63 6c 2f 52 43 53 2f 54 | 63 6c 5f 45 76 61 6c 2e |cl/RCS/T|cl_Eval.|
|00005080| 6d 61 6e 2c 76 20 31 2e | 33 20 39 30 2f 30 31 2f |man,v 1.|3 90/01/|
|00005090| 30 37 20 31 36 3a 30 32 | 3a 31 30 20 6f 75 73 74 |07 16:02|:10 oust|
|000050a0| 65 72 20 45 78 70 20 24 | 20 53 50 52 49 54 45 20 |er Exp $| SPRITE |
|000050b0| 28 42 65 72 6b 65 6c 65 | 79 29 0a 58 27 5c 22 20 |(Berkele|y).X'\" |
|000050c0| 0a 58 2e 73 6f 20 5c 2a | 28 5d 6c 74 6d 61 63 2e |.X.so \*|(]ltmac.|
|000050d0| 73 70 72 69 74 65 0a 58 | 2e 48 53 20 54 63 6c 5f |sprite.X|.HS Tcl_|
|000050e0| 45 76 61 6c 20 74 63 6c | 0a 58 2e 42 53 0a 58 2e |Eval tcl|.X.BS.X.|
|000050f0| 53 48 20 4e 41 4d 45 0a | 58 54 63 6c 5f 45 76 61 |SH NAME.|XTcl_Eva|
|00005100| 6c 20 5c 2d 20 65 78 65 | 63 75 74 65 20 61 20 54 |l \- exe|cute a T|
|00005110| 63 6c 20 63 6f 6d 6d 61 | 6e 64 20 73 74 72 69 6e |cl comma|nd strin|
|00005120| 67 0a 58 2e 53 48 20 53 | 59 4e 4f 50 53 49 53 0a |g.X.SH S|YNOPSIS.|
|00005130| 58 2e 6e 66 0a 58 5c 66 | 42 23 69 6e 63 6c 75 64 |X.nf.X\f|B#includ|
|00005140| 65 20 3c 74 63 6c 2e 68 | 3e 5c 66 52 0a 58 2e 73 |e <tcl.h|>\fR.X.s|
|00005150| 70 0a 58 69 6e 74 0a 58 | 5c 66 42 54 63 6c 5f 45 |p.Xint.X|\fBTcl_E|
|00005160| 76 61 6c 5c 66 52 28 5c | 66 49 69 6e 74 65 72 70 |val\fR(\|fIinterp|
|00005170| 2c 20 63 6d 64 2c 20 66 | 6c 61 67 73 2c 20 74 65 |, cmd, f|lags, te|
|00005180| 72 6d 50 74 72 5c 66 52 | 29 0a 58 2e 53 48 20 41 |rmPtr\fR|).X.SH A|
|00005190| 52 47 55 4d 45 4e 54 53 | 0a 58 2e 41 53 20 54 63 |RGUMENTS|.X.AS Tc|
|000051a0| 6c 5f 49 6e 74 65 72 70 | 20 2a 2a 74 65 72 6d 50 |l_Interp| **termP|
|000051b0| 74 72 3b 0a 58 2e 41 50 | 20 54 63 6c 5f 49 6e 74 |tr;.X.AP| Tcl_Int|
|000051c0| 65 72 70 20 2a 69 6e 74 | 65 72 70 20 69 6e 0a 58 |erp *int|erp in.X|
|000051d0| 49 6e 74 65 72 70 72 65 | 74 65 72 20 69 6e 20 77 |Interpre|ter in w|
|000051e0| 68 69 63 68 20 74 6f 20 | 65 78 65 63 75 74 65 20 |hich to |execute |
|000051f0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 2e 20 20 53 74 |the comm|and. St|
|00005200| 72 69 6e 67 20 72 65 73 | 75 6c 74 20 77 69 6c 6c |ring res|ult will|
|00005210| 20 62 65 0a 58 73 74 6f | 72 65 64 20 69 6e 20 5c | be.Xsto|red in \|
|00005220| 66 49 69 6e 74 65 72 70 | 2d 3e 72 65 73 75 6c 74 |fIinterp|->result|
|00005230| 5c 66 52 2e 0a 58 2e 41 | 50 20 63 68 61 72 20 2a |\fR..X.A|P char *|
|00005240| 63 6d 64 20 69 6e 0a 58 | 43 6f 6d 6d 61 6e 64 20 |cmd in.X|Command |
|00005250| 28 6f 72 20 73 65 71 75 | 65 6e 63 65 20 6f 66 20 |(or sequ|ence of |
|00005260| 63 6f 6d 6d 61 6e 64 73 | 29 20 74 6f 20 65 78 65 |commands|) to exe|
|00005270| 63 75 74 65 2e 0a 58 2e | 41 50 20 63 68 61 72 20 |cute..X.|AP char |
|00005280| 66 6c 61 67 73 20 69 6e | 0a 58 45 69 74 68 65 72 |flags in|.XEither|
|00005290| 20 5c 66 42 54 43 4c 5f | 42 52 41 43 4b 45 54 5f | \fBTCL_|BRACKET_|
|000052a0| 54 45 52 4d 5c 66 52 20 | 6f 72 20 30 2e 0a 58 2e |TERM\fR |or 0..X.|
|000052b0| 56 53 0a 58 49 66 20 30 | 2c 20 74 68 65 6e 20 5c |VS.XIf 0|, then \|
|000052c0| 66 42 54 63 6c 5f 45 76 | 61 6c 5c 66 52 20 77 69 |fBTcl_Ev|al\fR wi|
|000052d0| 6c 6c 20 70 72 6f 63 65 | 73 73 20 63 6f 6d 6d 61 |ll proce|ss comma|
|000052e0| 6e 64 73 20 66 72 6f 6d | 20 5c 66 49 63 6d 64 5c |nds from| \fIcmd\|
|000052f0| 66 52 20 75 6e 74 69 6c | 0a 58 69 74 20 72 65 61 |fR until|.Xit rea|
|00005300| 63 68 65 73 20 74 68 65 | 20 6e 75 6c 6c 20 63 68 |ches the| null ch|
|00005310| 61 72 61 63 74 65 72 20 | 61 74 20 74 68 65 20 65 |aracter |at the e|
|00005320| 6e 64 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |nd of th|e string|
|00005330| 3b 20 20 6e 65 77 6c 69 | 6e 65 73 0a 58 77 69 6c |; newli|nes.Xwil|
|00005340| 6c 20 62 65 20 74 72 65 | 61 74 65 64 20 61 73 20 |l be tre|ated as |
|00005350| 63 6f 6d 6d 61 6e 64 20 | 73 65 70 61 72 61 74 6f |command |separato|
|00005360| 72 73 2e 20 20 49 66 20 | 5c 66 42 54 43 4c 5f 42 |rs. If |\fBTCL_B|
|00005370| 52 41 43 4b 45 54 5f 54 | 45 52 4d 5c 66 52 2c 0a |RACKET_T|ERM\fR,.|
|00005380| 58 74 68 65 6e 20 5c 66 | 42 54 63 6c 5f 45 76 61 |Xthen \f|BTcl_Eva|
|00005390| 6c 5c 66 52 20 77 69 6c | 6c 20 70 72 6f 63 65 73 |l\fR wil|l proces|
|000053a0| 73 20 63 6f 6d 61 6e 64 | 73 20 66 72 6f 6d 20 5c |s comand|s from \|
|000053b0| 66 49 63 6d 64 5c 66 52 | 20 75 6e 74 69 6c 20 65 |fIcmd\fR| until e|
|000053c0| 69 74 68 65 72 20 69 74 | 0a 58 72 65 61 63 68 65 |ither it|.Xreache|
|000053d0| 73 20 61 20 6e 75 6c 6c | 20 63 68 61 72 61 63 74 |s a null| charact|
|000053e0| 65 72 20 6f 72 20 69 74 | 20 65 6e 63 6f 75 6e 74 |er or it| encount|
|000053f0| 65 72 73 20 61 20 63 6c | 6f 73 65 20 62 72 61 63 |ers a cl|ose brac|
|00005400| 6b 65 74 20 74 68 61 74 | 20 69 73 6e 27 74 0a 58 |ket that| isn't.X|
|00005410| 62 61 63 6b 73 6c 61 73 | 68 65 64 20 6f 72 20 65 |backslas|hed or e|
|00005420| 6e 63 6c 6f 73 65 64 20 | 69 6e 20 62 72 61 63 65 |nclosed |in brace|
|00005430| 73 2c 20 61 74 20 77 68 | 69 63 68 0a 58 70 6f 69 |s, at wh|ich.Xpoi|
|00005440| 6e 74 20 69 74 20 77 69 | 6c 6c 20 72 65 74 75 72 |nt it wi|ll retur|
|00005450| 6e 3b 20 20 6e 65 77 6c | 69 6e 65 73 20 77 69 6c |n; newl|ines wil|
|00005460| 6c 20 74 72 65 61 74 65 | 64 20 61 73 20 77 68 69 |l treate|d as whi|
|00005470| 74 65 20 73 70 61 63 65 | 2c 20 6e 6f 74 20 61 73 |te space|, not as|
|00005480| 0a 58 63 6f 6d 6d 61 6e | 64 20 73 65 70 61 72 61 |.Xcomman|d separa|
|00005490| 74 6f 72 73 2e 20 20 55 | 6e 64 65 72 20 6e 6f 72 |tors. U|nder nor|
|000054a0| 6d 61 6c 20 63 6f 6e 64 | 69 74 69 6f 6e 73 2c 20 |mal cond|itions, |
|000054b0| 5c 66 49 66 6c 61 67 73 | 5c 66 52 20 73 68 6f 75 |\fIflags|\fR shou|
|000054c0| 6c 64 20 62 65 20 30 2e | 0a 58 2e 56 45 0a 58 2e |ld be 0.|.X.VE.X.|
|000054d0| 41 50 20 63 68 61 72 20 | 2a 2a 74 65 72 6d 50 74 |AP char |**termPt|
|000054e0| 72 20 6f 75 74 0a 58 49 | 66 20 0a 58 2e 56 53 0a |r out.XI|f .X.VS.|
|000054f0| 58 5c 66 49 74 65 72 6d | 50 74 72 5c 66 52 20 69 |X\fIterm|Ptr\fR i|
|00005500| 73 20 6e 6f 6e 2d 4e 55 | 4c 4c 2c 20 5c 66 42 54 |s non-NU|LL, \fBT|
|00005510| 63 6c 5f 45 76 61 6c 5c | 66 52 20 66 69 6c 6c 73 |cl_Eval\|fR fills|
|00005520| 20 69 6e 20 2a 5c 66 49 | 74 65 72 6d 50 74 72 5c | in *\fI|termPtr\|
|00005530| 66 52 20 77 69 74 68 0a | 58 74 68 65 20 61 64 64 |fR with.|Xthe add|
|00005540| 72 65 73 73 20 6f 66 20 | 74 68 65 20 63 68 61 72 |ress of |the char|
|00005550| 61 63 74 65 72 20 6a 75 | 73 74 20 61 66 74 65 72 |acter ju|st after|
|00005560| 20 74 68 65 20 6c 61 73 | 74 20 6f 6e 65 20 69 6e | the las|t one in|
|00005570| 20 74 68 65 20 6c 61 73 | 74 20 63 6f 6d 6d 61 6e | the las|t comman|
|00005580| 64 0a 58 73 75 63 63 65 | 73 73 66 75 6c 6c 79 20 |d.Xsucce|ssfully |
|00005590| 65 78 65 63 75 74 65 64 | 20 28 6e 6f 72 6d 61 6c |executed| (normal|
|000055a0| 6c 79 20 74 68 65 20 6e | 75 6c 6c 20 63 68 61 72 |ly the n|ull char|
|000055b0| 61 63 74 65 72 20 61 74 | 20 74 68 65 20 65 6e 64 |acter at| the end|
|000055c0| 20 6f 66 20 5c 66 49 63 | 6d 64 5c 66 52 29 2e 0a | of \fIc|md\fR)..|
|000055d0| 58 49 66 20 61 6e 20 65 | 72 72 6f 72 20 6f 63 63 |XIf an e|rror occ|
|000055e0| 75 72 73 20 69 6e 20 74 | 68 65 20 66 69 72 73 74 |urs in t|he first|
|000055f0| 20 63 6f 6d 6d 61 6e 64 | 20 69 6e 20 5c 66 49 63 | command| in \fIc|
|00005600| 6d 64 5c 66 52 2c 20 74 | 68 65 6e 20 5c 66 49 2a |md\fR, t|hen \fI*|
|00005610| 74 65 72 6d 50 74 72 5c | 66 52 0a 58 77 69 6c 6c |termPtr\|fR.Xwill|
|00005620| 20 62 65 20 73 65 74 20 | 74 6f 20 5c 66 49 63 6d | be set |to \fIcm|
|00005630| 64 5c 66 52 2e 0a 58 2e | 56 45 0a 58 2e 42 45 0a |d\fR..X.|VE.X.BE.|
|00005640| 58 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |X.X.SH D|ESCRIPTI|
|00005650| 4f 4e 0a 58 2e 50 50 0a | 58 5c 66 42 54 63 6c 5f |ON.X.PP.|X\fBTcl_|
|00005660| 45 76 61 6c 5c 66 52 20 | 70 61 72 73 65 73 20 63 |Eval\fR |parses c|
|00005670| 6f 6d 6d 61 6e 64 73 20 | 66 72 6f 6d 20 5c 66 49 |ommands |from \fI|
|00005680| 63 6d 64 5c 66 52 20 61 | 6e 64 20 65 78 65 63 75 |cmd\fR a|nd execu|
|00005690| 74 65 73 20 74 68 65 6d | 20 69 6e 0a 58 6f 72 64 |tes them| in.Xord|
|000056a0| 65 72 20 75 6e 74 69 6c | 20 65 69 74 68 65 72 20 |er until| either |
|000056b0| 61 6e 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 20 |an error| occurs |
|000056c0| 6f 72 20 5c 66 42 54 63 | 6c 5f 45 76 61 6c 5c 66 |or \fBTc|l_Eval\f|
|000056d0| 52 20 72 65 61 63 68 65 | 73 20 61 20 74 65 72 6d |R reache|s a term|
|000056e0| 69 6e 61 74 69 6e 67 0a | 58 63 68 61 72 61 63 74 |inating.|Xcharact|
|000056f0| 65 72 20 28 27 5d 27 20 | 6f 72 20 27 5c 30 27 2c |er (']' |or '\0',|
|00005700| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 74 68 | dependi|ng on th|
|00005710| 65 20 76 61 6c 75 65 20 | 6f 66 20 5c 66 49 66 6c |e value |of \fIfl|
|00005720| 61 67 73 5c 66 52 29 2e | 0a 58 54 68 65 20 72 65 |ags\fR).|.XThe re|
|00005730| 74 75 72 6e 20 76 61 6c | 75 65 20 66 72 6f 6d 20 |turn val|ue from |
|00005740| 5c 66 42 54 63 6c 5f 45 | 76 61 6c 5c 66 52 20 69 |\fBTcl_E|val\fR i|
|00005750| 73 20 6f 6e 65 0a 58 6f | 66 20 74 68 65 20 54 63 |s one.Xo|f the Tc|
|00005760| 6c 20 72 65 74 75 72 6e | 20 63 6f 64 65 73 20 5c |l return| codes \|
|00005770| 66 42 54 43 4c 5f 4f 4b | 5c 66 52 2c 20 5c 66 42 |fBTCL_OK|\fR, \fB|
|00005780| 54 43 4c 5f 45 52 52 4f | 52 5c 66 52 2c 20 5c 66 |TCL_ERRO|R\fR, \f|
|00005790| 42 54 43 4c 5f 52 45 54 | 55 52 4e 5c 66 52 2c 20 |BTCL_RET|URN\fR, |
|000057a0| 5c 66 42 54 43 4c 5f 42 | 52 45 41 4b 5c 66 52 2c |\fBTCL_B|REAK\fR,|
|000057b0| 20 6f 72 0a 58 5c 66 42 | 54 43 4c 5f 43 4f 4e 54 | or.X\fB|TCL_CONT|
|000057c0| 49 4e 55 45 5c 66 52 2c | 20 61 6e 64 20 5c 66 49 |INUE\fR,| and \fI|
|000057d0| 69 6e 74 65 72 70 2d 3e | 72 65 73 75 6c 74 5c 66 |interp->|result\f|
|000057e0| 52 20 77 69 6c 6c 20 70 | 6f 69 6e 74 20 74 6f 0a |R will p|oint to.|
|000057f0| 58 61 20 73 74 72 69 6e | 67 20 77 69 74 68 20 61 |Xa strin|g with a|
|00005800| 64 64 69 74 69 6f 6e 61 | 6c 20 69 6e 66 6f 72 6d |dditiona|l inform|
|00005810| 61 74 69 6f 6e 20 28 72 | 65 73 75 6c 74 20 76 61 |ation (r|esult va|
|00005820| 6c 75 65 20 6f 72 20 65 | 72 72 6f 72 20 6d 65 73 |lue or e|rror mes|
|00005830| 73 61 67 65 29 2e 0a 58 | 54 68 69 73 20 72 65 74 |sage)..X|This ret|
|00005840| 75 72 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |urn info|rmation |
|00005850| 63 6f 72 72 65 73 70 6f | 6e 64 73 20 74 6f 20 74 |correspo|nds to t|
|00005860| 68 65 20 6c 61 73 74 20 | 63 6f 6d 6d 61 6e 64 20 |he last |command |
|00005870| 65 78 65 63 75 74 65 64 | 20 66 72 6f 6d 0a 58 5c |executed| from.X\|
|00005880| 66 49 63 6d 64 5c 66 52 | 2e 0a 58 2e 50 50 0a 58 |fIcmd\fR|..X.PP.X|
|00005890| 44 75 72 69 6e 67 20 74 | 68 65 20 70 72 6f 63 65 |During t|he proce|
|000058a0| 73 73 69 6e 67 20 6f 66 | 20 61 20 63 6f 6d 6d 61 |ssing of| a comma|
|000058b0| 6e 64 20 69 74 20 69 73 | 20 6c 65 67 61 6c 20 74 |nd it is| legal t|
|000058c0| 6f 20 6d 61 6b 65 20 6e | 65 73 74 65 64 0a 58 63 |o make n|ested.Xc|
|000058d0| 61 6c 6c 73 20 74 6f 20 | 5c 66 42 54 63 6c 5f 45 |alls to |\fBTcl_E|
|000058e0| 76 61 6c 5c 66 52 20 28 | 74 68 69 73 20 69 73 20 |val\fR (|this is |
|000058f0| 68 6f 77 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 73 |how cond|itionals|
|00005900| 2c 20 6c 6f 6f 70 73 2c | 20 61 6e 64 20 70 72 6f |, loops,| and pro|
|00005910| 63 65 64 75 72 65 73 0a | 58 61 72 65 20 69 6d 70 |cedures.|Xare imp|
|00005920| 6c 65 6d 65 6e 74 65 64 | 29 2e 20 20 49 66 20 61 |lemented|). If a|
|00005930| 20 63 6f 64 65 20 6f 74 | 68 65 72 20 74 68 61 6e | code ot|her than|
|00005940| 0a 58 5c 66 42 54 43 4c | 5f 4f 4b 5c 66 52 20 69 |.X\fBTCL|_OK\fR i|
|00005950| 73 20 72 65 74 75 72 6e | 65 64 20 66 72 6f 6d 20 |s return|ed from |
|00005960| 61 20 6e 65 73 74 65 64 | 20 5c 66 42 54 63 6c 5f |a nested| \fBTcl_|
|00005970| 45 76 61 6c 5c 66 52 20 | 69 6e 76 6f 63 61 74 69 |Eval\fR |invocati|
|00005980| 6f 6e 2c 20 74 68 65 6e | 20 74 68 65 0a 58 63 61 |on, then| the.Xca|
|00005990| 6c 6c 65 72 20 73 68 6f | 75 6c 64 20 6e 6f 72 6d |ller sho|uld norm|
|000059a0| 61 6c 6c 79 20 72 65 74 | 75 72 6e 20 69 6d 6d 65 |ally ret|urn imme|
|000059b0| 64 69 61 74 65 6c 79 2c | 20 70 61 73 73 69 6e 67 |diately,| passing|
|000059c0| 20 74 68 61 74 20 73 61 | 6d 65 0a 58 72 65 74 75 | that sa|me.Xretu|
|000059d0| 72 6e 20 63 6f 64 65 20 | 62 61 63 6b 20 74 6f 20 |rn code |back to |
|000059e0| 69 74 73 20 63 61 6c 6c | 65 72 2c 20 61 6e 64 20 |its call|er, and |
|000059f0| 73 6f 20 6f 6e 20 75 6e | 74 69 6c 20 74 68 65 20 |so on un|til the |
|00005a00| 74 6f 70 2d 6c 65 76 65 | 6c 20 61 70 70 6c 69 63 |top-leve|l applic|
|00005a10| 61 74 69 6f 6e 20 69 73 | 0a 58 72 65 61 63 68 65 |ation is|.Xreache|
|00005a20| 64 2e 20 20 41 20 66 65 | 77 20 63 6f 6d 6d 61 6e |d. A fe|w comman|
|00005a30| 64 73 2c 20 6c 69 6b 65 | 20 5c 66 42 66 6f 72 5c |ds, like| \fBfor\|
|00005a40| 66 52 2c 20 77 69 6c 6c | 20 63 68 65 63 6b 20 66 |fR, will| check f|
|00005a50| 6f 72 20 63 65 72 74 61 | 69 6e 0a 58 72 65 74 75 |or certa|in.Xretu|
|00005a60| 72 6e 20 63 6f 64 65 73 | 2c 20 6c 69 6b 65 20 5c |rn codes|, like \|
|00005a70| 66 42 54 43 4c 5f 42 52 | 45 41 4b 5c 66 52 20 61 |fBTCL_BR|EAK\fR a|
|00005a80| 6e 64 20 5c 66 42 54 43 | 4c 5f 43 4f 4e 54 49 4e |nd \fBTC|L_CONTIN|
|00005a90| 55 45 5c 66 52 2c 20 61 | 6e 64 20 70 72 6f 63 65 |UE\fR, a|nd proce|
|00005aa0| 73 73 20 74 68 65 6d 0a | 58 73 70 65 63 69 61 6c |ss them.|Xspecial|
|00005ab0| 6c 79 20 77 69 74 68 6f | 75 74 20 72 65 74 75 72 |ly witho|ut retur|
|00005ac0| 6e 69 6e 67 2e 0a 58 2e | 50 50 0a 58 5c 66 42 54 |ning..X.|PP.X\fBT|
|00005ad0| 63 6c 5f 45 76 61 6c 5c | 66 52 20 6b 65 65 70 73 |cl_Eval\|fR keeps|
|00005ae0| 20 74 72 61 63 6b 20 6f | 66 20 68 6f 77 20 6d 61 | track o|f how ma|
|00005af0| 6e 79 20 6e 65 73 74 65 | 64 20 54 63 6c 5f 45 76 |ny neste|d Tcl_Ev|
|00005b00| 61 6c 20 69 6e 76 6f 63 | 61 74 69 6f 6e 73 20 61 |al invoc|ations a|
|00005b10| 72 65 0a 58 69 6e 20 70 | 72 6f 67 72 65 73 73 20 |re.Xin p|rogress |
|00005b20| 66 6f 72 20 5c 66 49 69 | 6e 74 65 72 70 5c 66 52 |for \fIi|nterp\fR|
|00005b30| 2e 0a 58 49 66 20 61 20 | 63 6f 64 65 20 6f 66 20 |..XIf a |code of |
|00005b40| 5c 66 42 54 43 4c 5f 52 | 45 54 55 52 4e 5c 66 52 |\fBTCL_R|ETURN\fR|
|00005b50| 2c 20 5c 66 42 54 43 4c | 5f 42 52 45 41 4b 5c 66 |, \fBTCL|_BREAK\f|
|00005b60| 52 2c 20 6f 72 20 5c 66 | 42 54 43 4c 5f 43 4f 4e |R, or \f|BTCL_CON|
|00005b70| 54 49 4e 55 45 5c 66 52 | 20 69 73 0a 58 61 62 6f |TINUE\fR| is.Xabo|
|00005b80| 75 74 20 74 6f 20 62 65 | 20 72 65 74 75 72 6e 65 |ut to be| returne|
|00005b90| 64 20 66 72 6f 6d 20 74 | 68 65 20 74 6f 70 6d 6f |d from t|he topmo|
|00005ba0| 73 74 20 5c 66 42 54 63 | 6c 5f 45 76 61 6c 5c 66 |st \fBTc|l_Eval\f|
|00005bb0| 52 20 69 6e 76 6f 63 61 | 74 69 6f 6e 20 66 6f 72 |R invoca|tion for|
|00005bc0| 0a 58 5c 66 49 69 6e 74 | 65 72 70 5c 66 52 2c 20 |.X\fIint|erp\fR, |
|00005bd0| 74 68 65 6e 20 5c 66 42 | 54 63 6c 5f 45 76 61 6c |then \fB|Tcl_Eval|
|00005be0| 5c 66 52 20 63 6f 6e 76 | 65 72 74 73 20 74 68 65 |\fR conv|erts the|
|00005bf0| 20 72 65 74 75 72 6e 20 | 63 6f 64 65 20 74 6f 20 | return |code to |
|00005c00| 5c 66 42 54 43 4c 5f 45 | 52 52 4f 52 5c 66 52 0a |\fBTCL_E|RROR\fR.|
|00005c10| 58 61 6e 64 20 73 65 74 | 73 20 5c 66 49 69 6e 74 |Xand set|s \fIint|
|00005c20| 65 72 70 2d 3e 72 65 73 | 75 6c 74 5c 66 52 20 74 |erp->res|ult\fR t|
|00005c30| 6f 20 70 6f 69 6e 74 20 | 74 6f 20 61 6e 20 65 72 |o point |to an er|
|00005c40| 72 6f 72 20 6d 65 73 73 | 61 67 65 20 69 6e 64 69 |ror mess|age indi|
|00005c50| 63 61 74 69 6e 67 20 74 | 68 61 74 0a 58 74 68 65 |cating t|hat.Xthe|
|00005c60| 20 5c 66 42 72 65 74 75 | 72 6e 5c 66 52 2c 20 5c | \fBretu|rn\fR, \|
|00005c70| 66 42 62 72 65 61 6b 5c | 66 52 2c 20 6f 72 20 5c |fBbreak\|fR, or \|
|00005c80| 66 42 63 6f 6e 74 69 6e | 75 65 5c 66 52 20 63 6f |fBcontin|ue\fR co|
|00005c90| 6d 6d 61 6e 64 20 77 61 | 73 0a 58 69 6e 76 6f 6b |mmand wa|s.Xinvok|
|00005ca0| 65 64 20 69 6e 20 61 6e | 20 69 6e 61 70 70 72 6f |ed in an| inappro|
|00005cb0| 70 72 69 61 74 65 20 70 | 6c 61 63 65 2e 20 20 54 |priate p|lace. T|
|00005cc0| 68 69 73 20 6d 65 61 6e | 73 20 74 68 61 74 20 74 |his mean|s that t|
|00005cd0| 6f 70 2d 6c 65 76 65 6c | 0a 58 61 70 70 6c 69 63 |op-level|.Xapplic|
|00005ce0| 61 74 69 6f 6e 73 20 73 | 68 6f 75 6c 64 20 6e 65 |ations s|hould ne|
|00005cf0| 76 65 72 20 73 65 65 20 | 61 20 72 65 74 75 72 6e |ver see |a return|
|00005d00| 20 63 6f 64 65 20 66 72 | 6f 6d 20 5c 66 42 54 63 | code fr|om \fBTc|
|00005d10| 6c 5f 45 76 61 6c 5c 66 | 52 20 6f 74 68 65 72 20 |l_Eval\f|R other |
|00005d20| 74 68 65 6e 0a 58 5c 66 | 42 54 43 4c 5f 4f 4b 5c |then.X\f|BTCL_OK\|
|00005d30| 66 52 20 6f 72 20 5c 66 | 42 54 43 4c 5f 45 52 52 |fR or \f|BTCL_ERR|
|00005d40| 4f 52 5c 66 52 2e 0a 58 | 0a 58 2e 53 48 20 4b 45 |OR\fR..X|.X.SH KE|
|00005d50| 59 57 4f 52 44 53 0a 58 | 63 6f 6d 6d 61 6e 64 2c |YWORDS.X|command,|
|00005d60| 20 65 78 65 63 75 74 65 | 2c 20 69 6e 74 65 72 70 | execute|, interp|
|00005d70| 72 65 74 65 72 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |reter.EN|D_OF_FIL|
|00005d80| 45 0a 69 66 20 74 65 73 | 74 20 33 37 31 33 20 2d |E.if tes|t 3713 -|
|00005d90| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 45 76 61 6c |ne `wc -|c <'Eval|
|00005da0| 2e 33 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.3'`; th|en. e|
|00005db0| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 45 76 61 |cho shar|: \"'Eva|
|00005dc0| 6c 2e 33 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |l.3'\" u|npacked |
|00005dd0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00005de0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 45 76 |.fi.# en|d of 'Ev|
|00005df0| 61 6c 2e 33 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |al.3'.fi|.if test|
|00005e00| 20 2d 66 20 27 45 78 70 | 72 2e 33 27 20 2d 61 20 | -f 'Exp|r.3' -a |
|00005e10| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00005e20| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00005e30| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00005e40| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00005e50| 6c 65 20 5c 22 27 45 78 | 70 72 2e 33 27 5c 22 0a |le \"'Ex|pr.3'\".|
|00005e60| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00005e70| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 45 78 |Extracti|ng \"'Ex|
|00005e80| 70 72 2e 33 27 5c 22 20 | 5c 28 31 37 36 37 20 63 |pr.3'\" |\(1767 c|
|00005e90| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00005ea0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 45 78 70 72 2e |"s/^X//"| >'Expr.|
|00005eb0| 33 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |3' <<'EN|D_OF_FIL|
|00005ec0| 45 27 0a 58 27 5c 22 20 | 43 6f 70 79 72 69 67 68 |E'.X'\" |Copyrigh|
|00005ed0| 74 20 31 39 38 39 20 52 | 65 67 65 6e 74 73 20 6f |t 1989 R|egents o|
|00005ee0| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|00005ef0| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 0a 58 | of Cali|fornia.X|
|00005f00| 27 5c 22 20 50 65 72 6d | 69 73 73 69 6f 6e 20 74 |'\" Perm|ission t|
|00005f10| 6f 20 75 73 65 2c 20 63 | 6f 70 79 2c 20 6d 6f 64 |o use, c|opy, mod|
|00005f20| 69 66 79 2c 20 61 6e 64 | 20 64 69 73 74 72 69 62 |ify, and| distrib|
|00005f30| 75 74 65 20 74 68 69 73 | 0a 58 27 5c 22 20 64 6f |ute this|.X'\" do|
|00005f40| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 6f 72 20 |cumentat|ion for |
|00005f50| 61 6e 79 20 70 75 72 70 | 6f 73 65 20 61 6e 64 20 |any purp|ose and |
|00005f60| 77 69 74 68 6f 75 74 20 | 66 65 65 20 69 73 20 68 |without |fee is h|
|00005f70| 65 72 65 62 79 0a 58 27 | 5c 22 20 67 72 61 6e 74 |ereby.X'|\" grant|
|00005f80| 65 64 2c 20 70 72 6f 76 | 69 64 65 64 20 74 68 61 |ed, prov|ided tha|
|00005f90| 74 20 74 68 69 73 20 6e | 6f 74 69 63 65 20 61 70 |t this n|otice ap|
|00005fa0| 70 65 61 72 73 20 69 6e | 20 61 6c 6c 20 63 6f 70 |pears in| all cop|
|00005fb0| 69 65 73 2e 0a 58 27 5c | 22 20 54 68 65 20 55 6e |ies..X'\|" The Un|
|00005fc0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 43 61 6c 69 |iversity| of Cali|
|00005fd0| 66 6f 72 6e 69 61 20 6d | 61 6b 65 73 20 6e 6f 20 |fornia m|akes no |
|00005fe0| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 73 20 |represen|tations |
|00005ff0| 61 62 6f 75 74 0a 58 27 | 5c 22 20 74 68 65 20 73 |about.X'|\" the s|
|00006000| 75 69 74 61 62 69 6c 69 | 74 79 20 6f 66 20 74 68 |uitabili|ty of th|
|00006010| 69 73 20 6d 61 74 65 72 | 69 61 6c 20 66 6f 72 20 |is mater|ial for |
|00006020| 61 6e 79 20 70 75 72 70 | 6f 73 65 2e 20 20 49 74 |any purp|ose. It|
|00006030| 20 69 73 0a 58 27 5c 22 | 20 70 72 6f 76 69 64 65 | is.X'\"| provide|
|00006040| 64 20 22 61 73 20 69 73 | 22 20 77 69 74 68 6f 75 |d "as is|" withou|
|00006050| 74 20 65 78 70 72 65 73 | 73 20 6f 72 20 69 6d 70 |t expres|s or imp|
|00006060| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 2e 0a 58 |lied war|ranty..X|
|00006070| 27 5c 22 20 0a 58 27 5c | 22 20 24 48 65 61 64 65 |'\" .X'\|" $Heade|
|00006080| 72 3a 20 2f 73 70 72 69 | 74 65 2f 73 72 63 2f 6c |r: /spri|te/src/l|
|00006090| 69 62 2f 74 63 6c 2f 52 | 43 53 2f 54 63 6c 5f 45 |ib/tcl/R|CS/Tcl_E|
|000060a0| 78 70 72 2e 6d 61 6e 2c | 76 20 31 2e 32 20 38 39 |xpr.man,|v 1.2 89|
|000060b0| 2f 30 33 2f 32 34 20 31 | 34 3a 31 36 3a 31 31 20 |/03/24 1|4:16:11 |
|000060c0| 6f 75 73 74 65 72 20 45 | 78 70 20 24 20 53 50 52 |ouster E|xp $ SPR|
|000060d0| 49 54 45 20 28 42 65 72 | 6b 65 6c 65 79 29 0a 58 |ITE (Ber|keley).X|
|000060e0| 27 5c 22 20 0a 58 2e 73 | 6f 20 5c 2a 28 5d 6c 74 |'\" .X.s|o \*(]lt|
|000060f0| 6d 61 63 2e 73 70 72 69 | 74 65 0a 58 2e 48 53 20 |mac.spri|te.X.HS |
|00006100| 54 63 6c 5f 45 78 70 72 | 20 74 63 6c 0a 58 2e 42 |Tcl_Expr| tcl.X.B|
|00006110| 53 0a 58 2e 53 48 20 4e | 41 4d 45 0a 58 54 63 6c |S.X.SH N|AME.XTcl|
|00006120| 5f 45 78 70 72 20 5c 2d | 20 65 76 61 6c 75 61 74 |_Expr \-| evaluat|
|00006130| 65 20 61 6e 20 65 78 70 | 72 65 73 73 69 6f 6e 0a |e an exp|ression.|
|00006140| 58 2e 53 48 20 53 59 4e | 4f 50 53 49 53 0a 58 2e |X.SH SYN|OPSIS.X.|
|00006150| 6e 66 0a 58 5c 66 42 23 | 69 6e 63 6c 75 64 65 20 |nf.X\fB#|include |
|00006160| 3c 74 63 6c 2e 68 3e 5c | 66 52 0a 58 2e 73 70 0a |<tcl.h>\|fR.X.sp.|
|00006170| 58 69 6e 74 0a 58 5c 66 | 42 54 63 6c 5f 45 78 70 |Xint.X\f|BTcl_Exp|
|00006180| 72 5c 66 52 28 5c 66 49 | 69 6e 74 65 72 70 2c 20 |r\fR(\fI|interp, |
|00006190| 73 74 72 69 6e 67 2c 20 | 76 61 6c 75 65 50 74 72 |string, |valuePtr|
|000061a0| 5c 66 52 29 0a 58 2e 53 | 48 20 41 52 47 55 4d 45 |\fR).X.S|H ARGUME|
|000061b0| 4e 54 53 0a 58 2e 41 53 | 20 54 63 6c 5f 49 6e 74 |NTS.X.AS| Tcl_Int|
|000061c0| 65 72 70 20 2a 69 6e 74 | 65 72 70 0a 58 2e 41 50 |erp *int|erp.X.AP|
|000061d0| 20 54 63 6c 5f 49 6e 74 | 65 72 70 20 2a 69 6e 74 | Tcl_Int|erp *int|
|000061e0| 65 72 70 20 69 6e 0a 58 | 49 6e 74 65 72 70 72 65 |erp in.X|Interpre|
|000061f0| 74 65 72 20 69 6e 20 77 | 68 6f 73 65 20 63 6f 6e |ter in w|hose con|
|00006200| 74 65 78 74 20 74 6f 20 | 65 76 61 6c 75 61 74 65 |text to |evaluate|
|00006210| 20 5c 66 49 73 74 72 69 | 6e 67 5c 66 52 2e 0a 58 | \fIstri|ng\fR..X|
|00006220| 2e 41 50 20 63 68 61 72 | 20 2a 73 74 72 69 6e 67 |.AP char| *string|
|00006230| 20 69 6e 0a 58 45 78 70 | 72 65 73 73 69 6f 6e 20 | in.XExp|ression |
|00006240| 74 6f 20 62 65 20 65 76 | 61 6c 75 61 74 65 64 2e |to be ev|aluated.|
|00006250| 0a 58 2e 41 50 20 69 6e | 74 20 2a 76 61 6c 75 65 |.X.AP in|t *value|
|00006260| 50 74 72 20 6f 75 74 0a | 58 54 68 65 20 65 78 70 |Ptr out.|XThe exp|
|00006270| 72 65 73 73 69 6f 6e 27 | 73 20 28 69 6e 74 65 67 |ression'|s (integ|
|00006280| 65 72 29 20 76 61 6c 75 | 65 20 77 69 6c 6c 20 62 |er) valu|e will b|
|00006290| 65 20 73 74 6f 72 65 64 | 20 68 65 72 65 2e 0a 58 |e stored| here..X|
|000062a0| 2e 42 45 0a 58 0a 58 2e | 53 48 20 44 45 53 43 52 |.BE.X.X.|SH DESCR|
|000062b0| 49 50 54 49 4f 4e 0a 58 | 2e 50 50 0a 58 5c 66 42 |IPTION.X|.PP.X\fB|
|000062c0| 54 63 6c 5f 45 78 70 72 | 5c 66 52 20 69 73 20 61 |Tcl_Expr|\fR is a|
|000062d0| 20 75 74 69 6c 69 74 79 | 20 70 72 6f 63 65 64 75 | utility| procedu|
|000062e0| 72 65 20 75 73 65 64 20 | 62 79 20 73 65 76 65 72 |re used |by sever|
|000062f0| 61 6c 20 6f 66 20 74 68 | 65 20 54 63 6c 20 63 6f |al of th|e Tcl co|
|00006300| 6d 6d 61 6e 64 73 2e 0a | 58 47 69 76 65 6e 20 61 |mmands..|XGiven a|
|00006310| 20 73 74 72 69 6e 67 20 | 77 68 6f 73 65 20 63 6f | string |whose co|
|00006320| 6e 74 65 6e 74 73 20 61 | 72 65 20 61 6e 20 65 78 |ntents a|re an ex|
|00006330| 70 72 65 73 73 69 6f 6e | 20 6f 66 20 74 68 65 20 |pression| of the |
|00006340| 66 6f 72 6d 0a 58 61 63 | 63 65 70 74 65 64 20 62 |form.Xac|cepted b|
|00006350| 79 20 74 68 65 20 5c 66 | 42 65 78 70 72 5c 66 52 |y the \f|Bexpr\fR|
|00006360| 20 63 6f 6d 6d 61 6e 64 | 2c 20 74 68 69 73 20 70 | command|, this p|
|00006370| 72 6f 63 65 64 75 72 65 | 20 65 76 61 6c 75 61 74 |rocedure| evaluat|
|00006380| 65 73 0a 58 74 68 65 20 | 65 78 70 72 65 73 73 69 |es.Xthe |expressi|
|00006390| 6f 6e 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 74 |on and r|eturns t|
|000063a0| 68 65 20 69 6e 74 65 67 | 65 72 20 72 65 73 75 6c |he integ|er resul|
|000063b0| 74 20 69 6e 20 5c 66 49 | 2a 76 61 6c 75 65 50 74 |t in \fI|*valuePt|
|000063c0| 72 5c 66 52 2e 0a 58 4e | 6f 72 6d 61 6c 6c 79 20 |r\fR..XN|ormally |
|000063d0| 5c 66 42 54 63 6c 5f 45 | 78 70 72 5c 66 52 20 72 |\fBTcl_E|xpr\fR r|
|000063e0| 65 74 75 72 6e 73 20 5c | 66 42 54 43 4c 5f 4f 4b |eturns \|fBTCL_OK|
|000063f0| 5c 66 52 20 61 73 20 69 | 74 73 20 72 65 73 75 6c |\fR as i|ts resul|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.