home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume9 / teco / part01 next >
SHell self-extracting ARchive  |  1987-03-11  |  55.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
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% 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| 53 75 62 6a 65 63 74 3a | 20 20 76 30 39 69 30 32 |Subject:| v09i02|
|00000010| 38 3a 20 20 41 20 54 45 | 43 4f 20 74 65 78 74 20 |8: A TE|CO text |
|00000020| 65 64 69 74 6f 72 2c 20 | 50 61 72 74 30 31 2f 30 |editor, |Part01/0|
|00000030| 34 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 6d 6f |4.Newsgr|oups: mo|
|00000040| 64 2e 73 6f 75 72 63 65 | 73 0a 41 70 70 72 6f 76 |d.source|s.Approv|
|00000050| 65 64 3a 20 72 73 40 6d | 69 72 72 6f 72 2e 54 4d |ed: rs@m|irror.TM|
|00000060| 43 2e 43 4f 4d 0a 0a 53 | 75 62 6d 69 74 74 65 64 |C.COM..S|ubmitted|
|00000070| 20 62 79 3a 20 67 65 6e | 72 61 64 21 6d 6c 66 0a | by: gen|rad!mlf.|
|00000080| 4d 6f 64 2e 73 6f 75 72 | 63 65 73 3a 20 56 6f 6c |Mod.sour|ces: Vol|
|00000090| 75 6d 65 20 39 2c 20 49 | 73 73 75 65 20 32 38 0a |ume 9, I|ssue 28.|
|000000a0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 74 65 |Archive-|name: te|
|000000b0| 63 6f 2f 50 61 72 74 30 | 31 0a 0a 0a 54 68 69 73 |co/Part0|1...This|
|000000c0| 20 69 73 20 54 45 43 4f | 20 66 6f 72 20 55 6c 74 | is TECO| for Ult|
|000000d0| 72 69 78 2c 20 70 61 72 | 74 20 31 2e 20 20 49 74 |rix, par|t 1. It|
|000000e0| 20 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 6e 69 6e | consist|s of nin|
|000000f0| 65 20 66 69 6c 65 73 3a | 0a 6d 61 6e 70 61 67 65 |e files:|.manpage|
|00000100| 2e 64 6f 63 20 28 74 68 | 65 20 22 6d 61 6e 22 20 |.doc (th|e "man" |
|00000110| 70 61 67 65 29 2c 20 74 | 65 63 6f 2e 64 6f 63 20 |page), t|eco.doc |
|00000120| 28 61 6e 20 6f 76 65 72 | 76 69 65 77 20 6f 66 20 |(an over|view of |
|00000130| 77 68 61 74 20 69 74 20 | 69 73 29 2c 0a 6d 61 6b |what it |is),.mak|
|00000140| 65 74 65 63 6f 2e 64 6f | 63 20 28 68 6f 77 20 74 |eteco.do|c (how t|
|00000150| 6f 20 62 75 69 6c 64 20 | 69 74 29 2c 20 74 65 63 |o build |it), tec|
|00000160| 6f 5f 64 61 74 61 2e 64 | 6f 63 20 28 6f 6e 63 65 |o_data.d|oc (once|
|00000170| 20 74 68 72 6f 75 67 68 | 20 54 45 43 4f 27 73 0a | through| TECO's.|
|00000180| 64 61 74 61 20 73 74 6f | 72 61 67 65 29 2c 20 6d |data sto|rage), m|
|00000190| 61 6b 65 66 69 6c 65 2c | 20 2e 74 65 63 6f 72 63 |akefile,| .tecorc|
|000001a0| 20 28 61 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 | (an exa|mple of |
|000001b0| 74 68 65 20 73 74 61 72 | 74 75 70 20 66 69 6c 65 |the star|tup file|
|000001c0| 29 0a 74 65 5f 64 65 66 | 73 2e 68 20 28 68 65 61 |).te_def|s.h (hea|
|000001d0| 64 65 72 20 66 69 6c 65 | 29 2c 20 74 65 5f 64 61 |der file|), te_da|
|000001e0| 74 61 2e 63 20 28 67 6c | 6f 62 61 6c 20 64 61 74 |ta.c (gl|obal dat|
|000001f0| 61 29 2c 20 74 65 5f 6d | 61 69 6e 2e 63 20 28 6d |a), te_m|ain.c (m|
|00000200| 61 69 6e 29 2e 0a 0a 5b | 20 49 20 64 69 64 64 6c |ain)...[| I diddl|
|00000210| 65 64 20 77 69 74 68 20 | 74 68 65 20 4d 61 6b 65 |ed with |the Make|
|00000220| 66 69 6c 65 20 61 20 62 | 69 74 2c 20 72 65 6e 61 |file a b|it, rena|
|00000230| 6d 65 64 20 2e 74 65 63 | 6f 72 63 20 74 6f 20 64 |med .tec|orc to d|
|00000240| 6f 74 2e 74 65 63 6f 72 | 63 2c 0a 20 20 61 6e 64 |ot.tecor|c,. and|
|00000250| 20 70 61 63 6b 65 64 20 | 74 68 69 6e 67 73 20 75 | packed |things u|
|00000260| 70 20 69 6e 74 6f 20 73 | 68 65 6c 6c 20 61 72 63 |p into s|hell arc|
|00000270| 68 69 76 65 73 2e 20 20 | 42 65 74 74 65 72 20 64 |hives. |Better d|
|00000280| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 0a 20 20 69 |ocumenta|tion. i|
|00000290| 73 20 65 6e 63 6f 75 72 | 61 67 65 64 20 2d 2d 20 |s encour|aged -- |
|000002a0| 61 6e 79 20 22 6f 6c 64 | 2d 74 69 6d 65 72 73 22 |any "old|-timers"|
|000002b0| 20 77 61 6e 6e 61 20 77 | 72 69 74 65 20 69 74 3f | wanna w|rite it?|
|000002c0| 20 2d 2d 20 61 73 20 77 | 6f 75 6c 64 20 62 65 0a | -- as w|ould be.|
|000002d0| 20 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 54 45 | suppor|t for TE|
|000002e0| 52 4d 43 41 50 20 6f 72 | 20 43 55 52 53 45 53 3b |RMCAP or| CURSES;|
|000002f0| 20 73 65 6e 64 20 63 68 | 61 6e 67 65 73 20 74 6f | send ch|anges to|
|00000300| 20 67 65 6e 72 61 64 21 | 6d 6c 66 20 2d 2d 72 24 | genrad!|mlf --r$|
|00000310| 20 5d 0a 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 | ]..#! /|bin/sh.#|
|00000320| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|00000330| 20 61 72 63 68 69 76 65 | 2e 20 20 52 65 6d 6f 76 | archive|. Remov|
|00000340| 65 20 61 6e 79 74 68 69 | 6e 67 20 62 65 66 6f 72 |e anythi|ng befor|
|00000350| 65 20 74 68 69 73 20 6c | 69 6e 65 2c 0a 23 20 74 |e this l|ine,.# t|
|00000360| 68 65 6e 20 75 6e 70 61 | 63 6b 20 69 74 20 62 79 |hen unpa|ck it by|
|00000370| 20 73 61 76 69 6e 67 20 | 69 74 20 69 6e 20 61 20 | saving |it in a |
|00000380| 66 69 6c 65 20 61 6e 64 | 20 74 79 70 69 6e 67 20 |file and| typing |
|00000390| 22 73 68 20 66 69 6c 65 | 22 2e 0a 23 20 49 66 20 |"sh file|"..# If |
|000003a0| 74 68 69 73 20 61 72 63 | 68 69 76 65 20 69 73 20 |this arc|hive is |
|000003b0| 63 6f 6d 70 6c 65 74 65 | 2c 20 79 6f 75 20 77 69 |complete|, you wi|
|000003c0| 6c 6c 20 73 65 65 20 74 | 68 65 20 6d 65 73 73 61 |ll see t|he messa|
|000003d0| 67 65 3a 0a 23 09 09 22 | 45 6e 64 20 6f 66 20 61 |ge:.#.."|End of a|
|000003e0| 72 63 68 69 76 65 20 31 | 20 28 6f 66 20 34 29 2e |rchive 1| (of 4).|
|000003f0| 22 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 4d |".# Cont|ents: M|
|00000400| 41 4e 49 46 45 53 54 20 | 4d 61 6b 65 66 69 6c 65 |ANIFEST |Makefile|
|00000410| 20 64 6f 74 2e 74 65 63 | 6f 72 63 20 6d 61 6b 65 | dot.tec|orc make|
|00000420| 74 65 63 6f 2e 64 6f 63 | 20 6d 61 6e 70 61 67 65 |teco.doc| manpage|
|00000430| 2e 64 6f 63 0a 23 20 20 | 20 74 65 5f 64 61 74 61 |.doc.# | te_data|
|00000440| 2e 63 20 74 65 5f 65 78 | 65 63 30 2e 63 20 74 65 |.c te_ex|ec0.c te|
|00000450| 5f 6d 61 69 6e 2e 63 20 | 74 65 5f 72 64 63 6d 64 |_main.c |te_rdcmd|
|00000460| 2e 63 20 74 65 5f 75 74 | 69 6c 73 2e 63 20 74 65 |.c te_ut|ils.c te|
|00000470| 63 6f 2e 64 6f 63 0a 23 | 20 20 20 74 65 63 6f 5f |co.doc.#| teco_|
|00000480| 64 61 74 61 2e 64 6f 63 | 0a 23 20 57 72 61 70 70 |data.doc|.# Wrapp|
|00000490| 65 64 20 62 79 20 72 73 | 40 6d 69 72 72 6f 72 20 |ed by rs|@mirror |
|000004a0| 6f 6e 20 54 68 75 20 4d | 61 72 20 31 32 20 31 39 |on Thu M|ar 12 19|
|000004b0| 3a 35 34 3a 32 35 20 31 | 39 38 37 0a 50 41 54 48 |:54:25 1|987.PATH|
|000004c0| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f |=/bin:/u|sr/bin:/|
|000004d0| 75 73 72 2f 75 63 62 20 | 3b 20 65 78 70 6f 72 74 |usr/ucb |; export|
|000004e0| 20 50 41 54 48 0a 65 63 | 68 6f 20 73 68 61 72 3a | PATH.ec|ho shar:|
|000004f0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 4d 41 | Extract|ing \"MA|
|00000500| 4e 49 46 45 53 54 5c 22 | 20 5c 28 36 38 34 20 63 |NIFEST\"| \(684 c|
|00000510| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 69 66 20 74 |haracter|s\).if t|
|00000520| 65 73 74 20 2d 66 20 4d | 41 4e 49 46 45 53 54 20 |est -f M|ANIFEST |
|00000530| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00000540| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: Wil|l not ov|
|00000550| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00000560| 67 20 66 69 6c 65 20 5c | 22 4d 41 4e 49 46 45 53 |g file \|"MANIFES|
|00000570| 54 5c 22 0a 65 6c 73 65 | 0a 73 65 64 20 22 73 2f |T\".else|.sed "s/|
|00000580| 5e 58 2f 2f 22 20 3e 4d | 41 4e 49 46 45 53 54 20 |^X//" >M|ANIFEST |
|00000590| 3c 3c 27 45 4e 44 5f 4f | 46 5f 4d 41 4e 49 46 45 |<<'END_O|F_MANIFE|
|000005a0| 53 54 27 0a 58 20 20 20 | 46 69 6c 65 20 4e 61 6d |ST'.X |File Nam|
|000005b0| 65 09 09 41 72 63 68 69 | 76 65 20 23 09 44 65 73 |e..Archi|ve #.Des|
|000005c0| 63 72 69 70 74 69 6f 6e | 0a 58 2d 2d 2d 2d 2d 2d |cription|.X------|
|000005d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000600| 2d 2d 2d 2d 2d 0a 58 20 | 4d 41 4e 49 46 45 53 54 |-----.X |MANIFEST|
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000620| 20 20 31 09 54 68 69 73 | 20 73 68 69 70 70 69 6e | 1.This| shippin|
|00000630| 67 20 6c 69 73 74 0a 58 | 20 4d 61 6b 65 66 69 6c |g list.X| Makefil|
|00000640| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00000650| 20 20 20 31 09 0a 58 20 | 64 6f 74 2e 74 65 63 6f | 1..X |dot.teco|
|00000660| 72 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |rc | |
|00000670| 20 20 31 09 0a 58 20 6d | 61 6b 65 74 65 63 6f 2e | 1..X m|aketeco.|
|00000680| 64 6f 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |doc | |
|00000690| 20 31 09 0a 58 20 6d 61 | 6e 70 61 67 65 2e 64 6f | 1..X ma|npage.do|
|000006a0| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|000006b0| 31 09 0a 58 20 74 65 5f | 63 68 61 72 69 6f 2e 63 |1..X te_|chario.c|
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 32 | | 2|
|000006d0| 09 0a 58 20 74 65 5f 64 | 61 74 61 2e 63 20 20 20 |..X te_d|ata.c |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 09 | | 1.|
|000006f0| 0a 58 20 74 65 5f 64 65 | 66 73 2e 68 20 20 20 20 |.X te_de|fs.h |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 32 09 0a | | 2..|
|00000710| 58 20 74 65 5f 65 78 65 | 63 30 2e 63 20 20 20 20 |X te_exe|c0.c |
|00000720| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 58 | | 1..X|
|00000730| 20 74 65 5f 65 78 65 63 | 31 2e 63 20 20 20 20 20 | te_exec|1.c |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 33 09 0a 58 20 | | 3..X |
|00000750| 74 65 5f 65 78 65 63 32 | 2e 63 20 20 20 20 20 20 |te_exec2|.c |
|00000760| 20 20 20 20 20 20 20 20 | 20 20 33 09 0a 58 20 74 | | 3..X t|
|00000770| 65 5f 6d 61 69 6e 2e 63 | 20 20 20 20 20 20 20 20 |e_main.c| |
|00000780| 20 20 20 20 20 20 20 20 | 20 31 09 0a 58 20 74 65 | | 1..X te|
|00000790| 5f 72 64 63 6d 64 2e 63 | 20 20 20 20 20 20 20 20 |_rdcmd.c| |
|000007a0| 20 20 20 20 20 20 20 20 | 31 09 0a 58 20 74 65 5f | |1..X te_|
|000007b0| 73 72 63 68 2e 63 20 20 | 20 20 20 20 20 20 20 20 |srch.c | |
|000007c0| 20 20 20 20 20 20 20 32 | 09 0a 58 20 74 65 5f 73 | 2|..X te_s|
|000007d0| 75 62 73 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |ubs.c | |
|000007e0| 20 20 20 20 20 20 32 09 | 0a 58 20 74 65 5f 75 74 | 2.|.X te_ut|
|000007f0| 69 6c 73 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |ils.c | |
|00000800| 20 20 20 20 20 31 09 0a | 58 20 74 65 5f 77 69 6e | 1..|X te_win|
|00000810| 64 6f 77 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |dow.c | |
|00000820| 20 20 20 20 34 09 0a 58 | 20 74 65 63 6f 2e 64 6f | 4..X| teco.do|
|00000830| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|00000840| 20 20 20 31 09 0a 58 20 | 74 65 63 6f 5f 64 61 74 | 1..X |teco_dat|
|00000850| 61 2e 64 6f 63 20 20 20 | 20 20 20 20 20 20 20 20 |a.doc | |
|00000860| 20 20 31 09 0a 45 4e 44 | 5f 4f 46 5f 4d 41 4e 49 | 1..END|_OF_MANI|
|00000870| 46 45 53 54 0a 69 66 20 | 74 65 73 74 20 36 38 34 |FEST.if |test 684|
|00000880| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 4d 41 4e | -ne `wc| -c <MAN|
|00000890| 49 46 45 53 54 60 3b 20 | 74 68 65 6e 0a 20 20 20 |IFEST`; |then. |
|000008a0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 4d 41 | echo sh|ar: \"MA|
|000008b0| 4e 49 46 45 53 54 5c 22 | 20 75 6e 70 61 63 6b 65 |NIFEST\"| unpacke|
|000008c0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000008d0| 65 21 3f 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |e!?.fi.#| end of |
|000008e0| 6f 76 65 72 77 72 69 74 | 69 6e 67 20 63 68 65 63 |overwrit|ing chec|
|000008f0| 6b 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |k.fi.ech|o shar: |
|00000900| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 4d 61 6b |Extracti|ng \"Mak|
|00000910| 65 66 69 6c 65 5c 22 20 | 5c 28 35 31 38 20 63 68 |efile\" |\(518 ch|
|00000920| 61 72 61 63 74 65 72 73 | 5c 29 0a 69 66 20 74 65 |aracters|\).if te|
|00000930| 73 74 20 2d 66 20 4d 61 | 6b 65 66 69 6c 65 20 3b |st -f Ma|kefile ;|
|00000940| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00000950| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: Will| not ove|
|00000960| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00000970| 20 66 69 6c 65 20 5c 22 | 4d 61 6b 65 66 69 6c 65 | file \"|Makefile|
|00000980| 5c 22 0a 65 6c 73 65 0a | 73 65 64 20 22 73 2f 5e |\".else.|sed "s/^|
|00000990| 58 2f 2f 22 20 3e 4d 61 | 6b 65 66 69 6c 65 20 3c |X//" >Ma|kefile <|
|000009a0| 3c 27 45 4e 44 5f 4f 46 | 5f 4d 61 6b 65 66 69 6c |<'END_OF|_Makefil|
|000009b0| 65 27 0a 58 23 23 0a 58 | 23 23 20 20 54 45 43 4f |e'.X##.X|## TECO|
|000009c0| 20 4d 41 4b 45 46 49 4c | 45 0a 58 23 23 0a 58 0a | MAKEFIL|E.X##.X.|
|000009d0| 58 23 20 44 65 62 75 67 | 67 69 6e 67 20 6f 72 20 |X# Debug|ging or |
|000009e0| 6f 70 74 69 6d 69 7a 69 | 6e 67 3f 0a 58 23 43 46 |optimizi|ng?.X#CF|
|000009f0| 4c 41 47 53 09 3d 20 2d | 67 0a 58 43 46 4c 41 47 |LAGS.= -|g.XCFLAG|
|00000a00| 53 09 3d 20 2d 4f 0a 58 | 54 45 52 4d 43 41 50 09 |S.= -O.X|TERMCAP.|
|00000a10| 3d 20 2d 6c 74 65 72 6d | 63 61 70 0a 58 0a 58 4f |= -lterm|cap.X.XO|
|00000a20| 42 4a 45 43 54 53 09 3d | 20 74 65 5f 64 61 74 61 |BJECTS.=| te_data|
|00000a30| 2e 6f 20 74 65 5f 65 78 | 65 63 30 2e 6f 20 74 65 |.o te_ex|ec0.o te|
|00000a40| 5f 65 78 65 63 31 2e 6f | 20 74 65 5f 65 78 65 63 |_exec1.o| te_exec|
|00000a50| 32 2e 6f 20 74 65 5f 6d | 61 69 6e 2e 6f 20 74 65 |2.o te_m|ain.o te|
|00000a60| 5f 72 64 63 6d 64 2e 6f | 20 5c 0a 58 09 74 65 5f |_rdcmd.o| \.X.te_|
|00000a70| 73 72 63 68 2e 6f 20 74 | 65 5f 73 75 62 73 2e 6f |srch.o t|e_subs.o|
|00000a80| 20 74 65 5f 75 74 69 6c | 73 2e 6f 20 74 65 5f 77 | te_util|s.o te_w|
|00000a90| 69 6e 64 6f 77 2e 6f 0a | 58 0a 58 74 65 3a 09 09 |indow.o.|X.Xte:..|
|00000aa0| 24 28 4f 42 4a 45 43 54 | 53 29 20 74 65 5f 63 68 |$(OBJECT|S) te_ch|
|00000ab0| 61 72 69 6f 2e 6f 0a 58 | 09 24 28 43 43 29 20 2d |ario.o.X|.$(CC) -|
|00000ac0| 6f 20 74 65 20 24 28 43 | 46 4c 41 47 53 29 20 24 |o te $(C|FLAGS) $|
|00000ad0| 28 4f 42 4a 45 43 54 53 | 29 20 74 65 5f 63 68 61 |(OBJECTS|) te_cha|
|00000ae0| 72 69 6f 2e 6f 20 24 28 | 54 45 52 4d 43 41 50 29 |rio.o $(|TERMCAP)|
|00000af0| 0a 58 0a 58 74 65 78 3a | 09 09 24 28 4f 42 4a 45 |.X.Xtex:|..$(OBJE|
|00000b00| 43 54 53 29 20 74 65 5f | 63 68 78 2e 6f 0a 58 09 |CTS) te_|chx.o.X.|
|00000b10| 24 28 43 43 29 20 2d 6f | 20 74 65 78 20 24 28 43 |$(CC) -o| tex $(C|
|00000b20| 46 4c 41 47 53 29 20 24 | 28 4f 42 4a 45 43 54 53 |FLAGS) $|(OBJECTS|
|00000b30| 29 20 74 65 5f 63 68 78 | 2e 6f 20 24 28 54 45 52 |) te_chx|.o $(TER|
|00000b40| 4d 43 41 50 29 0a 58 0a | 58 24 28 4f 42 4a 45 43 |MCAP).X.|X$(OBJEC|
|00000b50| 54 53 29 20 74 65 5f 63 | 68 61 72 69 6f 2e 6f 20 |TS) te_c|hario.o |
|00000b60| 74 65 5f 63 68 78 2e 6f | 3a 09 74 65 5f 64 65 66 |te_chx.o|:.te_def|
|00000b70| 73 2e 68 0a 58 74 65 5f | 63 68 78 2e 6f 3a 09 09 |s.h.Xte_|chx.o:..|
|00000b80| 09 09 74 65 5f 63 68 61 | 72 69 6f 2e 63 0a 58 09 |..te_cha|rio.c.X.|
|00000b90| 63 70 20 74 65 5f 63 68 | 61 72 69 6f 2e 63 20 74 |cp te_ch|ario.c t|
|00000ba0| 65 5f 63 68 78 2e 63 0a | 58 09 24 28 43 43 29 20 |e_chx.c.|X.$(CC) |
|00000bb0| 2d 44 44 45 42 55 47 20 | 24 28 43 46 4c 41 47 53 |-DDEBUG |$(CFLAGS|
|00000bc0| 29 20 2d 63 20 74 65 5f | 63 68 78 2e 63 0a 58 0a |) -c te_|chx.c.X.|
|00000bd0| 45 4e 44 5f 4f 46 5f 4d | 61 6b 65 66 69 6c 65 0a |END_OF_M|akefile.|
|00000be0| 69 66 20 74 65 73 74 20 | 35 31 38 20 2d 6e 65 20 |if test |518 -ne |
|00000bf0| 60 77 63 20 2d 63 20 3c | 4d 61 6b 65 66 69 6c 65 |`wc -c <|Makefile|
|00000c00| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00000c10| 20 73 68 61 72 3a 20 5c | 22 4d 61 6b 65 66 69 6c | shar: \|"Makefil|
|00000c20| 65 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |e\" unpa|cked wit|
|00000c30| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 3f 0a 66 |h wrong |size!?.f|
|00000c40| 69 0a 23 20 65 6e 64 20 | 6f 66 20 6f 76 65 72 77 |i.# end |of overw|
|00000c50| 72 69 74 69 6e 67 20 63 | 68 65 63 6b 0a 66 69 0a |riting c|heck.fi.|
|00000c60| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00000c70| 63 74 69 6e 67 20 5c 22 | 64 6f 74 2e 74 65 63 6f |cting \"|dot.teco|
|00000c80| 72 63 5c 22 20 5c 28 32 | 35 39 20 63 68 61 72 61 |rc\" \(2|59 chara|
|00000c90| 63 74 65 72 73 5c 29 0a | 69 66 20 74 65 73 74 20 |cters\).|if test |
|00000ca0| 2d 66 20 64 6f 74 2e 74 | 65 63 6f 72 63 20 3b 20 |-f dot.t|ecorc ; |
|00000cb0| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000cc0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: Will |not over|
|00000cd0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00000ce0| 66 69 6c 65 20 5c 22 64 | 6f 74 2e 74 65 63 6f 72 |file \"d|ot.tecor|
|00000cf0| 63 5c 22 0a 65 6c 73 65 | 0a 73 65 64 20 22 73 2f |c\".else|.sed "s/|
|00000d00| 5e 58 2f 2f 22 20 3e 64 | 6f 74 2e 74 65 63 6f 72 |^X//" >d|ot.tecor|
|00000d10| 63 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 64 6f 74 2e |c <<'END|_OF_dot.|
|00000d20| 74 65 63 6f 72 63 27 0a | 58 21 21 21 21 21 21 20 |tecorc'.|X!!!!!! |
|00000d30| 20 20 54 48 49 53 20 49 | 53 20 41 20 53 41 4d 50 | THIS I|S A SAMP|
|00000d40| 4c 45 20 46 49 4c 45 2e | 20 20 52 45 50 4c 41 43 |LE FILE.| REPLAC|
|00000d50| 45 20 5e 5b 20 77 69 74 | 68 20 45 53 43 41 50 45 |E ^[ wit|h ESCAPE|
|00000d60| 2c 20 61 6e 64 20 5e 41 | 2f 5e 45 20 77 69 74 68 |, and ^A|/^E with|
|00000d70| 0a 58 21 21 21 21 21 21 | 20 20 20 54 48 45 49 52 |.X!!!!!!| THEIR|
|00000d80| 20 52 45 41 4c 20 43 4f | 4e 54 52 4f 4c 20 43 48 | REAL CO|NTROL CH|
|00000d90| 41 52 41 43 54 45 52 53 | 2c 20 41 4e 44 20 44 45 |ARACTERS|, AND DE|
|00000da0| 4c 45 54 45 20 54 48 45 | 53 45 20 54 57 4f 20 4c |LETE THE|SE TWO L|
|00000db0| 49 4e 45 53 2e 0a 58 40 | 65 69 2f 2f 20 68 6b 20 |INES..X@|ei// hk |
|00000dc0| 36 34 65 7a 20 3a 71 7a | 2d 33 22 67 20 67 7a 20 |64ez :qz|-3"g gz |
|00000dd0| 6a 3a 73 20 5e 5b 22 73 | 0a 58 30 6b 20 68 78 7a |j:s ^["s|.X0k hxz|
|00000de0| 20 68 6b 20 0a 58 3a 65 | 62 5e 45 71 7a 5e 5b 20 | hk .X:e|b^Eqz^[ |
|00000df0| 22 65 0a 58 5e 41 46 69 | 6c 65 20 6e 6f 74 20 66 |"e.X^AFi|le not f|
|00000e00| 6f 75 6e 64 3a 20 5e 41 | 20 3a 67 2a 20 5e 41 0a |ound: ^A| :g* ^A.|
|00000e10| 58 5e 41 20 68 6b 65 6b | 65 78 20 27 0a 58 79 27 |X^A hkek|ex '.Xy'|
|00000e20| 27 20 35 2c 37 3a 77 20 | 30 2c 30 78 7a 0a 58 5e |' 5,7:w |0,0xz.X^|
|00000e30| 5b 5e 5b 0a 45 4e 44 5f | 4f 46 5f 64 6f 74 2e 74 |[^[.END_|OF_dot.t|
|00000e40| 65 63 6f 72 63 0a 69 66 | 20 74 65 73 74 20 32 35 |ecorc.if| test 25|
|00000e50| 39 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 64 6f |9 -ne `w|c -c <do|
|00000e60| 74 2e 74 65 63 6f 72 63 | 60 3b 20 74 68 65 6e 0a |t.tecorc|`; then.|
|00000e70| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00000e80| 22 64 6f 74 2e 74 65 63 | 6f 72 63 5c 22 20 75 6e |"dot.tec|orc\" un|
|00000e90| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00000ea0| 67 20 73 69 7a 65 21 3f | 0a 66 69 0a 23 20 65 6e |g size!?|.fi.# en|
|00000eb0| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|00000ec0| 20 63 68 65 63 6b 0a 66 | 69 0a 65 63 68 6f 20 73 | check.f|i.echo s|
|00000ed0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00000ee0| 5c 22 6d 61 6b 65 74 65 | 63 6f 2e 64 6f 63 5c 22 |\"makete|co.doc\"|
|00000ef0| 20 5c 28 32 34 37 38 20 | 63 68 61 72 61 63 74 65 | \(2478 |characte|
|00000f00| 72 73 5c 29 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs\).if |test -f |
|00000f10| 6d 61 6b 65 74 65 63 6f | 2e 64 6f 63 20 3b 20 74 |maketeco|.doc ; t|
|00000f20| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00000f30| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: Will n|ot over-|
|00000f40| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00000f50| 69 6c 65 20 5c 22 6d 61 | 6b 65 74 65 63 6f 2e 64 |ile \"ma|keteco.d|
|00000f60| 6f 63 5c 22 0a 65 6c 73 | 65 0a 73 65 64 20 22 73 |oc\".els|e.sed "s|
|00000f70| 2f 5e 58 2f 2f 22 20 3e | 6d 61 6b 65 74 65 63 6f |/^X//" >|maketeco|
|00000f80| 2e 64 6f 63 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 6d |.doc <<'|END_OF_m|
|00000f90| 61 6b 65 74 65 63 6f 2e | 64 6f 63 27 0a 58 54 45 |aketeco.|doc'.XTE|
|00000fa0| 43 4f 20 66 6f 72 20 55 | 6c 74 72 69 78 09 09 09 |CO for U|ltrix...|
|00000fb0| 4d 61 74 74 20 46 69 63 | 68 74 65 6e 62 61 75 6d |Matt Fic|htenbaum|
|00000fc0| 20 20 33 2f 32 37 2f 38 | 36 20 20 72 65 76 69 73 | 3/27/8|6 revis|
|00000fd0| 65 64 20 37 2f 32 35 2f | 38 36 0a 58 0a 58 20 20 |ed 7/25/|86.X.X |
|00000fe0| 20 20 20 54 68 65 73 65 | 20 6e 6f 74 65 73 20 64 | These| notes d|
|00000ff0| 65 73 63 72 69 62 65 20 | 62 72 69 65 66 6c 79 20 |escribe |briefly |
|00001000| 77 68 61 74 20 69 74 20 | 69 73 20 61 6e 64 20 68 |what it |is and h|
|00001010| 6f 77 20 74 6f 20 6d 61 | 6b 65 20 69 74 2e 0a 58 |ow to ma|ke it..X|
|00001020| 0a 58 20 20 20 20 20 55 | 6c 74 72 69 78 20 54 45 |.X U|ltrix TE|
|00001030| 43 4f 20 69 73 20 61 6e | 20 65 64 69 74 6f 72 20 |CO is an| editor |
|00001040| 74 68 61 74 20 69 73 20 | 6d 6f 73 74 6c 79 20 63 |that is |mostly c|
|00001050| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 44 |ompatibl|e with D|
|00001060| 45 43 0a 58 53 74 61 6e | 64 61 72 64 20 54 45 43 |EC.XStan|dard TEC|
|00001070| 4f 2e 20 20 49 74 20 69 | 73 20 77 72 69 74 74 65 |O. It i|s writte|
|00001080| 6e 20 69 6e 20 43 20 74 | 6f 20 72 75 6e 20 75 6e |n in C t|o run un|
|00001090| 64 65 72 20 55 6c 74 72 | 69 78 20 28 61 6e 64 20 |der Ultr|ix (and |
|000010a0| 6f 74 68 65 72 0a 58 55 | 6e 69 78 20 28 74 6d 29 |other.XU|nix (tm)|
|000010b0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|000010c0| 2c 20 65 2e 67 2e 2c 20 | 69 74 20 68 61 73 20 63 |, e.g., |it has c|
|000010d0| 6f 6d 70 69 6c 65 64 20 | 61 6e 64 20 72 75 6e 20 |ompiled |and run |
|000010e0| 6f 6e 20 61 20 53 75 6e | 0a 58 77 6f 72 6b 73 74 |on a Sun|.Xworkst|
|000010f0| 61 74 69 6f 6e 29 2e 20 | 20 49 74 20 69 6d 70 6c |ation). | It impl|
|00001100| 65 6d 65 6e 74 73 20 61 | 6c 6c 20 74 68 65 20 65 |ements a|ll the e|
|00001110| 64 69 74 6f 72 20 66 75 | 6e 63 74 69 6f 6e 73 20 |ditor fu|nctions |
|00001120| 6f 66 20 44 45 43 20 54 | 45 43 4f 0a 58 61 6e 64 |of DEC T|ECO.Xand|
|00001130| 20 69 74 20 68 61 73 20 | 73 6f 6d 65 20 61 64 64 | it has |some add|
|00001140| 69 74 69 6f 6e 61 6c 20 | 66 65 61 74 75 72 65 73 |itional |features|
|00001150| 20 73 75 69 74 65 64 20 | 74 6f 20 74 68 65 20 55 | suited |to the U|
|00001160| 6e 69 78 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2c |nix envi|ronment,|
|00001170| 0a 58 73 75 63 68 20 61 | 73 20 74 68 65 20 61 62 |.Xsuch a|s the ab|
|00001180| 69 6c 69 74 79 20 74 6f | 20 65 78 65 63 75 74 65 |ility to| execute|
|00001190| 20 55 6e 69 78 20 63 6f | 6d 6d 61 6e 64 73 20 6f | Unix co|mmands o|
|000011a0| 72 20 74 6f 20 70 61 73 | 73 20 74 65 78 74 20 66 |r to pas|s text f|
|000011b0| 72 6f 6d 0a 58 54 45 43 | 4f 27 73 20 62 75 66 66 |rom.XTEC|O's buff|
|000011c0| 65 72 20 74 68 72 6f 75 | 67 68 20 61 20 55 6e 69 |er throu|gh a Uni|
|000011d0| 78 20 70 72 6f 63 65 73 | 73 20 61 6e 64 20 69 6e |x proces|s and in|
|000011e0| 63 6f 72 70 6f 72 61 74 | 65 20 74 68 65 20 72 65 |corporat|e the re|
|000011f0| 73 75 6c 74 0a 58 69 6e | 74 6f 20 74 68 65 20 74 |sult.Xin|to the t|
|00001200| 65 78 74 20 62 75 66 66 | 65 72 2e 20 20 49 74 20 |ext buff|er. It |
|00001210| 6c 61 63 6b 73 20 73 6f | 6d 65 20 6f 66 20 74 68 |lacks so|me of th|
|00001220| 65 20 64 69 73 70 6c 61 | 79 20 73 75 70 70 6f 72 |e displa|y suppor|
|00001230| 74 20 66 65 61 74 75 72 | 65 73 0a 58 6f 66 20 53 |t featur|es.Xof S|
|00001240| 74 61 6e 64 61 72 64 20 | 54 45 43 4f 2c 20 62 75 |tandard |TECO, bu|
|00001250| 74 20 69 6e 63 6c 75 64 | 65 73 20 74 68 65 20 73 |t includ|es the s|
|00001260| 70 6c 69 74 2d 73 63 72 | 65 65 6e 20 22 77 69 6e |plit-scr|een "win|
|00001270| 64 6f 77 22 20 6d 6f 64 | 65 0a 58 73 75 69 74 61 |dow" mod|e.Xsuita|
|00001280| 62 6c 65 20 66 6f 72 20 | 75 73 69 6e 67 20 22 72 |ble for |using "r|
|00001290| 61 77 22 20 54 45 43 4f | 2e 0a 58 0a 58 20 20 20 |aw" TECO|..X.X |
|000012a0| 20 20 4e 6f 74 65 20 74 | 68 61 74 20 54 45 43 4f | Note t|hat TECO|
|000012b0| 27 73 20 43 52 54 20 72 | 6f 75 74 69 6e 65 73 20 |'s CRT r|outines |
|000012c0| 61 72 65 20 68 61 72 64 | 2d 63 6f 64 65 64 20 66 |are hard|-coded f|
|000012d0| 6f 72 20 61 20 56 54 31 | 30 30 2d 74 79 70 65 0a |or a VT1|00-type.|
|000012e0| 58 74 65 72 6d 69 6e 61 | 6c 2e 20 20 55 73 69 6e |Xtermina|l. Usin|
|000012f0| 67 20 61 6e 6f 74 68 65 | 72 20 74 79 70 65 20 6f |g anothe|r type o|
|00001300| 66 20 74 65 72 6d 69 6e | 61 6c 20 72 65 71 75 69 |f termin|al requi|
|00001310| 72 65 73 20 63 68 61 6e | 67 69 6e 67 20 74 68 65 |res chan|ging the|
|00001320| 73 65 0a 58 72 6f 75 74 | 69 6e 65 73 2e 0a 58 0a |se.Xrout|ines..X.|
|00001330| 58 20 20 20 20 20 55 6c | 74 72 69 78 20 54 45 43 |X Ul|trix TEC|
|00001340| 4f 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 74 77 |O consis|ts of tw|
|00001350| 65 6c 76 65 20 73 6f 75 | 72 63 65 20 66 69 6c 65 |elve sou|rce file|
|00001360| 73 3a 0a 58 0a 58 09 74 | 65 5f 64 65 66 73 2e 68 |s:.X.X.t|e_defs.h|
|00001370| 09 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 66 69 6c |.definit|ions fil|
|00001380| 65 20 23 69 6e 63 6c 75 | 64 65 27 64 20 62 79 20 |e #inclu|de'd by |
|00001390| 74 68 65 20 2e 63 20 66 | 69 6c 65 73 0a 58 09 74 |the .c f|iles.X.t|
|000013a0| 65 5f 64 61 74 61 2e 63 | 09 22 63 6f 6d 6d 6f 6e |e_data.c|."common|
|000013b0| 22 20 64 61 74 61 0a 58 | 09 74 65 5f 6d 61 69 6e |" data.X|.te_main|
|000013c0| 2e 63 09 6d 61 69 6e 20 | 70 72 6f 67 72 61 6d 0a |.c.main |program.|
|000013d0| 58 09 74 65 5f 72 64 63 | 6d 64 2e 63 09 72 65 61 |X.te_rdc|md.c.rea|
|000013e0| 64 20 63 6f 6d 6d 61 6e | 64 73 20 61 6e 64 20 62 |d comman|ds and b|
|000013f0| 75 69 6c 64 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |uild the| command|
|00001400| 20 73 74 72 69 6e 67 0a | 58 09 74 65 5f 65 78 65 | string.|X.te_exe|
|00001410| 63 30 2e 63 09 65 78 65 | 63 20 63 6f 6d 6d 61 6e |c0.c.exe|c comman|
|00001420| 64 73 20 31 20 28 69 6e | 69 74 69 61 6c 20 64 69 |ds 1 (in|itial di|
|00001430| 73 70 61 74 63 68 20 26 | 20 65 78 70 72 65 73 73 |spatch &| express|
|00001440| 69 6f 6e 73 29 0a 58 09 | 74 65 5f 65 78 65 63 31 |ions).X.|te_exec1|
|00001450| 2e 63 09 65 78 65 63 20 | 63 6f 6d 6d 61 6e 64 73 |.c.exec |commands|
|00001460| 20 32 20 28 6d 6f 73 74 | 20 63 6f 6d 6d 61 6e 64 | 2 (most| command|
|00001470| 73 29 0a 58 09 74 65 5f | 65 78 65 63 32 2e 63 09 |s).X.te_|exec2.c.|
|00001480| 65 78 65 63 20 63 6f 6d | 6d 61 6e 64 73 20 33 20 |exec com|mands 3 |
|00001490| 28 45 2c 20 46 20 63 6f | 6d 6d 61 6e 64 73 2c 20 |(E, F co|mmands, |
|000014a0| 66 69 6c 65 20 49 2f 4f | 2c 20 55 6e 69 78 20 65 |file I/O|, Unix e|
|000014b0| 78 74 65 6e 73 69 6f 6e | 73 29 0a 58 09 74 65 5f |xtension|s).X.te_|
|000014c0| 73 72 63 68 2e 63 09 73 | 65 61 72 63 68 20 6f 70 |srch.c.s|earch op|
|000014d0| 65 72 61 74 69 6f 6e 73 | 0a 58 09 74 65 5f 77 69 |erations|.X.te_wi|
|000014e0| 6e 64 6f 77 2e 63 09 43 | 52 54 20 64 69 73 70 6c |ndow.c.C|RT displ|
|000014f0| 61 79 20 72 6f 75 74 69 | 6e 65 73 0a 58 09 74 65 |ay routi|nes.X.te|
|00001500| 5f 63 68 61 72 69 6f 2e | 63 09 74 65 72 6d 69 6e |_chario.|c.termin|
|00001510| 61 6c 20 49 2f 4f 2c 20 | 69 6e 74 65 72 61 63 74 |al I/O, |interact|
|00001520| 69 6f 6e 20 77 69 74 68 | 20 74 74 79 20 64 72 69 |ion with| tty dri|
|00001530| 76 65 72 2c 20 73 69 67 | 6e 61 6c 73 0a 58 09 74 |ver, sig|nals.X.t|
|00001540| 65 5f 73 75 62 73 2e 63 | 09 68 69 67 68 65 72 20 |e_subs.c|.higher |
|00001550| 6c 65 76 65 6c 20 73 75 | 62 72 6f 75 74 69 6e 65 |level su|broutine|
|00001560| 73 0a 58 09 74 65 5f 75 | 74 69 6c 73 2e 63 09 6c |s.X.te_u|tils.c.l|
|00001570| 6f 77 65 72 20 6c 65 76 | 65 6c 20 73 75 62 72 6f |ower lev|el subro|
|00001580| 75 74 69 6e 65 73 0a 58 | 0a 58 54 45 43 4f 20 69 |utines.X|.XTECO i|
|00001590| 73 20 62 75 69 6c 74 20 | 61 73 20 66 6f 6c 6c 6f |s built |as follo|
|000015a0| 77 73 3a 0a 58 0a 58 09 | 31 2e 20 43 6f 6d 70 69 |ws:.X.X.|1. Compi|
|000015b0| 6c 65 20 61 6c 6c 20 74 | 68 65 20 2e 63 20 66 69 |le all t|he .c fi|
|000015c0| 6c 65 73 20 77 69 74 68 | 20 63 63 20 2d 63 20 2d |les with| cc -c -|
|000015d0| 4f 20 3c 66 69 6c 65 3e | 2e 63 0a 58 0a 58 09 32 |O <file>|.c.X.X.2|
|000015e0| 2e 20 4c 69 6e 6b 20 61 | 6c 6c 20 74 68 65 20 6f |. Link a|ll the o|
|000015f0| 62 6a 65 63 74 20 66 69 | 6c 65 73 20 77 69 74 68 |bject fi|les with|
|00001600| 20 63 63 20 2d 6f 20 74 | 65 20 2a 2e 6f 0a 58 0a | cc -o t|e *.o.X.|
|00001610| 58 4e 6f 74 65 20 74 68 | 61 74 20 54 45 43 4f 20 |XNote th|at TECO |
|00001620| 63 61 74 63 68 65 73 20 | 74 68 65 20 22 69 6e 74 |catches |the "int|
|00001630| 65 72 72 75 70 74 22 20 | 28 5e 43 29 20 73 69 67 |errupt" |(^C) sig|
|00001640| 6e 61 6c 3b 20 74 68 69 | 73 20 6d 61 79 20 63 61 |nal; thi|s may ca|
|00001650| 75 73 65 20 70 72 6f 62 | 6c 65 6d 73 20 77 68 65 |use prob|lems whe|
|00001660| 6e 0a 58 75 73 69 6e 67 | 20 64 62 78 2e 20 20 54 |n.Xusing| dbx. T|
|00001670| 68 69 73 20 63 61 6e 20 | 62 65 20 63 69 72 63 75 |his can |be circu|
|00001680| 6d 76 65 6e 74 65 64 20 | 62 79 20 63 6f 6d 70 69 |mvented |by compi|
|00001690| 6c 69 6e 67 20 74 65 5f | 63 68 61 72 69 6f 2e 63 |ling te_|chario.c|
|000016a0| 20 77 69 74 68 20 74 68 | 65 20 73 79 6d 62 6f 6c | with th|e symbol|
|000016b0| 0a 58 44 45 42 55 47 20 | 64 65 66 69 6e 65 64 2c |.XDEBUG |defined,|
|000016c0| 20 69 2e 65 2e 2c 0a 58 | 0a 58 09 63 63 20 2d 63 | i.e.,.X|.X.cc -c|
|000016d0| 20 2d 67 20 2d 44 44 45 | 42 55 47 20 74 65 5f 63 | -g -DDE|BUG te_c|
|000016e0| 68 61 72 69 6f 2e 63 0a | 58 0a 58 28 6e 61 74 75 |hario.c.|X.X(natu|
|000016f0| 72 61 6c 6c 79 2c 20 74 | 68 65 20 2d 67 20 66 6c |rally, t|he -g fl|
|00001700| 61 67 20 73 68 6f 75 6c | 64 20 62 65 20 73 70 65 |ag shoul|d be spe|
|00001710| 63 69 66 69 65 64 20 74 | 6f 20 61 6c 6c 20 74 68 |cified t|o all th|
|00001720| 65 20 63 63 20 63 6f 6d | 6d 61 6e 64 73 0a 58 69 |e cc com|mands.Xi|
|00001730| 66 20 64 62 78 20 69 73 | 20 74 6f 20 62 65 20 75 |f dbx is| to be u|
|00001740| 73 65 64 29 2e 0a 58 0a | 58 0a 58 54 68 65 72 65 |sed)..X.|X.XThere|
|00001750| 20 61 72 65 20 74 77 6f | 20 27 6d 61 6b 65 66 69 | are two| 'makefi|
|00001760| 6c 65 73 2e 27 20 20 27 | 6d 61 6b 65 66 69 6c 65 |les.' '|makefile|
|00001770| 27 20 6d 61 6b 65 73 20 | 27 74 65 27 20 61 73 20 |' makes |'te' as |
|00001780| 61 62 6f 76 65 3b 20 27 | 6d 61 6b 65 66 69 6c 65 |above; '|makefile|
|00001790| 2e 78 27 0a 58 6d 61 6b | 65 73 20 27 74 65 27 20 |.x'.Xmak|es 'te' |
|000017a0| 61 6e 64 20 27 74 65 78 | 27 20 66 6f 72 20 75 73 |and 'tex|' for us|
|000017b0| 65 20 77 69 74 68 20 64 | 62 78 2e 20 20 27 74 65 |e with d|bx. 'te|
|000017c0| 78 27 20 63 6f 6d 70 69 | 6c 65 73 20 74 65 5f 63 |x' compi|les te_c|
|000017d0| 68 61 72 69 6f 2e 63 20 | 77 69 74 68 0a 58 74 68 |hario.c |with.Xth|
|000017e0| 65 20 44 45 42 55 47 20 | 66 6c 61 67 20 73 65 74 |e DEBUG |flag set|
|000017f0| 2e 20 20 42 65 63 61 75 | 73 65 20 27 6d 61 6b 65 |. Becau|se 'make|
|00001800| 66 69 6c 65 2e 78 27 20 | 63 6f 6d 70 69 6c 65 73 |file.x' |compiles|
|00001810| 20 77 69 74 68 20 2d 67 | 20 61 6e 64 20 27 6d 61 | with -g| and 'ma|
|00001820| 6b 65 66 69 6c 65 27 0a | 58 64 6f 65 73 6e 27 74 |kefile'.|Xdoesn't|
|00001830| 2c 20 74 68 65 20 74 77 | 6f 20 6f 75 67 68 74 20 |, the tw|o ought |
|00001840| 6e 6f 74 20 74 6f 20 73 | 68 61 72 65 20 74 68 65 |not to s|hare the|
|00001850| 20 73 61 6d 65 20 64 69 | 72 65 63 74 6f 72 79 2e | same di|rectory.|
|00001860| 0a 58 0a 58 4e 4f 54 45 | 3a 20 6d 61 6b 65 66 69 |.X.XNOTE|: makefi|
|00001870| 6c 65 2e 78 20 69 73 20 | 73 65 74 20 75 70 20 74 |le.x is |set up t|
|00001880| 6f 20 6d 61 6b 65 20 74 | 68 65 20 2d 44 44 45 42 |o make t|he -DDEB|
|00001890| 55 47 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 65 |UG versi|on of te|
|000018a0| 5f 63 68 61 72 69 6f 2e | 6f 0a 58 75 6e 64 65 72 |_chario.|o.Xunder|
|000018b0| 20 74 68 65 20 6e 61 6d | 65 20 74 65 5f 63 68 78 | the nam|e te_chx|
|000018c0| 2e 6f 2e 20 20 54 68 65 | 20 73 6f 75 72 63 65 20 |.o. The| source |
|000018d0| 64 69 72 65 63 74 6f 72 | 79 20 73 68 6f 75 6c 64 |director|y should|
|000018e0| 20 63 6f 6e 74 61 69 6e | 20 74 65 5f 63 68 78 2e | contain| te_chx.|
|000018f0| 63 0a 58 61 73 20 61 20 | 73 79 6d 62 6f 6c 69 63 |c.Xas a |symbolic|
|00001900| 20 6c 69 6e 6b 20 74 6f | 20 74 65 5f 63 68 61 72 | link to| te_char|
|00001910| 69 6f 2e 63 2e 0a 58 0a | 58 09 54 68 65 20 66 69 |io.c..X.|X.The fi|
|00001920| 6c 65 20 2e 74 65 63 6f | 72 63 20 69 6c 6c 75 73 |le .teco|rc illus|
|00001930| 74 72 61 74 65 73 20 6f | 6e 65 20 70 6f 73 73 69 |trates o|ne possi|
|00001940| 62 6c 65 20 73 74 61 72 | 74 75 70 2e 20 20 49 74 |ble star|tup. It|
|00001950| 20 69 6d 70 6c 65 6d 65 | 6e 74 73 0a 58 27 74 65 | impleme|nts.X'te|
|00001960| 20 66 69 6c 65 27 20 74 | 6f 20 6d 65 61 6e 0a 58 | file' t|o mean.X|
|00001970| 0a 58 09 25 74 65 0a 58 | 09 2a 65 62 66 69 6c 65 |.X.%te.X|.*ebfile|
|00001980| 24 79 35 2c 37 3a 77 24 | 24 0a 58 0a 45 4e 44 5f |$y5,7:w$|$.X.END_|
|00001990| 4f 46 5f 6d 61 6b 65 74 | 65 63 6f 2e 64 6f 63 0a |OF_maket|eco.doc.|
|000019a0| 69 66 20 74 65 73 74 20 | 32 34 37 38 20 2d 6e 65 |if test |2478 -ne|
|000019b0| 20 60 77 63 20 2d 63 20 | 3c 6d 61 6b 65 74 65 63 | `wc -c |<maketec|
|000019c0| 6f 2e 64 6f 63 60 3b 20 | 74 68 65 6e 0a 20 20 20 |o.doc`; |then. |
|000019d0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 6d 61 | echo sh|ar: \"ma|
|000019e0| 6b 65 74 65 63 6f 2e 64 | 6f 63 5c 22 20 75 6e 70 |keteco.d|oc\" unp|
|000019f0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00001a00| 20 73 69 7a 65 21 3f 0a | 66 69 0a 23 20 65 6e 64 | size!?.|fi.# end|
|00001a10| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00001a20| 63 68 65 63 6b 0a 66 69 | 0a 65 63 68 6f 20 73 68 |check.fi|.echo sh|
|00001a30| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00001a40| 22 6d 61 6e 70 61 67 65 | 2e 64 6f 63 5c 22 20 5c |"manpage|.doc\" \|
|00001a50| 28 31 32 38 35 20 63 68 | 61 72 61 63 74 65 72 73 |(1285 ch|aracters|
|00001a60| 5c 29 0a 69 66 20 74 65 | 73 74 20 2d 66 20 6d 61 |\).if te|st -f ma|
|00001a70| 6e 70 61 67 65 2e 64 6f | 63 20 3b 20 74 68 65 6e |npage.do|c ; then|
|00001a80| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00001a90| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00001aa0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00001ab0| 20 5c 22 6d 61 6e 70 61 | 67 65 2e 64 6f 63 5c 22 | \"manpa|ge.doc\"|
|00001ac0| 0a 65 6c 73 65 0a 73 65 | 64 20 22 73 2f 5e 58 2f |.else.se|d "s/^X/|
|00001ad0| 2f 22 20 3e 6d 61 6e 70 | 61 67 65 2e 64 6f 63 20 |/" >manp|age.doc |
|00001ae0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 6d 61 6e 70 61 67 |<<'END_O|F_manpag|
|00001af0| 65 2e 64 6f 63 27 0a 58 | 4e 41 4d 45 0a 58 09 74 |e.doc'.X|NAME.X.t|
|00001b00| 65 20 2d 20 54 45 43 4f | 20 74 65 78 74 20 65 64 |e - TECO| text ed|
|00001b10| 69 74 6f 72 0a 58 0a 58 | 53 59 4e 4f 50 53 49 53 |itor.X.X|SYNOPSIS|
|00001b20| 0a 58 09 74 65 20 5b 66 | 69 6c 65 6e 61 6d 65 5d |.X.te [f|ilename]|
|00001b30| 0a 58 0a 58 44 45 53 43 | 52 49 50 54 49 4f 4e 0a |.X.XDESC|RIPTION.|
|00001b40| 58 09 74 65 20 69 73 20 | 61 6e 20 69 6d 70 6c 65 |X.te is |an imple|
|00001b50| 6d 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 54 45 43 |mentatio|n of TEC|
|00001b60| 4f 20 77 72 69 74 74 65 | 6e 20 69 6e 20 43 20 74 |O writte|n in C t|
|00001b70| 6f 20 72 75 6e 20 75 6e | 64 65 72 0a 58 09 55 6c |o run un|der.X.Ul|
|00001b80| 74 72 69 78 20 31 2e 32 | 2e 0a 58 0a 58 09 74 65 |trix 1.2|..X.X.te|
|00001b90| 20 69 6d 70 6c 65 6d 65 | 6e 74 73 20 44 45 43 20 | impleme|nts DEC |
|00001ba0| 73 74 61 6e 64 61 72 64 | 20 54 45 43 4f 2c 20 77 |standard| TECO, w|
|00001bb0| 69 74 68 20 73 6f 6d 65 | 20 65 78 63 65 70 74 69 |ith some| excepti|
|00001bc0| 6f 6e 73 0a 58 09 64 65 | 73 63 72 69 62 65 64 20 |ons.X.de|scribed |
|00001bd0| 62 65 6c 6f 77 2c 20 70 | 6c 75 73 20 73 6f 6d 65 |below, p|lus some|
|00001be0| 20 65 78 74 65 6e 73 69 | 6f 6e 73 20 66 6f 72 20 | extensi|ons for |
|00001bf0| 74 68 65 20 55 6c 74 72 | 69 78 0a 58 09 65 6e 76 |the Ultr|ix.X.env|
|00001c00| 69 72 6f 6e 6d 65 6e 74 | 2e 0a 58 0a 58 09 74 65 |ironment|..X.X.te|
|00001c10| 20 61 73 73 75 6d 65 73 | 20 61 20 56 54 31 30 30 | assumes| a VT100|
|00001c20| 2d 74 79 70 65 20 74 65 | 72 6d 69 6e 61 6c 2c 20 |-type te|rminal, |
|00001c30| 61 6e 64 20 69 74 73 20 | 64 69 73 70 6c 61 79 0a |and its |display.|
|00001c40| 58 09 64 72 69 76 65 72 | 20 69 73 20 68 61 72 64 |X.driver| is hard|
|00001c50| 2d 63 6f 64 65 64 20 66 | 6f 72 20 73 75 63 68 2e |-coded f|or such.|
|00001c60| 0a 58 0a 58 44 4f 43 55 | 4d 45 4e 54 41 54 49 4f |.X.XDOCU|MENTATIO|
|00001c70| 4e 0a 58 09 54 68 65 20 | 44 45 43 20 53 74 61 6e |N.X.The |DEC Stan|
|00001c80| 64 61 72 64 20 54 45 43 | 4f 20 62 6f 6f 6b 20 64 |dard TEC|O book d|
|00001c90| 65 73 63 72 69 62 65 73 | 20 74 68 65 20 62 61 73 |escribes| the bas|
|00001ca0| 69 63 20 65 64 69 74 69 | 6e 67 0a 58 09 66 75 6e |ic editi|ng.X.fun|
|00001cb0| 63 74 69 6f 6e 73 20 6f | 66 20 54 45 43 4f 2e 20 |ctions o|f TECO. |
|00001cc0| 20 74 65 63 6f 2e 64 6f | 63 20 64 65 73 63 72 69 | teco.do|c descri|
|00001cd0| 62 65 73 20 74 68 65 20 | 64 69 66 66 65 72 65 6e |bes the |differen|
|00001ce0| 63 65 73 0a 58 09 62 65 | 74 77 65 65 6e 20 74 65 |ces.X.be|tween te|
|00001cf0| 20 61 6e 64 20 73 74 61 | 6e 64 61 72 64 20 54 45 | and sta|ndard TE|
|00001d00| 43 4f 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 74 68 |CO, incl|uding th|
|00001d10| 65 20 65 78 74 65 6e 73 | 69 6f 6e 73 0a 58 09 66 |e extens|ions.X.f|
|00001d20| 6f 72 20 74 68 65 20 55 | 6c 74 72 69 78 20 65 6e |or the U|ltrix en|
|00001d30| 76 69 72 6f 6e 6d 65 6e | 74 2e 20 20 6d 61 6b 65 |vironmen|t. make|
|00001d40| 74 65 63 6f 2e 64 6f 63 | 20 64 65 73 63 72 69 62 |teco.doc| describ|
|00001d50| 65 73 20 74 68 65 0a 58 | 09 66 69 6c 65 73 20 74 |es the.X|.files t|
|00001d60| 68 61 74 20 63 6f 6d 70 | 72 69 73 65 20 74 65 2c |hat comp|rise te,|
|00001d70| 20 61 6e 64 20 74 68 65 | 20 62 75 69 6c 64 20 70 | and the| build p|
|00001d80| 72 6f 63 65 64 75 72 65 | 2e 0a 58 0a 58 46 49 4c |rocedure|..X.XFIL|
|00001d90| 45 53 0a 58 09 7e 2f 2e | 74 65 63 6f 72 63 09 65 |ES.X.~/.|tecorc.e|
|00001da0| 64 69 74 6f 72 20 73 74 | 61 72 74 75 70 20 66 69 |ditor st|artup fi|
|00001db0| 6c 65 0a 58 09 3c 66 69 | 6c 65 3e 2e 74 6d 70 09 |le.X.<fi|le>.tmp.|
|00001dc0| 74 65 6d 70 6f 72 61 72 | 79 20 6f 75 74 70 75 74 |temporar|y output|
|00001dd0| 20 66 69 6c 65 28 73 29 | 0a 58 09 3c 66 69 6c 65 | file(s)|.X.<file|
|00001de0| 3e 2e 62 61 6b 09 70 72 | 65 76 69 6f 75 73 20 76 |>.bak.pr|evious v|
|00001df0| 65 72 73 69 6f 6e 20 6f | 66 20 65 64 69 74 65 64 |ersion o|f edited|
|00001e00| 20 66 69 6c 65 0a 58 09 | 2f 65 74 63 2f 74 65 72 | file.X.|/etc/ter|
|00001e10| 6d 63 61 70 09 64 65 73 | 63 72 69 62 65 73 20 74 |mcap.des|cribes t|
|00001e20| 65 72 6d 69 6e 61 6c 20 | 28 75 73 65 64 20 6f 6e |erminal |(used on|
|00001e30| 6c 79 20 74 6f 20 66 69 | 6e 64 20 77 69 64 74 68 |ly to fi|nd width|
|00001e40| 20 6f 66 20 56 54 31 30 | 30 29 0a 58 0a 58 41 55 | of VT10|0).X.XAU|
|00001e50| 54 48 4f 52 0a 58 09 4d | 61 74 74 20 46 69 63 68 |THOR.X.M|att Fich|
|00001e60| 74 65 6e 62 61 75 6d 2c | 20 47 65 6e 52 61 64 20 |tenbaum,| GenRad |
|00001e70| 49 6e 63 2e 2c 20 43 6f | 6e 63 6f 72 64 2c 20 4d |Inc., Co|ncord, M|
|00001e80| 61 73 73 2e 0a 58 0a 58 | 42 55 47 53 0a 58 09 74 |ass..X.X|BUGS.X.t|
|00001e90| 65 20 61 63 71 75 69 72 | 65 73 20 6d 65 6d 6f 72 |e acquir|es memor|
|00001ea0| 79 20 66 6f 72 20 69 74 | 73 20 62 75 66 66 65 72 |y for it|s buffer|
|00001eb0| 20 75 73 69 6e 67 20 6d | 61 6c 6c 6f 63 28 29 2c | using m|alloc(),|
|00001ec0| 20 62 75 74 0a 58 09 6e | 65 76 65 72 20 72 65 74 | but.X.n|ever ret|
|00001ed0| 75 72 6e 73 20 74 68 65 | 20 73 70 61 63 65 2e 20 |urns the| space. |
|00001ee0| 20 54 68 69 73 20 63 61 | 6e 20 63 61 75 73 65 20 | This ca|n cause |
|00001ef0| 74 68 65 20 74 61 73 6b | 20 69 6e 0a 58 09 6d 65 |the task| in.X.me|
|00001f00| 6d 6f 72 79 20 74 6f 20 | 61 70 70 65 61 72 20 74 |mory to |appear t|
|00001f10| 6f 20 62 65 20 6c 61 72 | 67 65 72 20 74 68 61 6e |o be lar|ger than|
|00001f20| 20 69 74 20 69 73 2e 0a | 58 0a 58 09 53 65 76 65 | it is..|X.X.Seve|
|00001f30| 72 61 6c 20 6f 66 20 74 | 68 65 20 73 74 61 6e 64 |ral of t|he stand|
|00001f40| 61 72 64 20 64 69 73 70 | 6c 61 79 20 66 65 61 74 |ard disp|lay feat|
|00001f50| 75 72 65 73 20 6f 66 20 | 54 45 43 4f 2c 20 6d 6f |ures of |TECO, mo|
|00001f60| 73 74 0a 58 09 6e 6f 74 | 61 62 6c 79 20 74 68 65 |st.X.not|ably the|
|00001f70| 20 2d 32 35 36 2b 6e 3a | 57 20 63 6f 6d 6d 61 6e | -256+n:|W comman|
|00001f80| 64 20 75 73 65 64 20 62 | 79 20 69 6e 74 65 72 70 |d used b|y interp|
|00001f90| 72 65 74 69 76 65 20 65 | 64 69 74 69 6e 67 0a 58 |retive e|diting.X|
|00001fa0| 09 6d 61 63 72 6f 73 2c | 20 61 72 65 20 75 6e 69 |.macros,| are uni|
|00001fb0| 6d 70 6c 65 6d 65 6e 74 | 65 64 2e 20 20 54 68 65 |mplement|ed. The|
|00001fc0| 72 65 20 61 72 65 20 75 | 6e 64 6f 75 62 74 65 64 |re are u|ndoubted|
|00001fd0| 6c 79 20 73 6f 6d 65 0a | 58 09 73 75 62 74 6c 65 |ly some.|X.subtle|
|00001fe0| 20 62 75 67 73 20 69 6e | 20 74 68 65 20 64 69 73 | bugs in| the dis|
|00001ff0| 70 6c 61 79 20 68 61 6e | 64 6c 65 72 20 66 6f 72 |play han|dler for|
|00002000| 20 74 68 65 20 66 65 61 | 74 75 72 65 73 20 74 68 | the fea|tures th|
|00002010| 61 74 0a 58 09 61 72 65 | 20 69 6d 70 6c 65 6d 65 |at.X.are| impleme|
|00002020| 6e 74 65 64 2e 0a 58 0a | 45 4e 44 5f 4f 46 5f 6d |nted..X.|END_OF_m|
|00002030| 61 6e 70 61 67 65 2e 64 | 6f 63 0a 69 66 20 74 65 |anpage.d|oc.if te|
|00002040| 73 74 20 31 32 38 35 20 | 2d 6e 65 20 60 77 63 20 |st 1285 |-ne `wc |
|00002050| 2d 63 20 3c 6d 61 6e 70 | 61 67 65 2e 64 6f 63 60 |-c <manp|age.doc`|
|00002060| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00002070| 73 68 61 72 3a 20 5c 22 | 6d 61 6e 70 61 67 65 2e |shar: \"|manpage.|
|00002080| 64 6f 63 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |doc\" un|packed w|
|00002090| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 3f |ith wron|g size!?|
|000020a0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi.# en|d of ove|
|000020b0| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 66 |rwriting| check.f|
|000020c0| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |i.echo s|har: Ext|
|000020d0| 72 61 63 74 69 6e 67 20 | 5c 22 74 65 5f 64 61 74 |racting |\"te_dat|
|000020e0| 61 2e 63 5c 22 20 5c 28 | 37 33 35 30 20 63 68 61 |a.c\" \(|7350 cha|
|000020f0| 72 61 63 74 65 72 73 5c | 29 0a 69 66 20 74 65 73 |racters\|).if tes|
|00002100| 74 20 2d 66 20 74 65 5f | 64 61 74 61 2e 63 20 3b |t -f te_|data.c ;|
|00002110| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00002120| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: Will| not ove|
|00002130| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00002140| 20 66 69 6c 65 20 5c 22 | 74 65 5f 64 61 74 61 2e | file \"|te_data.|
|00002150| 63 5c 22 0a 65 6c 73 65 | 0a 73 65 64 20 22 73 2f |c\".else|.sed "s/|
|00002160| 5e 58 2f 2f 22 20 3e 74 | 65 5f 64 61 74 61 2e 63 |^X//" >t|e_data.c|
|00002170| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 74 65 5f 64 61 | <<'END_|OF_te_da|
|00002180| 74 61 2e 63 27 0a 58 2f | 2a 20 54 45 43 4f 20 66 |ta.c'.X/|* TECO f|
|00002190| 6f 72 20 55 6c 74 72 69 | 78 20 20 20 43 6f 70 79 |or Ultri|x Copy|
|000021a0| 72 69 67 68 74 20 31 39 | 38 36 20 4d 61 74 74 20 |right 19|86 Matt |
|000021b0| 46 69 63 68 74 65 6e 62 | 61 75 6d 09 09 09 09 09 |Fichtenb|aum.....|
|000021c0| 09 2a 2f 0a 58 2f 2a 20 | 54 68 69 73 20 70 72 6f |.*/.X/* |This pro|
|000021d0| 67 72 61 6d 20 61 6e 64 | 20 69 74 73 20 63 6f 6d |gram and| its com|
|000021e0| 70 6f 6e 65 6e 74 73 20 | 62 65 6c 6f 6e 67 20 74 |ponents |belong t|
|000021f0| 6f 20 47 65 6e 52 61 64 | 20 49 6e 63 2c 20 43 6f |o GenRad| Inc, Co|
|00002200| 6e 63 6f 72 64 20 4d 41 | 20 30 31 37 34 32 09 2a |ncord MA| 01742.*|
|00002210| 2f 0a 58 2f 2a 20 54 68 | 65 79 20 6d 61 79 20 62 |/.X/* Th|ey may b|
|00002220| 65 20 63 6f 70 69 65 64 | 20 69 66 20 74 68 69 73 |e copied| if this|
|00002230| 20 63 6f 70 79 72 69 67 | 68 74 20 6e 6f 74 69 63 | copyrig|ht notic|
|00002240| 65 20 69 73 20 69 6e 63 | 6c 75 64 65 64 09 09 09 |e is inc|luded...|
|00002250| 09 09 2a 2f 0a 58 0a 58 | 2f 2a 20 74 65 5f 64 61 |..*/.X.X|/* te_da|
|00002260| 74 61 2e 63 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |ta.c glo|bal vari|
|00002270| 61 62 6c 65 73 20 20 31 | 32 2f 33 31 2f 38 35 20 |ables 1|2/31/85 |
|00002280| 2a 2f 0a 58 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |*/.X.X#i|nclude "|
|00002290| 74 65 5f 64 65 66 73 2e | 68 22 0a 58 0a 58 2f 2a |te_defs.|h".X.X/*|
|000022a0| 20 65 72 72 6f 72 20 6d | 65 73 73 61 67 65 20 74 | error m|essage t|
|000022b0| 65 78 74 20 2a 2f 0a 58 | 63 68 61 72 20 2a 65 72 |ext */.X|char *er|
|000022c0| 72 6f 72 73 5b 5d 20 3d | 0a 58 09 7b 0a 58 09 22 |rors[] =|.X.{.X."|
|000022d0| 3e 20 6e 6f 74 20 69 6e | 20 69 74 65 72 61 74 69 |> not in| iterati|
|000022e0| 6f 6e 22 2c 0a 58 09 22 | 43 61 6e 27 74 20 70 6f |on",.X."|Can't po|
|000022f0| 70 20 51 20 72 65 67 69 | 73 74 65 72 22 2c 0a 58 |p Q regi|ster",.X|
|00002300| 09 22 43 61 6e 27 74 20 | 6f 70 65 6e 20 6f 75 74 |."Can't |open out|
|00002310| 70 75 74 20 66 69 6c 65 | 20 22 2c 0a 58 09 22 46 |put file| ",.X."F|
|00002320| 69 6c 65 20 6e 6f 74 20 | 66 6f 75 6e 64 20 22 2c |ile not |found ",|
|00002330| 0a 58 09 22 49 6e 76 61 | 6c 69 64 20 45 20 63 68 |.X."Inva|lid E ch|
|00002340| 61 72 61 63 74 65 72 22 | 2c 0a 58 09 22 49 6e 76 |aracter"|,.X."Inv|
|00002350| 61 6c 69 64 20 46 20 63 | 68 61 72 61 63 74 65 72 |alid F c|haracter|
|00002360| 22 2c 0a 58 09 22 49 6e | 76 61 6c 69 64 20 69 6e |",.X."In|valid in|
|00002370| 73 65 72 74 20 61 72 67 | 22 2c 0a 58 09 22 49 6e |sert arg|",.X."In|
|00002380| 76 61 6c 69 64 20 63 6f | 6d 6d 61 6e 64 22 2c 0a |valid co|mmand",.|
|00002390| 58 09 22 49 6e 76 61 6c | 69 64 20 6e 75 6d 62 65 |X."Inval|id numbe|
|000023a0| 72 22 2c 0a 58 09 22 49 | 6e 76 61 6c 69 64 20 50 |r",.X."I|nvalid P|
|000023b0| 20 61 72 67 22 2c 0a 58 | 09 22 49 6e 76 61 6c 69 | arg",.X|."Invali|
|000023c0| 64 20 5c 22 20 63 68 61 | 72 61 63 74 65 72 22 2c |d \" cha|racter",|
|000023d0| 0a 58 09 22 49 6e 76 61 | 6c 69 64 20 51 2d 72 65 |.X."Inva|lid Q-re|
|000023e0| 67 20 6e 61 6d 65 22 2c | 0a 58 09 22 49 6e 76 61 |g name",|.X."Inva|
|000023f0| 6c 69 64 20 72 61 64 69 | 78 20 61 72 67 22 2c 0a |lid radi|x arg",.|
|00002400| 58 09 22 49 6e 76 61 6c | 69 64 20 73 65 61 72 63 |X."Inval|id searc|
|00002410| 68 20 61 72 67 22 2c 0a | 58 09 22 49 6e 76 61 6c |h arg",.|X."Inval|
|00002420| 69 64 20 73 65 61 72 63 | 68 20 73 74 72 69 6e 67 |id searc|h string|
|00002430| 22 2c 0a 58 09 22 49 6e | 76 61 6c 69 64 20 5e 20 |",.X."In|valid ^ |
|00002440| 63 68 61 72 61 63 74 65 | 72 22 2c 0a 58 09 22 49 |characte|r",.X."I|
|00002450| 6e 73 75 66 66 69 63 69 | 65 6e 74 20 6d 65 6d 6f |nsuffici|ent memo|
|00002460| 72 79 20 61 76 61 69 6c | 61 62 6c 65 22 2c 0a 58 |ry avail|able",.X|
|00002470| 09 22 4d 69 73 73 69 6e | 67 20 29 22 2c 0a 58 09 |."Missin|g )",.X.|
|00002480| 22 4e 6f 20 61 72 67 20 | 62 65 66 6f 72 65 20 5e |"No arg |before ^|
|00002490| 5f 22 2c 0a 58 09 22 4e | 6f 20 61 72 67 20 62 65 |_",.X."N|o arg be|
|000024a0| 66 6f 72 65 20 2c 22 2c | 0a 58 09 22 4e 6f 20 61 |fore ,",|.X."No a|
|000024b0| 72 67 20 62 65 66 6f 72 | 65 20 3d 22 2c 0a 58 09 |rg befor|e =",.X.|
|000024c0| 22 4e 6f 20 61 72 67 20 | 62 65 66 6f 72 65 20 29 |"No arg |before )|
|000024d0| 22 2c 0a 58 09 22 4e 6f | 20 61 72 67 20 62 65 66 |",.X."No| arg bef|
|000024e0| 6f 72 65 20 5c 22 22 2c | 0a 58 09 22 4e 6f 20 61 |ore \"",|.X."No a|
|000024f0| 72 67 20 62 65 66 6f 72 | 65 20 3b 22 2c 0a 58 09 |rg befor|e ;",.X.|
|00002500| 22 4e 6f 20 61 72 67 20 | 62 65 66 6f 72 65 20 55 |"No arg |before U|
|00002510| 22 2c 0a 58 09 22 4e 6f | 20 66 69 6c 65 20 66 6f |",.X."No| file fo|
|00002520| 72 20 69 6e 70 75 74 22 | 2c 0a 58 09 22 4e 6f 20 |r input"|,.X."No |
|00002530| 66 69 6c 65 20 66 6f 72 | 20 6f 75 74 70 75 74 22 |file for| output"|
|00002540| 2c 0a 58 09 22 4e 75 6d | 65 72 69 63 20 61 72 67 |,.X."Num|eric arg|
|00002550| 20 77 69 74 68 20 59 22 | 2c 0a 58 09 22 4f 75 74 | with Y"|,.X."Out|
|00002560| 70 75 74 20 66 69 6c 65 | 20 61 6c 72 65 61 64 79 |put file| already|
|00002570| 20 6f 70 65 6e 22 2c 0a | 58 09 22 50 75 73 68 64 | open",.|X."Pushd|
|00002580| 6f 77 6e 20 6c 69 73 74 | 20 6f 76 65 72 66 6c 6f |own list| overflo|
|00002590| 77 22 2c 0a 58 09 22 50 | 6f 69 6e 74 65 72 20 6f |w",.X."P|ointer o|
|000025a0| 66 66 20 70 61 67 65 22 | 2c 0a 58 09 22 3b 20 6e |ff page"|,.X."; n|
|000025b0| 6f 74 20 69 6e 20 69 74 | 65 72 61 74 69 6f 6e 22 |ot in it|eration"|
|000025c0| 2c 0a 58 09 22 53 65 61 | 72 63 68 20 66 61 69 6c |,.X."Sea|rch fail|
|000025d0| 75 72 65 20 22 2c 0a 58 | 09 22 53 74 72 69 6e 67 |ure ",.X|."String|
|000025e0| 20 74 6f 6f 20 6c 6f 6e | 67 22 2c 0a 58 09 22 55 | too lon|g",.X."U|
|000025f0| 6e 74 65 72 6d 69 6e 61 | 74 65 64 20 63 6f 6d 6d |ntermina|ted comm|
|00002600| 61 6e 64 22 2c 0a 58 09 | 22 55 6e 74 65 72 6d 69 |and",.X.|"Untermi|
|00002610| 6e 61 74 65 64 20 6d 61 | 63 72 6f 22 2c 0a 58 09 |nated ma|cro",.X.|
|00002620| 22 45 78 65 63 75 74 69 | 6f 6e 20 69 6e 74 65 72 |"Executi|on inter|
|00002630| 72 75 70 74 65 64 22 2c | 0a 58 09 22 59 20 63 6f |rupted",|.X."Y co|
|00002640| 6d 6d 61 6e 64 20 73 75 | 70 70 72 65 73 73 65 64 |mmand su|ppressed|
|00002650| 22 2c 0a 58 09 22 49 6e | 76 61 6c 69 64 20 57 20 |",.X."In|valid W |
|00002660| 61 72 67 22 2c 0a 58 09 | 22 4e 75 6d 65 72 69 63 |arg",.X.|"Numeric|
|00002670| 20 61 72 67 20 77 69 74 | 68 20 46 52 22 2c 0a 58 | arg wit|h FR",.X|
|00002680| 09 22 49 6e 74 65 72 6e | 61 6c 20 65 72 72 6f 72 |."Intern|al error|
|00002690| 22 2c 0a 58 09 22 45 4f | 46 20 72 65 61 64 20 66 |",.X."EO|F read f|
|000026a0| 72 6f 6d 20 73 74 64 20 | 69 6e 70 75 74 22 2c 0a |rom std |input",.|
|000026b0| 58 09 22 49 6e 76 61 6c | 69 64 20 41 20 61 72 67 |X."Inval|id A arg|
|000026c0| 22 2c 0a 58 09 22 41 6d | 62 69 67 75 6f 75 73 20 |",.X."Am|biguous |
|000026d0| 66 69 6c 65 20 73 70 65 | 63 69 66 69 63 61 74 69 |file spe|cificati|
|000026e0| 6f 6e 20 22 2c 0a 58 09 | 22 53 79 73 74 65 6d 20 |on ",.X.|"System |
|000026f0| 66 6f 72 6b 20 6f 72 20 | 70 69 70 65 20 65 72 72 |fork or |pipe err|
|00002700| 6f 72 22 0a 58 09 7d 20 | 3b 0a 58 0c 2f 2a 20 64 |or".X.} |;.X./* d|
|00002710| 65 63 6c 61 72 65 20 67 | 6c 6f 62 61 6c 20 76 61 |eclare g|lobal va|
|00002720| 72 69 61 62 6c 65 73 20 | 2a 2f 0a 58 09 73 74 72 |riables |*/.X.str|
|00002730| 75 63 74 20 62 75 66 66 | 63 65 6c 6c 20 2a 66 72 |uct buff|cell *fr|
|00002740| 65 65 62 75 66 66 20 3d | 20 4e 55 4c 4c 3b 09 09 |eebuff =| NULL;..|
|00002750| 2f 2a 20 62 75 66 66 63 | 65 6c 6c 20 66 72 65 65 |/* buffc|ell free|
|00002760| 2d 6c 69 73 74 20 70 6f | 69 6e 74 65 72 20 2a 2f |-list po|inter */|
|00002770| 0a 58 09 73 74 72 75 63 | 74 20 62 75 66 66 63 65 |.X.struc|t buffce|
|00002780| 6c 6c 20 2a 64 6c 79 5f | 66 72 65 65 62 75 66 66 |ll *dly_|freebuff|
|00002790| 20 3d 20 4e 55 4c 4c 3b | 09 2f 2a 20 64 65 6c 61 | = NULL;|./* dela|
|000027a0| 79 65 64 20 66 72 65 65 | 2d 6c 69 73 74 20 70 6f |yed free|-list po|
|000027b0| 69 6e 74 65 72 20 2a 2f | 0a 58 09 73 74 72 75 63 |inter */|.X.struc|
|000027c0| 74 20 71 70 20 2a 66 72 | 65 65 64 63 65 6c 6c 20 |t qp *fr|eedcell |
|000027d0| 3d 20 4e 55 4c 4c 3b 09 | 09 09 2f 2a 20 63 65 6c |= NULL;.|../* cel|
|000027e0| 6c 20 66 72 65 65 2d 6c | 69 73 74 20 70 6f 69 6e |l free-l|ist poin|
|000027f0| 74 65 72 20 2a 2f 0a 58 | 0a 58 2f 2a 20 74 68 65 |ter */.X|.X/* the|
|00002800| 20 74 65 78 74 20 62 75 | 66 66 65 72 20 68 65 61 | text bu|ffer hea|
|00002810| 64 65 72 20 2a 2f 0a 58 | 09 73 74 72 75 63 74 20 |der */.X|.struct |
|00002820| 71 68 20 62 75 66 66 20 | 3d 20 7b 20 4e 55 4c 4c |qh buff |= { NULL|
|00002830| 2c 20 4e 55 4c 4c 2c 20 | 30 2c 20 30 20 7d 20 3b |, NULL, |0, 0 } ;|
|00002840| 0a 58 0a 58 2f 2a 20 74 | 68 65 20 71 2d 72 65 67 |.X.X/* t|he q-reg|
|00002850| 69 73 74 65 72 20 68 65 | 61 64 65 72 73 20 70 6f |ister he|aders po|
|00002860| 69 6e 74 20 74 6f 20 74 | 68 65 20 73 74 61 72 74 |int to t|he start|
|00002870| 20 6f 66 20 74 68 65 20 | 62 75 66 66 65 72 20 61 | of the |buffer a|
|00002880| 6e 64 20 72 65 67 69 73 | 74 65 72 73 20 2a 2f 0a |nd regis|ters */.|
|00002890| 58 09 73 74 72 75 63 74 | 20 71 68 20 71 72 65 67 |X.struct| qh qreg|
|000028a0| 5b 4e 51 52 45 47 53 2b | 35 5d 3b 09 09 2f 2a 20 |[NQREGS+|5];../* |
|000028b0| 66 6f 72 20 71 20 72 65 | 67 73 2c 20 63 6f 6d 6d |for q re|gs, comm|
|000028c0| 61 6e 64 2c 20 73 65 61 | 72 63 68 2c 20 66 69 6c |and, sea|rch, fil|
|000028d0| 65 2c 20 73 79 73 2d 63 | 6f 6d 6d 61 6e 64 2c 20 |e, sys-c|ommand, |
|000028e0| 74 69 6d 65 2f 64 61 74 | 65 20 2a 2f 0a 58 0a 58 |time/dat|e */.X.X|
|000028f0| 2f 2a 20 74 68 65 20 71 | 2d 72 65 67 69 73 74 65 |/* the q|-registe|
|00002900| 72 20 73 74 61 63 6b 20 | 63 6f 6e 74 61 69 6e 73 |r stack |contains|
|00002910| 20 74 65 6d 70 6f 72 61 | 72 79 20 63 6f 70 69 65 | tempora|ry copie|
|00002920| 73 20 6f 66 20 71 2d 72 | 65 67 69 73 74 65 72 20 |s of q-r|egister |
|00002930| 63 6f 6e 74 65 6e 74 73 | 20 2a 2f 0a 58 09 73 74 |contents| */.X.st|
|00002940| 72 75 63 74 20 71 68 20 | 71 73 74 61 63 6b 5b 51 |ruct qh |qstack[Q|
|00002950| 53 54 41 43 4b 53 49 5a | 45 5d 3b 09 2f 2a 20 71 |STACKSIZ|E];./* q|
|00002960| 2d 72 65 67 20 73 74 61 | 63 6b 20 2a 2f 0a 58 09 |-reg sta|ck */.X.|
|00002970| 73 74 72 75 63 74 20 71 | 68 20 2a 71 73 70 3b 09 |struct q|h *qsp;.|
|00002980| 09 09 09 09 2f 2a 20 71 | 2d 72 65 67 20 73 74 61 |..../* q|-reg sta|
|00002990| 63 6b 20 70 6f 69 6e 74 | 65 72 20 2a 2f 0a 58 0a |ck point|er */.X.|
|000029a0| 58 2f 2a 20 74 68 65 20 | 6d 61 63 72 6f 20 73 74 |X/* the |macro st|
|000029b0| 61 63 6b 20 63 6f 6e 74 | 61 69 6e 73 20 70 6f 69 |ack cont|ains poi|
|000029c0| 6e 74 65 72 73 20 74 6f | 20 74 68 65 20 63 75 72 |nters to| the cur|
|000029d0| 72 65 6e 74 6c 79 20 61 | 63 74 69 76 65 20 6d 61 |rently a|ctive ma|
|000029e0| 63 72 6f 73 2e 20 2a 2f | 0a 58 2f 2a 20 74 68 65 |cros. */|.X/* the|
|000029f0| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 73 74 61 63 | top of |the stac|
|00002a00| 6b 20 69 73 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |k is the| command|
|00002a10| 20 70 6f 69 6e 74 65 72 | 20 2a 2f 0a 58 09 73 74 | pointer| */.X.st|
|00002a20| 72 75 63 74 20 71 70 20 | 6d 73 74 61 63 6b 5b 4d |ruct qp |mstack[M|
|00002a30| 53 54 41 43 4b 53 49 5a | 45 5d 3b 09 2f 2a 20 6d |STACKSIZ|E];./* m|
|00002a40| 61 63 72 6f 20 73 74 61 | 63 6b 20 2a 2f 0a 58 09 |acro sta|ck */.X.|
|00002a50| 73 74 72 75 63 74 20 71 | 70 20 2a 6d 73 70 3b 09 |struct q|p *msp;.|
|00002a60| 09 09 09 09 2f 2a 20 6d | 61 63 72 6f 20 73 74 61 |..../* m|acro sta|
|00002a70| 63 6b 20 70 6f 69 6e 74 | 65 72 20 2a 2f 0a 58 0a |ck point|er */.X.|
|00002a80| 58 2f 2a 20 74 68 65 20 | 65 78 70 72 65 73 73 69 |X/* the |expressi|
|00002a90| 6f 6e 20 73 74 61 63 6b | 20 2a 2f 0a 58 09 73 74 |on stack| */.X.st|
|00002aa0| 72 75 63 74 20 65 78 70 | 5f 65 6e 74 72 79 20 65 |ruct exp|_entry e|
|00002ab0| 73 74 61 63 6b 5b 45 53 | 54 41 43 4b 53 49 5a 45 |stack[ES|TACKSIZE|
|00002ac0| 5d 3b 09 2f 2a 20 65 78 | 70 72 65 73 73 69 6f 6e |];./* ex|pression|
|00002ad0| 20 73 74 61 63 6b 20 2a | 2f 0a 58 09 73 74 72 75 | stack *|/.X.stru|
|00002ae0| 63 74 20 65 78 70 5f 65 | 6e 74 72 79 20 2a 65 73 |ct exp_e|ntry *es|
|00002af0| 70 3b 09 09 09 09 09 2f | 2a 20 65 78 70 72 65 73 |p;...../|* expres|
|00002b00| 73 69 6f 6e 20 73 74 61 | 63 6b 20 70 6f 69 6e 74 |sion sta|ck point|
|00002b10| 65 72 20 2a 2f 0a 58 0a | 58 2f 2a 20 67 6c 6f 62 |er */.X.|X/* glob|
|00002b20| 61 6c 20 76 61 72 69 61 | 62 6c 65 73 2c 20 65 74 |al varia|bles, et|
|00002b30| 63 2e 20 2a 2f 0a 58 0a | 58 69 6e 74 20 63 68 61 |c. */.X.|Xint cha|
|00002b40| 72 5f 63 6f 75 6e 74 20 | 3d 20 30 3b 09 09 09 09 |r_count |= 0;....|
|00002b50| 09 2f 2a 20 63 68 61 72 | 20 63 6f 75 6e 74 20 66 |./* char| count f|
|00002b60| 6f 72 20 74 61 62 20 74 | 79 70 65 72 09 09 09 2a |or tab t|yper...*|
|00002b70| 2f 0a 58 63 68 61 72 20 | 6c 61 73 74 63 20 3d 20 |/.Xchar |lastc = |
|00002b80| 27 20 27 3b 09 09 09 09 | 09 2f 2a 20 6c 61 73 74 |' ';....|./* last|
|00002b90| 20 63 68 61 72 20 72 65 | 61 64 09 09 09 09 09 2a | char re|ad.....*|
|00002ba0| 2f 0a 58 69 6e 74 20 74 | 74 79 65 72 72 3b 09 09 |/.Xint t|tyerr;..|
|00002bb0| 09 09 09 09 09 2f 2a 20 | 65 72 72 6f 72 20 72 65 |...../* |error re|
|00002bc0| 74 75 72 6e 20 66 72 6f | 6d 20 69 6f 63 74 6c 09 |turn fro|m ioctl.|
|00002bd0| 09 09 2a 2f 0a 58 65 78 | 74 65 72 6e 20 69 6e 74 |..*/.Xex|tern int|
|00002be0| 20 65 72 72 6e 6f 3b 09 | 09 09 09 09 2f 2a 20 73 | errno;.|..../* s|
|00002bf0| 79 73 74 65 6d 20 65 72 | 72 6f 72 20 63 6f 64 65 |ystem er|ror code|
|00002c00| 09 09 09 09 2a 2f 0a 58 | 73 74 72 75 63 74 20 73 |....*/.X|struct s|
|00002c10| 67 74 74 79 62 20 74 74 | 79 62 75 66 3b 09 09 09 |gttyb tt|ybuf;...|
|00002c20| 09 2f 2a 20 6c 6f 63 61 | 6c 20 63 6f 70 79 20 6f |./* loca|l copy o|
|00002c30| 66 20 74 74 79 20 63 6f | 6e 74 72 6f 6c 20 64 61 |f tty co|ntrol da|
|00002c40| 74 61 09 2a 2f 0a 58 6a | 6d 70 5f 62 75 66 20 78 |ta.*/.Xj|mp_buf x|
|00002c50| 78 78 3b 09 09 09 09 09 | 09 2f 2a 20 70 72 65 73 |xx;.....|./* pres|
|00002c60| 65 72 76 65 64 20 65 6e | 76 69 72 6f 6e 6d 65 6e |erved en|vironmen|
|00002c70| 74 20 66 6f 72 20 65 72 | 72 6f 72 20 72 65 73 74 |t for er|ror rest|
|00002c80| 61 72 74 20 2a 2f 0a 58 | 69 6e 74 20 65 72 72 3b |art */.X|int err;|
|00002c90| 09 09 09 09 09 09 09 2f | 2a 20 6c 6f 63 61 6c 20 |......./|* local |
|00002ca0| 65 72 72 6f 72 20 63 6f | 64 65 09 09 09 09 09 2a |error co|de.....*|
|00002cb0| 2f 0a 58 73 74 72 75 63 | 74 20 71 70 20 74 5f 71 |/.Xstruc|t qp t_q|
|00002cc0| 70 3b 09 09 09 09 09 09 | 2f 2a 20 74 65 6d 70 6f |p;......|/* tempo|
|00002cd0| 72 61 72 79 20 62 75 66 | 66 65 72 20 70 6f 69 6e |rary buf|fer poin|
|00002ce0| 74 65 72 09 09 09 2a 2f | 0a 58 73 74 72 75 63 74 |ter...*/|.Xstruct|
|00002cf0| 20 71 70 20 61 61 2c 20 | 62 62 2c 20 63 63 3b 09 | qp aa, |bb, cc;.|
|00002d00| 09 09 09 2f 2a 20 6d 6f | 72 65 20 74 65 6d 70 6f |.../* mo|re tempo|
|00002d10| 72 61 72 69 65 73 09 09 | 09 09 09 2a 2f 0a 58 73 |raries..|...*/.Xs|
|00002d20| 74 72 75 63 74 20 62 75 | 66 66 63 65 6c 6c 20 74 |truct bu|ffcell t|
|00002d30| 5f 62 63 65 6c 6c 3b 09 | 09 09 2f 2a 20 74 65 6d |_bcell;.|../* tem|
|00002d40| 70 6f 72 61 72 79 20 62 | 63 65 6c 6c 09 09 09 09 |porary b|cell....|
|00002d50| 09 2a 2f 0a 58 69 6e 74 | 20 74 61 62 6d 61 73 6b |.*/.Xint| tabmask|
|00002d60| 20 3d 20 37 3b 09 09 09 | 09 09 2f 2a 20 6d 61 73 | = 7;...|../* mas|
|00002d70| 6b 20 66 6f 72 20 74 79 | 70 69 6e 67 20 74 61 62 |k for ty|ping tab|
|00002d80| 73 09 09 09 09 2a 2f 0a | 58 69 6e 74 20 65 78 69 |s....*/.|Xint exi|
|00002d90| 74 66 6c 61 67 3b 09 09 | 09 09 09 09 2f 2a 20 66 |tflag;..|..../* f|
|00002da0| 6c 61 67 20 66 6f 72 20 | 65 6e 64 69 6e 67 20 63 |lag for |ending c|
|00002db0| 6f 6d 6d 61 6e 64 20 73 | 74 72 20 65 78 65 63 09 |ommand s|tr exec.|
|00002dc0| 2a 2f 0a 58 63 68 61 72 | 20 74 65 72 6d 5f 63 68 |*/.Xchar| term_ch|
|00002dd0| 61 72 20 3d 20 45 53 43 | 3b 09 09 09 09 2f 2a 20 |ar = ESC|;..../* |
|00002de0| 74 65 72 6d 69 6e 61 74 | 6f 72 20 66 6f 72 20 69 |terminat|or for i|
|00002df0| 6e 73 65 72 74 2c 20 73 | 65 61 72 63 68 2c 20 65 |nsert, s|earch, e|
|00002e00| 74 63 2e 09 2a 2f 0a 58 | 63 68 61 72 20 63 6d 64 |tc..*/.X|char cmd|
|00002e10| 63 3b 09 09 09 09 09 09 | 09 2f 2a 20 63 75 72 72 |c;......|./* curr|
|00002e20| 65 6e 74 20 63 6f 6d 6d | 61 6e 64 20 63 68 61 72 |ent comm|and char|
|00002e30| 61 63 74 65 72 09 09 2a | 2f 0a 58 63 68 61 72 20 |acter..*|/.Xchar |
|00002e40| 73 6b 69 70 63 3b 09 09 | 09 09 09 09 09 2f 2a 20 |skipc;..|...../* |
|00002e50| 63 68 61 72 20 66 6f 75 | 6e 64 20 62 79 20 22 73 |char fou|nd by "s|
|00002e60| 6b 69 70 74 6f 28 29 22 | 09 09 09 2a 2f 0a 58 69 |kipto()"|...*/.Xi|
|00002e70| 6e 74 20 64 6f 74 2c 20 | 7a 2c 20 74 64 6f 74 3b |nt dot, |z, tdot;|
|00002e80| 09 09 09 09 09 2f 2a 20 | 63 75 72 72 65 6e 74 2c |...../* |current,|
|00002e90| 20 6c 61 73 74 2c 20 74 | 65 6d 70 20 62 75 66 66 | last, t|emp buff|
|00002ea0| 65 72 20 70 6f 73 69 74 | 69 6f 6e 09 2a 2f 0a 58 |er posit|ion.*/.X|
|00002eb0| 69 6e 74 20 69 6e 73 5f | 63 6f 75 6e 74 3b 09 09 |int ins_|count;..|
|00002ec0| 09 09 09 09 2f 2a 20 63 | 6f 75 6e 74 20 6f 66 20 |..../* c|ount of |
|00002ed0| 63 68 61 72 73 20 69 6e | 73 65 72 74 65 64 09 09 |chars in|serted..|
|00002ee0| 09 2a 2f 0a 58 69 6e 74 | 20 6c 6c 2c 20 6d 6d 2c |.*/.Xint| ll, mm,|
|00002ef0| 20 6e 6e 3b 09 09 09 09 | 09 09 2f 2a 20 67 65 6e | nn;....|../* gen|
|00002f00| 65 72 61 6c 20 74 65 6d | 70 73 09 09 09 09 09 2a |eral tem|ps.....*|
|00002f10| 2f 0a 58 69 6e 74 20 63 | 74 72 6c 5f 65 20 3d 20 |/.Xint c|trl_e = |
|00002f20| 30 3b 09 09 09 09 09 09 | 2f 2a 20 66 6f 72 6d 20 |0;......|/* form |
|00002f30| 66 65 65 64 20 66 6c 61 | 67 09 09 09 09 09 2a 2f |feed fla|g.....*/|
|00002f40| 0a 58 69 6e 74 20 63 74 | 72 6c 5f 72 20 3d 20 31 |.Xint ct|rl_r = 1|
|00002f50| 30 3b 09 09 09 09 09 2f | 2a 20 6e 75 6d 65 72 69 |0;...../|* numeri|
|00002f60| 63 20 72 61 64 69 78 20 | 28 38 2c 20 31 30 2c 20 |c radix |(8, 10, |
|00002f70| 31 36 29 09 09 2a 2f 0a | 58 69 6e 74 20 63 74 72 |16)..*/.|Xint ctr|
|00002f80| 6c 5f 73 20 3d 20 30 3b | 09 09 09 09 09 09 2f 2a |l_s = 0;|....../*|
|00002f90| 20 73 74 72 69 6e 67 20 | 6c 65 6e 67 74 68 20 66 | string |length f|
|00002fa0| 6f 72 20 53 2c 20 49 2c | 20 47 09 09 2a 2f 0a 58 |or S, I,| G..*/.X|
|00002fb0| 69 6e 74 20 63 74 72 6c | 5f 78 20 3d 20 30 3b 09 |int ctrl|_x = 0;.|
|00002fc0| 09 09 09 09 09 2f 2a 20 | 73 65 61 72 63 68 20 6d |...../* |search m|
|00002fd0| 6f 64 65 20 66 6c 61 67 | 09 09 09 09 09 2a 2f 0a |ode flag|.....*/.|
|00002fe0| 58 69 6e 74 20 65 64 5f | 76 61 6c 20 3d 20 30 3b |Xint ed_|val = 0;|
|00002ff0| 09 09 09 09 09 09 2f 2a | 20 45 44 20 76 61 6c 75 |....../*| ED valu|
|00003000| 65 09 09 09 09 09 09 09 | 2a 2f 0a 58 69 6e 74 20 |e.......|*/.Xint |
|00003010| 65 73 5f 76 61 6c 20 3d | 20 30 3b 09 09 09 09 09 |es_val =| 0;.....|
|00003020| 09 2f 2a 20 45 53 20 76 | 61 6c 75 65 09 09 09 09 |./* ES v|alue....|
|00003030| 09 09 09 2a 2f 0a 58 69 | 6e 74 20 65 74 5f 76 61 |...*/.Xi|nt et_va|
|00003040| 6c 20 3d 20 35 31 38 3b | 09 09 09 09 09 2f 2a 20 |l = 518;|...../* |
|00003050| 45 54 20 76 61 6c 75 65 | 09 09 09 09 09 09 09 2a |ET value|.......*|
|00003060| 2f 0a 58 69 6e 74 20 65 | 75 5f 76 61 6c 20 3d 20 |/.Xint e|u_val = |
|00003070| 2d 31 3b 09 09 09 09 09 | 2f 2a 20 45 55 20 76 61 |-1;.....|/* EU va|
|00003080| 6c 75 65 09 09 09 09 09 | 09 09 2a 2f 0a 58 69 6e |lue.....|..*/.Xin|
|00003090| 74 20 65 76 5f 76 61 6c | 20 3d 20 30 3b 09 09 09 |t ev_val| = 0;...|
|000030a0| 09 09 09 2f 2a 20 45 56 | 20 76 61 6c 75 65 09 09 |.../* EV| value..|
|000030b0| 09 09 09 09 09 2a 2f 0a | 58 69 6e 74 20 65 7a 5f |.....*/.|Xint ez_|
|000030c0| 76 61 6c 20 3d 20 30 3b | 09 09 09 09 09 09 2f 2a |val = 0;|....../*|
|000030d0| 20 45 5a 20 76 61 6c 75 | 65 09 09 09 09 09 09 09 | EZ valu|e.......|
|000030e0| 2a 2f 0a 58 69 6e 74 20 | 73 72 63 68 5f 72 65 73 |*/.Xint |srch_res|
|000030f0| 75 6c 74 20 3d 20 30 3b | 09 09 09 09 2f 2a 20 72 |ult = 0;|..../* r|
|00003100| 65 73 75 6c 74 20 6f 66 | 20 6c 61 73 74 20 3a 53 |esult of| last :S|
|00003110| 20 65 78 65 63 75 74 65 | 64 09 09 2a 2f 0a 58 69 | execute|d..*/.Xi|
|00003120| 6e 74 20 61 74 66 6c 61 | 67 20 3d 20 30 3b 09 09 |nt atfla|g = 0;..|
|00003130| 09 09 09 09 2f 2a 20 66 | 6c 61 67 20 66 6f 72 20 |..../* f|lag for |
|00003140| 40 20 63 68 61 72 20 74 | 79 70 65 64 09 09 09 2a |@ char t|yped...*|
|00003150| 2f 0a 58 69 6e 74 20 63 | 6f 6c 6f 6e 66 6c 61 67 |/.Xint c|olonflag|
|00003160| 20 3d 20 30 3b 09 09 09 | 09 09 2f 2a 20 66 6c 61 | = 0;...|../* fla|
|00003170| 67 20 66 6f 72 20 3a 20 | 63 68 61 72 20 74 79 70 |g for : |char typ|
|00003180| 65 64 09 09 09 2a 2f 0a | 58 69 6e 74 20 74 72 61 |ed...*/.|Xint tra|
|00003190| 63 65 5f 73 77 20 3d 20 | 30 3b 09 09 09 09 09 2f |ce_sw = |0;...../|
|000031a0| 2a 20 6e 6f 6e 7a 65 72 | 6f 20 69 66 20 74 72 61 |* nonzer|o if tra|
|000031b0| 63 69 6e 67 20 63 6f 6d | 6d 61 6e 64 20 65 78 65 |cing com|mand exe|
|000031c0| 63 09 2a 2f 0a 58 0a 58 | 73 74 72 75 63 74 20 62 |c.*/.X.X|struct b|
|000031d0| 75 66 66 63 65 6c 6c 20 | 2a 69 6e 73 65 72 74 5f |uffcell |*insert_|
|000031e0| 70 3b 09 09 09 2f 2a 20 | 70 6f 69 6e 74 65 72 20 |p;.../* |pointer |
|000031f0| 74 6f 20 74 65 6d 70 20 | 62 75 66 66 65 72 20 73 |to temp |buffer s|
|00003200| 65 67 6d 65 6e 74 20 64 | 75 72 69 6e 67 20 69 6e |egment d|uring in|
|00003210| 73 65 72 74 20 2a 2f 0a | 58 69 6e 74 20 62 75 66 |sert */.|Xint buf|
|00003220| 66 5f 6d 6f 64 3b 09 09 | 09 09 09 09 2f 2a 20 73 |f_mod;..|..../* s|
|00003230| 65 74 20 74 6f 20 65 61 | 72 6c 69 65 73 74 20 62 |et to ea|rliest b|
|00003240| 75 66 66 65 72 20 63 68 | 61 6e 67 65 09 2a 2f 0a |uffer ch|ange.*/.|
|00003250| 58 69 6e 74 20 73 65 61 | 72 63 68 5f 66 6c 61 67 |Xint sea|rch_flag|
|00003260| 3b 09 09 09 09 09 2f 2a | 20 73 65 74 20 6e 6f 6e |;...../*| set non|
|00003270| 7a 65 72 6f 20 62 79 20 | 73 65 61 72 63 68 09 09 |zero by |search..|
|00003280| 09 2a 2f 0a 58 0c 2f 2a | 20 63 68 61 72 61 63 74 |.*/.X./*| charact|
|00003290| 65 72 20 6d 61 70 70 69 | 6e 67 20 74 61 62 6c 65 |er mappi|ng table|
|000032a0| 20 28 64 69 72 65 63 74 | 29 20 2a 2f 0a 58 63 68 | (direct|) */.Xch|
|000032b0| 61 72 20 6d 61 70 63 68 | 5b 5d 20 3d 0a 58 7b 0a |ar mapch|[] =.X{.|
|000032c0| 58 20 30 2c 20 20 20 31 | 2c 20 20 20 32 2c 20 20 |X 0, 1|, 2, |
|000032d0| 20 33 2c 20 20 20 34 2c | 20 20 20 35 2c 20 20 20 | 3, 4,| 5, |
|000032e0| 36 2c 20 20 20 37 2c 20 | 20 20 38 2c 20 20 20 39 |6, 7, | 8, 9|
|000032f0| 2c 20 20 31 30 2c 20 20 | 31 31 2c 20 20 31 32 2c |, 10, |11, 12,|
|00003300| 20 20 31 33 2c 20 20 31 | 34 2c 20 20 31 35 2c 09 | 13, 1|4, 15,.|
|00003310| 09 2f 2a 20 5e 40 20 2d | 20 5e 4d 20 2a 2f 0a 58 |./* ^@ -| ^M */.X|
|00003320| 31 36 2c 20 20 31 37 2c | 20 20 31 38 2c 20 20 31 |16, 17,| 18, 1|
|00003330| 39 2c 20 20 32 30 2c 20 | 20 32 31 2c 20 20 32 32 |9, 20, | 21, 22|
|00003340| 2c 20 20 32 33 2c 20 20 | 32 34 2c 20 20 32 35 2c |, 23, |24, 25,|
|00003350| 20 20 32 36 2c 20 20 32 | 37 2c 20 20 32 38 2c 20 | 26, 2|7, 28, |
|00003360| 20 32 39 2c 20 20 33 30 | 2c 20 20 33 31 2c 09 09 | 29, 30|, 31,..|
|00003370| 2f 2a 20 5e 4e 20 2d 20 | 5e 5f 20 2a 2f 0a 58 27 |/* ^N - |^_ */.X'|
|00003380| 20 27 2c 20 27 21 27 2c | 20 27 22 27 2c 20 27 23 | ', '!',| '"', '#|
|00003390| 27 2c 20 27 24 27 2c 20 | 27 25 27 2c 20 27 26 27 |', '$', |'%', '&'|
|000033a0| 2c 20 27 5c 27 27 2c 27 | 28 27 2c 20 27 29 27 2c |, '\'','|(', ')',|
|000033b0| 20 27 2a 27 2c 20 27 2b | 27 2c 20 27 2c 27 2c 20 | '*', '+|', ',', |
|000033c0| 27 2d 27 2c 20 27 2e 27 | 2c 20 27 2f 27 2c 09 09 |'-', '.'|, '/',..|
|000033d0| 2f 2a 20 73 70 20 2d 20 | 2f 20 20 2a 2f 0a 58 27 |/* sp - |/ */.X'|
|000033e0| 30 27 2c 20 27 31 27 2c | 20 27 32 27 2c 20 27 33 |0', '1',| '2', '3|
|000033f0| 27 2c 20 27 34 27 2c 20 | 27 35 27 2c 20 27 36 27 |', '4', |'5', '6'|
|00003400| 2c 20 27 37 27 2c 20 27 | 38 27 2c 20 27 39 27 2c |, '7', '|8', '9',|
|00003410| 20 27 3a 27 2c 20 27 3b | 27 2c 20 27 3c 27 2c 20 | ':', ';|', '<', |
|00003420| 27 3d 27 2c 20 27 3e 27 | 2c 20 27 3f 27 2c 09 09 |'=', '>'|, '?',..|
|00003430| 2f 2a 20 30 20 2d 20 3f | 20 20 20 2a 2f 0a 58 27 |/* 0 - ?| */.X'|
|00003440| 40 27 2c 20 27 41 27 2c | 20 27 42 27 2c 20 27 43 |@', 'A',| 'B', 'C|
|00003450| 27 2c 20 27 44 27 2c 20 | 27 45 27 2c 20 27 46 27 |', 'D', |'E', 'F'|
|00003460| 2c 20 27 47 27 2c 20 27 | 48 27 2c 20 27 49 27 2c |, 'G', '|H', 'I',|
|00003470| 20 27 4a 27 2c 20 27 4b | 27 2c 20 27 4c 27 2c 20 | 'J', 'K|', 'L', |
|00003480| 27 4d 27 2c 20 27 4e 27 | 2c 20 27 4f 27 2c 09 09 |'M', 'N'|, 'O',..|
|00003490| 2f 2a 20 40 20 2d 20 4f | 20 20 20 2a 2f 0a 58 27 |/* @ - O| */.X'|
|000034a0| 50 27 2c 20 27 51 27 2c | 20 27 52 27 2c 20 27 53 |P', 'Q',| 'R', 'S|
|000034b0| 27 2c 20 27 54 27 2c 20 | 27 55 27 2c 20 27 56 27 |', 'T', |'U', 'V'|
|000034c0| 2c 20 27 57 27 2c 20 27 | 58 27 2c 20 27 59 27 2c |, 'W', '|X', 'Y',|
|000034d0| 20 27 5a 27 2c 20 27 5b | 27 2c 20 27 5c 5c 27 2c | 'Z', '[|', '\\',|
|000034e0| 27 5d 27 2c 20 27 5e 27 | 2c 20 27 5f 27 2c 09 09 |']', '^'|, '_',..|
|000034f0| 2f 2a 20 50 20 2d 20 5f | 20 20 20 2a 2f 0a 58 27 |/* P - _| */.X'|
|00003500| 60 27 2c 20 27 61 27 2c | 20 27 62 27 2c 20 27 63 |`', 'a',| 'b', 'c|
|00003510| 27 2c 20 27 64 27 2c 20 | 27 65 27 2c 20 27 66 27 |', 'd', |'e', 'f'|
|00003520| 2c 20 27 67 27 2c 20 27 | 68 27 2c 20 27 69 27 2c |, 'g', '|h', 'i',|
|00003530| 20 27 6a 27 2c 20 27 6b | 27 2c 20 27 6c 27 2c 20 | 'j', 'k|', 'l', |
|00003540| 27 6d 27 2c 20 27 6e 27 | 2c 20 27 6f 27 2c 09 09 |'m', 'n'|, 'o',..|
|00003550| 2f 2a 20 60 20 2d 20 6f | 20 20 20 2a 2f 0a 58 27 |/* ` - o| */.X'|
|00003560| 70 27 2c 20 27 71 27 2c | 20 27 72 27 2c 20 27 73 |p', 'q',| 'r', 's|
|00003570| 27 2c 20 27 74 27 2c 20 | 27 75 27 2c 20 27 76 27 |', 't', |'u', 'v'|
|00003580| 2c 20 27 77 27 2c 20 27 | 78 27 2c 20 27 79 27 2c |, 'w', '|x', 'y',|
|00003590| 20 27 7a 27 2c 20 27 7b | 27 2c 20 27 7c 27 2c 27 | 'z', '{|', '|','|
|000035a0| 7d 27 2c 20 27 7e 27 2c | 20 30 31 37 37 09 09 2f |}', '~',| 0177../|
|000035b0| 2a 20 70 20 2d 20 64 65 | 6c 20 2a 2f 0a 58 7d 20 |* p - de|l */.X} |
|000035c0| 3b 0a 58 0a 58 2f 2a 20 | 63 68 61 72 61 63 74 65 |;.X.X/* |characte|
|000035d0| 72 20 74 61 62 6c 65 20 | 28 6d 61 70 70 65 64 20 |r table |(mapped |
|000035e0| 74 6f 20 6c 6f 77 65 72 | 20 63 61 73 65 29 20 2a |to lower| case) *|
|000035f0| 2f 0a 58 63 68 61 72 20 | 6d 61 70 63 68 5f 6c 5b |/.Xchar |mapch_l[|
|00003600| 5d 20 3d 0a 58 7b 0a 58 | 20 30 2c 20 20 20 31 2c |] =.X{.X| 0, 1,|
|00003610| 20 20 20 32 2c 20 20 20 | 33 2c 20 20 20 34 2c 20 | 2, |3, 4, |
|00003620| 20 20 35 2c 20 20 20 36 | 2c 20 20 20 37 2c 20 20 | 5, 6|, 7, |
|00003630| 20 38 2c 20 20 20 39 2c | 20 20 31 30 2c 20 20 31 | 8, 9,| 10, 1|
|00003640| 31 2c 20 20 31 32 2c 20 | 20 31 33 2c 20 20 31 34 |1, 12, | 13, 14|
|00003650| 2c 20 20 31 35 2c 09 09 | 2f 2a 20 5e 40 20 2d 20 |, 15,..|/* ^@ - |
|00003660| 5e 4d 20 2a 2f 0a 58 31 | 36 2c 20 20 31 37 2c 20 |^M */.X1|6, 17, |
|00003670| 20 31 38 2c 20 20 31 39 | 2c 20 20 32 30 2c 20 20 | 18, 19|, 20, |
|00003680| 32 31 2c 20 20 32 32 2c | 20 20 32 33 2c 20 20 32 |21, 22,| 23, 2|
|00003690| 34 2c 20 20 32 35 2c 20 | 20 32 36 2c 20 20 32 37 |4, 25, | 26, 27|
|000036a0| 2c 20 20 32 38 2c 20 20 | 32 39 2c 20 20 33 30 2c |, 28, |29, 30,|
|000036b0| 20 20 33 31 2c 09 09 2f | 2a 20 5e 4e 20 2d 20 5e | 31,../|* ^N - ^|
|000036c0| 5f 20 2a 2f 0a 58 27 20 | 27 2c 20 27 21 27 2c 20 |_ */.X' |', '!', |
|000036d0| 27 22 27 2c 20 27 23 27 | 2c 20 27 24 27 2c 20 27 |'"', '#'|, '$', '|
|000036e0| 25 27 2c 20 27 26 27 2c | 20 27 5c 27 27 2c 27 28 |%', '&',| '\'','(|
|000036f0| 27 2c 20 27 29 27 2c 20 | 27 2a 27 2c 20 27 2b 27 |', ')', |'*', '+'|
|00003700| 2c 20 27 2c 27 2c 20 27 | 2d 27 2c 20 27 2e 27 2c |, ',', '|-', '.',|
|00003710| 20 27 2f 27 2c 09 09 2f | 2a 20 73 70 20 2d 20 2f | '/',../|* sp - /|
|00003720| 20 20 2a 2f 0a 58 27 30 | 27 2c 20 27 31 27 2c 20 | */.X'0|', '1', |
|00003730| 27 32 27 2c 20 27 33 27 | 2c 20 27 34 27 2c 20 27 |'2', '3'|, '4', '|
|00003740| 35 27 2c 20 27 36 27 2c | 20 27 37 27 2c 20 27 38 |5', '6',| '7', '8|
|00003750| 27 2c 20 27 39 27 2c 20 | 27 3a 27 2c 20 27 3b 27 |', '9', |':', ';'|
|00003760| 2c 20 27 3c 27 2c 20 27 | 3d 27 2c 20 27 3e 27 2c |, '<', '|=', '>',|
|00003770| 20 27 3f 27 2c 09 09 2f | 2a 20 30 20 2d 20 3f 20 | '?',../|* 0 - ? |
|00003780| 20 20 2a 2f 0a 58 27 40 | 27 2c 20 27 61 27 2c 20 | */.X'@|', 'a', |
|00003790| 27 62 27 2c 20 27 63 27 | 2c 20 27 64 27 2c 20 27 |'b', 'c'|, 'd', '|
|000037a0| 65 27 2c 20 27 66 27 2c | 20 27 67 27 2c 20 27 68 |e', 'f',| 'g', 'h|
|000037b0| 27 2c 20 27 69 27 2c 20 | 27 6a 27 2c 20 27 6b 27 |', 'i', |'j', 'k'|
|000037c0| 2c 20 27 6c 27 2c 20 27 | 6d 27 2c 20 27 6e 27 2c |, 'l', '|m', 'n',|
|000037d0| 20 27 6f 27 2c 09 09 2f | 2a 20 40 20 2d 20 4f 20 | 'o',../|* @ - O |
|000037e0| 20 20 2a 2f 0a 58 27 70 | 27 2c 20 27 71 27 2c 20 | */.X'p|', 'q', |
|000037f0| 27 72 27 2c 20 27 73 27 | 2c 20 27 74 27 2c 20 27 |'r', 's'|, 't', '|
|00003800| 75 27 2c 20 27 76 27 2c | 20 27 77 27 2c 20 27 78 |u', 'v',| 'w', 'x|
|00003810| 27 2c 20 27 79 27 2c 20 | 27 7a 27 2c 20 27 5b 27 |', 'y', |'z', '['|
|00003820| 2c 20 27 5c 5c 27 2c 27 | 5d 27 2c 20 27 5e 27 2c |, '\\','|]', '^',|
|00003830| 20 27 5f 27 2c 09 09 2f | 2a 20 50 20 2d 20 5f 20 | '_',../|* P - _ |
|00003840| 20 20 2a 2f 0a 58 27 60 | 27 2c 20 27 61 27 2c 20 | */.X'`|', 'a', |
|00003850| 27 62 27 2c 20 27 63 27 | 2c 20 27 64 27 2c 20 27 |'b', 'c'|, 'd', '|
|00003860| 65 27 2c 20 27 66 27 2c | 20 27 67 27 2c 20 27 68 |e', 'f',| 'g', 'h|
|00003870| 27 2c 20 27 69 27 2c 20 | 27 6a 27 2c 20 27 6b 27 |', 'i', |'j', 'k'|
|00003880| 2c 20 27 6c 27 2c 20 27 | 6d 27 2c 20 27 6e 27 2c |, 'l', '|m', 'n',|
|00003890| 20 27 6f 27 2c 09 09 2f | 2a 20 60 20 2d 20 6f 20 | 'o',../|* ` - o |
|000038a0| 20 20 2a 2f 0a 58 27 70 | 27 2c 20 27 71 27 2c 20 | */.X'p|', 'q', |
|000038b0| 27 72 27 2c 20 27 73 27 | 2c 20 27 74 27 2c 20 27 |'r', 's'|, 't', '|
|000038c0| 75 27 2c 20 27 76 27 2c | 20 27 77 27 2c 20 27 78 |u', 'v',| 'w', 'x|
|000038d0| 27 2c 20 27 79 27 2c 20 | 27 7a 27 2c 20 27 7b 27 |', 'y', |'z', '{'|
|000038e0| 2c 20 27 7c 27 2c 27 7d | 27 2c 20 27 7e 27 2c 20 |, '|','}|', '~', |
|000038f0| 30 31 37 37 09 09 2f 2a | 20 70 20 2d 20 64 65 6c |0177../*| p - del|
|00003900| 20 2a 2f 0a 58 7d 20 3b | 0a 58 0c 2f 2a 20 74 61 | */.X} ;|.X./* ta|
|00003910| 62 6c 65 20 6f 66 20 73 | 70 65 63 69 61 6c 20 63 |ble of s|pecial c|
|00003920| 68 61 72 61 63 74 65 72 | 73 20 66 6f 72 20 22 73 |haracter|s for "s|
|00003930| 65 61 72 63 68 2c 22 20 | 22 73 6b 69 70 74 6f 28 |earch," |"skipto(|
|00003940| 29 2c 22 20 61 6e 64 20 | 22 6c 69 6e 65 73 28 29 |)," and |"lines()|
|00003950| 22 09 2a 2f 0a 58 2f 2a | 20 73 65 65 20 22 74 65 |".*/.X/*| see "te|
|00003960| 5f 64 65 66 73 2e 68 20 | 66 6f 72 20 6d 65 61 6e |_defs.h |for mean|
|00003970| 69 6e 67 20 6f 66 20 62 | 69 74 73 20 2a 2f 0a 58 |ing of b|its */.X|
|00003980| 0a 58 63 68 61 72 20 73 | 70 65 63 5f 63 68 61 72 |.Xchar s|pec_char|
|00003990| 73 5b 5d 20 3d 0a 58 7b | 0a 58 30 2c 09 09 09 41 |s[] =.X{|.X0,...A|
|000039a0| 5f 53 2c 09 09 30 2c 09 | 09 09 30 2c 09 09 09 09 |_S,..0,.|..0,....|
|000039b0| 2f 2a 20 5e 40 20 5e 41 | 20 5e 42 20 5e 43 20 2a |/* ^@ ^A| ^B ^C *|
|000039c0| 2f 0a 58 30 2c 09 09 09 | 41 5f 41 2c 09 09 30 2c |/.X0,...|A_A,..0,|
|000039d0| 09 09 09 30 2c 09 09 09 | 09 2f 2a 20 5e 44 20 5e |...0,...|./* ^D ^|
|000039e0| 45 20 5e 46 20 5e 47 20 | 2a 2f 0a 58 30 2c 09 09 |E ^F ^G |*/.X0,..|
|000039f0| 09 41 5f 54 2c 09 09 41 | 5f 4c 2c 09 09 41 5f 4c |.A_T,..A|_L,..A_L|
|00003a00| 2c 09 09 09 2f 2a 20 5e | 48 20 5e 49 20 5e 4a 20 |,.../* ^|H ^I ^J |
|00003a10| 5e 4b 20 2a 2f 0a 58 41 | 5f 4c 2c 09 09 30 2c 09 |^K */.XA|_L,..0,.|
|00003a20| 09 09 41 5f 41 2c 09 09 | 30 2c 09 09 09 09 2f 2a |..A_A,..|0,..../*|
|00003a30| 20 5e 4c 20 5e 4d 20 5e | 4e 20 5e 4f 20 2a 2f 0a | ^L ^M ^|N ^O */.|
|00003a40| 58 30 2c 09 09 09 41 5f | 41 2c 09 09 41 5f 41 2c |X0,...A_|A,..A_A,|
|00003a50| 09 09 41 5f 41 2c 09 09 | 09 2f 2a 20 5e 50 20 5e |..A_A,..|./* ^P ^|
|00003a60| 51 20 5e 52 20 5e 53 20 | 2a 2f 0a 58 30 2c 09 09 |Q ^R ^S |*/.X0,..|
|00003a70| 09 41 5f 54 7c 41 5f 51 | 2c 09 30 2c 09 09 09 30 |.A_T|A_Q|,.0,...0|
|00003a80| 2c 09 09 09 09 2f 2a 20 | 5e 54 20 5e 55 20 5e 56 |,..../* |^T ^U ^V|
|00003a90| 20 5e 57 20 2a 2f 0a 58 | 41 5f 41 2c 09 09 30 2c | ^W */.X|A_A,..0,|
|00003aa0| 09 09 09 30 2c 09 09 09 | 30 2c 09 09 09 09 2f 2a |...0,...|0,..../*|
|00003ab0| 20 5e 58 20 5e 59 20 5e | 5a 20 5e 5b 20 2a 2f 0a | ^X ^Y ^|Z ^[ */.|
|00003ac0| 58 30 2c 09 09 09 30 2c | 09 09 09 41 5f 53 2c 09 |X0,...0,|...A_S,.|
|00003ad0| 09 30 2c 09 09 09 09 2f | 2a 20 5e 5c 20 5e 5d 20 |.0,..../|* ^\ ^] |
|00003ae0| 5e 5e 20 5e 5f 20 2a 2f | 0a 58 30 2c 09 09 09 41 |^^ ^_ */|.X0,...A|
|00003af0| 5f 53 2c 09 09 41 5f 58 | 2c 09 09 30 2c 09 09 09 |_S,..A_X|,..0,...|
|00003b00| 09 2f 2a 20 20 20 20 21 | 20 20 22 20 20 23 20 20 |./* !| " # |
|00003b10| 2a 2f 0a 58 30 2c 09 09 | 09 30 2c 09 09 09 30 2c |*/.X0,..|.0,...0,|
|00003b20| 09 09 09 41 5f 58 2c 09 | 09 09 2f 2a 20 24 20 20 |...A_X,.|../* $ |
|00003b30| 25 20 20 26 20 20 27 20 | 20 2a 2f 0a 58 30 2c 09 |% & ' | */.X0,.|
|00003b40| 09 09 30 2c 09 09 09 30 | 2c 09 09 09 30 2c 09 09 |..0,...0|,...0,..|
|00003b50| 09 09 2f 2a 20 28 20 20 | 29 20 20 2a 20 20 2b 20 |../* ( |) * + |
|00003b60| 20 2a 2f 0a 58 30 2c 09 | 09 09 30 2c 09 09 09 30 | */.X0,.|..0,...0|
|00003b70| 2c 09 09 09 30 2c 09 09 | 09 09 2f 2a 20 2c 20 20 |,...0,..|../* , |
|00003b80| 2d 20 20 2e 20 20 2f 20 | 20 2a 2f 0a 58 30 2c 09 |- . / | */.X0,.|
|00003b90| 09 09 30 2c 09 09 09 30 | 2c 09 09 09 30 2c 09 09 |..0,...0|,...0,..|
|00003ba0| 09 09 2f 2a 20 30 20 20 | 31 20 20 32 20 20 33 20 |../* 0 |1 2 3 |
|00003bb0| 20 2a 2f 0a 58 30 2c 09 | 09 09 30 2c 09 09 09 30 | */.X0,.|..0,...0|
|00003bc0| 2c 09 09 09 30 2c 09 09 | 09 09 2f 2a 20 34 20 20 |,...0,..|../* 4 |
|00003bd0| 35 20 20 36 20 20 37 20 | 20 2a 2f 0a 58 30 2c 09 |5 6 7 | */.X0,.|
|00003be0| 09 09 30 2c 09 09 09 30 | 2c 09 09 09 30 2c 09 09 |..0,...0|,...0,..|
|00003bf0| 09 09 2f 2a 20 38 20 20 | 39 20 20 3a 20 20 3b 20 |../* 8 |9 : ; |
|00003c00| 20 2a 2f 0a 58 41 5f 58 | 2c 09 09 30 2c 09 09 09 | */.XA_X|,..0,...|
|00003c10| 41 5f 58 2c 09 09 30 2c | 09 09 09 09 2f 2a 20 3c |A_X,..0,|..../* <|
|00003c20| 20 20 3d 20 20 3e 20 20 | 3f 20 20 2a 2f 0a 58 41 | = > |? */.XA|
|00003c30| 5f 53 2c 09 09 30 2c 09 | 09 09 41 5f 45 7c 41 5f |_S,..0,.|..A_E|A_|
|00003c40| 46 2c 09 30 2c 09 09 09 | 09 2f 2a 20 40 20 20 41 |F,.0,...|./* @ A|
|00003c50| 20 20 42 20 20 43 20 20 | 2a 2f 0a 58 30 2c 09 09 | B C |*/.X0,..|
|00003c60| 09 41 5f 53 2c 09 09 41 | 5f 53 2c 09 09 41 5f 51 |.A_S,..A|_S,..A_Q|
|00003c70| 2c 09 09 09 2f 2a 20 44 | 20 20 45 20 20 46 20 20 |,.../* D| E F |
|00003c80| 47 20 20 2a 2f 0a 58 30 | 2c 09 09 09 41 5f 54 7c |G */.X0|,...A_T||
|00003c90| 41 5f 45 2c 09 30 2c 09 | 09 09 30 2c 09 09 09 09 |A_E,.0,.|..0,....|
|00003ca0| 2f 2a 20 48 20 20 49 20 | 20 4a 20 20 4b 20 20 2a |/* H I | J K *|
|00003cb0| 2f 0a 58 30 2c 09 09 09 | 41 5f 51 2c 09 09 41 5f |/.X0,...|A_Q,..A_|
|00003cc0| 54 7c 41 5f 46 2c 09 41 | 5f 54 2c 09 09 09 2f 2a |T|A_F,.A|_T,.../*|
|00003cd0| 20 4c 20 20 4d 20 20 4e | 20 20 4f 20 20 2a 2f 0a | L M N| O */.|
|00003ce0| 58 30 2c 09 09 09 41 5f | 51 2c 09 09 41 5f 45 2c |X0,...A_|Q,..A_E,|
|00003cf0| 09 09 41 5f 54 7c 41 5f | 46 2c 09 09 2f 2a 20 50 |..A_T|A_|F,../* P|
|00003d00| 20 20 51 20 20 52 20 20 | 53 20 20 2a 2f 0a 58 30 | Q R |S */.X0|
|00003d10| 2c 09 09 09 41 5f 51 2c | 09 09 30 2c 09 09 09 41 |,...A_Q,|..0,...A|
|00003d20| 5f 45 2c 09 09 09 2f 2a | 20 54 20 20 55 20 20 56 |_E,.../*| T U V|
|00003d30| 20 20 57 20 20 2a 2f 0a | 58 41 5f 51 2c 09 09 30 | W */.|XA_Q,..0|
|00003d40| 2c 09 09 09 30 2c 09 09 | 09 41 5f 51 2c 09 09 09 |,...0,..|.A_Q,...|
|00003d50| 2f 2a 20 58 20 20 59 20 | 20 5a 20 20 5b 20 20 2a |/* X Y | Z [ *|
|00003d60| 2f 0a 58 30 2c 09 09 09 | 41 5f 51 2c 09 09 41 5f |/.X0,...|A_Q,..A_|
|00003d70| 53 2c 09 09 41 5f 54 7c | 41 5f 45 2c 09 09 2f 2a |S,..A_T||A_E,../*|
|00003d80| 20 5c 20 20 5d 20 20 5e | 20 20 5f 20 20 2a 2f 0a | \ ] ^| _ */.|
|00003d90| 58 30 2c 09 09 09 30 2c | 09 09 09 41 5f 45 7c 41 |X0,...0,|...A_E|A|
|00003da0| 5f 46 2c 09 30 2c 09 09 | 09 09 2f 2a 20 60 20 20 |_F,.0,..|../* ` |
|00003db0| 61 20 20 62 20 20 63 20 | 20 2a 2f 0a 58 30 2c 09 |a b c | */.X0,.|
|00003dc0| 09 09 41 5f 53 2c 09 09 | 41 5f 53 2c 09 09 41 5f |..A_S,..|A_S,..A_|
|00003dd0| 51 2c 09 09 09 2f 2a 20 | 64 20 20 65 20 20 66 20 |Q,.../* |d e f |
|00003de0| 20 67 20 20 2a 2f 0a 58 | 30 2c 09 09 09 41 5f 54 | g */.X|0,...A_T|
|00003df0| 7c 41 5f 45 2c 09 30 2c | 09 09 09 30 2c 09 09 09 ||A_E,.0,|...0,...|
|00003e00| 09 2f 2a 20 68 20 20 69 | 20 20 6a 20 20 6b 20 20 |./* h i| j k |
|00003e10| 2a 2f 0a 58 30 2c 09 09 | 09 41 5f 51 2c 09 09 41 |*/.X0,..|.A_Q,..A|
|00003e20| 5f 54 7c 41 5f 46 2c 09 | 41 5f 54 2c 09 09 09 2f |_T|A_F,.|A_T,.../|
|00003e30| 2a 20 6c 20 20 6d 20 20 | 6e 20 20 6f 20 20 2a 2f |* l m |n o */|
|00003e40| 0a 58 30 2c 09 09 09 41 | 5f 51 2c 09 09 41 5f 45 |.X0,...A|_Q,..A_E|
|00003e50| 2c 09 09 41 5f 54 7c 41 | 5f 46 2c 09 09 2f 2a 20 |,..A_T|A|_F,../* |
|00003e60| 70 20 20 71 20 20 72 20 | 20 73 20 20 2a 2f 0a 58 |p q r | s */.X|
|00003e70| 30 2c 09 09 09 41 5f 51 | 2c 09 09 30 2c 09 09 09 |0,...A_Q|,..0,...|
|00003e80| 41 5f 45 2c 09 09 09 2f | 2a 20 74 20 20 75 20 20 |A_E,.../|* t u |
|00003e90| 76 20 20 77 20 20 2a 2f | 0a 58 41 5f 51 2c 09 09 |v w */|.XA_Q,..|
|00003ea0| 30 2c 09 09 09 30 2c 09 | 09 09 30 2c 09 09 09 09 |0,...0,.|..0,....|
|00003eb0| 2f 2a 20 78 20 20 79 20 | 20 7a 20 20 7b 20 20 2a |/* x y | z { *|
|00003ec0| 2f 0a 58 41 5f 58 2c 09 | 09 30 2c 09 09 09 30 2c |/.XA_X,.|.0,...0,|
|00003ed0| 09 09 09 30 2c 09 09 09 | 09 2f 2a 20 7c 20 20 7d |...0,...|./* | }|
|00003ee0| 20 20 7e 20 20 64 65 6c | 20 2a 2f 0a 58 7d 20 3b | ~ del| */.X} ;|
|00003ef0| 0a 58 0a 45 4e 44 5f 4f | 46 5f 74 65 5f 64 61 74 |.X.END_O|F_te_dat|
|00003f00| 61 2e 63 0a 69 66 20 74 | 65 73 74 20 37 33 35 30 |a.c.if t|est 7350|
|00003f10| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 74 65 5f | -ne `wc| -c <te_|
|00003f20| 64 61 74 61 2e 63 60 3b | 20 74 68 65 6e 0a 20 20 |data.c`;| then. |
|00003f30| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 74 | echo s|har: \"t|
|00003f40| 65 5f 64 61 74 61 2e 63 | 5c 22 20 75 6e 70 61 63 |e_data.c|\" unpac|
|00003f50| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00003f60| 69 7a 65 21 3f 0a 66 69 | 0a 23 20 65 6e 64 20 6f |ize!?.fi|.# end o|
|00003f70| 66 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 63 68 |f overwr|iting ch|
|00003f80| 65 63 6b 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |eck.fi.e|cho shar|
|00003f90| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 74 |: Extrac|ting \"t|
|00003fa0| 65 5f 65 78 65 63 30 2e | 63 5c 22 20 5c 28 35 34 |e_exec0.|c\" \(54|
|00003fb0| 35 38 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |58 chara|cters\).|
|00003fc0| 69 66 20 74 65 73 74 20 | 2d 66 20 74 65 5f 65 78 |if test |-f te_ex|
|00003fd0| 65 63 30 2e 63 20 3b 20 | 74 68 65 6e 20 0a 20 20 |ec0.c ; |then . |
|00003fe0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00003ff0| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00004000| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 74 |xisting |file \"t|
|00004010| 65 5f 65 78 65 63 30 2e | 63 5c 22 0a 65 6c 73 65 |e_exec0.|c\".else|
|00004020| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 74 |.sed "s/|^X//" >t|
|00004030| 65 5f 65 78 65 63 30 2e | 63 20 3c 3c 27 45 4e 44 |e_exec0.|c <<'END|
|00004040| 5f 4f 46 5f 74 65 5f 65 | 78 65 63 30 2e 63 27 0a |_OF_te_e|xec0.c'.|
|00004050| 58 2f 2a 20 54 45 43 4f | 20 66 6f 72 20 55 6c 74 |X/* TECO| for Ult|
|00004060| 72 69 78 20 20 20 43 6f | 70 79 72 69 67 68 74 20 |rix Co|pyright |
|00004070| 31 39 38 36 20 4d 61 74 | 74 20 46 69 63 68 74 65 |1986 Mat|t Fichte|
|00004080| 6e 62 61 75 6d 09 09 09 | 09 09 09 2a 2f 0a 58 2f |nbaum...|...*/.X/|
|00004090| 2a 20 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 61 |* This p|rogram a|
|000040a0| 6e 64 20 69 74 73 20 63 | 6f 6d 70 6f 6e 65 6e 74 |nd its c|omponent|
|000040b0| 73 20 62 65 6c 6f 6e 67 | 20 74 6f 20 47 65 6e 52 |s belong| to GenR|
|000040c0| 61 64 20 49 6e 63 2c 20 | 43 6f 6e 63 6f 72 64 20 |ad Inc, |Concord |
|000040d0| 4d 41 20 30 31 37 34 32 | 09 2a 2f 0a 58 2f 2a 20 |MA 01742|.*/.X/* |
|000040e0| 54 68 65 79 20 6d 61 79 | 20 62 65 20 63 6f 70 69 |They may| be copi|
|000040f0| 65 64 20 69 66 20 74 68 | 69 73 20 63 6f 70 79 72 |ed if th|is copyr|
|00004100| 69 67 68 74 20 6e 6f 74 | 69 63 65 20 69 73 20 69 |ight not|ice is i|
|00004110| 6e 63 6c 75 64 65 64 09 | 09 09 09 09 2a 2f 0a 58 |ncluded.|....*/.X|
|00004120| 0a 58 2f 2a 20 74 65 5f | 65 78 65 63 30 2e 63 20 |.X/* te_|exec0.c |
|00004130| 20 20 65 78 65 63 75 74 | 65 20 63 6f 6d 6d 61 6e | execut|e comman|
|00004140| 64 20 73 74 72 69 6e 67 | 20 20 20 31 31 2f 33 31 |d string| 11/31|
|00004150| 2f 38 36 20 2a 2f 0a 58 | 23 69 6e 63 6c 75 64 65 |/86 */.X|#include|
|00004160| 20 22 74 65 5f 64 65 66 | 73 2e 68 22 0a 58 23 69 | "te_def|s.h".X#i|
|00004170| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 69 6d 65 |nclude <|sys/time|
|00004180| 2e 68 3e 0a 58 0a 58 65 | 78 65 63 5f 63 6d 64 73 |.h>.X.Xe|xec_cmds|
|00004190| 74 72 28 29 0a 58 09 7b | 0a 58 09 63 68 61 72 20 |tr().X.{|.X.char |
|000041a0| 63 3b 0a 58 09 69 6e 74 | 20 64 69 67 69 74 5f 73 |c;.X.int| digit_s|
|000041b0| 77 3b 0a 58 09 73 74 72 | 75 63 74 20 74 6d 20 2a |w;.X.str|uct tm *|
|000041c0| 74 69 6d 65 70 74 72 3b | 0a 58 09 63 68 61 72 20 |timeptr;|.X.char |
|000041d0| 2a 74 69 6d 65 73 74 72 | 69 6e 67 2c 20 2a 61 73 |*timestr|ing, *as|
|000041e0| 63 74 69 6d 65 28 29 3b | 0a 58 09 73 74 72 75 63 |ctime();|.X.struc|
|000041f0| 74 20 74 69 6d 65 76 61 | 6c 20 74 69 6d 65 76 61 |t timeva|l timeva|
|00004200| 6c 75 65 2c 20 74 7a 76 | 61 6c 75 65 3b 0a 58 0a |lue, tzv|alue;.X.|
|00004210| 58 09 65 78 69 74 66 6c | 61 67 20 3d 20 30 3b 09 |X.exitfl|ag = 0;.|
|00004220| 09 09 09 09 2f 2a 20 73 | 65 74 20 66 6c 61 67 20 |..../* s|et flag |
|00004230| 74 6f 20 22 65 78 65 63 | 75 74 69 6e 67 22 20 2a |to "exec|uting" *|
|00004240| 2f 0a 58 09 63 6d 64 73 | 74 72 2e 70 20 3d 20 63 |/.X.cmds|tr.p = c|
|00004250| 62 75 66 2e 66 3b 09 09 | 09 09 2f 2a 20 63 6d 64 |buf.f;..|../* cmd|
|00004260| 73 74 72 20 74 6f 20 73 | 74 61 72 74 20 6f 66 20 |str to s|tart of |
|00004270| 63 6f 6d 6d 61 6e 64 20 | 73 74 72 69 6e 67 20 2a |command |string *|
|00004280| 2f 0a 58 09 63 6d 64 73 | 74 72 2e 7a 20 3d 20 63 |/.X.cmds|tr.z = c|
|00004290| 62 75 66 2e 7a 3b 0a 58 | 09 63 6d 64 73 74 72 2e |buf.z;.X|.cmdstr.|
|000042a0| 66 6c 61 67 20 3d 20 63 | 6d 64 73 74 72 2e 64 6f |flag = c|mdstr.do|
|000042b0| 74 20 3d 20 63 6d 64 73 | 74 72 2e 63 20 3d 20 30 |t = cmds|tr.c = 0|
|000042c0| 3b 09 2f 2a 20 63 6c 65 | 61 72 20 63 68 61 72 20 |;./* cle|ar char |
|000042d0| 70 74 72 20 61 6e 64 20 | 69 74 65 72 61 74 69 6f |ptr and |iteratio|
|000042e0| 6e 20 66 6c 61 67 20 2a | 2f 0a 58 09 6d 73 70 20 |n flag *|/.X.msp |
|000042f0| 3d 20 26 63 6d 64 73 74 | 72 3b 09 09 09 09 09 2f |= &cmdst|r;...../|
|00004300| 2a 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 6d 61 63 |* initia|lize mac|
|00004310| 72 6f 20 73 74 61 63 6b | 20 70 6f 69 6e 74 65 72 |ro stack| pointer|
|00004320| 20 2a 2f 0a 58 09 65 73 | 70 20 3d 20 26 65 73 74 | */.X.es|p = &est|
|00004330| 61 63 6b 5b 30 5d 3b 09 | 09 09 09 2f 2a 20 69 6e |ack[0];.|.../* in|
|00004340| 69 74 69 61 6c 69 7a 65 | 20 65 78 70 72 65 73 73 |itialize| express|
|00004350| 69 6f 6e 20 73 74 61 63 | 6b 20 70 6f 69 6e 74 65 |ion stac|k pointe|
|00004360| 72 20 2a 2f 0a 58 09 71 | 73 70 20 3d 20 26 71 73 |r */.X.q|sp = &qs|
|00004370| 74 61 63 6b 5b 2d 31 5d | 3b 09 09 09 09 2f 2a 20 |tack[-1]|;..../* |
|00004380| 69 6e 69 74 69 61 6c 69 | 7a 65 20 71 2d 72 65 67 |initiali|ze q-reg|
|00004390| 20 73 74 61 63 6b 20 70 | 6f 69 6e 74 65 72 20 2a | stack p|ointer *|
|000043a0| 2f 0a 58 09 61 74 66 6c | 61 67 20 3d 20 63 6f 6c |/.X.atfl|ag = col|
|000043b0| 6f 6e 66 6c 61 67 20 3d | 20 30 3b 09 09 09 2f 2a |onflag =| 0;.../*|
|000043c0| 20 63 6c 65 61 72 20 66 | 6c 61 67 73 20 2a 2f 0a | clear f|lags */.|
|000043d0| 58 09 65 73 70 2d 3e 66 | 6c 61 67 32 20 3d 20 65 |X.esp->f|lag2 = e|
|000043e0| 73 70 2d 3e 66 6c 61 67 | 31 20 3d 20 30 3b 09 2f |sp->flag|1 = 0;./|
|000043f0| 2a 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 65 78 70 |* initia|lize exp|
|00004400| 72 65 73 73 69 6f 6e 20 | 72 65 61 64 65 72 20 2a |ression |reader *|
|00004410| 2f 0a 58 09 65 73 70 2d | 3e 6f 70 20 3d 20 4f 50 |/.X.esp-|>op = OP|
|00004420| 5f 53 54 41 52 54 3b 0a | 58 09 74 72 61 63 65 5f |_START;.|X.trace_|
|00004430| 73 77 20 3d 20 30 3b 09 | 09 09 09 09 2f 2a 20 73 |sw = 0;.|..../* s|
|00004440| 74 61 72 74 20 6f 75 74 | 20 77 69 74 68 20 74 72 |tart out| with tr|
|00004450| 61 63 65 20 6f 66 66 20 | 2a 2f 0a 58 09 64 69 67 |ace off |*/.X.dig|
|00004460| 69 74 5f 73 77 20 3d 20 | 30 3b 09 09 09 09 09 2f |it_sw = |0;...../|
|00004470| 2a 20 61 6e 64 20 6e 6f | 20 64 69 67 69 74 73 20 |* and no| digits |
|00004480| 72 65 61 64 20 2a 2f 0a | 58 0a 58 09 77 68 69 6c |read */.|X.X.whil|
|00004490| 65 20 28 21 65 78 69 74 | 66 6c 61 67 29 09 09 09 |e (!exit|flag)...|
|000044a0| 09 2f 2a 20 75 6e 74 69 | 6c 20 65 6e 64 20 6f 66 |./* unti|l end of|
|000044b0| 20 63 6f 6d 6d 61 6e 64 | 20 73 74 72 69 6e 67 20 | command| string |
|000044c0| 2a 2f 0a 58 09 09 7b 0a | 58 09 09 69 66 20 28 67 |*/.X..{.|X..if (g|
|000044d0| 65 74 63 6d 64 63 30 28 | 74 72 61 63 65 5f 73 77 |etcmdc0(|trace_sw|
|000044e0| 29 20 3d 3d 20 27 5e 27 | 29 09 09 2f 2a 20 69 6e |) == '^'|)../* in|
|000044f0| 74 65 72 70 72 65 74 20 | 6e 65 78 74 20 63 68 61 |terpret |next cha|
|00004500| 72 20 61 73 20 63 6f 72 | 72 65 73 70 2e 20 63 6f |r as cor|resp. co|
|00004510| 6e 74 72 6f 6c 20 63 68 | 61 72 20 2a 2f 0a 58 09 |ntrol ch|ar */.X.|
|00004520| 09 09 63 6d 64 63 20 3d | 20 67 65 74 63 6d 64 63 |..cmdc =| getcmdc|
|00004530| 28 74 72 61 63 65 5f 73 | 77 29 20 26 20 30 78 31 |(trace_s|w) & 0x1|
|00004540| 66 3b 0a 58 0a 58 09 09 | 69 66 20 28 69 73 64 69 |f;.X.X..|if (isdi|
|00004550| 67 69 74 28 63 6d 64 63 | 29 29 09 09 2f 2a 20 70 |git(cmdc|))../* p|
|00004560| 72 6f 63 65 73 73 20 6e | 75 6d 62 65 72 20 2a 2f |rocess n|umber */|
|00004570| 0a 58 09 09 09 7b 09 09 | 09 09 09 2f 2a 20 74 68 |.X...{..|.../* th|
|00004580| 69 73 20 77 6f 72 6b 73 | 20 6c 6f 75 73 79 20 66 |is works| lousy f|
|00004590| 6f 72 20 68 65 78 20 62 | 75 74 20 73 6f 20 64 6f |or hex b|ut so do|
|000045a0| 65 73 20 54 45 43 4f 2d | 31 31 20 2a 2f 0a 58 09 |es TECO-|11 */.X.|
|000045b0| 09 09 69 66 20 28 63 6d | 64 63 20 2d 20 27 30 27 |..if (cm|dc - '0'|
|000045c0| 20 3e 3d 20 63 74 72 6c | 5f 72 29 20 45 52 52 4f | >= ctrl|_r) ERRO|
|000045d0| 52 28 45 5f 49 4c 4e 29 | 3b 09 09 09 09 2f 2a 20 |R(E_ILN)|;..../* |
|000045e0| 69 6e 76 61 6c 69 64 20 | 64 69 67 69 74 20 2a 2f |invalid |digit */|
|000045f0| 0a 58 09 09 09 69 66 20 | 28 21 28 64 69 67 69 74 |.X...if |(!(digit|
|00004600| 5f 73 77 2b 2b 29 29 20 | 65 73 70 2d 3e 76 61 6c |_sw++)) |esp->val|
|00004610| 31 20 3d 20 63 6d 64 63 | 20 2d 20 27 30 27 3b 09 |1 = cmdc| - '0';.|
|00004620| 09 09 2f 2a 20 66 69 72 | 73 74 20 64 69 67 69 74 |../* fir|st digit|
|00004630| 20 2a 2f 0a 58 09 09 09 | 65 6c 73 65 20 65 73 70 | */.X...|else esp|
|00004640| 2d 3e 76 61 6c 31 20 3d | 20 65 73 70 2d 3e 76 61 |->val1 =| esp->va|
|00004650| 6c 31 20 2a 20 63 74 72 | 6c 5f 72 20 2b 20 63 6d |l1 * ctr|l_r + cm|
|00004660| 64 63 20 2d 20 27 30 27 | 3b 09 2f 2a 20 6f 74 68 |dc - '0'|;./* oth|
|00004670| 65 72 20 64 69 67 69 74 | 73 20 2a 2f 0a 58 09 09 |er digit|s */.X..|
|00004680| 09 65 73 70 2d 3e 66 6c | 61 67 31 2b 2b 3b 09 09 |.esp->fl|ag1++;..|
|00004690| 2f 2a 20 69 6e 64 69 63 | 61 74 65 20 61 20 76 61 |/* indic|ate a va|
|000046a0| 6c 75 65 20 72 65 61 64 | 20 69 6e 20 2a 2f 0a 58 |lue read| in */.X|
|000046b0| 09 09 09 7d 0a 58 0a 58 | 09 2f 2a 20 6e 6f 74 20 |...}.X.X|./* not |
|000046c0| 61 20 64 69 67 69 74 3a | 20 64 69 73 70 61 74 63 |a digit:| dispatc|
|000046d0| 68 20 6f 6e 20 63 68 61 | 72 61 63 74 65 72 20 2a |h on cha|racter *|
|000046e0| 2f 0a 58 0a 58 09 09 65 | 6c 73 65 0a 58 09 09 09 |/.X.X..e|lse.X...|
|000046f0| 7b 0a 58 09 09 09 64 69 | 67 69 74 5f 73 77 20 3d |{.X...di|git_sw =|
|00004700| 20 30 3b 0a 58 09 09 09 | 73 77 69 74 63 68 20 28 | 0;.X...|switch (|
|00004710| 6d 61 70 63 68 5f 6c 5b | 63 6d 64 63 5d 29 0a 58 |mapch_l[|cmdc]).X|
|00004720| 09 09 09 09 7b 0a 58 0a | 58 2f 2a 20 63 68 61 72 |....{.X.|X/* char|
|00004730| 61 63 74 65 72 73 20 69 | 67 6e 6f 72 65 64 20 2a |acters i|gnored *|
|00004740| 2f 0a 58 0a 58 09 09 09 | 09 63 61 73 65 20 43 52 |/.X.X...|.case CR|
|00004750| 3a 0a 58 09 09 09 09 63 | 61 73 65 20 4c 46 3a 0a |:.X....c|ase LF:.|
|00004760| 58 09 09 09 09 63 61 73 | 65 20 56 54 3a 0a 58 09 |X....cas|e VT:.X.|
|00004770| 09 09 09 63 61 73 65 20 | 46 46 3a 0a 58 09 09 09 |...case |FF:.X...|
|00004780| 09 63 61 73 65 20 27 20 | 27 3a 0a 58 09 09 09 09 |.case ' |':.X....|
|00004790| 09 62 72 65 61 6b 3b 0a | 58 0c 2f 2a 20 45 53 43 |.break;.|X./* ESC|
|000047a0| 3a 20 6f 6e 65 20 61 62 | 73 6f 72 62 73 20 61 72 |: one ab|sorbs ar|
|000047b0| 67 75 6d 65 6e 74 2c 20 | 74 77 6f 20 74 65 72 6d |gument, |two term|
|000047c0| 69 6e 61 74 65 20 63 75 | 72 72 65 6e 74 20 6c 65 |inate cu|rrent le|
|000047d0| 76 65 6c 20 2a 2f 0a 58 | 0a 58 09 09 09 09 63 61 |vel */.X|.X....ca|
|000047e0| 73 65 20 45 53 43 3a 0a | 58 09 09 09 09 09 69 66 |se ESC:.|X.....if|
|000047f0| 20 28 70 65 65 6b 63 6d | 64 63 28 45 53 43 29 29 | (peekcm|dc(ESC))|
|00004800| 09 2f 2a 20 69 66 20 6e | 65 78 74 20 63 68 61 72 |./* if n|ext char|
|00004810| 20 69 73 20 61 6e 20 45 | 53 43 20 2a 2f 0a 58 09 | is an E|SC */.X.|
|00004820| 09 09 09 09 09 7b 0a 58 | 09 09 09 09 09 09 69 66 |.....{.X|......if|
|00004830| 20 28 6d 73 70 20 3c 3d | 20 26 6d 73 74 61 63 6b | (msp <=| &mstack|
|00004840| 5b 30 5d 29 20 65 78 69 | 74 66 6c 61 67 20 3d 20 |[0]) exi|tflag = |
|00004850| 31 3b 09 2f 2a 20 70 6f | 70 20 73 74 61 63 6b 3b |1;./* po|p stack;|
|00004860| 20 69 66 20 65 6d 70 74 | 79 2c 20 74 65 72 6d 69 | if empt|y, termi|
|00004870| 6e 61 74 65 20 2a 2f 0a | 58 09 09 09 09 09 09 65 |nate */.|X......e|
|00004880| 6c 73 65 20 2d 2d 6d 73 | 70 3b 0a 58 09 09 09 09 |lse --ms|p;.X....|
|00004890| 09 09 7d 0a 58 09 09 09 | 09 09 65 6c 73 65 0a 58 |..}.X...|..else.X|
|000048a0| 09 09 09 09 09 09 7b 0a | 58 09 09 09 09 09 09 65 |......{.|X......e|
|000048b0| 73 70 2d 3e 66 6c 61 67 | 31 20 3d 20 30 3b 09 09 |sp->flag|1 = 0;..|
|000048c0| 2f 2a 20 65 6c 73 65 20 | 63 6f 6e 73 75 6d 65 20 |/* else |consume |
|000048d0| 61 72 67 75 6d 65 6e 74 | 20 2a 2f 0a 58 09 09 09 |argument| */.X...|
|000048e0| 09 09 09 65 73 70 2d 3e | 6f 70 20 3d 20 4f 50 5f |...esp->|op = OP_|
|000048f0| 53 54 41 52 54 3b 0a 58 | 09 09 09 09 09 09 7d 0a |START;.X|......}.|
|00004900| 58 09 09 09 09 09 62 72 | 65 61 6b 3b 0a 58 0a 58 |X.....br|eak;.X.X|
|00004910| 2f 2a 20 73 6b 69 70 20 | 63 6f 6d 6d 65 6e 74 73 |/* skip |comments|
|00004920| 20 2a 2f 0a 58 0a 58 09 | 09 09 09 63 61 73 65 20 | */.X.X.|...case |
|00004930| 27 21 27 3a 0a 58 09 09 | 09 09 09 77 68 69 6c 65 |'!':.X..|...while|
|00004940| 20 28 67 65 74 63 6d 64 | 63 28 74 72 61 63 65 5f | (getcmd|c(trace_|
|00004950| 73 77 29 20 21 3d 20 27 | 21 27 29 3b 0a 58 09 09 |sw) != '|!');.X..|
|00004960| 09 09 09 62 72 65 61 6b | 3b 0a 58 0a 58 2f 2a 20 |...break|;.X.X/* |
|00004970| 6d 6f 64 69 66 69 65 72 | 73 20 2a 2f 0a 58 0a 58 |modifier|s */.X.X|
|00004980| 09 09 09 09 63 61 73 65 | 20 27 40 27 3a 0a 58 09 |....case| '@':.X.|
|00004990| 09 09 09 09 61 74 66 6c | 61 67 2b 2b 3b 0a 58 09 |....atfl|ag++;.X.|
|000049a0| 09 09 09 09 62 72 65 61 | 6b 3b 0a 58 0a 58 09 09 |....brea|k;.X.X..|
|000049b0| 09 09 63 61 73 65 20 27 | 3a 27 3a 0a 58 09 09 09 |..case '|:':.X...|
|000049c0| 09 09 69 66 20 28 70 65 | 65 6b 63 6d 64 63 28 27 |..if (pe|ekcmdc('|
|000049d0| 3a 27 29 29 09 09 2f 2a | 20 69 73 20 69 74 20 22 |:'))../*| is it "|
|000049e0| 3a 3a 22 20 3f 20 2a 2f | 0a 58 09 09 09 09 09 09 |::" ? */|.X......|
|000049f0| 7b 0a 58 09 09 09 09 09 | 09 67 65 74 63 6d 64 63 |{.X.....|.getcmdc|
|00004a00| 28 74 72 61 63 65 5f 73 | 77 29 3b 09 2f 2a 20 79 |(trace_s|w);./* y|
|00004a10| 65 73 2c 20 73 6b 69 70 | 20 32 6e 64 20 3a 20 2a |es, skip| 2nd : *|
|00004a20| 2f 0a 58 09 09 09 09 09 | 09 63 6f 6c 6f 6e 66 6c |/.X.....|.colonfl|
|00004a30| 61 67 20 3d 20 32 3b 09 | 09 2f 2a 20 61 6e 64 20 |ag = 2;.|./* and |
|00004a40| 73 65 74 20 66 6c 61 67 | 20 74 6f 20 73 68 6f 77 |set flag| to show|
|00004a50| 20 32 20 2a 2f 0a 58 09 | 09 09 09 09 09 7d 0a 58 | 2 */.X.|.....}.X|
|00004a60| 09 09 09 09 09 65 6c 73 | 65 20 63 6f 6c 6f 6e 66 |.....els|e colonf|
|00004a70| 6c 61 67 20 3d 20 31 3b | 09 09 2f 2a 20 6f 74 68 |lag = 1;|../* oth|
|00004a80| 65 72 77 69 73 65 20 6a | 75 73 74 20 31 20 63 6f |erwise j|ust 1 co|
|00004a90| 6c 6f 6e 20 2a 2f 0a 58 | 09 09 09 09 09 62 72 65 |lon */.X|.....bre|
|00004aa0| 61 6b 3b 0a 58 0a 58 2f | 2a 20 74 72 61 63 65 20 |ak;.X.X/|* trace |
|00004ab0| 63 6f 6e 74 72 6f 6c 20 | 2a 2f 0a 58 0a 58 09 09 |control |*/.X.X..|
|00004ac0| 09 09 63 61 73 65 20 27 | 3f 27 3a 0a 58 09 09 09 |..case '|?':.X...|
|00004ad0| 09 09 74 72 61 63 65 5f | 73 77 20 3d 20 21 28 74 |..trace_|sw = !(t|
|00004ae0| 72 61 63 65 5f 73 77 29 | 3b 0a 58 09 09 09 09 09 |race_sw)|;.X.....|
|00004af0| 62 72 65 61 6b 3b 0a 58 | 0a 58 2f 2a 20 76 61 6c |break;.X|.X/* val|
|00004b00| 75 65 73 20 2a 2f 0a 58 | 0a 58 09 09 09 09 63 61 |ues */.X|.X....ca|
|00004b10| 73 65 20 27 2e 27 3a 0a | 58 09 09 09 09 09 65 73 |se '.':.|X.....es|
|00004b20| 70 2d 3e 76 61 6c 31 20 | 3d 20 64 6f 74 3b 0a 58 |p->val1 |= dot;.X|
|00004b30| 09 09 09 09 09 65 73 70 | 2d 3e 66 6c 61 67 31 20 |.....esp|->flag1 |
|00004b40| 3d 20 31 3b 0a 58 09 09 | 09 09 09 62 72 65 61 6b |= 1;.X..|...break|
|00004b50| 3b 0a 58 0a 58 09 09 09 | 09 63 61 73 65 20 27 7a |;.X.X...|.case 'z|
|00004b60| 27 3a 0a 58 09 09 09 09 | 09 65 73 70 2d 3e 76 61 |':.X....|.esp->va|
|00004b70| 6c 31 20 3d 20 7a 3b 0a | 58 09 09 09 09 09 65 73 |l1 = z;.|X.....es|
|00004b80| 70 2d 3e 66 6c 61 67 31 | 20 3d 20 31 3b 0a 58 09 |p->flag1| = 1;.X.|
|00004b90| 09 09 09 09 62 72 65 61 | 6b 3b 0a 58 0a 58 09 09 |....brea|k;.X.X..|
|00004ba0| 09 09 63 61 73 65 20 27 | 62 27 3a 0a 58 09 09 09 |..case '|b':.X...|
|00004bb0| 09 09 65 73 70 2d 3e 76 | 61 6c 31 20 3d 20 30 3b |..esp->v|al1 = 0;|
|00004bc0| 0a 58 09 09 09 09 09 65 | 73 70 2d 3e 66 6c 61 67 |.X.....e|sp->flag|
|00004bd0| 31 20 3d 20 31 3b 0a 58 | 09 09 09 09 09 62 72 65 |1 = 1;.X|.....bre|
|00004be0| 61 6b 3b 0a 58 0c 09 09 | 09 63 61 73 65 20 27 68 |ak;.X...|.case 'h|
|00004bf0| 27 3a 0a 58 09 09 09 09 | 09 65 73 70 2d 3e 76 61 |':.X....|.esp->va|
|00004c00| 6c 31 20 3d 20 7a 3b 0a | 58 09 09 09 09 09 65 73 |l1 = z;.|X.....es|
|00004c10| 70 2d 3e 76 61 6c 32 20 | 3d 20 30 3b 0a 58 09 09 |p->val2 |= 0;.X..|
|00004c20| 09 09 09 65 73 70 2d 3e | 66 6c 61 67 32 20 3d 20 |...esp->|flag2 = |
|00004c30| 65 73 70 2d 3e 66 6c 61 | 67 31 20 3d 20 31 3b 0a |esp->fla|g1 = 1;.|
|00004c40| 58 09 09 09 09 09 65 73 | 70 2d 3e 6f 70 20 3d 20 |X.....es|p->op = |
|00004c50| 4f 50 5f 53 54 41 52 54 | 3b 0a 58 09 09 09 09 09 |OP_START|;.X.....|
|00004c60| 62 72 65 61 6b 3b 0a 58 | 0a 58 09 09 09 09 63 61 |break;.X|.X....ca|
|00004c70| 73 65 20 43 54 4c 20 28 | 53 29 3a 09 09 2f 2a 20 |se CTL (|S):../* |
|00004c80| 2d 6c 65 6e 67 74 68 20 | 6f 66 20 6c 61 73 74 20 |-length |of last |
|00004c90| 69 6e 73 65 72 74 2c 20 | 65 74 63 2e 20 2a 2f 0a |insert, |etc. */.|
|00004ca0| 58 09 09 09 09 09 65 73 | 70 2d 3e 76 61 6c 31 20 |X.....es|p->val1 |
|00004cb0| 3d 20 63 74 72 6c 5f 73 | 3b 0a 58 09 09 09 09 09 |= ctrl_s|;.X.....|
|00004cc0| 65 73 70 2d 3e 66 6c 61 | 67 31 20 3d 20 31 3b 0a |esp->fla|g1 = 1;.|
|00004cd0| 58 09 09 09 09 09 62 72 | 65 61 6b 3b 0a 58 0a 58 |X.....br|eak;.X.X|
|00004ce0| 09 09 09 09 63 61 73 65 | 20 43 54 4c 20 28 59 29 |....case| CTL (Y)|
|00004cf0| 3a 09 09 2f 2a 20 2e 2d | 5e 53 2c 20 2e 20 2a 2f |:../* .-|^S, . */|
|00004d00| 0a 58 09 09 09 09 09 65 | 73 70 2d 3e 76 61 6c 31 |.X.....e|sp->val1|
|00004d10| 20 3d 20 64 6f 74 20 2b | 20 63 74 72 6c 5f 73 3b | = dot +| ctrl_s;|
|00004d20| 0a 58 09 09 09 09 09 65 | 73 70 2d 3e 76 61 6c 32 |.X.....e|sp->val2|
|00004d30| 20 3d 20 64 6f 74 3b 0a | 58 09 09 09 09 09 65 73 | = dot;.|X.....es|
|00004d40| 70 2d 3e 66 6c 61 67 31 | 20 3d 20 65 73 70 2d 3e |p->flag1| = esp->|
|00004d50| 66 6c 61 67 32 20 3d 20 | 31 3b 0a 58 09 09 09 09 |flag2 = |1;.X....|
|00004d60| 09 65 73 70 2d 3e 6f 70 | 20 3d 20 4f 50 5f 53 54 |.esp->op| = OP_ST|
|00004d70| 41 52 54 3b 0a 58 09 09 | 09 09 09 62 72 65 61 6b |ART;.X..|...break|
|00004d80| 3b 0a 58 0a 58 09 09 09 | 09 63 61 73 65 20 27 28 |;.X.X...|.case '(|
|00004d90| 27 3a 0a 58 09 09 09 09 | 09 69 66 20 28 2b 2b 65 |':.X....|.if (++e|
|00004da0| 73 70 20 3e 20 26 65 73 | 74 61 63 6b 5b 45 53 54 |sp > &es|tack[EST|
|00004db0| 41 43 4b 53 49 5a 45 2d | 31 5d 29 20 45 52 52 4f |ACKSIZE-|1]) ERRO|
|00004dc0| 52 28 45 5f 50 44 4f 29 | 3b 0a 58 09 09 09 09 09 |R(E_PDO)|;.X.....|
|00004dd0| 65 73 70 2d 3e 66 6c 61 | 67 32 20 3d 20 65 73 70 |esp->fla|g2 = esp|
|00004de0| 2d 3e 66 6c 61 67 31 20 | 3d 20 30 3b 0a 58 09 09 |->flag1 |= 0;.X..|
|00004df0| 09 09 09 65 73 70 2d 3e | 6f 70 20 3d 20 4f 50 5f |...esp->|op = OP_|
|00004e00| 53 54 41 52 54 3b 0a 58 | 09 09 09 09 09 62 72 65 |START;.X|.....bre|
|00004e10| 61 6b 3b 0a 58 0a 58 09 | 09 09 09 63 61 73 65 20 |ak;.X.X.|...case |
|00004e20| 43 54 4c 20 28 45 29 3a | 09 09 09 09 2f 2a 20 66 |CTL (E):|..../* f|
|00004e30| 6f 72 6d 20 66 65 65 64 | 20 66 6c 61 67 20 2a 2f |orm feed| flag */|
|00004e40| 0a 58 09 09 09 09 09 65 | 73 70 2d 3e 76 61 6c 31 |.X.....e|sp->val1|
|00004e50| 20 3d 20 63 74 72 6c 5f | 65 3b 0a 58 09 09 09 09 | = ctrl_|e;.X....|
|00004e60| 09 65 73 70 2d 3e 66 6c | 61 67 31 20 3d 20 31 3b |.esp->fl|ag1 = 1;|
|00004e70| 0a 58 09 09 09 09 09 62 | 72 65 61 6b 3b 0a 58 0a |.X.....b|reak;.X.|
|00004e80| 58 09 09 09 09 63 61 73 | 65 20 43 54 4c 20 28 4e |X....cas|e CTL (N|
|00004e90| 29 3a 09 09 09 09 2f 2a | 20 65 6f 66 20 66 6c 61 |):..../*| eof fla|
|00004ea0| 67 20 2a 2f 0a 58 09 09 | 09 09 09 65 73 70 2d 3e |g */.X..|...esp->|
|00004eb0| 76 61 6c 31 20 3d 20 69 | 6e 66 69 6c 65 2d 3e 65 |val1 = i|nfile->e|
|00004ec0| 6f 66 73 77 3b 0a 58 09 | 09 09 09 09 65 73 70 2d |ofsw;.X.|....esp-|
|00004ed0| 3e 66 6c 61 67 31 20 3d | 20 31 3b 0a 58 09 09 09 |>flag1 =| 1;.X...|
|00004ee0| 09 09 62 72 65 61 6b 3b | 0a 58 0a 58 09 09 09 09 |..break;|.X.X....|
|00004ef0| 63 61 73 65 20 43 54 4c | 20 28 5e 29 3a 09 09 09 |case CTL| (^):...|
|00004f00| 09 2f 2a 20 76 61 6c 75 | 65 20 6f 66 20 6e 65 78 |./* valu|e of nex|
|00004f10| 74 20 63 68 61 72 20 2a | 2f 0a 58 09 09 09 09 09 |t char *|/.X.....|
|00004f20| 65 73 70 2d 3e 76 61 6c | 31 20 3d 20 67 65 74 63 |esp->val|1 = getc|
|00004f30| 6d 64 63 28 74 72 61 63 | 65 5f 73 77 29 3b 0a 58 |mdc(trac|e_sw);.X|
|00004f40| 09 09 09 09 09 65 73 70 | 2d 3e 66 6c 61 67 31 20 |.....esp|->flag1 |
|00004f50| 3d 20 31 3b 0a 58 09 09 | 09 09 09 62 72 65 61 6b |= 1;.X..|...break|
|00004f60| 3b 0a 58 0a 58 2f 2a 20 | 64 61 74 65 2c 20 74 69 |;.X.X/* |date, ti|
|00004f70| 6d 65 20 2a 2f 0a 58 0a | 58 09 09 09 09 63 61 73 |me */.X.|X....cas|
|00004f80| 65 20 43 54 4c 20 28 42 | 29 3a 0a 58 09 09 09 09 |e CTL (B|):.X....|
|00004f90| 63 61 73 65 20 43 54 4c | 20 28 48 29 3a 0a 58 09 |case CTL| (H):.X.|
|00004fa0| 09 09 09 09 67 65 74 74 | 69 6d 65 6f 66 64 61 79 |....gett|imeofday|
|00004fb0| 28 26 74 69 6d 65 76 61 | 6c 75 65 2c 20 26 74 7a |(&timeva|lue, &tz|
|00004fc0| 76 61 6c 75 65 29 3b 0a | 58 09 09 09 09 09 74 69 |value);.|X.....ti|
|00004fd0| 6d 65 70 74 72 20 3d 20 | 6c 6f 63 61 6c 74 69 6d |meptr = |localtim|
|00004fe0| 65 28 26 74 69 6d 65 76 | 61 6c 75 65 2e 74 76 5f |e(&timev|alue.tv_|
|00004ff0| 73 65 63 29 3b 0a 58 09 | 09 09 09 09 65 73 70 2d |sec);.X.|....esp-|
|00005000| 3e 76 61 6c 31 20 3d 20 | 28 63 6d 64 63 20 3d 3d |>val1 = |(cmdc ==|
|00005010| 20 43 54 4c 20 28 42 29 | 29 20 3f 0a 58 09 09 09 | CTL (B)|) ?.X...|
|00005020| 09 09 09 09 74 69 6d 65 | 70 74 72 2d 3e 74 6d 5f |....time|ptr->tm_|
|00005030| 79 65 61 72 20 2a 20 35 | 31 32 20 20 20 2b 20 74 |year * 5|12 + t|
|00005040| 69 6d 65 70 74 72 2d 3e | 74 6d 5f 6d 6f 6e 20 2a |imeptr->|tm_mon *|
|00005050| 20 33 32 20 20 2b 20 74 | 69 6d 65 70 74 72 2d 3e | 32 + t|imeptr->|
|00005060| 74 6d 5f 6d 64 61 79 20 | 3a 0a 58 09 09 09 09 09 |tm_mday |:.X.....|
|00005070| 09 09 74 69 6d 65 70 74 | 72 2d 3e 74 6d 5f 68 6f |..timept|r->tm_ho|
|00005080| 75 72 20 2a 20 31 38 30 | 30 20 20 2b 20 74 69 6d |ur * 180|0 + tim|
|00005090| 65 70 74 72 2d 3e 74 6d | 5f 6d 69 6e 20 2a 20 33 |eptr->tm|_min * 3|
|000050a0| 30 20 20 2b 20 74 69 6d | 65 70 74 72 2d 3e 74 6d |0 + tim|eptr->tm|
|000050b0| 5f 73 65 63 2f 32 3b 0a | 58 09 09 09 09 09 65 73 |_sec/2;.|X.....es|
|000050c0| 70 2d 3e 66 6c 61 67 31 | 20 3d 20 31 3b 0a 58 09 |p->flag1| = 1;.X.|
|000050d0| 09 09 09 09 6d 61 6b 65 | 5f 62 75 66 66 65 72 28 |....make|_buffer(|
|000050e0| 26 74 69 6d 62 75 66 29 | 3b 09 09 2f 2a 20 6d 61 |&timbuf)|;../* ma|
|000050f0| 6b 65 20 61 20 74 69 6d | 65 20 62 75 66 66 65 72 |ke a tim|e buffer|
|00005100| 20 2a 2f 0a 58 09 09 09 | 09 09 74 69 6d 65 73 74 | */.X...|..timest|
|00005110| 72 69 6e 67 20 3d 20 61 | 73 63 74 69 6d 65 28 74 |ring = a|sctime(t|
|00005120| 69 6d 65 70 74 72 29 3b | 0a 58 09 09 09 09 09 66 |imeptr);|.X.....f|
|00005130| 6f 72 20 28 74 69 6d 62 | 75 66 2e 7a 20 3d 20 30 |or (timb|uf.z = 0|
|00005140| 3b 20 74 69 6d 62 75 66 | 2e 7a 20 3c 20 32 34 3b |; timbuf|.z < 24;|
|00005150| 20 74 69 6d 62 75 66 2e | 7a 2b 2b 29 09 09 2f 2a | timbuf.|z++)../*|
|00005160| 20 63 6f 70 79 20 63 68 | 61 72 61 63 74 65 72 20 | copy ch|aracter |
|00005170| 73 74 72 69 6e 67 20 2a | 2f 0a 58 09 09 09 09 09 |string *|/.X.....|
|00005180| 09 74 69 6d 62 75 66 2e | 66 2d 3e 63 68 5b 74 69 |.timbuf.|f->ch[ti|
|00005190| 6d 62 75 66 2e 7a 5d 20 | 3d 20 2a 28 74 69 6d 65 |mbuf.z] |= *(time|
|000051a0| 73 74 72 69 6e 67 20 2b | 20 74 69 6d 62 75 66 2e |string +| timbuf.|
|000051b0| 7a 29 3b 0a 58 09 09 09 | 09 09 62 72 65 61 6b 3b |z);.X...|..break;|
|000051c0| 0a 58 0c 2f 2a 20 6e 75 | 6d 62 65 72 20 6f 66 20 |.X./* nu|mber of |
|000051d0| 63 68 61 72 61 63 74 65 | 72 73 20 74 6f 20 6d 61 |characte|rs to ma|
|000051e0| 74 63 68 69 6e 67 20 28 | 20 29 20 7b 20 7d 20 5b |tching (| ) { } [|
|000051f0| 20 5d 20 2a 2f 0a 58 0a | 58 09 09 09 09 63 61 73 | ] */.X.|X....cas|
|00005200| 65 20 43 54 4c 20 28 50 | 29 3a 0a 58 09 09 09 09 |e CTL (P|):.X....|
|00005210| 09 64 6f 5f 63 74 6c 70 | 28 29 3b 0a 58 09 09 09 |.do_ctlp|();.X...|
|00005220| 09 09 62 72 65 61 6b 3b | 0a 58 0a 58 2f 2a 20 6e |..break;|.X.X/* n|
|00005230| 6f 6e 65 20 6f 66 20 74 | 68 65 20 61 62 6f 76 65 |one of t|he above|
|00005240| 3a 20 69 6e 63 6f 72 70 | 6f 72 61 74 65 20 74 68 |: incorp|orate th|
|00005250| 65 20 6c 61 73 74 20 76 | 61 6c 75 65 20 69 6e 74 |e last v|alue int|
|00005260| 6f 20 74 68 65 20 65 78 | 70 72 65 73 73 69 6f 6e |o the ex|pression|
|00005270| 20 2a 2f 0a 58 0a 58 09 | 09 09 09 64 65 66 61 75 | */.X.X.|...defau|
|00005280| 6c 74 3a 0a 58 09 09 09 | 09 09 69 66 20 28 65 73 |lt:.X...|..if (es|
|00005290| 70 2d 3e 66 6c 61 67 31 | 29 09 09 09 09 2f 2a 20 |p->flag1|)..../* |
|000052a0| 69 66 20 61 20 76 61 6c | 75 65 20 65 6e 74 65 72 |if a val|ue enter|
|000052b0| 65 64 20 2a 2f 0a 58 09 | 09 09 09 09 09 7b 0a 58 |ed */.X.|.....{.X|
|000052c0| 09 09 09 09 09 09 73 77 | 69 74 63 68 20 28 65 73 |......sw|itch (es|
|000052d0| 70 2d 3e 6f 70 29 0a 58 | 09 09 09 09 09 09 09 7b |p->op).X|.......{|
|000052e0| 0a 58 09 09 09 09 09 09 | 09 63 61 73 65 20 4f 50 |.X......|.case OP|
|000052f0| 5f 53 54 41 52 54 3a 0a | 58 09 09 09 09 09 09 09 |_START:.|X.......|
|00005300| 09 62 72 65 61 6b 3b 0a | 58 0a 58 09 09 09 09 09 |.break;.|X.X.....|
|00005310| 09 09 63 61 73 65 20 4f | 50 5f 41 44 44 3a 0a 58 |..case O|P_ADD:.X|
|00005320| 09 09 09 09 09 09 09 09 | 65 73 70 2d 3e 76 61 6c |........|esp->val|
|00005330| 31 20 2b 3d 20 65 73 70 | 2d 3e 65 78 70 3b 0a 58 |1 += esp|->exp;.X|
|00005340| 09 09 09 09 09 09 09 09 | 65 73 70 2d 3e 6f 70 20 |........|esp->op |
|00005350| 3d 20 4f 50 5f 53 54 41 | 52 54 3b 0a 58 09 09 09 |= OP_STA|RT;.X...|
|00005360| 09 09 09 09 09 62 72 65 | 61 6b 3b 0a 58 0a 58 09 |.....bre|ak;.X.X.|
|00005370| 09 09 09 09 09 09 63 61 | 73 65 20 4f 50 5f 53 55 |......ca|se OP_SU|
|00005380| 42 3a 0a 58 09 09 09 09 | 09 09 09 09 65 73 70 2d |B:.X....|....esp-|
|00005390| 3e 76 61 6c 31 20 3d 20 | 65 73 70 2d 3e 65 78 70 |>val1 = |esp->exp|
|000053a0| 20 2d 20 65 73 70 2d 3e | 76 61 6c 31 3b 0a 58 09 | - esp->|val1;.X.|
|000053b0| 09 09 09 09 09 09 09 65 | 73 70 2d 3e 6f 70 20 3d |.......e|sp->op =|
|000053c0| 20 4f 50 5f 53 54 41 52 | 54 3b 0a 58 09 09 09 09 | OP_STAR|T;.X....|
|000053d0| 09 09 09 09 62 72 65 61 | 6b 3b 0a 58 0a 58 09 09 |....brea|k;.X.X..|
|000053e0| 09 09 09 09 09 63 61 73 | 65 20 4f 50 5f 4d 55 4c |.....cas|e OP_MUL|
|000053f0| 54 3a 0a 58 09 09 09 09 | 09 09 09 09 65 73 70 2d |T:.X....|....esp-|
|00005400| 3e 76 61 6c 31 20 2a 3d | 20 65 73 70 2d 3e 65 78 |>val1 *=| esp->ex|
|00005410| 70 3b 0a 58 09 09 09 09 | 09 09 09 09 65 73 70 2d |p;.X....|....esp-|
|00005420| 3e 6f 70 20 3d 20 4f 50 | 5f 53 54 41 52 54 3b 0a |>op = OP|_START;.|
|00005430| 58 09 09 09 09 09 09 09 | 09 62 72 65 61 6b 3b 0a |X.......|.break;.|
|00005440| 58 0a 58 09 09 09 09 09 | 09 09 63 61 73 65 20 4f |X.X.....|..case O|
|00005450| 50 5f 44 49 56 3a 0a 58 | 09 09 09 09 09 09 09 09 |P_DIV:.X|........|
|00005460| 65 73 70 2d 3e 76 61 6c | 31 20 3d 20 28 65 73 70 |esp->val|1 = (esp|
|00005470| 2d 3e 76 61 6c 31 29 20 | 3f 20 65 73 70 2d 3e 65 |->val1) |? esp->e|
|00005480| 78 70 20 2f 20 65 73 70 | 2d 3e 76 61 6c 31 20 3a |xp / esp|->val1 :|
|00005490| 20 30 3b 0a 58 09 09 09 | 09 09 09 09 09 65 73 70 | 0;.X...|.....esp|
|000054a0| 2d 3e 6f 70 20 3d 20 4f | 50 5f 53 54 41 52 54 3b |->op = O|P_START;|
|000054b0| 0a 58 09 09 09 09 09 09 | 09 09 62 72 65 61 6b 3b |.X......|..break;|
|000054c0| 0a 58 0a 58 09 09 09 09 | 09 09 09 63 61 73 65 20 |.X.X....|...case |
|000054d0| 4f 50 5f 41 4e 44 3a 0a | 58 09 09 09 09 09 09 09 |OP_AND:.|X.......|
|000054e0| 09 65 73 70 2d 3e 76 61 | 6c 31 20 26 3d 20 65 73 |.esp->va|l1 &= es|
|000054f0| 70 2d 3e 65 78 70 3b 0a | 58 09 09 09 09 09 09 09 |p->exp;.|X.......|
|00005500| 09 65 73 70 2d 3e 6f 70 | 20 3d 20 4f 50 5f 53 54 |.esp->op| = OP_ST|
|00005510| 41 52 54 3b 0a 58 09 09 | 09 09 09 09 09 09 62 72 |ART;.X..|......br|
|00005520| 65 61 6b 3b 0a 58 0a 58 | 09 09 09 09 09 09 09 63 |eak;.X.X|.......c|
|00005530| 61 73 65 20 4f 50 5f 4f | 52 3a 0a 58 09 09 09 09 |ase OP_O|R:.X....|
|00005540| 09 09 09 09 65 73 70 2d | 3e 76 61 6c 31 20 7c 3d |....esp-|>val1 |=|
|00005550| 20 65 73 70 2d 3e 65 78 | 70 3b 0a 58 09 09 09 09 | esp->ex|p;.X....|
|00005560| 09 09 09 09 65 73 70 2d | 3e 6f 70 20 3d 20 4f 50 |....esp-|>op = OP|
|00005570| 5f 53 54 41 52 54 3b 0a | 58 09 09 09 09 09 09 09 |_START;.|X.......|
|00005580| 09 62 72 65 61 6b 3b 0a | 58 09 09 09 09 09 09 09 |.break;.|X.......|
|00005590| 7d 0a 58 09 09 09 09 09 | 7d 09 09 09 09 2f 2a 20 |}.X.....|}..../* |
|000055a0| 65 6e 64 20 6f 66 20 22 | 69 66 20 61 20 6e 65 77 |end of "|if a new|
|000055b0| 20 76 61 6c 75 65 22 20 | 2a 2f 0a 58 0a 58 09 09 | value" |*/.X.X..|
|000055c0| 09 09 65 78 65 63 5f 63 | 6d 64 73 31 28 29 3b 09 |..exec_c|mds1();.|
|000055d0| 2f 2a 20 67 6f 20 64 6f | 20 74 68 65 20 63 6f 6d |/* go do| the com|
|000055e0| 6d 61 6e 64 20 2a 2f 0a | 58 09 09 09 09 7d 09 09 |mand */.|X....}..|
|000055f0| 2f 2a 20 65 6e 64 20 6f | 66 20 63 6f 6d 6d 61 6e |/* end o|f comman|
|00005600| 64 20 64 69 73 70 61 74 | 63 68 20 2a 2f 0a 58 09 |d dispat|ch */.X.|
|00005610| 09 09 7d 09 09 2f 2a 20 | 65 6e 64 20 6f 66 20 22 |..}../* |end of "|
|00005620| 6e 6f 74 20 61 20 64 69 | 67 69 74 22 20 2a 2f 0a |not a di|git" */.|
|00005630| 58 09 09 7d 09 09 2f 2a | 20 65 6e 64 20 6f 66 20 |X..}../*| end of |
|00005640| 22 77 68 69 6c 65 22 20 | 63 6f 6d 6d 61 6e 64 20 |"while" |command |
|00005650| 6c 6f 6f 70 20 2a 2f 0a | 58 09 72 65 74 75 72 6e |loop */.|X.return|
|00005660| 3b 0a 58 09 7d 09 09 09 | 2f 2a 20 65 6e 64 20 6f |;.X.}...|/* end o|
|00005670| 66 20 65 78 65 63 5f 63 | 6d 64 73 74 72 20 2a 2f |f exec_c|mdstr */|
|00005680| 0a 58 0a 58 0a 45 4e 44 | 5f 4f 46 5f 74 65 5f 65 |.X.X.END|_OF_te_e|
|00005690| 78 65 63 30 2e 63 0a 69 | 66 20 74 65 73 74 20 35 |xec0.c.i|f test 5|
|000056a0| 34 35 38 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |458 -ne |`wc -c <|
|000056b0| 74 65 5f 65 78 65 63 30 | 2e 63 60 3b 20 74 68 65 |te_exec0|.c`; the|
|000056c0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|000056d0| 20 5c 22 74 65 5f 65 78 | 65 63 30 2e 63 5c 22 20 | \"te_ex|ec0.c\" |
|000056e0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000056f0| 6f 6e 67 20 73 69 7a 65 | 21 3f 0a 66 69 0a 23 20 |ong size|!?.fi.# |
|00005700| 65 6e 64 20 6f 66 20 6f | 76 65 72 77 72 69 74 69 |end of o|verwriti|
|00005710| 6e 67 20 63 68 65 63 6b | 0a 66 69 0a 65 63 68 6f |ng check|.fi.echo|
|00005720| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00005730| 67 20 5c 22 74 65 5f 6d | 61 69 6e 2e 63 5c 22 20 |g \"te_m|ain.c\" |
|00005740| 5c 28 35 39 30 37 20 63 | 68 61 72 61 63 74 65 72 |\(5907 c|haracter|
|00005750| 73 5c 29 0a 69 66 20 74 | 65 73 74 20 2d 66 20 74 |s\).if t|est -f t|
|00005760| 65 5f 6d 61 69 6e 2e 63 | 20 3b 20 74 68 65 6e 20 |e_main.c| ; then |
|00005770| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00005780| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00005790| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000057a0| 5c 22 74 65 5f 6d 61 69 | 6e 2e 63 5c 22 0a 65 6c |\"te_mai|n.c\".el|
|000057b0| 73 65 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |se.sed "|s/^X//" |
|000057c0| 3e 74 65 5f 6d 61 69 6e | 2e 63 20 3c 3c 27 45 4e |>te_main|.c <<'EN|
|000057d0| 44 5f 4f 46 5f 74 65 5f | 6d 61 69 6e 2e 63 27 0a |D_OF_te_|main.c'.|
|000057e0| 58 2f 2a 20 54 45 43 4f | 20 66 6f 72 20 55 6c 74 |X/* TECO| for Ult|
|000057f0| 72 69 78 20 20 20 43 6f | 70 79 72 69 67 68 74 20 |rix Co|pyright |
|00005800| 31 39 38 36 20 4d 61 74 | 74 20 46 69 63 68 74 65 |1986 Mat|t Fichte|
|00005810| 6e 62 61 75 6d 09 09 09 | 09 09 09 2a 2f 0a 58 2f |nbaum...|...*/.X/|
|00005820| 2a 20 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 61 |* This p|rogram a|
|00005830| 6e 64 20 69 74 73 20 63 | 6f 6d 70 6f 6e 65 6e 74 |nd its c|omponent|
|00005840| 73 20 62 65 6c 6f 6e 67 | 20 74 6f 20 47 65 6e 52 |s belong| to GenR|
|00005850| 61 64 20 49 6e 63 2c 20 | 43 6f 6e 63 6f 72 64 20 |ad Inc, |Concord |
|00005860| 4d 41 20 30 31 37 34 32 | 09 2a 2f 0a 58 2f 2a 20 |MA 01742|.*/.X/* |
|00005870| 54 68 65 79 20 6d 61 79 | 20 62 65 20 63 6f 70 69 |They may| be copi|
|00005880| 65 64 20 69 66 20 74 68 | 69 73 20 63 6f 70 79 72 |ed if th|is copyr|
|00005890| 69 67 68 74 20 6e 6f 74 | 69 63 65 20 69 73 20 69 |ight not|ice is i|
|000058a0| 6e 63 6c 75 64 65 64 09 | 09 09 09 09 2a 2f 0a 58 |ncluded.|....*/.X|
|000058b0| 0a 58 2f 2a 20 74 65 5f | 6d 61 69 6e 2e 63 20 20 |.X/* te_|main.c |
|000058c0| 6d 61 69 6e 20 70 72 6f | 67 72 61 6d 20 20 31 2f |main pro|gram 1/|
|000058d0| 31 34 2f 38 37 20 2a 2f | 0a 58 0a 58 2f 2a 0a 58 |14/87 */|.X.X/*.X|
|000058e0| 2a 20 54 68 69 73 20 69 | 73 20 54 45 43 4f 20 66 |* This i|s TECO f|
|000058f0| 6f 72 20 55 6c 74 72 69 | 78 20 6f 6e 20 61 20 56 |or Ultri|x on a V|
|00005900| 61 78 2e 20 20 49 74 20 | 69 73 20 6d 6f 73 74 6c |ax. It |is mostl|
|00005910| 79 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 77 69 74 |y compat|ible wit|
|00005920| 68 20 44 45 43 20 54 45 | 43 4f 0a 58 2a 20 61 73 |h DEC TE|CO.X* as|
|00005930| 20 65 78 70 6c 61 69 6e | 65 64 20 69 6e 20 74 68 | explain|ed in th|
|00005940| 65 20 44 45 43 20 54 45 | 43 4f 20 6d 61 6e 75 61 |e DEC TE|CO manua|
|00005950| 6c 2e 20 20 49 74 20 77 | 61 73 20 77 72 69 74 74 |l. It w|as writt|
|00005960| 65 6e 20 66 72 6f 6d 20 | 61 20 6d 61 6e 75 61 6c |en from |a manual|
|00005970| 20 66 6f 72 0a 58 2a 20 | 54 45 43 4f 2d 31 31 20 | for.X* |TECO-11 |
|00005980| 76 65 72 73 69 6f 6e 20 | 33 34 2c 20 61 6e 64 20 |version |34, and |
|00005990| 73 6f 20 61 64 68 65 72 | 65 73 20 6d 6f 73 74 20 |so adher|es most |
|000059a0| 63 6c 6f 73 65 6c 79 20 | 74 6f 20 74 68 61 74 20 |closely |to that |
|000059b0| 76 65 72 73 69 6f 6e 2e | 0a 58 2a 0a 58 2a 20 54 |version.|.X*.X* T|
|000059c0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 63 6f 6e 73 |his prog|ram cons|
|000059d0| 69 73 74 73 20 6f 66 20 | 73 65 76 65 72 61 6c 20 |ists of |several |
|000059e0| 73 6f 75 72 63 65 20 66 | 69 6c 65 73 2c 20 61 73 |source f|iles, as|
|000059f0| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 58 2a 0a 58 2a 20 | follows|:.X*.X* |
|00005a00| 74 65 5f 6d 61 69 6e 2e | 63 20 28 74 68 69 73 20 |te_main.|c (this |
|00005a10| 66 69 6c 65 29 09 09 4d | 61 69 6e 20 70 72 6f 67 |file)..M|ain prog|
|00005a20| 72 61 6d 20 2d 20 69 6e | 69 74 69 61 6c 69 7a 65 |ram - in|itialize|
|00005a30| 2c 20 72 65 61 64 20 63 | 6f 6d 6d 61 6e 64 20 6c |, read c|ommand l|
|00005a40| 69 6e 65 20 61 6e 64 0a | 58 2a 09 09 09 09 09 09 |ine and.|X*......|
|00005a50| 09 73 74 61 72 74 75 70 | 20 66 69 6c 65 2c 20 68 |.startup| file, h|
|00005a60| 61 6e 64 6c 65 20 65 72 | 72 6f 72 73 2c 20 68 69 |andle er|rors, hi|
|00005a70| 67 68 2d 6c 65 76 65 6c | 20 72 65 61 64 20 61 6e |gh-level| read an|
|00005a80| 64 0a 58 2a 09 09 09 09 | 09 09 09 65 78 65 63 75 |d.X*....|...execu|
|00005a90| 74 65 20 63 6f 6d 6d 61 | 6e 64 20 73 74 72 69 6e |te comma|nd strin|
|00005aa0| 67 73 2e 0a 58 2a 0a 58 | 2a 20 74 65 5f 64 65 66 |gs..X*.X|* te_def|
|00005ab0| 73 2e 68 09 09 09 09 09 | 44 65 66 69 6e 69 74 69 |s.h.....|Definiti|
|00005ac0| 6f 6e 73 20 66 69 6c 65 | 2c 20 74 6f 20 62 65 20 |ons file|, to be |
|00005ad0| 23 69 6e 63 6c 75 64 65 | 64 20 77 69 74 68 20 6f |#include|d with o|
|00005ae0| 74 68 65 72 20 66 69 6c | 65 73 0a 58 2a 0a 58 2a |ther fil|es.X*.X*|
|00005af0| 20 74 65 5f 64 61 74 61 | 2e 63 09 09 09 09 09 47 | te_data|.c.....G|
|00005b00| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 73 0a |lobal va|riables.|
|00005b10| 58 2a 0a 58 2a 20 74 65 | 5f 72 64 63 6d 64 2e 63 |X*.X* te|_rdcmd.c|
|00005b20| 09 09 09 09 52 65 61 64 | 20 69 6e 20 61 20 63 6f |....Read| in a co|
|00005b30| 6d 6d 61 6e 64 20 73 74 | 72 69 6e 67 0a 58 2a 0a |mmand st|ring.X*.|
|00005b40| 58 2a 20 74 65 5f 65 78 | 65 63 30 2e 63 09 09 09 |X* te_ex|ec0.c...|
|00005b50| 09 46 69 72 73 74 2d 6c | 65 76 65 6c 20 63 6f 6d |.First-l|evel com|
|00005b60| 6d 61 6e 64 20 65 78 65 | 63 75 74 69 6f 6e 20 2d |mand exe|cution -|
|00005b70| 20 6e 75 6d 62 65 72 73 | 2c 20 76 61 6c 75 65 73 | numbers|, values|
|00005b80| 2c 0a 58 2a 09 09 09 09 | 09 09 09 61 73 73 65 6d |,.X*....|...assem|
|00005b90| 62 6c 65 20 65 78 70 72 | 65 73 73 69 6f 6e 73 0a |ble expr|essions.|
|00005ba0| 58 2a 0a 58 2a 20 74 65 | 5f 65 78 65 63 31 2e 63 |X*.X* te|_exec1.c|
|00005bb0| 09 09 09 09 4d 6f 73 74 | 20 63 6f 6d 6d 61 6e 64 |....Most| command|
|00005bc0| 73 0a 58 2a 0a 58 2a 20 | 74 65 5f 65 78 65 63 32 |s.X*.X* |te_exec2|
|00005bd0| 2e 63 09 09 09 09 22 45 | 22 20 61 6e 64 20 22 46 |.c...."E|" and "F|
|00005be0| 22 20 63 6f 6d 6d 61 6e | 64 73 2c 20 61 6e 64 20 |" comman|ds, and |
|00005bf0| 66 69 6c 65 20 49 2f 4f | 0a 58 2a 0a 58 2a 20 74 |file I/O|.X*.X* t|
|00005c00| 65 5f 73 72 63 68 2e 63 | 09 09 09 09 09 72 6f 75 |e_srch.c|.....rou|
|00005c10| 74 69 6e 65 73 20 61 73 | 73 6f 63 69 61 74 65 64 |tines as|sociated|
|00005c20| 20 77 69 74 68 20 22 73 | 65 61 72 63 68 22 20 63 | with "s|earch" c|
|00005c30| 6f 6d 6d 61 6e 64 73 0a | 58 2a 0a 58 2a 20 74 65 |ommands.|X*.X* te|
|00005c40| 5f 73 75 62 73 2e 63 09 | 09 09 09 09 68 69 67 68 |_subs.c.|....high|
|00005c50| 65 72 2d 6c 65 76 65 6c | 20 73 75 62 72 6f 75 74 |er-level| subrout|
|00005c60| 69 6e 65 73 0a 58 2a 0a | 58 2a 20 74 65 5f 75 74 |ines.X*.|X* te_ut|
|00005c70| 69 6c 73 2e 63 09 09 09 | 09 6c 6f 77 65 72 2d 6c |ils.c...|.lower-l|
|00005c80| 65 76 65 6c 20 73 75 62 | 72 6f 75 74 69 6e 65 73 |evel sub|routines|
|00005c90| 0a 58 2a 0a 58 2a 20 74 | 65 5f 63 68 61 72 69 6f |.X*.X* t|e_chario|
|00005ca0| 2e 63 09 09 09 09 6b 65 | 79 62 6f 61 72 64 20 28 |.c....ke|yboard (|
|00005cb0| 73 74 64 69 6e 29 2c 20 | 74 79 70 65 6f 75 74 20 |stdin), |typeout |
|00005cc0| 28 73 74 64 6f 75 74 29 | 2c 20 73 75 73 70 65 6e |(stdout)|, suspen|
|00005cd0| 64 0a 58 2a 0a 58 2a 20 | 74 65 5f 77 69 6e 64 6f |d.X*.X* |te_windo|
|00005ce0| 77 2e 63 09 09 09 09 64 | 69 73 70 6c 61 79 20 77 |w.c....d|isplay w|
|00005cf0| 69 6e 64 6f 77 20 61 6e | 64 20 64 69 73 70 6c 61 |indow an|d displa|
|00005d00| 79 20 73 70 65 63 69 61 | 6c 20 66 75 6e 63 74 69 |y specia|l functi|
|00005d10| 6f 6e 73 0a 58 2a 0a 58 | 2a 20 54 68 65 73 65 20 |ons.X*.X|* These |
|00005d20| 72 6f 75 74 69 6e 65 73 | 20 73 68 6f 75 6c 64 20 |routines| should |
|00005d30| 62 65 20 63 6f 6d 70 69 | 6c 65 64 20 61 6e 64 20 |be compi|led and |
|00005d40| 6c 69 6e 6b 65 64 20 74 | 6f 20 66 6f 72 6d 20 74 |linked t|o form t|
|00005d50| 68 65 20 54 45 43 4f 20 | 65 78 65 63 75 74 61 62 |he TECO |executab|
|00005d60| 6c 65 2e 0a 58 2a 2f 0a | 58 0c 0a 58 23 69 6e 63 |le..X*/.|X..X#inc|
|00005d70| 6c 75 64 65 20 22 74 65 | 5f 64 65 66 73 2e 68 22 |lude "te|_defs.h"|
|00005d80| 0a 58 0a 58 6d 61 69 6e | 28 61 72 67 63 2c 20 61 |.X.Xmain|(argc, a|
|00005d90| 72 67 76 29 0a 58 09 69 | 6e 74 20 61 72 67 63 3b |rgv).X.i|nt argc;|
|00005da0| 09 09 09 2f 2a 20 61 72 | 67 20 63 6f 75 6e 74 20 |.../* ar|g count |
|00005db0| 2a 2f 0a 58 09 63 68 61 | 72 20 2a 61 72 67 76 5b |*/.X.cha|r *argv[|
|00005dc0| 5d 3b 09 09 2f 2a 20 61 | 72 72 61 79 20 6f 66 20 |];../* a|rray of |
|00005dd0| 73 74 72 69 6e 67 20 70 | 6f 69 6e 74 65 72 73 20 |string p|ointers |
|00005de0| 2a 2f 0a 58 09 7b 0a 58 | 09 69 6e 74 20 69 3b 0a |*/.X.{.X|.int i;.|
|00005df0| 58 0a 58 09 73 61 76 65 | 5f 61 72 67 73 28 61 72 |X.X.save|_args(ar|
|00005e00| 67 63 2c 20 61 72 67 76 | 2c 20 26 71 72 65 67 5b |gc, argv|, &qreg[|
|00005e10| 33 36 5d 29 3b 09 2f 2a | 20 63 6f 70 79 20 63 6f |36]);./*| copy co|
|00005e20| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 74 6f 20 51 7a |mmand li|ne to Qz|
|00005e30| 20 2a 2f 0a 58 09 72 65 | 61 64 5f 73 74 61 72 74 | */.X.re|ad_start|
|00005e40| 75 70 28 29 3b 09 09 09 | 09 09 09 2f 2a 20 72 65 |up();...|.../* re|
|00005e50| 61 64 20 73 74 61 72 74 | 75 70 20 66 69 6c 65 20 |ad start|up file |
|00005e60| 2a 2f 0a 58 09 73 65 74 | 75 70 5f 74 74 79 28 54 |*/.X.set|up_tty(T|
|00005e70| 54 59 5f 4f 4e 29 3b 09 | 09 2f 2a 20 73 65 74 20 |TY_ON);.|./* set |
|00005e80| 74 74 79 20 74 6f 20 43 | 42 52 45 41 4b 2c 20 6e |tty to C|BREAK, n|
|00005e90| 6f 20 65 63 68 6f 2c 20 | 61 73 79 6e 63 68 20 6d |o echo, |asynch m|
|00005ea0| 6f 64 65 20 2a 2f 0a 58 | 09 77 69 6e 64 6f 77 28 |ode */.X|.window(|
|00005eb0| 57 49 4e 5f 49 4e 49 54 | 29 3b 09 09 2f 2a 20 69 |WIN_INIT|);../* i|
|00005ec0| 6e 69 74 69 61 6c 69 7a | 65 20 73 63 72 65 65 6e |nitializ|e screen|
|00005ed0| 2d 69 6d 61 67 65 20 62 | 75 66 66 65 72 20 2a 2f |-image b|uffer */|
|00005ee0| 0a 58 09 67 65 74 5f 74 | 65 72 6d 5f 70 61 72 28 |.X.get_t|erm_par(|
|00005ef0| 29 3b 09 09 09 2f 2a 20 | 73 65 74 20 74 65 72 6d |);.../* |set term|
|00005f00| 69 6e 61 6c 20 73 63 72 | 65 65 6e 2d 73 69 7a 65 |inal scr|een-size|
|00005f10| 20 70 61 72 61 6d 65 74 | 65 72 73 20 2a 2f 0a 58 | paramet|ers */.X|
|00005f20| 0a 58 2f 2a 20 73 65 74 | 20 75 70 20 65 72 72 6f |.X/* set| up erro|
|00005f30| 72 20 72 65 73 74 61 72 | 74 20 2a 2f 0a 58 09 69 |r restar|t */.X.i|
|00005f40| 66 20 28 65 72 72 20 3d | 20 73 65 74 6a 6d 70 28 |f (err =| setjmp(|
|00005f50| 78 78 78 29 29 0a 58 09 | 09 7b 0a 58 09 09 69 66 |xxx)).X.|.{.X..if|
|00005f60| 20 28 65 72 72 20 3d 3d | 20 45 5f 45 46 49 29 20 | (err ==| E_EFI) |
|00005f70| 67 6f 74 6f 20 71 75 69 | 74 3b 09 09 2f 2a 20 45 |goto qui|t;../* E|
|00005f80| 4f 46 20 66 72 6f 6d 20 | 73 74 61 6e 64 61 72 64 |OF from |standard|
|00005f90| 20 69 6e 70 75 74 20 2d | 20 63 6c 65 61 6e 20 75 | input -| clean u|
|00005fa0| 70 20 61 6e 64 20 65 78 | 69 74 20 2a 2f 0a 58 09 |p and ex|it */.X.|
|00005fb0| 09 70 72 69 6e 74 66 28 | 22 5c 30 31 35 5c 30 31 |.printf(|"\015\01|
|00005fc0| 32 3f 20 20 25 73 22 2c | 20 65 72 72 6f 72 73 5b |2? %s",| errors[|
|00005fd0| 65 72 72 2d 31 5d 29 3b | 0a 58 09 09 69 66 20 28 |err-1]);|.X..if (|
|00005fe0| 65 72 72 20 3d 3d 20 45 | 5f 53 52 48 29 20 70 72 |err == E|_SRH) pr|
|00005ff0| 69 6e 74 5f 73 74 72 69 | 6e 67 28 53 45 52 42 55 |int_stri|ng(SERBU|
|00006000| 46 29 3b 09 09 09 2f 2a | 20 70 72 69 6e 74 20 75 |F);.../*| print u|
|00006010| 6e 66 75 6c 66 69 6c 6c | 65 64 20 73 65 61 72 63 |nfulfill|ed searc|
|00006020| 68 20 73 74 72 69 6e 67 | 20 2a 2f 0a 58 09 09 65 |h string| */.X..e|
|00006030| 6c 73 65 20 69 66 20 28 | 28 65 72 72 20 3d 3d 20 |lse if (|(err == |
|00006040| 45 5f 46 4e 46 29 20 7c | 7c 20 28 65 72 72 20 3d |E_FNF) ||| (err =|
|00006050| 3d 20 45 5f 43 4f 46 29 | 20 7c 7c 20 28 65 72 72 |= E_COF)| || (err|
|00006060| 20 3d 3d 20 45 5f 41 4d | 42 29 29 20 70 72 69 6e | == E_AM|B)) prin|
|00006070| 74 5f 73 74 72 69 6e 67 | 28 46 49 4c 42 55 46 29 |t_string|(FILBUF)|
|00006080| 3b 09 2f 2a 20 6f 72 20 | 66 69 6c 65 20 73 74 72 |;./* or |file str|
|00006090| 69 6e 67 20 2a 2f 0a 58 | 09 09 63 72 6c 66 28 29 |ing */.X|..crlf()|
|000060a0| 3b 0a 58 09 09 65 69 73 | 77 20 3d 20 30 3b 09 09 |;.X..eis|w = 0;..|
|000060b0| 09 09 2f 2a 20 73 74 6f | 70 20 69 6e 64 69 72 65 |../* sto|p indire|
|000060c0| 63 74 20 63 6f 6d 6d 61 | 6e 64 20 65 78 65 63 75 |ct comma|nd execu|
|000060d0| 74 69 6f 6e 20 2a 2f 0a | 58 09 09 65 74 5f 76 61 |tion */.|X..et_va|
|000060e0| 6c 20 26 3d 20 7e 28 45 | 54 5f 43 54 52 4c 43 20 |l &= ~(E|T_CTRLC |
|000060f0| 7c 20 45 54 5f 4e 4f 57 | 41 49 54 20 7c 20 45 54 || ET_NOW|AIT | ET|
|00006100| 5f 43 54 52 4c 4f 20 7c | 20 45 54 5f 4e 4f 45 43 |_CTRLO || ET_NOEC|
|00006110| 48 4f 29 3b 09 2f 2a 20 | 72 65 73 65 74 20 5e 43 |HO);./* |reset ^C|
|00006120| 20 74 72 61 70 2c 20 72 | 65 61 64 20 77 2f 6f 20 | trap, r|ead w/o |
|00006130| 77 61 69 74 2c 20 5e 4f | 20 28 75 6e 75 73 65 64 |wait, ^O| (unused|
|00006140| 29 2c 20 6e 6f 20 65 63 | 68 6f 20 2a 2f 0a 58 09 |), no ec|ho */.X.|
|00006150| 09 69 66 20 28 65 74 5f | 76 61 6c 20 26 20 45 54 |.if (et_|val & ET|
|00006160| 5f 51 55 49 54 29 09 2f | 2a 20 69 66 20 45 54 20 |_QUIT)./|* if ET |
|00006170| 68 61 73 20 22 71 75 69 | 74 20 6f 6e 20 65 72 72 |has "qui|t on err|
|00006180| 6f 72 22 20 73 65 74 2c | 20 65 78 69 74 20 28 70 |or" set,| exit (p|
|00006190| 68 6f 6e 65 20 68 6f 6d | 65 29 20 2a 2f 0a 58 09 |hone hom|e) */.X.|
|000061a0| 09 09 7b 0a 58 09 09 09 | 63 6c 65 61 6e 75 70 28 |..{.X...|cleanup(|
|000061b0| 29 3b 09 09 09 2f 2a 20 | 72 65 73 65 74 20 73 63 |);.../* |reset sc|
|000061c0| 72 65 65 6e 2c 20 6b 65 | 79 62 6f 61 72 64 2c 20 |reen, ke|yboard, |
|000061d0| 6f 75 74 70 75 74 20 66 | 69 6c 65 73 20 2a 2f 0a |output f|iles */.|
|000061e0| 58 09 09 09 65 78 69 74 | 28 31 29 3b 09 09 09 2f |X...exit|(1);.../|
|000061f0| 2a 20 61 6e 64 20 65 78 | 69 74 20 2a 2f 0a 58 09 |* and ex|it */.X.|
|00006200| 09 09 7d 0a 58 09 09 7d | 0a 58 0a 58 2f 2a 20 66 |..}.X..}|.X.X/* f|
|00006210| 6f 72 65 76 65 72 3a 20 | 72 65 61 64 20 61 6e 64 |orever: |read and|
|00006220| 20 65 78 65 63 75 74 65 | 20 63 6f 6d 6d 61 6e 64 | execute| command|
|00006230| 20 73 74 72 69 6e 67 73 | 20 2a 2f 0a 58 0a 58 09 | strings| */.X.X.|
|00006240| 66 6f 72 20 28 65 78 69 | 74 66 6c 61 67 20 3d 20 |for (exi|tflag = |
|00006250| 31 3b 20 65 78 69 74 66 | 6c 61 67 20 3e 3d 20 30 |1; exitf|lag >= 0|
|00006260| 3b 20 29 09 09 2f 2a 20 | 22 65 78 69 74 22 20 73 |; )../* |"exit" s|
|00006270| 65 74 73 20 65 78 69 74 | 66 6c 61 67 20 74 6f 20 |ets exit|flag to |
|00006280| 2d 31 3b 20 5e 43 20 74 | 6f 20 2d 32 3b 20 22 68 |-1; ^C t|o -2; "h|
|00006290| 61 6e 67 75 70 22 20 74 | 6f 20 2d 33 20 2a 2f 0a |angup" t|o -3 */.|
|000062a0| 58 09 09 7b 0a 58 09 09 | 77 69 6e 64 6f 77 28 57 |X..{.X..|window(W|
|000062b0| 49 4e 5f 52 45 46 52 29 | 3b 09 09 09 09 2f 2a 20 |IN_REFR)|;..../* |
|000062c0| 64 69 73 70 6c 61 79 20 | 74 68 65 20 62 75 66 66 |display |the buff|
|000062d0| 65 72 20 2a 2f 0a 58 09 | 09 66 72 65 65 5f 62 6c |er */.X.|.free_bl|
|000062e0| 69 73 74 28 69 6e 73 65 | 72 74 5f 70 29 3b 09 09 |ist(inse|rt_p);..|
|000062f0| 09 2f 2a 20 66 72 65 65 | 20 61 6e 79 20 73 74 6f |./* free| any sto|
|00006300| 72 61 67 65 20 66 72 6f | 6d 20 66 61 69 6c 65 64 |rage fro|m failed|
|00006310| 20 69 6e 73 65 72 74 20 | 2a 2f 0a 58 09 09 66 72 | insert |*/.X..fr|
|00006320| 65 65 5f 62 6c 69 73 74 | 28 64 6c 79 5f 66 72 65 |ee_blist|(dly_fre|
|00006330| 65 62 75 66 66 29 3b 09 | 09 2f 2a 20 72 65 74 75 |ebuff);.|./* retu|
|00006340| 72 6e 20 61 6e 79 20 64 | 65 6c 61 79 65 64 20 63 |rn any d|elayed c|
|00006350| 65 6c 6c 73 20 2a 2f 0a | 58 09 09 69 6e 73 65 72 |ells */.|X..inser|
|00006360| 74 5f 70 20 3d 20 64 6c | 79 5f 66 72 65 65 62 75 |t_p = dl|y_freebu|
|00006370| 66 66 20 3d 20 4e 55 4c | 4c 3b 0a 58 09 09 65 74 |ff = NUL|L;.X..et|
|00006380| 5f 76 61 6c 20 26 3d 20 | 7e 45 54 5f 51 55 49 54 |_val &= |~ET_QUIT|
|00006390| 3b 09 09 09 09 2f 2a 20 | 63 6c 65 61 72 20 22 61 |;..../* |clear "a|
|000063a0| 62 6f 72 74 20 6f 6e 20 | 65 72 72 6f 72 22 20 2a |bort on |error" *|
|000063b0| 2f 0a 58 09 09 69 66 20 | 28 72 65 61 64 5f 63 6d |/.X..if |(read_cm|
|000063c0| 64 73 74 72 28 29 29 20 | 67 6f 74 6f 20 71 75 69 |dstr()) |goto qui|
|000063d0| 74 3b 0a 58 09 09 65 78 | 69 74 66 6c 61 67 20 3d |t;.X..ex|itflag =|
|000063e0| 20 30 3b 09 09 09 09 09 | 2f 2a 20 65 6e 61 62 6c | 0;.....|/* enabl|
|000063f0| 65 20 5e 43 20 64 65 74 | 65 63 74 6f 72 20 2a 2f |e ^C det|ector */|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.