home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: tile.1
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| PageFocus Data (other/pageFocusData)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| application/x-shellscript
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 23 21 20 2f 62 69 6e | 2f 73 68 0a 23 20 54 68 |.#! /bin|/sh.# Th|
|00000010| 69 73 20 69 73 20 61 20 | 73 68 65 6c 6c 20 61 72 |is is a |shell ar|
|00000020| 63 68 69 76 65 2e 20 20 | 52 65 6d 6f 76 65 20 61 |chive. |Remove a|
|00000030| 6e 79 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 74 |nything |before t|
|00000040| 68 69 73 20 6c 69 6e 65 | 2c 20 74 68 65 6e 20 75 |his line|, then u|
|00000050| 6e 70 61 63 6b 0a 23 20 | 69 74 20 62 79 20 73 61 |npack.# |it by sa|
|00000060| 76 69 6e 67 20 69 74 20 | 69 6e 74 6f 20 61 20 66 |ving it |into a f|
|00000070| 69 6c 65 20 61 6e 64 20 | 74 79 70 69 6e 67 20 22 |ile and |typing "|
|00000080| 73 68 20 66 69 6c 65 22 | 2e 20 20 54 6f 20 6f 76 |sh file"|. To ov|
|00000090| 65 72 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |erwrite |existing|
|000000a0| 0a 23 20 66 69 6c 65 73 | 2c 20 74 79 70 65 20 22 |.# files|, type "|
|000000b0| 73 68 20 66 69 6c 65 20 | 2d 63 22 2e 20 20 59 6f |sh file |-c". Yo|
|000000c0| 75 20 63 61 6e 20 61 6c | 73 6f 20 66 65 65 64 20 |u can al|so feed |
|000000d0| 74 68 69 73 20 61 73 20 | 73 74 61 6e 64 61 72 64 |this as |standard|
|000000e0| 20 69 6e 70 75 74 20 76 | 69 61 0a 23 20 75 6e 73 | input v|ia.# uns|
|000000f0| 68 61 72 2c 20 6f 72 20 | 62 79 20 74 79 70 69 6e |har, or |by typin|
|00000100| 67 20 22 73 68 20 3c 66 | 69 6c 65 22 2c 20 65 2e |g "sh <f|ile", e.|
|00000110| 67 2e 2e 20 20 49 66 20 | 74 68 69 73 20 61 72 63 |g.. If |this arc|
|00000120| 68 69 76 65 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |hive is |complete|
|00000130| 2c 20 79 6f 75 0a 23 20 | 77 69 6c 6c 20 73 65 65 |, you.# |will see|
|00000140| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6d | the fol|lowing m|
|00000150| 65 73 73 61 67 65 20 61 | 74 20 74 68 65 20 65 6e |essage a|t the en|
|00000160| 64 3a 0a 23 09 09 22 45 | 6e 64 20 6f 66 20 61 72 |d:.#.."E|nd of ar|
|00000170| 63 68 69 76 65 20 31 20 | 28 6f 66 20 36 29 2e 22 |chive 1 |(of 6)."|
|00000180| 0a 23 20 43 6f 6e 74 65 | 6e 74 73 3a 20 20 52 45 |.# Conte|nts: RE|
|00000190| 41 44 4d 45 20 62 69 6e | 20 62 69 6e 2f 66 6f 72 |ADME bin| bin/for|
|000001a0| 74 68 74 6f 6f 6c 20 62 | 69 6e 2f 6d 6b 64 6f 63 |thtool b|in/mkdoc|
|000001b0| 20 62 69 6e 2f 73 68 6f | 72 74 20 62 69 6e 2f 73 | bin/sho|rt bin/s|
|000001c0| 6f 70 20 64 6f 63 0a 23 | 20 20 20 6c 69 62 20 6d |op doc.#| lib m|
|000001d0| 61 6e 20 6d 61 6e 2f 6d | 61 6e 31 20 6d 61 6e 2f |an man/m|an1 man/|
|000001e0| 6d 61 6e 33 20 73 72 63 | 20 73 72 63 2f 65 72 72 |man3 src| src/err|
|000001f0| 6f 72 2e 68 20 73 72 63 | 2f 69 6f 2e 68 20 73 72 |or.h src|/io.h sr|
|00000200| 63 2f 6d 65 6d 6f 72 79 | 2e 63 0a 23 20 20 20 73 |c/memory|.c.# s|
|00000210| 72 63 2f 6d 65 6d 6f 72 | 79 2e 68 20 73 72 63 2f |rc/memor|y.h src/|
|00000220| 6d 65 6d 6f 72 79 2e 76 | 20 74 73 74 20 74 73 74 |memory.v| tst tst|
|00000230| 2f 62 69 74 66 69 65 6c | 64 73 2e 74 73 74 20 74 |/bitfiel|ds.tst t|
|00000240| 73 74 2f 62 6c 6f 63 6b | 73 2e 74 73 74 0a 23 20 |st/block|s.tst.# |
|00000250| 20 20 74 73 74 2f 62 75 | 62 62 6c 65 2d 73 6f 72 | tst/bu|bble-sor|
|00000260| 74 2e 74 73 74 20 74 73 | 74 2f 62 79 74 65 2d 73 |t.tst ts|t/byte-s|
|00000270| 69 65 76 65 2e 74 73 74 | 20 74 73 74 2f 63 68 61 |ieve.tst| tst/cha|
|00000280| 6e 6e 65 6c 73 2e 74 73 | 74 0a 23 20 20 20 74 73 |nnels.ts|t.# ts|
|00000290| 74 2f 63 6f 6c 62 75 72 | 6e 2d 73 69 65 76 65 2e |t/colbur|n-sieve.|
|000002a0| 74 73 74 20 74 73 74 2f | 64 65 62 75 67 67 65 72 |tst tst/|debugger|
|000002b0| 2e 74 73 74 20 74 73 74 | 2f 64 6f 75 62 6c 65 2e |.tst tst|/double.|
|000002c0| 74 73 74 0a 23 20 20 20 | 74 73 74 2f 65 6e 75 6d |tst.# |tst/enum|
|000002d0| 65 72 61 74 65 73 2e 74 | 73 74 20 74 73 74 2f 66 |erates.t|st tst/f|
|000002e0| 69 62 6f 6e 61 63 63 69 | 2e 74 73 74 20 74 73 74 |ibonacci|.tst tst|
|000002f0| 2f 6c 6f 63 61 6c 73 2e | 74 73 74 20 74 73 74 2f |/locals.|tst tst/|
|00000300| 6d 61 63 72 6f 73 2e 74 | 73 74 0a 23 20 20 20 74 |macros.t|st.# t|
|00000310| 73 74 2f 6d 61 74 72 69 | 78 2d 6d 75 6c 74 2e 74 |st/matri|x-mult.t|
|00000320| 73 74 20 74 73 74 2f 70 | 65 72 6d 75 74 61 74 69 |st tst/p|ermutati|
|00000330| 6f 6e 73 2e 74 73 74 20 | 74 73 74 2f 71 75 65 75 |ons.tst |tst/queu|
|00000340| 65 73 2e 74 73 74 0a 23 | 20 20 20 74 73 74 2f 72 |es.tst.#| tst/r|
|00000350| 61 6e 67 65 73 2e 74 73 | 74 20 74 73 74 2f 72 61 |anges.ts|t tst/ra|
|00000360| 74 69 6f 6e 61 6c 73 2e | 74 73 74 20 74 73 74 2f |tionals.|tst tst/|
|00000370| 72 65 6e 64 65 7a 76 6f | 75 73 2e 74 73 74 0a 23 |rendezvo|us.tst.#|
|00000380| 20 20 20 74 73 74 2f 73 | 65 6d 61 70 68 6f 72 65 | tst/s|emaphore|
|00000390| 73 2e 74 73 74 20 74 73 | 74 2f 73 65 74 73 2e 74 |s.tst ts|t/sets.t|
|000003a0| 73 74 20 74 73 74 2f 73 | 74 72 75 63 74 75 72 65 |st tst/s|tructure|
|000003b0| 73 2e 74 73 74 0a 23 20 | 20 20 74 73 74 2f 74 6f |s.tst.# | tst/to|
|000003c0| 77 65 72 73 2d 6f 66 2d | 68 61 6e 6f 69 2e 74 73 |wers-of-|hanoi.ts|
|000003d0| 74 0a 23 20 57 72 61 70 | 70 65 64 20 62 79 20 6d |t.# Wrap|ped by m|
|000003e0| 69 70 40 6d 69 6e 61 20 | 6f 6e 20 46 72 69 20 4a |ip@mina |on Fri J|
|000003f0| 75 6e 20 32 39 20 31 36 | 3a 34 39 3a 30 33 20 31 |un 29 16|:49:03 1|
|00000400| 39 39 30 0a 50 41 54 48 | 3d 2f 62 69 6e 3a 2f 75 |990.PATH|=/bin:/u|
|00000410| 73 72 2f 62 69 6e 3a 2f | 75 73 72 2f 75 63 62 20 |sr/bin:/|usr/ucb |
|00000420| 3b 20 65 78 70 6f 72 74 | 20 50 41 54 48 0a 69 66 |; export| PATH.if|
|00000430| 20 74 65 73 74 20 2d 66 | 20 52 45 41 44 4d 45 20 | test -f| README |
|00000440| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00000450| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00000460| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00000470| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00000480| 69 6e 67 20 66 69 6c 65 | 20 5c 22 52 45 41 44 4d |ing file| \"READM|
|00000490| 45 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |E\".else|.echo sh|
|000004a0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000004b0| 22 52 45 41 44 4d 45 5c | 22 20 5c 28 31 34 33 37 |"README\|" \(1437|
|000004c0| 31 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |1 charac|ters\).s|
|000004d0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 52 45 41 |ed "s/^X|//" >REA|
|000004e0| 44 4d 45 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 52 45 |DME <<'E|ND_OF_RE|
|000004f0| 41 44 4d 45 27 0a 58 54 | 48 52 45 41 44 45 44 20 |ADME'.XT|HREADED |
|00000500| 49 4e 54 45 52 50 52 45 | 54 49 56 45 20 4c 41 4e |INTERPRE|TIVE LAN|
|00000510| 47 55 41 47 45 20 45 4e | 56 49 52 4f 4e 4d 45 4e |GUAGE EN|VIRONMEN|
|00000520| 54 20 28 54 49 4c 45 29 | 20 5b 52 45 4c 45 41 53 |T (TILE)| [RELEAS|
|00000530| 45 20 32 2e 30 5d 0a 58 | 0a 58 4a 75 6e 65 20 32 |E 2.0].X|.XJune 2|
|00000540| 39 2c 20 31 39 39 30 0a | 58 0a 58 4d 69 6b 61 65 |9, 1990.|X.XMikae|
|00000550| 6c 20 52 2e 4b 2e 20 50 | 61 74 65 6c 0a 58 43 6f |l R.K. P|atel.XCo|
|00000560| 6d 70 75 74 65 72 20 41 | 69 64 65 64 20 44 65 73 |mputer A|ided Des|
|00000570| 69 67 6e 20 4c 61 62 6f | 72 61 74 6f 72 79 20 28 |ign Labo|ratory (|
|00000580| 43 41 44 4c 41 42 29 0a | 58 44 65 70 61 72 74 6d |CADLAB).|XDepartm|
|00000590| 65 6e 74 20 6f 66 20 43 | 6f 6d 70 75 74 65 72 20 |ent of C|omputer |
|000005a0| 61 6e 64 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |and Info|rmation |
|000005b0| 53 63 69 65 6e 63 65 0a | 58 4c 69 6e 6b 6f 70 69 |Science.|XLinkopi|
|000005c0| 6e 67 20 55 6e 69 76 65 | 72 73 69 74 79 0a 58 53 |ng Unive|rsity.XS|
|000005d0| 2d 35 38 31 20 38 33 20 | 4c 49 4e 4b 4f 50 49 4e |-581 83 |LINKOPIN|
|000005e0| 47 0a 58 53 57 45 44 45 | 4e 0a 58 45 6d 61 69 6c |G.XSWEDE|N.XEmail|
|000005f0| 3a 20 6d 69 70 40 69 64 | 61 2e 6c 69 75 2e 73 65 |: mip@id|a.liu.se|
|00000600| 0a 58 0a 58 0a 58 31 2e | 09 49 4e 54 52 4f 44 55 |.X.X.X1.|.INTRODU|
|00000610| 43 54 49 4f 4e 0a 58 0a | 58 54 49 4c 45 20 46 6f |CTION.X.|XTILE Fo|
|00000620| 72 74 68 20 69 73 20 61 | 20 33 32 2d 62 69 74 20 |rth is a| 32-bit |
|00000630| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00000640| 66 20 74 68 65 20 46 6f | 72 74 68 2d 38 33 20 53 |f the Fo|rth-83 S|
|00000650| 74 61 6e 64 61 72 64 20 | 0a 58 77 72 69 74 74 65 |tandard |.Xwritte|
|00000660| 6e 20 69 6e 20 43 2e 20 | 54 68 75 73 20 61 6c 6c |n in C. |Thus all|
|00000670| 6f 77 69 6e 67 20 69 74 | 20 74 6f 20 62 65 20 65 |owing it| to be e|
|00000680| 61 73 69 6c 79 20 6d 6f | 76 65 64 20 62 65 74 77 |asily mo|ved betw|
|00000690| 65 65 6e 20 64 69 66 66 | 65 72 65 6e 74 20 0a 58 |een diff|erent .X|
|000006a0| 63 6f 6d 70 75 74 65 72 | 73 20 63 6f 6d 70 61 72 |computer|s compar|
|000006b0| 65 64 20 74 6f 20 74 72 | 61 64 69 74 69 6f 6e 61 |ed to tr|aditiona|
|000006c0| 6c 20 46 6f 72 74 68 20 | 69 6d 70 6c 65 6d 65 6e |l Forth |implemen|
|000006d0| 74 61 74 69 6f 6e 73 20 | 69 6e 20 61 73 73 65 6d |tations |in assem|
|000006e0| 62 6c 79 2e 0a 58 0a 58 | 4d 6f 73 74 20 46 6f 72 |bly..X.X|Most For|
|000006f0| 74 68 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |th imple|mentatio|
|00000700| 6e 73 20 61 72 65 20 64 | 6f 6e 65 20 69 6e 20 61 |ns are d|one in a|
|00000710| 73 73 65 6d 62 6c 79 20 | 74 6f 20 62 65 20 61 62 |ssembly |to be ab|
|00000720| 6c 65 20 74 6f 0a 58 75 | 74 69 6c 69 7a 65 20 74 |le to.Xu|tilize t|
|00000730| 68 65 20 75 6e 64 65 72 | 6c 79 69 6e 67 20 61 72 |he under|lying ar|
|00000740| 63 68 69 74 65 63 74 75 | 72 65 20 61 73 20 6f 70 |chitectu|re as op|
|00000750| 74 69 6d 61 6c 20 61 73 | 20 70 6f 73 73 69 62 6c |timal as| possibl|
|00000760| 65 2e 20 54 49 4c 45 20 | 0a 58 46 6f 72 74 68 20 |e. TILE |.XForth |
|00000770| 67 6f 65 73 20 61 6e 6f | 74 68 65 72 20 64 69 72 |goes ano|ther dir|
|00000780| 65 63 74 69 6f 6e 2e 20 | 54 68 65 20 6d 61 69 6e |ection. |The main|
|00000790| 20 69 64 65 61 20 62 65 | 68 69 6e 64 20 54 49 4c | idea be|hind TIL|
|000007a0| 45 20 46 6f 72 74 68 20 | 69 73 20 74 6f 20 0a 58 |E Forth |is to .X|
|000007b0| 61 63 68 69 65 76 65 20 | 61 20 70 6f 72 74 61 62 |achieve |a portab|
|000007c0| 6c 65 20 66 6f 72 74 68 | 20 69 6d 70 6c 65 6d 65 |le forth| impleme|
|000007d0| 6e 74 61 74 69 6f 6e 20 | 66 6f 72 20 77 6f 72 6b |ntation |for work|
|000007e0| 73 74 61 74 69 6f 6e 73 | 20 61 6e 64 20 6d 65 64 |stations| and med|
|000007f0| 69 75 6d 20 0a 58 73 69 | 7a 65 20 63 6f 6d 70 75 |ium .Xsi|ze compu|
|00000800| 74 65 72 20 73 79 73 74 | 65 6d 73 20 73 6f 20 74 |ter syst|ems so t|
|00000810| 68 61 74 20 6e 65 77 20 | 67 72 6f 75 70 73 20 6f |hat new |groups o|
|00000820| 66 20 70 72 6f 67 72 61 | 6d 6d 65 72 73 20 6d 61 |f progra|mmers ma|
|00000830| 79 20 62 65 20 65 78 70 | 6f 73 65 64 20 0a 58 74 |y be exp|osed .Xt|
|00000840| 6f 20 74 68 65 20 66 6c | 61 76 6f 72 20 6f 66 20 |o the fl|avor of |
|00000850| 61 6e 20 65 78 74 65 6e | 73 69 62 6c 65 20 6c 61 |an exten|sible la|
|00000860| 6e 67 75 61 67 65 20 73 | 75 63 68 20 61 73 20 46 |nguage s|uch as F|
|00000870| 6f 72 74 68 2e 20 0a 58 | 0a 58 54 68 65 20 69 6d |orth. .X|.XThe im|
|00000880| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |plementa|tion of |
|00000890| 54 49 4c 45 20 46 6f 72 | 74 68 20 69 73 20 73 65 |TILE For|th is se|
|000008a0| 6c 65 63 74 65 64 20 73 | 6f 20 74 68 61 74 2c 20 |lected s|o that, |
|000008b0| 69 6e 20 70 72 69 6e 63 | 69 70 6c 65 2c 20 0a 58 |in princ|iple, .X|
|000008c0| 61 6e 79 20 43 2d 6c 65 | 76 65 6c 20 70 72 6f 63 |any C-le|vel proc|
|000008d0| 65 64 75 72 65 20 6d 61 | 79 20 62 65 63 6f 6d 65 |edure ma|y become|
|000008e0| 20 61 76 61 69 6c 61 62 | 6c 65 20 6f 6e 20 74 68 | availab|le on th|
|000008f0| 65 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 61 6e |e intera|ctive an|
|00000900| 64 0a 58 69 6e 63 72 65 | 6d 65 6e 74 61 6c 20 66 |d.Xincre|mental f|
|00000910| 6f 72 74 68 20 6c 65 76 | 65 6c 2e 20 4f 74 68 65 |orth lev|el. Othe|
|00000920| 72 20 6d 6f 64 65 6c 73 | 20 6f 66 20 69 6d 70 6c |r models| of impl|
|00000930| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 61 20 |ementati|on of a |
|00000940| 74 68 72 65 61 64 65 64 | 0a 58 69 6e 74 65 72 70 |threaded|.Xinterp|
|00000950| 72 65 74 65 72 20 69 6e | 20 43 20 61 72 65 20 70 |reter in| C are p|
|00000960| 6f 73 73 69 62 6c 65 20 | 62 75 74 20 61 72 65 20 |ossible |but are |
|00000970| 6e 6f 74 20 61 73 20 66 | 6c 65 78 69 62 6c 65 2e |not as f|lexible.|
|00000980| 0a 58 0a 58 54 49 4c 45 | 20 46 6f 72 74 68 20 69 |.X.XTILE| Forth i|
|00000990| 73 20 6f 72 67 61 6e 69 | 7a 65 64 20 61 73 20 61 |s organi|zed as a|
|000009a0| 20 73 65 74 20 6f 66 20 | 6d 6f 64 75 6c 65 73 20 | set of |modules |
|000009b0| 74 6f 20 61 6c 6c 6f 77 | 20 74 68 65 20 6b 65 72 |to allow| the ker|
|000009c0| 6e 65 6c 20 74 6f 20 62 | 65 20 0a 58 75 73 65 64 |nel to b|e .Xused|
|000009d0| 20 61 73 20 61 20 67 65 | 6e 65 72 61 6c 20 74 68 | as a ge|neral th|
|000009e0| 72 65 61 64 69 6e 67 20 | 65 6e 67 69 6e 65 20 66 |reading |engine f|
|000009f0| 6f 72 20 43 2e 20 45 6e | 76 69 72 6f 6e 6d 65 6e |or C. En|vironmen|
|00000a00| 74 20 64 65 70 65 6e 64 | 65 6e 63 69 65 73 20 73 |t depend|encies s|
|00000a10| 75 63 68 0a 58 61 73 20 | 6d 65 6d 6f 72 79 20 61 |uch.Xas |memory a|
|00000a20| 6c 6c 6f 63 61 74 69 6f | 6e 2c 20 65 72 72 6f 72 |llocatio|n, error|
|00000a30| 20 68 61 6e 64 6c 69 6e | 67 20 61 6e 64 20 69 6e | handlin|g and in|
|00000a40| 70 75 74 2f 6f 75 74 70 | 75 74 20 68 61 76 65 20 |put/outp|ut have |
|00000a50| 62 65 65 6e 20 73 65 70 | 61 72 61 74 65 64 0a 58 |been sep|arated.X|
|00000a60| 6f 75 74 20 6f 66 20 74 | 68 65 20 6b 65 72 6e 65 |out of t|he kerne|
|00000a70| 6c 20 74 6f 20 69 6e 63 | 72 65 61 73 65 20 66 6c |l to inc|rease fl|
|00000a80| 65 78 69 62 69 6c 69 74 | 79 2e 20 54 68 65 20 66 |exibilit|y. The f|
|00000a90| 6f 72 74 68 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |orth app|lication|
|00000aa0| 20 69 73 20 22 6a 75 73 | 74 22 0a 58 61 6e 20 65 | is "jus|t".Xan e|
|00000ab0| 78 61 6d 70 6c 65 20 6f | 66 20 68 6f 77 20 74 6f |xample o|f how to|
|00000ac0| 20 75 73 65 20 74 68 65 | 20 6b 65 72 6e 65 6c 2e | use the| kernel.|
|00000ad0| 0a 58 0a 58 43 6f 6d 70 | 61 72 69 6e 67 20 66 6f |.X.XComp|aring fo|
|00000ae0| 72 74 68 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |rth impl|ementati|
|00000af0| 6f 6e 20 75 73 69 6e 67 | 20 74 68 65 20 74 72 61 |on using| the tra|
|00000b00| 64 69 74 69 6f 6e 61 6c | 20 62 65 6e 63 68 6d 61 |ditional| benchma|
|00000b10| 72 6b 20 73 75 63 68 20 | 61 73 0a 58 74 68 65 20 |rk such |as.Xthe |
|00000b20| 63 6c 61 73 73 69 63 61 | 6c 20 73 69 65 76 65 73 |classica|l sieves|
|00000b30| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 20 69 73 20 | calcula|tion is |
|00000b40| 64 69 66 66 69 63 75 6c | 74 20 62 65 63 61 75 73 |difficul|t becaus|
|00000b50| 65 20 6f 66 20 64 69 66 | 66 65 72 65 6e 63 65 20 |e of dif|ference |
|00000b60| 69 6e 0a 58 73 70 65 65 | 64 20 62 65 74 77 65 65 |in.Xspee|d betwee|
|00000b70| 6e 20 77 6f 72 6b 73 74 | 61 74 69 6f 6e 73 20 61 |n workst|ations a|
|00000b80| 6e 64 20 70 65 72 73 6f | 6e 61 6c 20 63 6f 6d 70 |nd perso|nal comp|
|00000b90| 75 74 65 72 73 2e 20 54 | 68 65 20 42 79 74 65 20 |uters. T|he Byte |
|00000ba0| 73 69 65 76 65 73 0a 58 | 62 65 6e 63 68 6d 61 72 |sieves.X|benchmar|
|00000bb0| 6b 20 69 73 20 72 65 70 | 6f 72 74 65 64 20 74 6f |k is rep|orted to|
|00000bc0| 20 74 79 70 69 63 61 6c | 6c 79 20 72 75 6e 20 69 | typical|ly run i|
|00000bd0| 6e 20 31 36 20 73 65 63 | 6f 6e 64 73 20 6f 6e 20 |n 16 sec|onds on |
|00000be0| 61 20 64 69 72 65 63 74 | 20 74 68 72 65 61 64 65 |a direct| threade|
|00000bf0| 64 0a 58 66 6f 72 74 68 | 20 69 6d 70 6c 65 6d 65 |d.Xforth| impleme|
|00000c00| 6e 74 61 74 69 6f 6e 2e | 20 54 68 69 73 20 62 65 |ntation.| This be|
|00000c10| 6e 63 68 6d 61 72 6b 20 | 77 69 6c 6c 20 72 75 6e |nchmark |will run|
|00000c20| 20 69 6e 20 32 37 20 73 | 65 63 6f 6e 64 73 20 69 | in 27 s|econds i|
|00000c30| 6e 20 54 49 4c 45 20 66 | 6f 72 74 68 20 0a 58 6f |n TILE f|orth .Xo|
|00000c40| 6e 20 61 20 53 55 4e 2d | 33 2f 36 30 20 61 6e 64 |n a SUN-|3/60 and|
|00000c50| 20 6c 65 73 73 20 74 68 | 61 6e 20 31 33 20 73 65 | less th|an 13 se|
|00000c60| 63 6f 6e 64 73 20 6f 6e | 20 61 20 53 55 4e 20 53 |conds on| a SUN S|
|00000c70| 50 41 52 43 73 74 61 74 | 69 6f 6e 20 31 2e 20 54 |PARCstat|ion 1. T|
|00000c80| 68 65 73 65 20 74 69 6d | 65 73 20 0a 58 61 72 65 |hese tim|es .Xare|
|00000c90| 20 74 68 65 20 74 6f 74 | 61 6c 20 74 69 6d 65 20 | the tot|al time |
|00000ca0| 66 6f 72 20 6c 6f 61 64 | 69 6e 67 20 54 49 4c 45 |for load|ing TILE|
|00000cb0| 20 66 6f 72 74 68 2c 20 | 63 6f 6d 70 69 6c 69 6e | forth, |compilin|
|00000cc0| 67 20 61 6e 64 20 65 78 | 65 63 75 74 69 6e 67 20 |g and ex|ecuting |
|00000cd0| 74 68 65 0a 58 62 65 6e | 63 68 6d 61 72 6b 2e 20 |the.Xben|chmark. |
|00000ce0| 43 6f 6d 70 61 72 69 6e | 67 20 74 6f 2c 20 66 6f |Comparin|g to, fo|
|00000cf0| 72 20 69 6e 73 74 61 6e | 63 65 2c 20 6f 74 68 65 |r instan|ce, othe|
|00000d00| 72 20 69 6e 74 65 72 70 | 72 65 74 69 76 65 20 6c |r interp|retive l|
|00000d10| 61 6e 67 75 61 67 65 73 | 20 73 75 63 68 20 0a 58 |anguages| such .X|
|00000d20| 61 73 20 4c 69 73 70 2c | 20 77 68 65 72 65 20 6f |as Lisp,| where o|
|00000d30| 6e 65 20 6f 66 20 74 68 | 65 20 63 6c 61 73 73 69 |ne of th|e classi|
|00000d40| 63 61 6c 20 62 65 6e 63 | 68 6d 61 72 6b 73 20 69 |cal benc|hmarks i|
|00000d50| 73 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 20 6f 66 |s calcul|ation of|
|00000d60| 20 74 68 65 20 0a 58 46 | 69 62 6f 6e 61 63 63 69 | the .XF|ibonacci|
|00000d70| 20 66 75 6e 63 74 69 6f | 6e 2c 20 74 68 65 20 70 | functio|n, the p|
|00000d80| 65 72 66 6f 72 6d 61 6e | 63 65 20 69 6e 63 72 65 |erforman|ce incre|
|00000d90| 61 73 65 20 69 73 20 6f | 76 65 72 20 6f 6e 65 20 |ase is o|ver one |
|00000da0| 6d 61 67 6e 69 74 75 64 | 65 2e 0a 58 0a 58 54 68 |magnitud|e..X.XTh|
|00000db0| 65 20 6b 65 72 6e 65 6c | 20 73 75 70 70 6f 72 74 |e kernel| support|
|00000dc0| 73 20 74 68 65 20 53 74 | 61 6e 64 61 72 64 20 46 |s the St|andard F|
|00000dd0| 6f 72 74 68 2d 38 33 20 | 77 6f 72 64 20 73 65 74 |orth-83 |word set|
|00000de0| 20 65 78 63 65 70 74 20 | 66 6f 72 20 74 68 65 0a | except |for the.|
|00000df0| 58 62 6c 6f 63 6b 73 20 | 66 69 6c 65 20 77 6f 72 |Xblocks |file wor|
|00000e00| 64 20 73 65 74 20 77 68 | 69 63 68 20 61 72 65 20 |d set wh|ich are |
|00000e10| 6e 6f 74 20 75 73 65 64 | 2e 20 54 68 65 20 6b 65 |not used|. The ke|
|00000e20| 72 6e 65 6c 20 69 73 20 | 65 78 74 65 6e 64 65 64 |rnel is |extended|
|00000e30| 20 77 69 74 68 0a 58 6d | 61 6e 79 20 6f 66 20 74 | with.Xm|any of t|
|00000e40| 68 65 20 63 6f 6e 63 65 | 70 74 73 20 66 72 6f 6d |he conce|pts from|
|00000e50| 20 6d 6f 64 65 72 6e 20 | 70 72 6f 67 72 61 6d 6d | modern |programm|
|00000e60| 69 6e 67 20 6c 61 6e 67 | 75 61 67 65 73 2e 20 48 |ing lang|uages. H|
|00000e70| 65 72 65 20 69 73 20 61 | 20 6c 69 73 74 0a 58 6f |ere is a| list.Xo|
|00000e80| 66 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 65 78 |f some o|f the ex|
|00000e90| 74 65 6e 73 69 6f 6e 73 | 3b 20 61 72 67 75 6d 65 |tensions|; argume|
|00000ea0| 6e 74 20 62 69 6e 64 69 | 6e 67 20 61 6e 64 20 6c |nt bindi|ng and l|
|00000eb0| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 73 2c 20 |ocal var|iables, |
|00000ec0| 71 75 65 75 65 0a 58 6d | 61 6e 61 67 65 6d 65 6e |queue.Xm|anagemen|
|00000ed0| 74 2c 20 6c 6f 77 20 6c | 65 76 65 6c 20 63 6f 6d |t, low l|evel com|
|00000ee0| 70 69 6c 65 72 20 77 6f | 72 64 73 2c 20 73 74 72 |piler wo|rds, str|
|00000ef0| 69 6e 67 20 66 75 6e 63 | 74 69 6f 6e 73 2c 20 66 |ing func|tions, f|
|00000f00| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 0a 58 6e |loating |point.Xn|
|00000f10| 75 6d 62 65 72 73 2c 20 | 65 78 63 65 70 74 69 6f |umbers, |exceptio|
|00000f20| 6e 73 20 61 6e 64 20 6d | 75 6c 74 69 2d 74 61 73 |ns and m|ulti-tas|
|00000f30| 6b 69 6e 67 2e 20 54 68 | 65 20 54 49 4c 45 20 46 |king. Th|e TILE F|
|00000f40| 6f 72 74 68 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |orth env|ironment|
|00000f50| 20 61 6c 73 6f 0a 58 63 | 6f 6e 74 61 69 6e 73 20 | also.Xc|ontains |
|00000f60| 61 20 73 65 74 20 6f 66 | 20 72 65 75 73 61 62 6c |a set of| reusabl|
|00000f70| 65 20 73 6f 75 72 63 65 | 20 66 69 6c 65 73 20 66 |e source| files f|
|00000f80| 6f 72 20 68 69 67 68 20 | 6c 65 76 65 6c 20 6d 75 |or high |level mu|
|00000f90| 6c 74 69 2d 74 61 73 6b | 69 6e 67 2c 20 0a 58 64 |lti-task|ing, .Xd|
|00000fa0| 61 74 61 20 6d 6f 64 65 | 6c 69 6e 67 20 61 6e 64 |ata mode|ling and|
|00000fb0| 20 73 74 72 75 63 74 75 | 72 69 6e 67 20 6d 6f 64 | structu|ring mod|
|00000fc0| 75 6c 65 73 2c 20 61 6e | 64 20 61 20 6e 75 6d 62 |ules, an|d a numb|
|00000fd0| 65 72 20 6f 66 20 70 72 | 6f 67 72 61 6d 6d 69 6e |er of pr|ogrammin|
|00000fe0| 67 20 74 6f 6f 6c 73 2e | 0a 58 0a 58 54 6f 20 61 |g tools.|.X.XTo a|
|00000ff0| 6c 6c 6f 77 20 69 6e 74 | 65 72 61 63 74 69 6f 6e |llow int|eraction|
|00001000| 20 61 6e 64 20 69 6e 63 | 72 65 6d 65 6e 74 61 6c | and inc|remental|
|00001010| 20 70 72 6f 67 72 61 6d | 20 64 65 76 65 6c 6f 70 | program| develop|
|00001020| 6d 65 6e 74 20 54 49 4c | 45 20 46 6f 72 74 68 0a |ment TIL|E Forth.|
|00001030| 58 69 6e 63 6c 75 64 65 | 73 20 61 20 70 72 6f 67 |Xinclude|s a prog|
|00001040| 72 61 6d 6d 69 6e 67 20 | 65 6e 76 69 72 6f 6e 6d |ramming |environm|
|00001050| 65 6e 74 20 61 73 20 61 | 20 6d 6f 64 65 20 69 6e |ent as a| mode in|
|00001060| 20 47 4e 55 20 45 6d 61 | 63 73 2e 20 54 68 69 73 | GNU Ema|cs. This|
|00001070| 20 65 6e 76 69 72 6f 6e | 2d 0a 58 6d 65 6e 74 20 | environ|-.Xment |
|00001080| 68 65 6c 70 73 20 77 69 | 74 68 20 70 72 6f 67 72 |helps wi|th progr|
|00001090| 61 6d 20 73 74 72 75 63 | 74 75 72 69 6e 67 2c 20 |am struc|turing, |
|000010a0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 73 65 |document|ation se|
|000010b0| 61 72 63 68 2c 20 61 6e | 64 20 70 72 6f 67 72 61 |arch, an|d progra|
|000010c0| 6d 0a 58 64 65 76 65 6c | 6f 70 6d 65 6e 74 2e 20 |m.Xdevel|opment. |
|000010d0| 45 61 63 68 20 76 6f 63 | 61 62 75 6c 61 72 79 20 |Each voc|abulary |
|000010e0| 69 6e 20 74 68 65 20 6b | 65 72 6e 65 6c 20 61 6e |in the k|ernel an|
|000010f0| 64 20 74 68 65 20 73 6f | 75 72 63 65 20 6c 69 62 |d the so|urce lib|
|00001100| 72 61 72 79 20 66 69 6c | 65 20 69 73 20 0a 58 64 |rary fil|e is .Xd|
|00001110| 65 73 63 72 69 62 65 64 | 20 62 79 20 61 20 6d 61 |escribed| by a ma|
|00001120| 6e 75 61 6c 2c 20 64 6f | 63 75 6d 65 6e 74 61 74 |nual, do|cumentat|
|00001130| 69 6f 6e 20 61 6e 64 20 | 74 65 73 74 20 66 69 6c |ion and |test fil|
|00001140| 65 2e 20 54 68 69 73 20 | 73 74 79 6c 65 20 6f 66 |e. This |style of|
|00001150| 20 0a 58 70 72 6f 67 72 | 61 6d 6d 69 6e 67 20 69 | .Xprogr|amming i|
|00001160| 73 20 65 6d 70 68 61 73 | 69 7a 65 64 20 74 68 72 |s emphas|ized thr|
|00001170| 6f 75 67 68 6f 75 74 20 | 74 68 65 20 65 6e 76 69 |oughout |the envi|
|00001180| 72 6f 6e 6d 65 6e 74 20 | 74 6f 20 69 6e 63 72 65 |ronment |to incre|
|00001190| 61 73 65 20 0a 58 75 6e | 64 65 72 73 74 61 6e 64 |ase .Xun|derstand|
|000011a0| 69 6e 67 20 61 6e 64 20 | 72 65 75 73 61 62 69 6c |ing and |reusabil|
|000011b0| 69 74 79 20 6f 66 20 74 | 68 65 20 6c 69 62 72 61 |ity of t|he libra|
|000011c0| 72 79 20 6d 6f 64 75 6c | 65 73 2e 20 44 75 72 69 |ry modul|es. Duri|
|000011d0| 6e 67 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 0a 58 |ng compi|lation.X|
|000011e0| 54 49 4c 45 20 46 6f 72 | 74 68 27 73 20 69 6f 2d |TILE For|th's io-|
|000011f0| 70 61 63 6b 61 67 65 20 | 6b 65 65 70 73 20 74 72 |package |keeps tr|
|00001200| 61 63 6b 20 66 6f 72 20 | 77 68 69 63 68 20 6d 6f |ack for |which mo|
|00001210| 64 75 6c 65 73 20 68 61 | 76 65 20 62 65 65 6e 20 |dules ha|ve been |
|00001220| 6c 6f 61 64 65 64 0a 58 | 73 6f 20 74 68 61 74 20 |loaded.X|so that |
|00001230| 74 68 65 79 20 61 72 65 | 20 6f 6e 6c 79 20 6c 6f |they are| only lo|
|00001240| 61 64 65 64 20 6f 6e 63 | 65 20 65 76 65 6e 20 69 |aded onc|e even i|
|00001250| 66 20 69 6e 63 6c 75 64 | 65 64 20 62 79 20 73 65 |f includ|ed by se|
|00001260| 76 65 72 61 6c 20 6d 6f | 64 75 6c 65 73 2e 0a 58 |veral mo|dules..X|
|00001270| 0a 58 57 72 69 74 69 6e | 67 20 61 20 46 6f 72 74 |.XWritin|g a Fort|
|00001280| 68 20 69 6e 20 43 20 67 | 69 76 65 73 20 73 6f 6d |h in C g|ives som|
|00001290| 65 20 70 6f 73 73 69 62 | 69 6c 69 74 69 65 73 20 |e possib|ilities |
|000012a0| 74 68 61 74 20 6e 6f 72 | 6d 61 6c 6c 79 20 61 72 |that nor|mally ar|
|000012b0| 65 0a 58 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |e.Xnot a|vailable|
|000012c0| 20 77 68 65 6e 20 70 65 | 72 66 6f 72 6d 69 6e 67 | when pe|rforming|
|000012d0| 20 74 68 65 20 73 61 6d | 65 20 74 61 73 6b 20 69 | the sam|e task i|
|000012e0| 6e 20 61 73 73 65 6d 62 | 6c 79 2e 20 54 49 4c 45 |n assemb|ly. TILE|
|000012f0| 20 46 6f 72 74 68 0a 58 | 68 61 73 20 62 65 65 6e | Forth.X|has been|
|00001300| 20 70 72 6f 66 69 6c 65 | 64 20 75 73 69 6e 67 20 | profile|d using |
|00001310| 74 68 65 20 61 76 61 69 | 6c 61 62 6c 65 20 74 6f |the avai|lable to|
|00001320| 6f 6c 73 20 75 6e 64 65 | 72 20 55 6e 69 78 2e 20 |ols unde|r Unix. |
|00001330| 54 68 69 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |This inf|ormation|
|00001340| 0a 58 68 61 73 20 62 65 | 65 6e 20 75 73 65 64 20 |.Xhas be|en used |
|00001350| 74 6f 20 6f 70 74 69 6d | 69 7a 65 20 74 68 65 20 |to optim|ize the |
|00001360| 63 6f 6d 70 69 6c 65 72 | 20 73 6f 20 74 68 61 74 |compiler| so that|
|00001370| 20 69 74 20 61 63 68 69 | 65 76 65 73 20 61 20 63 | it achi|eves a c|
|00001380| 6f 6d 70 69 6c 61 74 69 | 6f 6e 0a 58 73 70 65 65 |ompilati|on.Xspee|
|00001390| 64 20 6f 66 20 6f 76 65 | 72 20 32 30 30 2e 30 30 |d of ove|r 200.00|
|000013a0| 30 20 6c 69 6e 65 73 20 | 70 65 72 20 6d 69 6e 75 |0 lines |per minu|
|000013b0| 74 65 20 6f 6e 20 6d 79 | 20 6d 61 63 68 69 6e 65 |te on my| machine|
|000013c0| 20 28 61 20 64 69 73 6b | 2d 6c 65 73 73 20 53 55 | (a disk|-less SU|
|000013d0| 4e 0a 58 53 50 41 52 43 | 73 74 61 74 69 6f 6e 20 |N.XSPARC|station |
|000013e0| 31 29 2e 20 43 75 72 72 | 65 6e 74 6c 79 20 63 6f |1). Curr|ently co|
|000013f0| 64 65 20 69 73 20 6f 6e | 6c 79 20 73 61 76 65 64 |de is on|ly saved|
|00001400| 20 69 6e 20 73 6f 75 72 | 63 65 20 66 6f 72 6d 20 | in sour|ce form |
|00001410| 61 6e 64 20 0a 58 61 70 | 70 6c 69 63 61 74 69 6f |and .Xap|plicatio|
|00001420| 6e 73 20 61 72 65 20 74 | 79 70 69 63 61 6c 6c 79 |ns are t|ypically|
|00001430| 20 22 63 6f 6d 70 69 6c | 65 2d 61 6e 64 2d 67 6f | "compil|e-and-go|
|00001440| 22 2e 0a 58 0a 58 53 6f | 20 66 61 72 20 54 49 4c |"..X.XSo| far TIL|
|00001450| 45 20 46 6f 72 74 68 20 | 68 61 73 20 62 65 65 6e |E Forth |has been|
|00001460| 20 70 6f 72 74 65 64 20 | 61 6e 64 20 74 65 73 74 | ported |and test|
|00001470| 65 64 20 61 74 20 6f 76 | 65 72 20 66 6f 72 74 79 |ed at ov|er forty|
|00001480| 20 6c 6f 63 61 74 69 6f | 6e 73 0a 58 77 69 74 68 | locatio|ns.Xwith|
|00001490| 6f 75 74 20 61 6e 79 20 | 6d 61 6a 6f 72 20 70 72 |out any |major pr|
|000014a0| 6f 62 6c 65 6d 73 20 65 | 78 63 65 70 74 20 77 68 |oblems e|xcept wh|
|000014b0| 65 72 65 20 43 20 63 6f | 6d 70 69 6c 65 72 73 20 |ere C co|mpilers |
|000014c0| 64 6f 20 6e 6f 74 20 61 | 6c 6c 6f 77 20 73 75 62 |do not a|llow sub|
|000014d0| 2d 0a 58 72 6f 75 74 69 | 6e 65 20 70 6f 69 6e 74 |-.Xrouti|ne point|
|000014e0| 65 72 73 20 69 6e 20 64 | 61 74 61 20 73 74 72 75 |ers in d|ata stru|
|000014f0| 63 74 75 72 65 73 2e 20 | 0a 58 0a 58 0a 58 32 2e |ctures. |.X.X.X2.|
|00001500| 09 45 58 54 45 4e 53 49 | 4f 4e 53 0a 58 0a 58 57 |.EXTENSI|ONS.X.XW|
|00001510| 68 61 74 20 69 73 20 6e | 65 77 20 69 6e 20 74 68 |hat is n|ew in th|
|00001520| 65 20 54 49 4c 45 20 66 | 6f 72 74 68 3f 20 46 69 |e TILE f|orth? Fi|
|00001530| 72 73 74 20 6f 66 20 61 | 6c 6c 20 74 68 65 20 6f |rst of a|ll the o|
|00001540| 76 65 72 61 6c 6c 20 6f | 72 67 61 6e 69 7a 61 74 |verall o|rganizat|
|00001550| 69 6f 6e 0a 58 6f 66 20 | 77 6f 72 64 73 2e 20 54 |ion.Xof |words. T|
|00001560| 6f 20 69 6e 63 72 65 61 | 73 65 20 70 6f 72 74 61 |o increa|se porta|
|00001570| 62 69 6c 69 74 79 20 61 | 6e 64 20 75 6e 64 65 72 |bility a|nd under|
|00001580| 73 74 61 6e 64 69 6e 67 | 20 6f 66 20 66 6f 72 74 |standing| of fort|
|00001590| 68 20 63 6f 64 65 20 6d | 6f 64 75 6c 65 73 0a 58 |h code m|odules.X|
|000015a0| 76 6f 63 61 62 75 6c 61 | 72 69 65 73 20 61 72 65 |vocabula|ries are|
|000015b0| 20 75 73 65 64 20 61 73 | 20 74 68 65 20 70 72 69 | used as| the pri|
|000015c0| 6d 61 72 79 20 70 61 63 | 6b 61 67 69 6e 67 20 6d |mary pac|kaging m|
|000015d0| 65 63 68 61 6e 69 73 6d | 2e 20 4e 65 77 20 64 61 |echanism|. New da|
|000015e0| 74 61 20 74 79 70 65 73 | 0a 58 73 75 63 68 20 61 |ta types|.Xsuch a|
|000015f0| 73 20 72 61 74 69 6f 6e | 61 6c 20 61 6e 64 20 66 |s ration|al and f|
|00001600| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 20 6e 75 |loating |point nu|
|00001610| 6d 62 65 72 73 20 61 72 | 65 20 69 6d 70 6c 65 6d |mbers ar|e implem|
|00001620| 65 6e 74 65 64 20 69 6e | 20 73 65 70 61 72 61 74 |ented in| separat|
|00001630| 65 0a 58 76 6f 63 61 62 | 75 6c 61 72 69 65 73 2e |e.Xvocab|ularies.|
|00001640| 20 54 68 65 20 76 6f 63 | 61 62 75 6c 61 72 69 65 | The voc|abularie|
|00001650| 73 20 61 63 74 20 61 73 | 20 62 6f 74 68 20 61 20 |s act as| both a |
|00001660| 70 72 6f 67 72 61 6d 20 | 6d 6f 64 75 6c 65 20 61 |program |module a|
|00001670| 6e 64 20 61 6e 20 0a 58 | 61 62 73 74 72 61 63 74 |nd an .X|abstract|
|00001680| 20 64 61 74 61 20 74 79 | 70 65 2e 0a 58 0a 58 32 | data ty|pe..X.X2|
|00001690| 2e 31 09 45 78 74 65 6e | 64 61 62 6c 65 20 69 6e |.1.Exten|dable in|
|000016a0| 74 65 72 70 72 65 74 65 | 72 0a 58 0a 58 54 6f 20 |terprete|r.X.XTo |
|000016b0| 61 6c 6c 6f 77 20 65 78 | 74 65 6e 73 69 6f 6e 20 |allow ex|tension |
|000016c0| 6f 66 20 74 68 65 20 6c | 69 74 65 72 61 6c 20 73 |of the l|iteral s|
|000016d0| 79 6d 62 6f 6c 20 73 65 | 74 20 28 6e 6f 72 6d 61 |ymbol se|t (norma|
|000016e0| 6c 6c 79 20 6f 6e 6c 79 | 20 69 6e 74 65 67 65 72 |lly only| integer|
|000016f0| 0a 58 6e 75 6d 62 65 72 | 73 29 20 65 61 63 68 20 |.Xnumber|s) each |
|00001700| 76 6f 63 61 62 75 6c 61 | 72 79 20 69 73 20 61 6c |vocabula|ry is al|
|00001710| 6c 6f 77 65 64 20 74 6f | 20 68 61 76 65 20 61 20 |lowed to| have a |
|00001720| 6c 69 74 65 72 61 6c 20 | 72 65 63 6f 67 6e 69 74 |literal |recognit|
|00001730| 69 6f 6e 0a 58 66 75 6e | 63 74 69 6f 6e 2e 20 54 |ion.Xfun|ction. T|
|00001740| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |his func|tion is |
|00001750| 65 78 65 63 75 74 65 64 | 20 62 79 20 74 68 65 20 |executed| by the |
|00001760| 69 6e 74 65 72 70 72 65 | 74 65 72 20 77 68 65 6e |interpre|ter when|
|00001770| 20 74 68 65 20 73 79 6d | 62 6f 6c 0a 58 73 65 61 | the sym|bol.Xsea|
|00001780| 72 63 68 20 68 61 73 20 | 66 61 69 6c 65 64 2e 20 |rch has |failed. |
|00001790| 54 68 65 20 6c 69 74 65 | 72 61 6c 20 72 65 63 6f |The lite|ral reco|
|000017a0| 67 6e 69 7a 65 72 20 66 | 6f 72 20 74 68 65 20 66 |gnizer f|or the f|
|000017b0| 6f 72 74 68 20 76 6f 63 | 61 62 75 6c 61 72 79 20 |orth voc|abulary |
|000017c0| 69 73 20 0a 58 22 3f 6e | 75 6d 62 65 72 22 2e 20 |is .X"?n|umber". |
|000017d0| 54 68 69 73 20 73 69 6d | 70 6c 65 20 6d 65 63 68 |This sim|ple mech|
|000017e0| 61 6e 69 73 6d 20 61 6c | 6c 6f 77 73 20 6d 6f 64 |anism al|lows mod|
|000017f0| 75 6c 65 73 20 73 75 63 | 68 20 61 73 20 66 6f 72 |ules suc|h as for|
|00001800| 20 72 61 74 69 6f 6e 61 | 6c 20 61 6e 64 20 0a 58 | rationa|l and .X|
|00001810| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 6e |floating| point n|
|00001820| 75 6d 62 65 72 73 2c 20 | 61 6e 64 20 69 6e 74 65 |umbers, |and inte|
|00001830| 67 65 72 20 72 61 6e 67 | 65 73 20 74 6f 20 65 78 |ger rang|es to ex|
|00001840| 74 65 6e 64 20 77 69 74 | 68 20 74 68 65 69 72 20 |tend wit|h their |
|00001850| 6f 77 6e 0a 58 6c 69 74 | 65 72 61 6c 20 66 75 6e |own.Xlit|eral fun|
|00001860| 63 74 69 6f 6e 2e 0a 58 | 0a 58 32 2e 32 09 44 61 |ction..X|.X2.2.Da|
|00001870| 74 61 20 64 65 73 63 72 | 69 70 74 69 6f 6e 0a 58 |ta descr|iption.X|
|00001880| 0a 58 41 73 20 74 68 65 | 20 46 6f 72 74 68 2d 38 |.XAs the| Forth-8|
|00001890| 33 20 53 74 61 6e 64 61 | 72 64 20 6c 61 63 6b 20 |3 Standa|rd lack |
|000018a0| 74 6f 6f 6c 73 20 66 6f | 72 20 64 65 73 63 72 69 |tools fo|r descri|
|000018b0| 70 74 69 6f 6e 20 6f 66 | 20 64 61 74 61 20 73 74 |ption of| data st|
|000018c0| 72 75 63 74 75 72 65 73 | 20 0a 58 54 49 4c 45 20 |ructures| .XTILE |
|000018d0| 46 6f 72 74 68 20 63 6f | 6e 74 61 69 6e 73 20 61 |Forth co|ntains a|
|000018e0| 20 66 61 69 72 6c 79 20 | 6c 61 72 67 65 20 6c 69 | fairly |large li|
|000018f0| 62 72 61 72 79 20 6f 66 | 20 74 6f 6f 6c 73 20 66 |brary of| tools f|
|00001900| 6f 72 20 74 68 69 73 20 | 70 75 72 70 6f 73 65 2e |or this |purpose.|
|00001910| 20 0a 58 54 68 65 73 65 | 20 61 72 65 20 64 65 73 | .XThese| are des|
|00001920| 63 72 69 62 65 64 20 6d | 6f 72 65 20 69 6e 20 64 |cribed m|ore in d|
|00001930| 65 74 61 69 6c 20 69 6e | 20 74 68 65 20 6e 65 78 |etail in| the nex|
|00001940| 74 20 73 65 63 74 69 6f | 6e 2e 0a 58 0a 58 32 2e |t sectio|n..X.X2.|
|00001950| 33 09 41 72 67 75 6d 65 | 6e 74 20 62 69 6e 64 69 |3.Argume|nt bindi|
|00001960| 6e 67 20 61 6e 64 20 6c | 6f 63 61 6c 20 76 61 72 |ng and l|ocal var|
|00001970| 69 61 62 6c 65 73 0a 58 | 0a 58 57 68 65 6e 20 77 |iables.X|.XWhen w|
|00001980| 72 69 74 69 6e 67 20 61 | 20 66 6f 72 74 68 20 66 |riting a| forth f|
|00001990| 75 6e 63 74 69 6f 6e 20 | 77 69 74 68 20 6d 61 6e |unction |with man|
|000019a0| 79 20 61 72 67 75 6d 65 | 6e 74 73 20 73 74 61 63 |y argume|nts stac|
|000019b0| 6b 20 73 68 75 66 66 6c | 69 6e 67 0a 58 62 65 63 |k shuffl|ing.Xbec|
|000019c0| 6f 6d 65 73 20 61 20 72 | 65 61 6c 20 70 61 69 6e |omes a r|eal pain|
|000019d0| 2e 20 41 72 67 75 6d 65 | 6e 74 20 62 69 6e 64 69 |. Argume|nt bindi|
|000019e0| 6e 67 20 61 6e 64 20 6c | 6f 63 61 6c 20 76 61 72 |ng and l|ocal var|
|000019f0| 69 61 62 6c 65 73 20 69 | 73 20 61 20 6e 69 63 65 |iables i|s a nice|
|00001a00| 0a 58 77 61 79 20 6f 75 | 74 20 6f 66 20 74 68 65 |.Xway ou|t of the|
|00001a10| 73 65 20 73 69 74 75 61 | 74 69 6f 6e 73 2e 20 41 |se situa|tions. A|
|00001a20| 6c 73 6f 20 66 6f 72 20 | 74 68 65 20 6e 65 77 2d |lso for |the new-|
|00001a30| 63 6f 6d 65 72 20 74 6f | 20 46 6f 72 74 68 20 74 |comer to| Forth t|
|00001a40| 68 69 73 0a 58 67 69 76 | 65 73 20 73 6f 6d 65 20 |his.Xgiv|es some |
|00001a50| 73 75 70 70 6f 72 74 20 | 74 6f 20 74 68 69 73 20 |support |to this |
|00001a60| 61 74 20 66 69 72 73 74 | 20 76 65 72 79 20 63 72 |at first| very cr|
|00001a70| 79 70 74 69 63 20 6c 61 | 6e 67 75 61 67 65 2e 20 |yptic la|nguage. |
|00001a80| 45 76 65 6e 0a 58 74 68 | 65 20 73 74 61 63 6b 20 |Even.Xth|e stack |
|00001a90| 66 75 6e 63 74 69 6f 6e | 20 6d 61 79 20 62 65 20 |function| may be |
|00001aa0| 72 65 77 72 69 74 74 65 | 6e 20 75 73 69 6e 67 20 |rewritte|n using |
|00001ab0| 74 68 69 73 20 6d 65 63 | 68 61 6e 69 73 6d 3a 0a |this mec|hanism:.|
|00001ac0| 58 0a 58 09 3a 20 32 64 | 72 6f 70 20 7b 20 61 20 |X.X.: 2d|rop { a |
|00001ad0| 62 20 7d 20 3b 0a 58 09 | 3a 20 32 73 77 61 70 20 |b } ;.X.|: 2swap |
|00001ae0| 7b 20 61 20 62 20 63 20 | 64 20 7d 20 63 20 64 20 |{ a b c |d } c d |
|00001af0| 61 20 62 20 20 3b 0a 58 | 09 3a 20 66 61 63 20 7b |a b ;.X|.: fac {|
|00001b00| 20 6e 20 7d 20 6e 20 30 | 3e 20 69 66 20 6e 20 31 | n } n 0|> if n 1|
|00001b10| 2d 20 72 65 63 75 72 73 | 65 20 6e 20 2a 20 65 6c |- recurs|e n * el|
|00001b20| 73 65 20 31 20 74 68 65 | 6e 20 3b 0a 58 0a 58 54 |se 1 the|n ;.X.XT|
|00001b30| 68 65 20 61 72 67 75 6d | 65 6e 74 20 66 72 61 6d |he argum|ent fram|
|00001b40| 65 20 69 73 20 63 72 65 | 61 74 65 64 20 6f 6e 20 |e is cre|ated on |
|00001b50| 74 6f 70 20 6f 66 20 74 | 68 65 20 70 61 72 61 6d |top of t|he param|
|00001b60| 65 74 65 72 20 73 74 61 | 63 6b 20 61 6e 64 20 69 |eter sta|ck and i|
|00001b70| 73 0a 58 64 69 73 70 6f | 73 65 64 20 77 68 65 6e |s.Xdispo|sed when|
|00001b80| 20 66 75 6e 63 74 69 6f | 6e 73 20 69 73 20 65 78 | functio|ns is ex|
|00001b90| 69 74 65 64 2e 20 54 68 | 69 73 20 69 6d 70 6c 65 |ited. Th|is imple|
|00001ba0| 6d 65 6e 74 61 74 69 6f | 6e 73 20 73 74 79 6c 65 |mentatio|ns style|
|00001bb0| 20 6f 66 0a 58 72 65 64 | 75 63 65 73 20 74 68 65 | of.Xred|uces the|
|00001bc0| 20 63 6f 73 74 20 6f 66 | 20 62 69 6e 64 69 6e 67 | cost of| binding|
|00001bd0| 20 61 73 20 6d 6f 73 74 | 20 66 75 6e 63 74 69 6f | as most| functio|
|00001be0| 6e 73 20 68 61 76 65 20 | 6d 6f 72 65 20 61 72 67 |ns have |more arg|
|00001bf0| 75 6d 65 6e 74 73 0a 58 | 74 68 65 6e 20 72 65 74 |uments.X|then ret|
|00001c00| 75 72 6e 20 76 61 6c 75 | 65 73 2e 20 41 20 6d 69 |urn valu|es. A mi|
|00001c10| 6e 69 6d 75 6d 20 6e 75 | 6d 62 65 72 20 6f 66 20 |nimum nu|mber of |
|00001c20| 64 61 74 61 20 65 6c 65 | 6d 65 6e 74 73 20 68 61 |data ele|ments ha|
|00001c30| 76 65 20 74 6f 20 62 65 | 0a 58 6d 6f 76 65 20 74 |ve to be|.Xmove t|
|00001c40| 6f 20 63 72 65 61 74 65 | 20 61 6e 64 20 6d 61 6e |o create| and man|
|00001c50| 61 67 65 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |age the |argument|
|00001c60| 20 66 72 61 6d 65 2e 0a | 58 0a 58 32 2e 34 20 09 | frame..|X.X2.4 .|
|00001c70| 45 78 63 65 70 74 69 6f | 6e 20 68 61 6e 64 6c 69 |Exceptio|n handli|
|00001c80| 6e 67 0a 58 0a 58 41 6e | 6f 74 68 65 72 20 65 78 |ng.X.XAn|other ex|
|00001c90| 74 65 6e 73 69 6f 6e 20 | 69 6e 20 54 49 4c 45 20 |tension |in TILE |
|00001ca0| 46 6f 72 74 68 20 69 73 | 20 65 78 63 65 70 74 69 |Forth is| excepti|
|00001cb0| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 20 77 69 74 68 |on handl|ing with|
|00001cc0| 20 6d 75 6c 74 69 70 6c | 65 0a 58 65 78 63 65 70 | multipl|e.Xexcep|
|00001cd0| 74 69 6f 6e 20 68 61 6e | 64 6c 69 6e 67 20 63 6f |tion han|dling co|
|00001ce0| 64 65 20 62 6c 6f 63 6b | 2e 20 54 68 65 20 73 79 |de block|. The sy|
|00001cf0| 6e 74 61 63 74 69 63 61 | 6c 20 73 74 72 75 63 74 |ntactica|l struct|
|00001d00| 75 72 65 20 69 73 20 76 | 65 72 79 0a 58 63 6c 6f |ure is v|ery.Xclo|
|00001d10| 73 65 20 74 6f 20 74 68 | 61 74 20 6f 66 20 41 64 |se to th|at of Ad|
|00001d20| 61 2c 20 69 2e 65 2e 2c | 20 61 6e 79 20 63 6f 6c |a, i.e.,| any col|
|00001d30| 6f 6e 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6d 61 |on defin|ition ma|
|00001d40| 79 20 63 6f 6e 74 61 69 | 6e 20 61 6e 20 65 72 72 |y contai|n an err|
|00001d50| 6f 72 0a 58 68 61 6e 64 | 6c 69 6e 67 20 73 65 63 |or.Xhand|ling sec|
|00001d60| 74 69 6f 6e 2e 20 53 68 | 6f 75 6c 64 20 61 6e 20 |tion. Sh|ould an |
|00001d70| 65 72 72 6f 72 20 6f 63 | 63 75 72 20 64 75 72 69 |error oc|cur duri|
|00001d80| 6e 67 20 74 68 65 20 65 | 78 65 63 75 74 69 6f 6e |ng the e|xecution|
|00001d90| 20 6f 66 20 74 68 65 0a | 58 66 75 6e 63 74 69 6f | of the.|Xfunctio|
|00001da0| 6e 20 74 68 65 20 73 74 | 61 63 6b 20 73 74 61 74 |n the st|ack stat|
|00001db0| 75 73 20 69 73 20 72 65 | 73 74 6f 72 65 20 74 6f |us is re|store to|
|00001dc0| 20 74 68 65 20 73 69 74 | 75 61 74 69 6f 6e 20 61 | the sit|uation a|
|00001dd0| 74 20 74 68 65 20 63 61 | 6c 6c 0a 58 6f 66 20 74 |t the ca|ll.Xof t|
|00001de0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 61 6e 64 20 |he funct|ion and |
|00001df0| 74 68 65 20 6c 61 73 74 | 65 73 74 20 65 78 63 65 |the last|est exce|
|00001e00| 70 74 69 6f 6e 20 62 6c | 6f 63 6b 20 69 73 20 65 |ption bl|ock is e|
|00001e10| 78 65 63 75 74 65 64 20 | 77 69 74 68 20 74 68 65 |xecuted |with the|
|00001e20| 20 0a 58 73 69 67 6e 61 | 6c 20 6f 72 20 65 78 63 | .Xsigna|l or exc|
|00001e30| 65 70 74 69 6f 6e 20 61 | 73 20 61 20 70 61 72 61 |eption a|s a para|
|00001e40| 6d 65 74 65 72 3b 0a 58 | 0a 58 09 65 78 63 65 70 |meter;.X|.X.excep|
|00001e50| 74 69 6f 6e 20 7a 65 72 | 6f 2d 64 69 76 69 64 65 |tion zer|o-divide|
|00001e60| 20 28 20 2d 2d 20 65 78 | 63 65 70 74 69 6f 6e 29 | ( -- ex|ception)|
|00001e70| 0a 58 0a 58 09 3a 20 64 | 69 76 20 28 20 78 20 79 |.X.X.: d|iv ( x y|
|00001e80| 20 2d 2d 20 7a 29 0a 58 | 20 20 20 20 20 20 20 20 | -- z).X| |
|00001e90| 20 20 2f 0a 58 09 65 78 | 63 65 70 74 69 6f 6e 3e | /.X.ex|ception>|
|00001ea0| 20 28 20 78 20 79 20 73 | 69 67 6e 61 6c 20 2d 2d | ( x y s|ignal --|
|00001eb0| 20 29 0a 58 09 20 20 64 | 72 6f 70 20 7a 65 72 6f | ).X. d|rop zero|
|00001ec0| 2d 64 69 76 69 64 65 20 | 72 61 69 73 65 0a 58 20 |-divide |raise.X |
|00001ed0| 20 20 20 20 20 20 20 3b | 0a 58 0a 58 45 72 72 6f | ;|.X.XErro|
|00001ee0| 72 20 73 69 74 75 61 74 | 69 6f 6e 73 20 6d 61 79 |r situat|ions may|
|00001ef0| 20 62 65 20 69 6e 64 69 | 63 61 74 65 64 20 75 73 | be indi|cated us|
|00001f00| 69 6e 67 20 61 6e 20 65 | 78 63 65 70 74 69 6f 6e |ing an e|xception|
|00001f10| 20 72 61 69 73 65 20 66 | 75 6e 63 74 69 6f 6e 2e | raise f|unction.|
|00001f20| 20 0a 58 4c 6f 77 20 6c | 65 76 65 6c 20 65 72 72 | .XLow l|evel err|
|00001f30| 6f 72 73 2c 20 73 75 63 | 68 20 61 73 20 7a 65 72 |ors, suc|h as zer|
|00001f40| 6f 20 64 69 76 69 73 69 | 6f 6e 2c 20 61 72 65 20 |o divisi|on, are |
|00001f50| 74 72 61 6e 73 66 6f 72 | 6d 65 64 20 74 6f 20 65 |transfor|med to e|
|00001f60| 78 63 65 70 74 69 6f 6e | 73 20 0a 58 69 6e 20 54 |xception|s .Xin T|
|00001f70| 49 4c 45 20 46 6f 72 74 | 68 2e 0a 58 0a 58 32 2e |ILE Fort|h..X.X2.|
|00001f80| 35 09 45 6e 74 72 79 20 | 76 69 73 69 62 69 6c 69 |5.Entry |visibili|
|00001f90| 74 79 20 61 6e 64 20 66 | 6f 72 77 61 72 64 20 64 |ty and f|orward d|
|00001fa0| 65 63 6c 61 72 61 74 69 | 6f 6e 0a 58 0a 58 4c 61 |eclarati|on.X.XLa|
|00001fb0| 73 74 2c 20 73 6f 6d 65 | 20 6f 66 20 74 68 65 20 |st, some| of the |
|00001fc0| 6c 65 73 73 20 73 69 67 | 6e 69 66 69 63 61 6e 74 |less sig|nificant|
|00001fd0| 20 65 78 74 65 6e 73 69 | 6f 6e 20 61 72 65 20 66 | extensi|on are f|
|00001fe0| 6f 72 77 61 72 64 20 64 | 65 63 6c 61 72 61 74 69 |orward d|eclarati|
|00001ff0| 6f 6e 0a 58 6f 66 20 65 | 6e 74 72 69 65 73 2c 20 |on.Xof e|ntries, |
|00002000| 68 69 64 64 65 6e 20 6f | 72 20 70 72 69 76 61 74 |hidden o|r privat|
|00002010| 65 20 65 6e 74 72 69 65 | 73 2c 20 61 6e 64 20 65 |e entrie|s, and e|
|00002020| 78 74 72 61 20 65 6e 74 | 72 79 20 6d 6f 64 65 73 |xtra ent|ry modes|
|00002030| 2e 20 46 6f 72 77 61 72 | 64 0a 58 64 65 63 6c 61 |. Forwar|d.Xdecla|
|00002040| 72 61 74 69 6f 6e 20 6f | 66 20 65 6e 74 72 69 65 |ration o|f entrie|
|00002050| 73 20 61 72 65 20 61 75 | 74 6f 6d 61 74 69 63 61 |s are au|tomatica|
|00002060| 6c 6c 79 20 62 6f 75 6e | 64 20 77 68 65 6e 20 74 |lly boun|d when t|
|00002070| 68 65 20 65 6e 74 72 79 | 20 69 73 20 6c 61 74 65 |he entry| is late|
|00002080| 72 0a 58 67 69 76 65 6e | 20 61 20 64 65 66 69 6e |r.Xgiven| a defin|
|00002090| 69 74 69 6f 6e 2e 20 53 | 68 6f 75 6c 64 20 61 20 |ition. S|hould a |
|000020a0| 62 69 6e 64 69 6e 67 20 | 6e 6f 74 20 65 78 69 73 |binding |not exis|
|000020b0| 74 20 61 74 20 72 75 6e | 2d 74 69 6d 65 20 61 6e |t at run|-time an|
|000020c0| 20 65 72 72 6f 72 0a 58 | 6d 65 73 73 61 67 65 20 | error.X|message |
|000020d0| 69 73 20 67 69 76 65 6e | 20 61 6e 64 20 74 68 65 |is given| and the|
|000020e0| 20 63 6f 6d 70 75 74 61 | 74 69 6f 6e 20 69 73 20 | computa|tion is |
|000020f0| 61 62 6f 72 74 65 64 2e | 0a 58 0a 58 09 66 6f 72 |aborted.|.X.X.for|
|00002100| 77 61 72 64 20 65 76 61 | 6c 20 28 20 2e 2e 2e 20 |ward eva|l ( ... |
|00002110| 29 0a 58 0a 58 09 3a 20 | 61 70 70 6c 79 20 28 20 |).X.X.: |apply ( |
|00002120| 2e 2e 2e 20 29 20 2e 2e | 2e 20 65 76 61 6c 20 2e |... ) ..|. eval .|
|00002130| 2e 2e 20 3b 0a 58 09 3a | 20 65 76 61 6c 20 28 20 |.. ;.X.:| eval ( |
|00002140| 2e 2e 2e 20 29 20 2e 2e | 2e 20 61 70 70 6c 79 20 |... ) ..|. apply |
|00002150| 2e 2e 2e 20 3b 0a 58 0a | 58 54 68 72 65 65 20 6e |... ;.X.|XThree n|
|00002160| 65 77 20 65 6e 74 72 79 | 20 6d 6f 64 65 73 20 68 |ew entry| modes h|
|00002170| 61 76 65 20 62 65 65 6e | 20 61 64 64 65 64 20 74 |ave been| added t|
|00002180| 6f 20 74 68 65 20 63 6c | 61 73 73 69 63 61 6c 20 |o the cl|assical |
|00002190| 66 6f 72 74 68 20 6d 6f | 64 65 6c 20 0a 58 28 69 |forth mo|del .X(i|
|000021a0| 6d 6d 65 64 69 61 74 65 | 29 2e 20 54 68 65 73 65 |mmediate|). These|
|000021b0| 20 61 6c 6c 6f 77 20 68 | 69 64 69 6e 67 20 6f 66 | allow h|iding of|
|000021c0| 20 65 6e 74 72 69 65 73 | 20 69 6e 20 64 69 66 66 | entries| in diff|
|000021d0| 65 72 65 6e 74 20 73 69 | 74 75 61 74 69 6f 6e 73 |erent si|tuations|
|000021e0| 2e 0a 58 54 68 65 20 66 | 69 72 73 74 20 74 77 6f |..XThe f|irst two|
|000021f0| 20 6d 61 72 6b 73 20 74 | 68 65 20 6c 61 73 74 20 | marks t|he last |
|00002200| 64 65 66 69 6e 65 64 20 | 77 6f 72 64 27 73 20 76 |defined |word's v|
|00002210| 69 73 69 62 69 6c 69 74 | 79 20 61 63 63 6f 72 64 |isibilit|y accord|
|00002220| 69 6e 67 20 74 6f 0a 58 | 61 6e 20 69 6e 74 65 72 |ing to.X|an inter|
|00002230| 70 72 65 74 65 72 20 73 | 74 61 74 65 2e 20 54 68 |preter s|tate. Th|
|00002240| 65 73 65 20 74 77 6f 20 | 6d 6f 64 69 66 69 65 72 |ese two |modifier|
|00002250| 73 20 61 72 65 20 63 61 | 6c 6c 65 64 20 22 63 6f |s are ca|lled "co|
|00002260| 6d 70 69 6c 61 74 69 6f | 6e 22 20 0a 58 61 6e 64 |mpilatio|n" .Xand|
|00002270| 20 22 65 78 65 63 75 74 | 69 6f 6e 22 20 61 6e 64 | "execut|ion" and|
|00002280| 20 61 72 65 20 75 73 65 | 64 20 61 73 20 22 69 6d | are use|d as "im|
|00002290| 6d 65 64 69 61 74 65 22 | 2e 20 41 20 77 6f 72 64 |mediate"|. A word|
|000022a0| 20 6c 69 6b 65 20 22 69 | 66 22 20 69 73 0a 58 22 | like "i|f" is.X"|
|000022b0| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 69 6d 6d 65 |compilat|ion imme|
|000022c0| 64 69 61 74 65 22 20 6d | 65 61 6e 69 6e 67 20 69 |diate" m|eaning i|
|000022d0| 74 20 69 73 20 76 69 73 | 69 62 6c 65 20 77 68 65 |t is vis|ible whe|
|000022e0| 6e 20 63 6f 6d 70 69 6c | 69 6e 67 20 61 6e 64 20 |n compil|ing and |
|000022f0| 0a 58 74 68 65 6e 20 61 | 6c 77 61 79 73 20 65 78 |.Xthen a|lways ex|
|00002300| 65 63 75 74 65 64 2e 20 | 0a 58 0a 58 09 63 6f 6d |ecuted. |.X.X.com|
|00002310| 70 69 6c 65 72 20 66 6f | 72 74 68 20 64 65 66 69 |piler fo|rth defi|
|00002320| 6e 69 74 69 6f 6e 73 0a | 58 0a 58 09 3a 20 69 66 |nitions.|X.X.: if|
|00002330| 20 28 20 2d 2d 20 29 20 | 63 6f 6d 70 69 6c 65 20 | ( -- ) |compile |
|00002340| 28 3f 62 72 61 6e 63 68 | 29 20 3e 6d 61 72 6b 20 |(?branch|) >mark |
|00002350| 3b 20 63 6f 6d 70 69 6c | 61 74 69 6f 6e 20 69 6d |; compil|ation im|
|00002360| 6d 65 64 69 61 74 65 0a | 58 0a 58 54 68 65 20 22 |mediate.|X.XThe "|
|00002370| 70 72 69 76 61 74 65 22 | 20 6d 6f 64 69 66 69 65 |private"| modifie|
|00002380| 72 20 69 73 20 73 6f 6d | 65 77 68 61 74 20 64 69 |r is som|ewhat di|
|00002390| 66 66 65 72 65 6e 74 2e | 20 49 74 20 63 6f 6e 63 |fferent.| It conc|
|000023a0| 65 72 6e 73 20 74 68 65 | 0a 58 76 69 73 69 62 69 |erns the|.Xvisibi|
|000023b0| 6c 69 74 79 20 61 63 72 | 6f 73 73 20 76 6f 63 61 |lity acr|oss voca|
|000023c0| 62 75 6c 61 72 69 65 73 | 20 28 6d 6f 64 75 6c 65 |bularies| (module|
|000023d0| 73 20 61 6e 64 20 74 79 | 70 65 73 29 2e 20 49 66 |s and ty|pes). If|
|000023e0| 20 61 20 77 6f 72 64 20 | 69 73 0a 58 6d 61 72 6b | a word |is.Xmark|
|000023f0| 65 64 20 61 73 20 22 70 | 72 69 76 61 74 65 22 20 |ed as "p|rivate" |
|00002400| 74 68 65 20 77 6f 72 64 | 20 69 73 20 6f 6e 6c 79 |the word| is only|
|00002410| 20 76 69 73 69 62 6c 65 | 20 77 68 65 6e 20 74 68 | visible| when th|
|00002420| 65 20 76 6f 63 61 62 75 | 6c 61 72 79 20 69 6e 20 |e vocabu|lary in |
|00002430| 0a 58 77 68 69 63 68 20 | 69 74 20 69 73 20 64 65 |.Xwhich |it is de|
|00002440| 66 69 6e 65 64 20 69 6e | 20 69 73 20 22 63 75 72 |fined in| is "cur|
|00002450| 72 65 6e 74 22 2e 20 54 | 68 69 73 20 69 73 20 76 |rent". T|his is v|
|00002460| 65 72 79 20 63 6c 6f 73 | 65 20 74 6f 20 74 68 65 |ery clos|e to the|
|00002470| 20 63 6f 6e 63 65 70 74 | 0a 58 6f 66 20 68 69 64 | concept|.Xof hid|
|00002480| 64 65 6e 20 69 6e 20 6d | 6f 64 75 6c 65 73 20 61 |den in m|odules a|
|00002490| 6e 64 20 70 61 63 6b 61 | 67 65 73 20 69 6e 20 4d |nd packa|ges in M|
|000024a0| 6f 64 75 6c 61 2d 32 20 | 61 6e 64 20 41 64 61 2e |odula-2 |and Ada.|
|000024b0| 0a 58 0a 58 09 34 20 66 | 69 65 6c 64 20 2b 6e 61 |.X.X.4 f|ield +na|
|000024c0| 6d 65 20 28 20 65 6e 74 | 72 79 20 2d 2d 20 70 74 |me ( ent|ry -- pt|
|000024d0| 72 29 20 70 72 69 76 61 | 74 65 0a 58 0a 58 54 68 |r) priva|te.X.XTh|
|000024e0| 65 20 61 62 6f 76 65 20 | 64 65 66 69 6e 69 74 69 |e above |definiti|
|000024f0| 6f 6e 20 77 69 6c 6c 20 | 6f 6e 6c 79 20 62 65 20 |on will |only be |
|00002500| 76 69 73 69 62 6c 65 20 | 69 6e 20 74 68 65 20 76 |visible |in the v|
|00002510| 6f 63 61 62 75 6c 61 72 | 79 20 69 74 20 77 61 73 |ocabular|y it was|
|00002520| 20 0a 58 64 65 66 69 6e | 65 64 2e 20 54 68 65 20 | .Xdefin|ed. The |
|00002530| 22 70 72 69 76 61 74 65 | 22 20 6d 6f 64 69 66 69 |"private|" modifi|
|00002540| 65 72 20 69 73 20 75 73 | 65 66 75 6c 20 74 6f 20 |er is us|eful to |
|00002550| 68 65 6c 70 20 69 73 6f | 6c 61 74 65 20 69 6d 70 |help iso|late imp|
|00002560| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 0a 58 64 65 70 |lementat|ion.Xdep|
|00002570| 65 6e 64 65 6e 63 69 65 | 73 20 61 6e 64 20 72 65 |endencie|s and re|
|00002580| 64 75 63 65 20 74 68 65 | 20 6e 61 6d 65 20 73 70 |duce the| name sp|
|00002590| 61 63 65 20 77 68 69 63 | 68 20 61 6c 73 6f 20 69 |ace whic|h also i|
|000025a0| 6e 63 72 65 61 73 65 73 | 20 63 6f 6d 70 69 6c 61 |ncreases| compila|
|000025b0| 74 69 6f 6e 0a 58 73 70 | 65 65 64 2e 0a 58 0a 58 |tion.Xsp|eed..X.X|
|000025c0| 0a 58 33 2e 20 09 53 4f | 55 52 43 45 20 4c 49 42 |.X3. .SO|URCE LIB|
|000025d0| 52 41 52 59 0a 58 0a 58 | 54 68 65 20 54 49 4c 45 |RARY.X.X|The TILE|
|000025e0| 20 46 6f 72 74 68 20 70 | 72 6f 67 72 61 6d 6d 69 | Forth p|rogrammi|
|000025f0| 6e 67 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 63 |ng envir|onment c|
|00002600| 6f 6e 74 61 69 6e 73 20 | 61 20 6e 75 6d 62 65 72 |ontains |a number|
|00002610| 20 6f 66 20 74 6f 6f 6c | 73 20 74 6f 20 0a 58 6d | of tool|s to .Xm|
|00002620| 61 6b 65 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |ake prog|ramming |
|00002630| 69 6e 20 46 6f 72 74 68 | 20 61 20 62 69 74 20 65 |in Forth| a bit e|
|00002640| 61 73 69 65 72 2e 20 49 | 66 20 79 6f 75 20 68 61 |asier. I|f you ha|
|00002650| 76 65 20 47 4e 55 20 45 | 6d 61 63 73 2c 20 54 49 |ve GNU E|macs, TI|
|00002660| 4c 45 20 0a 58 46 6f 72 | 74 68 20 6d 61 79 20 72 |LE .XFor|th may r|
|00002670| 75 6e 20 69 6e 20 61 20 | 73 70 65 63 69 61 6c 69 |un in a |speciali|
|00002680| 7a 65 64 20 66 6f 72 74 | 68 2d 6d 6f 64 65 2e 20 |zed fort|h-mode. |
|00002690| 54 68 69 73 20 6d 6f 64 | 65 20 73 75 70 70 6f 72 |This mod|e suppor|
|000026a0| 74 73 20 61 75 74 6f 6d | 61 74 69 63 20 0a 58 70 |ts autom|atic .Xp|
|000026b0| 72 6f 67 72 61 6d 20 69 | 6e 64 65 6e 74 61 74 69 |rogram i|ndentati|
|000026c0| 6f 6e 20 28 70 72 65 74 | 74 79 20 70 72 69 6e 74 |on (pret|ty print|
|000026d0| 69 6e 67 29 2c 20 64 6f | 63 75 6d 65 6e 74 61 74 |ing), do|cumentat|
|000026e0| 69 6f 6e 20 73 65 61 72 | 63 68 2c 20 61 6e 64 20 |ion sear|ch, and |
|000026f0| 0a 58 69 6e 74 65 72 61 | 63 74 69 76 65 20 61 6e |.Xintera|ctive an|
|00002700| 64 20 69 6e 63 72 65 6d | 65 6e 74 61 6c 20 70 72 |d increm|ental pr|
|00002710| 6f 67 72 61 6d 20 64 65 | 76 65 6c 6f 70 6d 65 6e |ogram de|velopmen|
|00002720| 74 2c 20 6f 72 20 22 65 | 64 69 74 2d 63 6f 6d 70 |t, or "e|dit-comp|
|00002730| 69 6c 65 2d 74 65 73 74 | 22 20 0a 58 73 74 79 6c |ile-test|" .Xstyl|
|00002740| 65 20 6f 66 20 70 72 6f | 67 72 61 6d 20 64 65 76 |e of pro|gram dev|
|00002750| 65 6c 6f 70 6d 65 6e 74 | 2e 0a 58 0a 58 54 6f 20 |elopment|..X.XTo |
|00002760| 61 69 64 20 70 72 6f 67 | 72 61 6d 20 64 65 76 65 |aid prog|ram deve|
|00002770| 6c 6f 70 6d 65 6e 74 20 | 74 68 65 72 65 20 69 73 |lopment |there is|
|00002780| 20 61 6c 73 6f 20 61 20 | 73 6f 75 72 63 65 20 63 | also a |source c|
|00002790| 6f 64 65 20 6c 69 62 72 | 61 72 79 20 77 69 74 68 |ode libr|ary with|
|000027a0| 0a 58 6d 61 6e 75 61 6c | 20 70 61 67 65 73 2c 20 |.Xmanual| pages, |
|000027b0| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 28 67 |document|ation (g|
|000027c0| 6c 6f 73 73 61 72 79 29 | 2c 20 61 6e 64 20 74 65 |lossary)|, and te|
|000027d0| 73 74 20 61 6e 64 20 65 | 78 61 6d 70 6c 65 20 63 |st and e|xample c|
|000027e0| 6f 64 65 2e 0a 58 4d 6f | 73 74 20 6f 66 20 74 68 |ode..XMo|st of th|
|000027f0| 65 20 73 6f 75 72 63 65 | 20 63 6f 64 65 20 61 72 |e source| code ar|
|00002800| 65 20 64 61 74 61 20 6d | 6f 64 65 6c 69 6e 67 20 |e data m|odeling |
|00002810| 74 6f 6f 6c 73 2e 20 49 | 6e 20 70 72 69 6e 63 69 |tools. I|n princi|
|00002820| 70 6c 65 2c 20 66 72 6f | 6d 20 0a 58 62 69 74 20 |ple, fro|m .Xbit |
|00002830| 66 69 65 6c 64 20 64 65 | 66 69 6e 69 74 69 6f 6e |field de|finition|
|00002840| 20 74 6f 20 6f 62 6a 65 | 63 74 20 6f 72 69 65 6e | to obje|ct orien|
|00002850| 74 65 64 20 73 74 72 75 | 63 74 75 72 65 73 20 61 |ted stru|ctures a|
|00002860| 72 65 20 61 76 61 69 6c | 61 62 6c 65 2e 20 54 68 |re avail|able. Th|
|00002870| 65 20 0a 58 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |e .Xsour|ce code |
|00002880| 6c 69 62 72 61 72 79 20 | 61 6c 73 6f 20 63 6f 6e |library |also con|
|00002890| 74 61 69 6e 73 20 64 65 | 62 75 67 67 69 6e 67 20 |tains de|bugging |
|000028a0| 74 6f 6f 6c 73 20 66 6f | 72 20 74 72 61 63 69 6e |tools fo|r tracin|
|000028b0| 67 2c 20 62 72 65 61 6b | 2d 0a 58 70 6f 69 6e 74 |g, break|-.Xpoint|
|000028c0| 27 69 6e 67 20 61 6e 64 | 20 70 72 6f 66 69 6c 69 |'ing and| profili|
|000028d0| 6e 67 20 6f 66 20 70 72 | 6f 67 72 61 6d 73 2e 20 |ng of pr|ograms. |
|000028e0| 0a 58 0a 58 54 68 65 20 | 66 69 72 73 74 20 6c 65 |.X.XThe |first le|
|000028f0| 76 65 6c 20 6f 66 20 64 | 61 74 61 20 6d 6f 64 65 |vel of d|ata mode|
|00002900| 6c 69 6e 67 20 74 6f 6f | 6c 73 20 61 72 65 20 6d |ling too|ls are m|
|00002910| 6f 64 75 6c 65 73 20 66 | 6f 72 20 64 65 73 63 72 |odules f|or descr|
|00002920| 69 62 69 6e 67 3b 0a 58 | 31 29 20 62 69 74 20 66 |ibing;.X|1) bit f|
|00002930| 69 65 6c 64 73 2c 20 32 | 29 20 73 74 72 75 63 74 |ields, 2|) struct|
|00002940| 75 72 65 73 20 28 72 65 | 63 6f 72 64 73 29 2c 20 |ures (re|cords), |
|00002950| 33 29 20 61 67 67 72 65 | 67 61 74 65 73 20 6f 66 |3) aggre|gates of|
|00002960| 20 64 61 74 61 20 0a 58 | 28 76 65 63 74 6f 72 73 | data .X|(vectors|
|00002970| 2c 20 73 74 61 63 6b 73 | 2c 20 62 75 66 66 65 72 |, stacks|, buffer|
|00002980| 73 2c 20 65 74 63 29 2c | 20 61 6e 64 20 34 29 20 |s, etc),| and 4) |
|00002990| 68 69 67 68 20 6c 65 76 | 65 6c 20 64 61 74 61 20 |high lev|el data |
|000029a0| 6f 62 6a 65 63 74 73 0a | 58 28 6c 69 73 74 73 2c |objects.|X(lists,|
|000029b0| 20 73 65 74 73 2c 20 65 | 74 63 29 2e 0a 58 0a 58 | sets, e|tc)..X.X|
|000029c0| 54 68 65 20 6e 65 78 74 | 20 6c 65 76 65 6c 20 6f |The next| level o|
|000029d0| 66 20 74 6f 6f 6c 73 20 | 61 72 65 20 73 6f 6d 65 |f tools |are some|
|000029e0| 20 74 6f 6f 6c 73 20 66 | 6f 72 20 68 69 67 68 20 | tools f|or high |
|000029f0| 6c 65 76 65 6c 20 73 79 | 6e 74 61 63 74 69 63 20 |level sy|ntactic |
|00002a00| 73 75 67 61 72 0a 58 66 | 6f 72 20 6d 75 6c 74 69 |sugar.Xf|or multi|
|00002a10| 2d 74 61 73 6b 69 6e 67 | 20 63 6f 6e 63 65 70 74 |-tasking| concept|
|00002a20| 73 20 28 73 65 6d 61 70 | 68 6f 72 65 73 2c 20 63 |s (semap|hores, c|
|00002a30| 68 61 6e 6e 65 6c 73 2c | 20 65 74 63 29 2c 20 66 |hannels,| etc), f|
|00002a40| 69 6e 69 74 65 20 73 74 | 61 74 65 0a 58 6d 61 63 |inite st|ate.Xmac|
|00002a50| 68 69 6e 65 73 20 28 46 | 53 4d 29 2c 20 61 6e 6f |hines (F|SM), ano|
|00002a60| 6e 79 6d 6f 75 73 20 63 | 6f 64 65 20 62 6c 6f 63 |nymous c|ode bloc|
|00002a70| 6b 20 28 62 6c 6f 63 6b | 73 29 2c 20 61 20 67 65 |k (block|s), a ge|
|00002a80| 6e 65 72 61 6c 20 74 6f | 70 20 64 6f 77 6e 20 70 |neral to|p down p|
|00002a90| 61 72 73 65 72 0a 58 77 | 69 74 68 20 62 61 63 6b |arser.Xw|ith back|
|00002aa0| 74 72 61 63 6b 20 61 6e | 64 20 73 65 6d 61 6e 74 |track an|d semant|
|00002ab0| 69 63 20 62 69 6e 64 69 | 6e 67 2c 20 61 6e 64 20 |ic bindi|ng, and |
|00002ac0| 61 20 73 69 6d 75 6c 61 | 74 69 6f 6e 20 70 61 63 |a simula|tion pac|
|00002ad0| 6b 61 67 65 2e 20 54 68 | 65 20 73 6f 75 72 63 65 |kage. Th|e source|
|00002ae0| 0a 58 6c 69 62 72 61 72 | 79 20 77 69 6c 6c 20 62 |.Xlibrar|y will b|
|00002af0| 65 20 65 78 74 65 6e 64 | 65 64 20 64 75 72 69 6e |e extend|ed durin|
|00002b00| 67 20 74 68 65 20 63 6f | 6d 69 6e 67 20 72 65 6c |g the co|ming rel|
|00002b10| 65 61 73 65 73 2e 0a 58 | 0a 58 0a 58 34 2e 20 09 |eases..X|.X.X4. .|
|00002b20| 50 52 4f 47 52 41 4d 4d | 49 4e 47 20 53 54 59 4c |PROGRAMM|ING STYL|
|00002b30| 45 0a 58 0a 58 41 20 73 | 6f 75 72 63 65 20 63 6f |E.X.XA s|ource co|
|00002b40| 64 65 20 6d 6f 64 75 6c | 65 20 68 61 73 2c 20 69 |de modul|e has, i|
|00002b50| 6e 20 67 65 6e 65 72 61 | 6c 2c 20 74 68 65 20 66 |n genera|l, the f|
|00002b60| 6f 6c 6c 6f 77 69 6e 67 | 20 73 74 72 75 63 74 75 |ollowing| structu|
|00002b70| 72 65 3b 20 74 68 65 20 | 0a 58 66 69 72 73 74 20 |re; the |.Xfirst |
|00002b80| 73 65 63 74 69 6f 6e 20 | 69 6e 63 6c 75 64 65 73 |section |includes|
|00002b90| 20 61 6e 79 20 6d 6f 64 | 75 6c 65 73 20 6e 65 65 | any mod|ules nee|
|00002ba0| 64 65 64 20 28 74 68 65 | 73 65 20 61 72 65 20 6f |ded (the|se are o|
|00002bb0| 6e 6c 79 20 6c 6f 61 64 | 65 64 20 6f 6e 63 65 29 |nly load|ed once)|
|00002bc0| 2e 0a 58 53 65 63 6f 6e | 64 20 66 6f 6c 6c 6f 77 |..XSecon|d follow|
|00002bd0| 73 20 67 6c 6f 62 61 6c | 20 64 65 66 69 6e 69 74 |s global| definit|
|00002be0| 69 6f 6e 73 20 66 6f 72 | 20 74 68 65 20 6d 6f 64 |ions for| the mod|
|00002bf0| 75 6c 65 2e 20 4e 6f 72 | 6d 61 6c 6c 79 20 74 68 |ule. Nor|mally th|
|00002c00| 69 73 20 69 73 20 0a 58 | 61 20 76 6f 63 61 62 75 |is is .X|a vocabu|
|00002c10| 6c 61 72 79 20 66 6f 72 | 20 74 68 65 20 6d 6f 64 |lary for| the mod|
|00002c20| 75 6c 65 2e 20 54 68 69 | 72 64 20 63 6f 6d 65 73 |ule. Thi|rd comes|
|00002c30| 20 74 68 65 20 73 65 61 | 72 63 68 20 63 68 61 69 | the sea|rch chai|
|00002c40| 6e 20 74 6f 20 62 65 20 | 75 73 65 64 0a 58 74 68 |n to be |used.Xth|
|00002c50| 72 6f 75 67 68 6f 75 74 | 20 74 68 65 20 6d 6f 64 |roughout| the mod|
|00002c60| 75 6c 65 2e 20 49 74 20 | 69 73 20 69 6d 70 6f 72 |ule. It |is impor|
|00002c70| 74 61 6e 74 20 6e 6f 74 | 20 74 6f 20 63 68 61 6e |tant not| to chan|
|00002c80| 67 65 20 74 68 65 20 73 | 65 61 72 63 68 20 6f 72 |ge the s|earch or|
|00002c90| 64 65 72 0a 58 61 73 20 | 31 29 20 69 74 20 62 65 |der.Xas |1) it be|
|00002ca0| 63 6f 6d 65 73 20 64 69 | 66 66 69 63 75 6c 74 20 |comes di|fficult |
|00002cb0| 66 6f 72 20 61 20 72 65 | 61 64 65 72 20 74 6f 20 |for a re|ader to |
|00002cc0| 75 6e 64 65 72 73 74 61 | 6e 64 20 74 68 65 20 63 |understa|nd the c|
|00002cd0| 6f 64 65 2c 20 32 29 0a | 58 61 6e 79 20 63 68 61 |ode, 2).|Xany cha|
|00002ce0| 6e 67 65 20 69 6e 20 74 | 68 65 20 73 65 61 72 63 |nge in t|he searc|
|00002cf0| 68 20 63 68 61 69 6e 20 | 66 6c 75 73 68 65 73 20 |h chain |flushes |
|00002d00| 74 68 65 20 69 6e 74 65 | 72 6e 61 6c 20 6c 6f 6f |the inte|rnal loo|
|00002d10| 6b 75 70 20 63 61 63 68 | 65 0a 58 69 6e 20 54 49 |kup cach|e.Xin TI|
|00002d20| 4c 45 20 46 6f 72 74 68 | 20 61 6e 64 20 72 65 64 |LE Forth| and red|
|00002d30| 75 63 65 73 20 63 6f 6d | 70 69 6c 61 74 69 6f 6e |uces com|pilation|
|00002d40| 20 73 70 65 65 64 2e 0a | 58 0a 58 09 2e 28 20 4c | speed..|X.X..( L|
|00002d50| 6f 61 64 69 6e 67 20 74 | 68 65 20 4c 69 62 72 61 |oading t|he Libra|
|00002d60| 72 79 2e 2e 2e 29 20 63 | 72 0a 58 0a 58 09 23 69 |ry...) c|r.X.X.#i|
|00002d70| 6e 63 6c 75 64 65 20 73 | 6f 6d 65 4c 69 62 72 61 |nclude s|omeLibra|
|00002d80| 72 79 2e 66 38 33 0a 58 | 09 2e 2e 2e 0a 58 0a 58 |ry.f83.X|.....X.X|
|00002d90| 09 28 20 47 6c 6f 62 61 | 6c 20 64 61 74 61 20 61 |.( Globa|l data a|
|00002da0| 6e 64 20 64 65 66 69 6e | 69 74 69 6f 6e 73 29 0a |nd defin|itions).|
|00002db0| 58 0a 58 09 3a 20 73 6f | 6d 65 47 6c 6f 62 61 6c |X.X.: so|meGlobal|
|00002dc0| 44 65 66 69 6e 69 74 69 | 6f 6e 73 20 28 20 2d 2d |Definiti|ons ( --|
|00002dd0| 20 29 20 2e 2e 2e 20 3b | 0a 58 0a 58 09 76 6f 63 | ) ... ;|.X.X.voc|
|00002de0| 61 62 75 6c 61 72 79 20 | 74 68 65 4c 69 62 72 61 |abulary |theLibra|
|00002df0| 72 79 0a 58 0a 58 09 73 | 6f 6d 65 4c 69 62 72 61 |ry.X.X.s|omeLibra|
|00002e00| 72 79 20 2e 2e 2e 20 74 | 68 65 4c 69 62 72 61 72 |ry ... t|heLibrar|
|00002e10| 79 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 0a 58 0a |y defini|tions.X.|
|00002e20| 58 09 28 20 4c 6f 63 61 | 6c 20 64 61 74 61 20 61 |X.( Loca|l data a|
|00002e30| 6e 64 20 64 65 66 69 6e | 69 74 69 6f 6e 73 29 0a |nd defin|itions).|
|00002e40| 58 0a 58 09 3a 20 73 6f | 6d 65 50 72 69 76 61 74 |X.X.: so|mePrivat|
|00002e50| 65 44 65 66 69 6e 69 74 | 69 6f 6e 73 20 28 20 2d |eDefinit|ions ( -|
|00002e60| 2d 20 29 20 2e 2e 2e 20 | 3b 20 70 72 69 76 61 74 |- ) ... |; privat|
|00002e70| 65 0a 58 09 2e 2e 2e 0a | 58 09 3a 20 73 6f 6d 65 |e.X.....|X.: some|
|00002e80| 44 65 66 69 6e 69 74 69 | 6f 6e 73 20 28 20 2d 2d |Definiti|ons ( --|
|00002e90| 20 29 20 2e 2e 2e 20 3b | 20 0a 58 0a 58 09 66 6f | ) ... ;| .X.X.fo|
|00002ea0| 72 74 68 20 6f 6e 6c 79 | 0a 58 0a 58 54 6f 20 63 |rth only|.X.XTo c|
|00002eb0| 72 65 61 74 65 20 6c 65 | 78 69 63 61 6c 20 6c 65 |reate le|xical le|
|00002ec0| 76 65 6c 73 20 77 69 74 | 68 69 6e 20 74 68 65 20 |vels wit|hin the |
|00002ed0| 73 61 6d 65 20 76 6f 63 | 61 62 75 6c 61 72 79 20 |same voc|abulary |
|00002ee0| 74 68 65 20 77 6f 72 64 | 20 22 72 65 73 74 6f 72 |the word| "restor|
|00002ef0| 65 22 20 0a 58 6d 61 79 | 20 62 65 20 75 73 65 64 |e" .Xmay| be used|
|00002f00| 2e 20 49 74 20 73 74 6f | 72 65 73 20 74 68 65 20 |. It sto|res the |
|00002f10| 76 6f 63 61 62 75 6c 61 | 72 79 20 70 6f 69 6e 74 |vocabula|ry point|
|00002f20| 65 72 20 74 6f 20 74 68 | 65 20 67 69 76 65 6e 20 |er to th|e given |
|00002f30| 65 6e 74 72 79 20 61 6e | 64 20 0a 58 74 68 75 73 |entry an|d .Xthus|
|00002f40| 20 68 69 64 65 73 20 74 | 68 65 20 77 6f 72 64 73 | hides t|he words|
|00002f50| 20 64 65 66 69 6e 65 64 | 20 61 66 74 65 72 20 74 | defined| after t|
|00002f60| 68 69 73 20 65 6e 74 72 | 79 2e 20 54 68 65 20 77 |his entr|y. The w|
|00002f70| 6f 72 64 20 22 72 65 73 | 74 6f 72 65 22 20 68 61 |ord "res|tore" ha|
|00002f80| 73 20 0a 58 6d 75 63 68 | 20 74 68 65 20 73 61 6d |s .Xmuch| the sam|
|00002f90| 65 20 61 63 74 69 6f 6e | 20 61 73 20 22 66 6f 72 |e action| as "for|
|00002fa0| 67 65 74 22 20 62 75 74 | 20 77 69 74 68 6f 75 74 |get" but| without|
|00002fb0| 20 70 75 74 74 69 6e 67 | 20 62 61 63 6b 20 74 68 | putting| back th|
|00002fc0| 65 20 64 69 63 74 69 6f | 6e 61 72 79 20 0a 58 70 |e dictio|nary .Xp|
|00002fd0| 6f 69 6e 74 65 72 2e 0a | 58 0a 58 0a 58 35 2e 09 |ointer..|X.X.X5..|
|00002fe0| 53 4f 55 52 43 45 20 46 | 49 4c 45 53 0a 58 0a 58 |SOURCE F|ILES.X.X|
|00002ff0| 54 68 65 20 54 49 4c 45 | 20 46 6f 72 74 68 20 73 |The TILE| Forth s|
|00003000| 6f 75 72 63 65 20 69 73 | 20 62 72 6f 6b 65 6e 20 |ource is| broken |
|00003010| 64 6f 77 6e 20 69 6e 74 | 6f 20 74 68 65 20 66 6f |down int|o the fo|
|00003020| 6c 6c 6f 77 69 6e 67 20 | 66 69 6c 65 73 3a 0a 58 |llowing |files:.X|
|00003030| 0a 58 52 45 41 44 4d 45 | 0a 58 20 20 20 54 68 69 |.XREADME|.X Thi|
|00003040| 73 20 73 68 6f 72 74 20 | 64 6f 63 75 6d 65 6e 74 |s short |document|
|00003050| 61 74 69 6f 6e 20 6f 66 | 20 54 49 4c 45 2e 0a 58 |ation of| TILE..X|
|00003060| 0a 58 43 4f 50 59 49 4e | 47 0a 58 20 20 20 54 68 |.XCOPYIN|G.X Th|
|00003070| 65 20 47 4e 55 20 47 65 | 6e 65 72 61 6c 20 50 75 |e GNU Ge|neral Pu|
|00003080| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 2e 0a 58 0a |blic Lic|ense..X.|
|00003090| 58 49 4e 53 54 41 4c 4c | 0a 58 20 20 20 53 6f 6d |XINSTALL|.X Som|
|000030a0| 65 20 68 65 6c 70 20 6f | 6e 20 68 6f 77 20 74 6f |e help o|n how to|
|000030b0| 20 69 6e 73 74 61 6c 6c | 20 54 49 4c 45 20 46 6f | install| TILE Fo|
|000030c0| 72 74 68 2e 0a 58 0a 58 | 50 4f 52 54 49 4e 47 0a |rth..X.X|PORTING.|
|000030d0| 58 20 20 20 53 6f 6d 65 | 20 68 65 6c 70 20 6f 6e |X Some| help on|
|000030e0| 20 68 6f 77 20 74 6f 20 | 70 6f 72 74 20 54 49 4c | how to |port TIL|
|000030f0| 45 20 46 6f 72 74 68 20 | 61 6e 64 20 74 79 70 69 |E Forth |and typi|
|00003100| 63 61 6c 20 70 72 6f 62 | 6c 65 6d 73 0a 58 0a 58 |cal prob|lems.X.X|
|00003110| 4d 61 6b 65 66 69 6c 65 | 0a 58 20 20 20 41 6c 6c |Makefile|.X All|
|00003120| 6f 77 73 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ows a nu|mber of |
|00003130| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 73 74 79 6c |compilat|ion styl|
|00003140| 65 73 20 66 6f 72 20 64 | 65 62 75 67 67 69 6e 67 |es for d|ebugging|
|00003150| 2c 20 70 72 6f 66 69 6c | 69 6e 67 2c 20 0a 58 20 |, profil|ing, .X |
|00003160| 20 20 73 68 61 72 69 6e | 67 20 65 74 63 2e 20 4e | sharin|g etc. N|
|00003170| 65 77 20 6d 61 63 68 69 | 6e 65 73 20 61 6e 64 20 |ew machi|nes and |
|00003180| 63 6f 6e 64 69 74 69 6f | 6e 61 6c 20 63 6f 6d 70 |conditio|nal comp|
|00003190| 69 6c 61 74 69 6f 6e 20 | 73 79 6d 62 6f 6c 73 20 |ilation |symbols |
|000031a0| 61 72 65 20 0a 58 20 20 | 20 61 64 64 65 64 20 68 |are .X | added h|
|000031b0| 65 72 65 2e 0a 58 0a 58 | 73 72 63 0a 58 20 20 54 |ere..X.X|src.X T|
|000031c0| 68 65 20 43 20 73 6f 75 | 72 63 65 20 6c 69 62 72 |he C sou|rce libr|
|000031d0| 61 72 79 20 77 69 74 68 | 20 74 68 65 20 6b 65 72 |ary with| the ker|
|000031e0| 6e 65 6c 20 63 6f 64 65 | 20 61 6e 64 20 47 4e 55 |nel code| and GNU|
|000031f0| 20 45 6d 61 63 73 20 66 | 6f 72 74 68 2d 6d 6f 64 | Emacs f|orth-mod|
|00003200| 65 2e 0a 58 0a 58 6c 69 | 62 0a 58 20 20 20 54 68 |e..X.Xli|b.X Th|
|00003210| 65 20 46 6f 72 74 68 2d | 38 33 20 73 6f 75 72 63 |e Forth-|83 sourc|
|00003220| 65 20 6c 69 62 72 61 72 | 79 20 66 6f 72 20 64 61 |e librar|y for da|
|00003230| 74 61 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 61 |ta descr|iption a|
|00003240| 6e 64 20 6d 61 6e 61 67 | 65 6d 65 6e 74 2c 20 0a |nd manag|ement, .|
|00003250| 58 20 20 20 68 69 67 68 | 20 6c 65 76 65 6c 20 74 |X high| level t|
|00003260| 61 73 6b 69 6e 67 2c 20 | 65 74 63 2e 0a 58 0a 58 |asking, |etc..X.X|
|00003270| 74 73 74 0a 58 20 20 20 | 54 65 73 74 20 66 69 6c |tst.X |Test fil|
|00003280| 65 20 66 6f 72 20 65 61 | 63 68 20 46 6f 72 74 68 |e for ea|ch Forth|
|00003290| 2d 38 33 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |-83 sour|ce code |
|000032a0| 66 69 6c 65 20 61 6e 64 | 20 61 20 73 65 74 20 6f |file and| a set o|
|000032b0| 66 20 62 65 6e 63 68 6d | 61 72 6b 73 2e 0a 58 0a |f benchm|arks..X.|
|000032c0| 58 6d 61 6e 0a 58 20 20 | 20 4d 61 6e 75 61 6c 20 |Xman.X | Manual |
|000032d0| 70 61 67 65 73 20 66 6f | 72 20 74 68 65 20 54 49 |pages fo|r the TI|
|000032e0| 4c 45 20 46 6f 72 74 68 | 20 43 20 6b 65 72 6e 65 |LE Forth| C kerne|
|000032f0| 6c 20 61 6e 64 20 46 6f | 72 74 68 2d 38 33 20 73 |l and Fo|rth-83 s|
|00003300| 6f 75 72 63 65 20 63 6f | 64 65 20 0a 58 20 20 20 |ource co|de .X |
|00003310| 6c 69 62 72 61 72 79 2e | 0a 58 0a 58 64 6f 63 0a |library.|.X.Xdoc.|
|00003320| 58 20 20 20 44 6f 63 75 | 6d 65 6e 74 61 74 69 6f |X Docu|mentatio|
|00003330| 6e 20 61 6e 64 20 67 6c | 6f 73 73 61 72 69 65 73 |n and gl|ossaries|
|00003340| 20 66 6f 72 20 65 61 63 | 68 20 73 6f 75 72 63 65 | for eac|h source|
|00003350| 20 63 6f 64 65 20 66 69 | 6c 65 20 61 6e 64 20 6b | code fi|le and k|
|00003360| 65 72 6e 65 6c 0a 58 20 | 20 20 76 6f 63 61 62 75 |ernel.X | vocabu|
|00003370| 6c 61 72 69 65 73 2e 0a | 58 0a 58 62 69 6e 0a 58 |laries..|X.Xbin.X|
|00003380| 20 20 20 55 74 69 6c 69 | 74 79 20 63 6f 6d 6d 61 | Utili|ty comma|
|00003390| 6e 64 73 20 61 6e 64 20 | 74 68 65 20 54 49 4c 45 |nds and |the TILE|
|000033a0| 20 66 6f 72 74 68 20 63 | 6f 6d 70 69 6c 65 72 2f | forth c|ompiler/|
|000033b0| 69 6e 74 65 72 70 72 65 | 74 65 72 2e 0a 58 0a 58 |interpre|ter..X.X|
|000033c0| 0a 58 0a 58 36 2e 09 43 | 4f 4e 46 49 47 55 52 41 |.X.X6..C|ONFIGURA|
|000033d0| 54 49 4f 4e 0a 58 0a 58 | 54 49 4c 45 20 66 6f 72 |TION.X.X|TILE for|
|000033e0| 74 68 20 69 73 20 74 61 | 72 67 65 74 65 64 20 66 |th is ta|rgeted f|
|000033f0| 6f 72 20 33 32 2d 62 69 | 74 20 6d 61 63 68 69 6e |or 32-bi|t machin|
|00003400| 65 73 20 61 6e 64 20 6e | 6f 20 73 70 65 63 69 61 |es and n|o specia|
|00003410| 6c 20 61 69 64 20 69 73 | 20 0a 58 61 76 61 69 6c |l aid is| .Xavail|
|00003420| 61 62 6c 65 20 74 6f 20 | 61 6c 6c 6f 77 20 69 74 |able to |allow it|
|00003430| 20 74 6f 20 62 65 20 63 | 6f 6d 70 69 6c 65 64 20 | to be c|ompiled |
|00003440| 66 6f 72 20 6f 74 68 65 | 72 20 62 69 74 2d 77 69 |for othe|r bit-wi|
|00003450| 64 74 68 73 2e 20 54 68 | 65 20 0a 58 63 6f 6e 66 |dths. Th|e .Xconf|
|00003460| 69 67 75 72 61 74 69 6f | 6e 20 69 73 20 6d 61 69 |iguratio|n is mai|
|00003470| 6e 74 61 69 6e 65 64 20 | 62 79 20 61 20 22 6d 61 |ntained |by a "ma|
|00003480| 6b 65 22 20 66 69 6c 65 | 73 2e 20 0a 58 0a 58 54 |ke" file|s. .X.XT|
|00003490| 68 69 73 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |his conf|iguratio|
|000034a0| 6e 20 66 69 6c 65 20 61 | 6c 6c 6f 77 73 20 61 20 |n file a|llows a |
|000034b0| 6e 75 6d 62 65 72 20 6f | 66 20 64 69 66 66 65 72 |number o|f differ|
|000034c0| 65 6e 74 20 6d 6f 64 65 | 73 20 74 6f 20 73 75 70 |ent mode|s to sup|
|000034d0| 70 6f 72 74 0a 58 74 79 | 70 69 63 61 6c 20 70 72 |port.Xty|pical pr|
|000034e0| 6f 67 72 61 6d 20 64 65 | 76 65 6c 6f 70 6d 65 6e |ogram de|velopmen|
|000034f0| 74 20 70 68 61 73 65 73 | 20 28 6f 6e 20 43 20 6c |t phases| (on C l|
|00003500| 65 76 65 6c 29 20 73 75 | 63 68 20 61 73 20 64 65 |evel) su|ch as de|
|00003510| 62 75 67 67 69 6e 67 2c | 20 0a 58 70 72 6f 66 69 |bugging,| .Xprofi|
|00003520| 6c 69 6e 67 2c 20 6f 70 | 74 69 6d 69 7a 61 74 69 |ling, op|timizati|
|00003530| 6f 6e 20 61 6e 64 20 70 | 61 63 6b 61 67 69 6e 67 |on and p|ackaging|
|00003540| 2e 20 50 6c 65 61 73 65 | 20 73 65 65 20 74 68 65 |. Please| see the|
|00003550| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 6e 0a | informa|tion in.|
|00003560| 58 74 68 65 73 65 20 66 | 69 6c 65 73 2e 0a 58 0a |Xthese f|iles..X.|
|00003570| 58 0a 58 37 2e 09 43 4f | 50 59 49 4e 47 0a 58 0a |X.X7..CO|PYING.X.|
|00003580| 58 54 68 69 73 20 73 6f | 66 74 77 61 72 65 20 69 |XThis so|ftware i|
|00003590| 73 20 6f 66 66 65 72 65 | 64 20 61 73 20 73 68 61 |s offere|d as sha|
|000035a0| 72 65 77 61 72 65 2e 20 | 59 6f 75 20 6d 61 79 20 |reware. |You may |
|000035b0| 75 73 65 20 69 74 20 66 | 72 65 65 6c 79 2c 20 62 |use it f|reely, b|
|000035c0| 75 74 20 0a 58 69 66 20 | 79 6f 75 20 64 6f 20 75 |ut .Xif |you do u|
|000035d0| 73 65 20 69 74 20 61 6e | 64 20 66 69 6e 64 20 69 |se it an|d find i|
|000035e0| 74 20 75 73 65 66 75 6c | 2c 20 79 6f 75 20 61 72 |t useful|, you ar|
|000035f0| 65 20 65 6e 63 6f 75 72 | 61 67 65 64 20 74 6f 20 |e encour|aged to |
|00003600| 73 65 6e 64 20 74 68 65 | 0a 58 61 75 74 68 6f 72 |send the|.Xauthor|
|00003610| 20 61 20 63 6f 6e 74 72 | 69 62 75 74 69 6f 6e 20 | a contr|ibution |
|00003620| 28 3e 3d 20 24 35 30 29 | 20 74 6f 20 74 68 65 20 |(>= $50)| to the |
|00003630| 66 6f 6c 6c 6f 77 69 6e | 67 20 61 64 64 72 65 73 |followin|g addres|
|00003640| 73 3a 0a 58 0a 58 09 54 | 49 4c 45 20 54 65 63 68 |s:.X.X.T|ILE Tech|
|00003650| 6e 6f 6c 6f 67 79 20 48 | 42 0a 58 09 53 74 72 61 |nology H|B.X.Stra|
|00003660| 67 61 74 61 6e 20 31 39 | 0a 58 09 53 2d 35 38 32 |gatan 19|.X.S-582|
|00003670| 20 36 37 20 4c 69 6e 6b | 6f 70 69 6e 67 0a 58 09 | 67 Link|oping.X.|
|00003680| 53 57 45 44 45 4e 0a 58 | 0a 58 49 66 20 79 6f 75 |SWEDEN.X|.XIf you|
|00003690| 20 73 65 6e 64 20 6d 65 | 20 61 20 63 6f 6e 74 72 | send me| a contr|
|000036a0| 69 62 75 74 69 6f 6e 2c | 20 49 20 77 69 6c 6c 20 |ibution,| I will |
|000036b0| 73 65 6e 64 20 79 6f 75 | 20 6d 61 6e 75 61 6c 20 |send you| manual |
|000036c0| 70 61 67 65 73 20 61 6e | 64 20 0a 58 64 6f 63 75 |pages an|d .Xdocu|
|000036d0| 6d 65 6e 74 61 74 69 6f | 6e 20 66 69 6c 65 73 20 |mentatio|n files |
|000036e0| 61 6e 64 20 77 69 6c 6c | 20 61 6e 73 77 65 72 20 |and will| answer |
|000036f0| 71 75 65 73 74 69 6f 6e | 73 20 62 79 20 6d 61 69 |question|s by mai|
|00003700| 6c 2e 20 41 6c 73 6f 20 | 79 6f 75 72 0a 58 6e 61 |l. Also |your.Xna|
|00003710| 6d 65 20 77 69 6c 6c 20 | 62 65 20 70 75 74 20 6f |me will |be put o|
|00003720| 6e 20 61 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |n a dist|ribution|
|00003730| 20 6c 69 73 74 20 66 6f | 72 20 66 75 74 75 72 65 | list fo|r future|
|00003740| 20 72 65 6c 65 61 73 65 | 73 2e 0a 58 0a 58 46 6f | release|s..X.XFo|
|00003750| 72 20 66 75 72 74 68 65 | 72 20 69 6e 66 6f 72 6d |r furthe|r inform|
|00003760| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 63 6f 70 79 |ation ab|out copy|
|00003770| 69 6e 67 20 73 65 65 20 | 74 68 65 20 66 69 6c 65 |ing see |the file|
|00003780| 20 43 4f 50 59 49 4e 47 | 20 61 6e 64 0a 58 74 68 | COPYING| and.Xth|
|00003790| 65 20 68 65 61 64 65 72 | 73 20 69 6e 20 74 68 65 |e header|s in the|
|000037a0| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 20 66 69 6c | source |code fil|
|000037b0| 65 73 2e 20 43 6f 6d 6d | 65 72 63 69 61 6c 20 75 |es. Comm|ercial u|
|000037c0| 73 61 67 65 20 6f 66 20 | 74 68 65 0a 58 6b 65 72 |sage of |the.Xker|
|000037d0| 6e 65 6c 20 69 73 20 6e | 6f 74 20 61 6c 6c 6f 77 |nel is n|ot allow|
|000037e0| 65 64 20 77 69 74 68 6f | 75 74 20 61 20 6c 69 63 |ed witho|ut a lic|
|000037f0| 65 6e 73 65 20 66 72 6f | 6d 20 74 68 65 20 63 6f |ense fro|m the co|
|00003800| 6d 70 61 6e 79 20 61 62 | 6f 76 65 2e 0a 58 0a 58 |mpany ab|ove..X.X|
|00003810| 0a 58 38 2e 09 4e 4f 54 | 45 0a 58 0a 58 44 75 65 |.X8..NOT|E.X.XDue|
|00003820| 20 74 6f 20 74 68 65 20 | 33 32 2d 62 69 74 20 69 | to the |32-bit i|
|00003830| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 69 6e |mplement|ation in|
|00003840| 20 43 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 46 | C a num|ber of F|
|00003850| 6f 72 74 68 2d 38 33 20 | 64 65 66 69 6e 69 74 69 |orth-83 |definiti|
|00003860| 6f 6e 73 20 0a 58 61 72 | 65 20 6e 6f 74 20 64 69 |ons .Xar|e not di|
|00003870| 72 65 63 74 6c 79 20 63 | 6f 6e 66 69 72 6d 65 64 |rectly c|onfirmed|
|00003880| 2e 20 42 65 6c 6f 77 20 | 69 73 20 61 20 73 68 6f |. Below |is a sho|
|00003890| 72 74 20 6c 69 73 74 20 | 6f 66 20 77 6f 72 64 73 |rt list |of words|
|000038a0| 20 74 68 61 74 20 6d 69 | 67 68 74 20 0a 58 67 69 | that mi|ght .Xgi|
|000038b0| 76 65 20 70 72 6f 62 6c | 65 6d 73 20 77 68 65 6e |ve probl|ems when|
|000038c0| 20 70 6f 72 74 69 6e 67 | 20 46 6f 72 74 68 20 63 | porting| Forth c|
|000038d0| 6f 64 65 20 74 6f 20 74 | 68 69 73 20 65 6e 76 69 |ode to t|his envi|
|000038e0| 72 6f 6e 6d 65 6e 74 3a | 0a 58 0a 58 2a 20 54 68 |ronment:|.X.X* Th|
|000038f0| 65 20 42 6c 6f 63 6b 20 | 57 6f 72 64 20 53 65 74 |e Block |Word Set|
|00003900| 20 69 73 20 6e 6f 74 20 | 73 75 70 70 6f 72 74 65 | is not |supporte|
|00003910| 64 2e 20 53 6f 75 72 63 | 65 20 63 6f 64 65 20 69 |d. Sourc|e code i|
|00003920| 73 20 73 61 76 65 64 20 | 61 73 20 74 65 78 74 20 |s saved |as text |
|00003930| 0a 58 20 20 66 69 6c 65 | 73 2e 0a 58 0a 58 2a 20 |.X file|s..X.X* |
|00003940| 41 6c 6c 20 73 74 61 63 | 6b 73 20 61 6e 64 20 77 |All stac|ks and w|
|00003950| 6f 72 64 73 20 73 69 7a | 65 20 61 72 65 20 33 32 |ords siz|e are 32|
|00003960| 2d 62 69 74 2e 20 54 68 | 75 73 20 73 70 65 63 69 |-bit. Th|us speci|
|00003970| 61 6c 20 63 61 72 65 20 | 6d 75 73 74 20 62 65 20 |al care |must be |
|00003980| 0a 58 20 20 74 61 6b 65 | 6e 20 77 69 74 68 20 6d |.X take|n with m|
|00003990| 65 6d 6f 72 79 20 61 6c | 6c 6f 63 61 74 69 6f 6e |emory al|location|
|000039a0| 20 61 6e 64 20 61 63 63 | 65 73 73 2e 0a 58 0a 58 | and acc|ess..X.X|
|000039b0| 2a 20 4c 6f 77 65 72 63 | 61 73 65 20 61 6e 64 20 |* Lowerc|ase and |
|000039c0| 75 70 70 65 72 63 61 73 | 65 20 61 72 65 20 64 69 |uppercas|e are di|
|000039d0| 73 74 69 6e 67 75 69 73 | 68 65 64 2c 20 61 6e 64 |stinguis|hed, and|
|000039e0| 20 61 6c 6c 20 66 6f 72 | 74 68 20 77 6f 72 64 73 | all for|th words|
|000039f0| 20 61 72 65 0a 58 20 20 | 6c 6f 77 65 72 63 61 73 | are.X |lowercas|
|00003a00| 65 2e 20 0a 58 0a 58 2a | 20 41 20 77 6f 72 64 20 |e. .X.X*| A word |
|00003a10| 69 6e 20 54 49 4c 45 20 | 69 73 20 61 6c 6c 6f 77 |in TILE |is allow|
|00003a20| 65 64 20 61 72 62 69 74 | 72 61 72 79 20 6c 65 6e |ed arbit|rary len|
|00003a30| 67 74 68 20 61 73 20 74 | 68 65 20 6e 61 6d 65 20 |gth as t|he name |
|00003a40| 69 73 20 73 74 6f 72 65 | 64 20 61 73 0a 58 20 20 |is store|d as.X |
|00003a50| 61 73 20 61 20 6e 75 6c | 6c 20 74 65 72 6d 69 6e |as a nul|l termin|
|00003a60| 61 74 65 64 20 73 74 72 | 69 6e 67 2e 0a 58 0a 58 |ated str|ing..X.X|
|00003a70| 2a 20 49 6e 70 75 74 20 | 73 75 63 68 20 61 73 20 |* Input |such as |
|00003a80| 22 6b 65 79 22 20 70 65 | 72 66 6f 72 6d 73 20 61 |"key" pe|rforms a|
|00003a90| 20 72 65 61 64 20 6f 70 | 65 72 61 74 69 6f 6e 20 | read op|eration |
|00003aa0| 74 6f 20 74 68 65 20 6f | 70 65 72 61 74 69 6e 67 |to the o|perating|
|00003ab0| 20 73 79 73 74 65 6d 0a | 58 20 20 74 68 75 73 20 | system.|X thus |
|00003ac0| 77 69 6c 6c 20 65 63 68 | 6f 20 74 68 65 20 63 68 |will ech|o the ch|
|00003ad0| 61 72 61 63 74 65 72 73 | 2e 0a 58 0a 58 2a 20 56 |aracters|..X.X* V|
|00003ae0| 61 72 69 61 62 6c 65 73 | 20 73 68 6f 75 6c 64 20 |ariables| should |
|00003af0| 6e 6f 74 20 61 6c 6c 6f | 63 61 74 65 20 65 78 74 |not allo|cate ext|
|00003b00| 72 61 20 6d 65 6d 6f 72 | 79 2e 20 22 63 72 65 61 |ra memor|y. "crea|
|00003b10| 74 65 22 20 73 68 6f 75 | 6c 64 20 62 65 20 75 73 |te" shou|ld be us|
|00003b20| 65 64 2e 0a 58 0a 58 2a | 20 44 6f 75 62 6c 65 20 |ed..X.X*| Double |
|00003b30| 6e 75 6d 62 65 72 20 61 | 72 69 74 68 6d 65 74 69 |number a|rithmeti|
|00003b40| 63 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 72 65 20 |c functi|ons are |
|00003b50| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 2e 0a 58 |not avai|lable..X|
|00003b60| 0a 58 53 6f 6d 65 20 6d | 61 6a 6f 72 20 63 68 61 |.XSome m|ajor cha|
|00003b70| 6e 67 65 73 20 68 61 76 | 65 20 62 65 65 6e 20 6d |nges hav|e been m|
|00003b80| 61 64 65 20 74 6f 20 74 | 68 65 20 6b 65 72 6e 65 |ade to t|he kerne|
|00003b90| 6c 20 69 6e 20 74 68 69 | 73 20 73 65 63 6f 6e 64 |l in thi|s second|
|00003ba0| 20 72 65 6c 65 61 73 65 | 2e 0a 58 54 6f 20 61 6c | release|..XTo al|
|00003bb0| 6c 6f 77 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |low impl|ementati|
|00003bc0| 6f 6e 20 6f 66 20 66 6c | 6f 61 74 69 6e 67 20 70 |on of fl|oating p|
|00003bd0| 6f 69 6e 74 20 6e 75 6d | 62 65 72 73 20 61 6e 64 |oint num|bers and|
|00003be0| 20 69 6e 63 72 65 61 73 | 65 20 70 6f 72 74 69 6e | increas|e portin|
|00003bf0| 67 0a 58 74 68 65 20 6b | 65 72 6e 65 6c 20 69 73 |g.Xthe k|ernel is|
|00003c00| 20 6e 6f 77 20 77 72 69 | 74 74 65 6e 20 69 6e 20 | now wri|tten in |
|00003c10| 69 74 73 20 6f 77 6e 20 | 65 78 74 65 6e 64 61 62 |its own |extendab|
|00003c20| 6c 65 20 74 79 70 69 6e | 67 20 73 79 73 74 65 6d |le typin|g system|
|00003c30| 2e 20 53 6f 6d 65 0a 58 | 65 78 74 65 6e 73 69 6f |. Some.X|extensio|
|00003c40| 6e 20 68 61 76 65 20 62 | 65 65 6e 20 72 65 6d 6f |n have b|een remo|
|00003c50| 76 65 64 20 73 75 63 68 | 20 61 73 20 74 68 65 20 |ved such| as the |
|00003c60| 63 61 73 74 69 6e 67 20 | 6f 70 65 72 61 74 6f 72 |casting |operator|
|00003c70| 20 69 6e 20 74 68 65 20 | 0a 58 69 6e 74 65 72 70 | in the |.Xinterp|
|00003c80| 72 65 74 65 72 2e 0a 58 | 0a 58 0a 58 41 43 4b 4e |reter..X|.X.XACKN|
|00003c90| 4f 57 4c 45 44 47 4d 45 | 4e 54 53 0a 58 0a 58 46 |OWLEDGME|NTS.X.XF|
|00003ca0| 69 72 73 74 20 6f 66 20 | 61 6c 6c 20 49 20 77 69 |irst of |all I wi|
|00003cb0| 73 68 20 74 6f 20 65 78 | 70 72 65 73 73 20 6d 79 |sh to ex|press my|
|00003cc0| 20 67 72 61 74 69 74 75 | 64 65 20 74 6f 20 47 6f | gratitu|de to Go|
|00003cd0| 72 61 6e 20 52 79 64 71 | 76 69 73 74 20 66 6f 72 |ran Rydq|vist for|
|00003ce0| 20 68 65 6c 70 65 64 0a | 58 6d 65 20 6f 75 74 20 | helped.|Xme out |
|00003cf0| 77 69 74 68 20 74 68 65 | 20 66 69 72 73 74 20 76 |with the| first v|
|00003d00| 65 72 73 69 6f 6e 20 6f | 66 20 74 68 65 20 6b 65 |ersion o|f the ke|
|00003d10| 72 6e 65 6c 20 61 6e 64 | 20 77 68 6f 20 69 6d 70 |rnel and| who imp|
|00003d20| 6c 65 6d 65 6e 74 65 64 | 20 74 68 65 20 0a 58 66 |lemented| the .Xf|
|00003d30| 6f 72 74 68 2d 6d 6f 64 | 65 20 66 6f 72 20 47 4e |orth-mod|e for GN|
|00003d40| 55 20 45 6d 61 63 73 2e | 20 0a 58 0a 58 53 65 63 |U Emacs.| .X.XSec|
|00003d50| 6f 6e 64 20 61 20 73 70 | 65 63 69 61 6c 20 74 68 |ond a sp|ecial th|
|00003d60| 61 6e 6b 73 20 74 6f 20 | 74 68 65 20 62 65 74 61 |anks to |the beta|
|00003d70| 20 74 65 73 74 20 67 72 | 6f 75 70 20 77 68 6f 20 | test gr|oup who |
|00003d80| 67 61 76 65 20 6d 65 20 | 76 61 6c 75 61 62 6c 65 |gave me |valuable|
|00003d90| 0a 58 66 65 65 64 62 61 | 63 6b 2e 20 45 73 70 65 |.Xfeedba|ck. Espe|
|00003da0| 63 69 61 6c 6c 79 20 4d | 69 74 63 68 20 42 72 61 |cially M|itch Bra|
|00003db0| 64 6c 65 79 2c 20 42 6f | 62 20 47 69 6f 76 61 6e |dley, Bo|b Giovan|
|00003dc0| 6e 75 63 63 69 20 4a 72 | 2e 2c 20 4d 6f 69 73 65 |nucci Jr|., Moise|
|00003dd0| 73 20 4c 65 6a 74 65 72 | 2c 20 0a 58 61 6e 64 20 |s Lejter|, .Xand |
|00003de0| 42 72 6f 6f 6b 73 20 44 | 61 76 69 64 20 53 6d 69 |Brooks D|avid Smi|
|00003df0| 74 68 2e 20 0a 58 0a 58 | 4c 61 73 74 2c 20 49 20 |th. .X.X|Last, I |
|00003e00| 77 69 73 68 20 74 6f 20 | 74 68 61 6e 6b 20 74 68 |wish to |thank th|
|00003e10| 65 20 6d 61 79 20 75 73 | 65 72 73 20 74 68 61 74 |e may us|ers that|
|00003e20| 20 68 61 76 65 20 62 65 | 65 6e 20 69 6e 20 74 6f | have be|en in to|
|00003e30| 75 63 68 20 61 66 74 65 | 72 20 74 68 65 0a 58 66 |uch afte|r the.Xf|
|00003e40| 69 72 73 74 20 72 65 6c | 65 61 73 65 20 61 6e 64 |irst rel|ease and|
|00003e50| 20 67 69 76 65 6e 20 6d | 65 20 6d 61 6e 79 20 63 | given m|e many c|
|00003e60| 6f 6d 6d 65 6e 74 73 20 | 61 6e 64 20 65 6e 63 6f |omments |and enco|
|00003e70| 75 72 61 67 65 6d 65 6e | 74 73 2e 0a 58 0a 58 54 |uragemen|ts..X.XT|
|00003e80| 68 61 6e 6b 20 79 6f 75 | 20 61 6c 6c 2e 0a 45 4e |hank you| all..EN|
|00003e90| 44 5f 4f 46 5f 52 45 41 | 44 4d 45 0a 69 66 20 74 |D_OF_REA|DME.if t|
|00003ea0| 65 73 74 20 31 34 33 37 | 31 20 2d 6e 65 20 60 77 |est 1437|1 -ne `w|
|00003eb0| 63 20 2d 63 20 3c 52 45 | 41 44 4d 45 60 3b 20 74 |c -c <RE|ADME`; t|
|00003ec0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00003ed0| 72 3a 20 5c 22 52 45 41 | 44 4d 45 5c 22 20 75 6e |r: \"REA|DME\" un|
|00003ee0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00003ef0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00003f00| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00003f10| 63 68 65 63 6b 0a 66 69 | 0a 69 66 20 74 65 73 74 |check.fi|.if test|
|00003f20| 20 21 20 2d 64 20 62 69 | 6e 20 3b 20 74 68 65 6e | ! -d bi|n ; then|
|00003f30| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00003f40| 43 72 65 61 74 69 6e 67 | 20 64 69 72 65 63 74 6f |Creating| directo|
|00003f50| 72 79 20 5c 22 62 69 6e | 5c 22 0a 20 20 20 20 6d |ry \"bin|\". m|
|00003f60| 6b 64 69 72 20 62 69 6e | 0a 66 69 0a 69 66 20 74 |kdir bin|.fi.if t|
|00003f70| 65 73 74 20 2d 66 20 62 | 69 6e 2f 66 6f 72 74 68 |est -f b|in/forth|
|00003f80| 74 6f 6f 6c 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |tool -a |"${1}" !|
|00003f90| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00003fa0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00003fb0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00003fc0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00003fd0| 62 69 6e 2f 66 6f 72 74 | 68 74 6f 6f 6c 5c 22 0a |bin/fort|htool\".|
|00003fe0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00003ff0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 62 69 6e |Extracti|ng \"bin|
|00004000| 2f 66 6f 72 74 68 74 6f | 6f 6c 5c 22 20 5c 28 37 |/forthto|ol\" \(7|
|00004010| 36 36 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |66 chara|cters\).|
|00004020| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 62 69 |sed "s/^|X//" >bi|
|00004030| 6e 2f 66 6f 72 74 68 74 | 6f 6f 6c 20 3c 3c 27 45 |n/fortht|ool <<'E|
|00004040| 4e 44 5f 4f 46 5f 62 69 | 6e 2f 66 6f 72 74 68 74 |ND_OF_bi|n/fortht|
|00004050| 6f 6f 6c 27 0a 58 23 21 | 20 2f 62 69 6e 2f 73 68 |ool'.X#!| /bin/sh|
|00004060| 0a 58 23 20 4e 41 4d 45 | 0a 58 23 09 66 6f 72 74 |.X# NAME|.X#.fort|
|00004070| 68 74 6f 6f 6c 20 2d 20 | 74 69 6c 65 20 66 6f 72 |htool - |tile for|
|00004080| 74 68 20 69 6e 74 65 72 | 61 63 74 69 6f 6e 20 74 |th inter|action t|
|00004090| 6f 6f 6c 20 69 6e 20 73 | 75 6e 76 69 65 77 0a 58 |ool in s|unview.X|
|000040a0| 23 20 53 59 4e 4f 50 53 | 49 53 0a 58 23 09 66 6f |# SYNOPS|IS.X#.fo|
|000040b0| 72 74 68 74 6f 6f 6c 20 | 5b 3c 70 61 72 61 6d 65 |rthtool |[<parame|
|000040c0| 74 65 72 3e 2e 2e 2e 5d | 0a 58 23 20 44 45 53 43 |ter>...]|.X# DESC|
|000040d0| 52 49 50 54 49 4f 4e 0a | 58 23 09 53 74 61 72 74 |RIPTION.|X#.Start|
|000040e0| 73 20 66 6f 72 74 68 20 | 69 6e 20 61 20 63 6d 64 |s forth |in a cmd|
|000040f0| 74 6f 6f 6c 20 77 69 6e | 64 6f 77 20 77 69 74 68 |tool win|dow with|
|00004100| 20 54 49 4c 45 20 46 6f | 72 74 68 20 69 63 6f 6e | TILE Fo|rth icon|
|00004110| 20 77 68 65 6e 20 63 6c | 6f 73 65 64 2e 0a 58 23 | when cl|osed..X#|
|00004120| 09 41 6c 6c 6f 77 73 20 | 63 6d 64 74 6f 6f 6c 20 |.Allows |cmdtool |
|00004130| 65 64 69 74 69 6e 67 20 | 61 6e 64 20 73 65 73 73 |editing |and sess|
|00004140| 69 6f 6e 20 66 69 6c 65 | 20 73 61 76 69 6e 67 2e |ion file| saving.|
|00004150| 20 41 6e 79 20 70 61 72 | 61 6d 65 74 65 72 73 0a | Any par|ameters.|
|00004160| 58 23 09 61 72 65 20 70 | 61 73 73 65 64 20 6f 6e |X#.are p|assed on|
|00004170| 20 74 6f 20 66 6f 72 74 | 68 2e 20 0a 58 23 20 4f | to fort|h. .X# O|
|00004180| 50 54 49 4f 4e 53 0a 58 | 23 09 6e 6f 6e 65 0a 58 |PTIONS.X|#.none.X|
|00004190| 23 20 46 49 4c 45 53 0a | 58 23 09 2e 66 6f 72 74 |# FILES.|X#..fort|
|000041a0| 68 69 63 6f 6e 09 69 63 | 6f 6e 20 66 6f 72 20 63 |hicon.ic|on for c|
|000041b0| 6c 6f 73 65 64 20 66 6f | 72 74 68 74 6f 6f 6c 0a |losed fo|rthtool.|
|000041c0| 58 23 20 53 45 45 20 41 | 4c 53 4f 0a 58 23 09 74 |X# SEE A|LSO.X#.t|
|000041d0| 69 6c 65 28 31 29 2c 20 | 63 6d 64 74 6f 6f 6c 28 |ile(1), |cmdtool(|
|000041e0| 31 29 2c 20 73 75 6e 76 | 69 65 77 28 31 29 0a 58 |1), sunv|iew(1).X|
|000041f0| 23 20 41 55 54 48 4f 52 | 0a 58 23 09 4d 69 6b 61 |# AUTHOR|.X#.Mika|
|00004200| 65 6c 20 52 2e 4b 2e 20 | 50 61 74 65 6c 0a 58 23 |el R.K. |Patel.X#|
|00004210| 09 43 6f 6d 70 75 74 65 | 72 20 41 69 64 65 64 20 |.Compute|r Aided |
|00004220| 44 65 73 69 67 6e 20 4c | 61 62 6f 72 61 74 6f 72 |Design L|aborator|
|00004230| 79 20 28 43 41 44 4c 41 | 42 29 0a 58 23 09 44 65 |y (CADLA|B).X#.De|
|00004240| 70 61 72 74 6d 65 6e 74 | 20 6f 66 20 43 6f 6d 70 |partment| of Comp|
|00004250| 75 74 65 72 20 61 6e 64 | 20 49 6e 66 6f 72 6d 61 |uter and| Informa|
|00004260| 74 69 6f 6e 20 53 63 69 | 65 6e 63 65 0a 58 23 09 |tion Sci|ence.X#.|
|00004270| 4c 69 6e 6b 6f 70 69 6e | 67 20 55 6e 69 76 65 72 |Linkopin|g Univer|
|00004280| 73 69 74 79 0a 58 23 09 | 53 2d 35 38 31 20 38 33 |sity.X#.|S-581 83|
|00004290| 20 4c 49 4e 4b 4f 50 49 | 4e 47 0a 58 23 09 53 57 | LINKOPI|NG.X#.SW|
|000042a0| 45 44 45 4e 0a 58 23 09 | 45 6d 61 69 6c 3a 20 6d |EDEN.X#.|Email: m|
|000042b0| 69 70 40 69 64 61 2e 6c | 69 75 2e 73 65 0a 58 23 |ip@ida.l|iu.se.X#|
|000042c0| 20 48 49 53 54 4f 52 59 | 0a 58 23 20 09 43 72 65 | HISTORY|.X# .Cre|
|000042d0| 61 74 65 64 20 6f 6e 3a | 20 09 30 31 20 41 70 72 |ated on:| .01 Apr|
|000042e0| 69 6c 20 31 39 38 39 0a | 58 23 09 4c 61 73 74 65 |il 1989.|X#.Laste|
|000042f0| 64 20 75 70 64 61 74 65 | 64 3a 09 32 33 20 4d 61 |d update|d:.23 Ma|
|00004300| 79 20 31 39 39 30 0a 58 | 0a 58 63 6d 64 74 6f 6f |y 1990.X|.Xcmdtoo|
|00004310| 6c 20 2d 57 6c 20 22 66 | 6f 72 74 68 74 6f 6f 6c |l -Wl "f|orthtool|
|00004320| 20 2d 20 66 6f 72 74 68 | 22 20 2d 57 4c 20 46 6f | - forth|" -WL Fo|
|00004330| 72 74 68 20 2d 57 49 20 | 24 54 49 4c 45 2f 62 69 |rth -WI |$TILE/bi|
|00004340| 6e 2f 66 6f 72 74 68 69 | 63 6f 6e 20 66 6f 72 74 |n/forthi|con fort|
|00004350| 68 20 24 31 20 24 32 20 | 24 33 20 24 34 20 24 35 |h $1 $2 |$3 $4 $5|
|00004360| 20 24 36 20 24 37 20 24 | 38 20 24 39 0a 58 0a 58 | $6 $7 $|8 $9.X.X|
|00004370| 0a 45 4e 44 5f 4f 46 5f | 62 69 6e 2f 66 6f 72 74 |.END_OF_|bin/fort|
|00004380| 68 74 6f 6f 6c 0a 69 66 | 20 74 65 73 74 20 37 36 |htool.if| test 76|
|00004390| 36 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 62 69 |6 -ne `w|c -c <bi|
|000043a0| 6e 2f 66 6f 72 74 68 74 | 6f 6f 6c 60 3b 20 74 68 |n/fortht|ool`; th|
|000043b0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000043c0| 3a 20 5c 22 62 69 6e 2f | 66 6f 72 74 68 74 6f 6f |: \"bin/|forthtoo|
|000043d0| 6c 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |l\" unpa|cked wit|
|000043e0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|000043f0| 0a 63 68 6d 6f 64 20 2b | 78 20 62 69 6e 2f 66 6f |.chmod +|x bin/fo|
|00004400| 72 74 68 74 6f 6f 6c 0a | 23 20 65 6e 64 20 6f 66 |rthtool.|# end of|
|00004410| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00004420| 63 6b 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |ck.fi.if| test -f|
|00004430| 20 62 69 6e 2f 6d 6b 64 | 6f 63 20 2d 61 20 22 24 | bin/mkd|oc -a "$|
|00004440| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00004450| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00004460| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: Will n|ot over-|
|00004470| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00004480| 69 6c 65 20 5c 22 62 69 | 6e 2f 6d 6b 64 6f 63 5c |ile \"bi|n/mkdoc\|
|00004490| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|000044a0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 62 |: Extrac|ting \"b|
|000044b0| 69 6e 2f 6d 6b 64 6f 63 | 5c 22 20 5c 28 36 37 35 |in/mkdoc|\" \(675|
|000044c0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|000044d0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 62 69 6e 2f |d "s/^X/|/" >bin/|
|000044e0| 6d 6b 64 6f 63 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |mkdoc <<|'END_OF_|
|000044f0| 62 69 6e 2f 6d 6b 64 6f | 63 27 0a 58 23 21 20 2f |bin/mkdo|c'.X#! /|
|00004500| 62 69 6e 2f 73 68 0a 58 | 23 20 4e 41 4d 45 0a 58 |bin/sh.X|# NAME.X|
|00004510| 23 09 6d 6b 64 6f 63 20 | 2d 20 63 72 65 61 74 65 |#.mkdoc |- create|
|00004520| 20 64 6f 63 75 6d 65 6e | 61 74 69 6f 6e 20 66 69 | documen|ation fi|
|00004530| 6c 65 20 66 72 6f 6d 20 | 6d 61 6e 75 61 6c 20 70 |le from |manual p|
|00004540| 61 67 65 73 0a 58 23 20 | 53 59 4e 4f 50 53 49 53 |ages.X# |SYNOPSIS|
|00004550| 0a 58 23 09 6d 6b 64 6f | 63 20 3c 66 69 6c 65 73 |.X#.mkdo|c <files|
|00004560| 3e 0a 58 23 20 44 45 53 | 43 52 49 50 54 49 4f 4e |>.X# DES|CRIPTION|
|00004570| 0a 58 23 09 43 72 65 61 | 74 65 73 20 64 6f 63 75 |.X#.Crea|tes docu|
|00004580| 6d 65 6e 74 61 74 69 6f | 6e 20 28 74 65 78 74 29 |mentatio|n (text)|
|00004590| 20 66 69 6c 65 73 20 66 | 72 6f 6d 20 6d 61 6e 75 | files f|rom manu|
|000045a0| 61 6c 20 70 61 67 65 73 | 2e 0a 58 23 20 20 20 20 |al pages|..X# |
|000045b0| 20 20 20 54 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 | The d|ocumenta|
|000045c0| 74 69 6f 6e 20 66 69 6c | 65 73 20 61 72 65 20 75 |tion fil|es are u|
|000045d0| 73 65 64 20 62 79 20 68 | 65 6c 70 20 66 75 6e 63 |sed by h|elp func|
|000045e0| 74 69 6f 6e 20 6d 6f 64 | 65 0a 58 23 20 20 20 20 |tion mod|e.X# |
|000045f0| 20 20 20 69 6e 20 47 4e | 55 20 45 6d 61 63 73 20 | in GN|U Emacs |
|00004600| 28 66 6f 72 20 74 68 65 | 20 74 69 6c 65 20 66 6f |(for the| tile fo|
|00004610| 72 74 68 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 29 |rth envi|ronment)|
|00004620| 2e 0a 58 23 20 4f 50 54 | 49 4f 4e 53 0a 58 23 09 |..X# OPT|IONS.X#.|
|00004630| 6e 6f 6e 65 0a 58 23 20 | 53 45 45 20 41 4c 53 4f |none.X# |SEE ALSO|
|00004640| 0a 58 23 09 6e 72 6f 66 | 66 28 31 29 2c 20 74 72 |.X#.nrof|f(1), tr|
|00004650| 28 31 29 2e 0a 58 23 20 | 41 55 54 48 4f 52 0a 58 |(1)..X# |AUTHOR.X|
|00004660| 23 09 4d 69 6b 61 65 6c | 20 52 2e 4b 2e 20 50 61 |#.Mikael| R.K. Pa|
|00004670| 74 65 6c 0a 58 23 09 43 | 6f 6d 70 75 74 65 72 20 |tel.X#.C|omputer |
|00004680| 41 69 64 65 64 20 44 65 | 73 69 67 6e 20 4c 61 62 |Aided De|sign Lab|
|00004690| 6f 72 61 74 6f 72 79 20 | 28 43 41 44 4c 41 42 29 |oratory |(CADLAB)|
|000046a0| 0a 58 23 09 44 65 70 61 | 72 74 6d 65 6e 74 20 6f |.X#.Depa|rtment o|
|000046b0| 66 20 43 6f 6d 70 75 74 | 65 72 20 61 6e 64 20 49 |f Comput|er and I|
|000046c0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 53 63 69 65 6e |nformati|on Scien|
|000046d0| 63 65 0a 58 23 09 4c 69 | 6e 6b 6f 70 69 6e 67 20 |ce.X#.Li|nkoping |
|000046e0| 55 6e 69 76 65 72 73 69 | 74 79 0a 58 23 09 53 2d |Universi|ty.X#.S-|
|000046f0| 35 38 31 20 38 33 20 4c | 49 4e 4b 4f 50 49 4e 47 |581 83 L|INKOPING|
|00004700| 0a 58 23 09 53 57 45 44 | 45 4e 0a 58 23 09 45 6d |.X#.SWED|EN.X#.Em|
|00004710| 61 69 6c 3a 20 6d 69 70 | 40 69 64 61 2e 6c 69 75 |ail: mip|@ida.liu|
|00004720| 2e 73 65 0a 58 23 20 48 | 49 53 54 4f 52 59 0a 58 |.se.X# H|ISTORY.X|
|00004730| 23 20 09 43 72 65 61 74 | 65 64 20 6f 6e 3a 20 09 |# .Creat|ed on: .|
|00004740| 32 30 20 4a 75 6e 65 20 | 31 39 39 30 0a 58 23 09 |20 June |1990.X#.|
|00004750| 4c 61 73 74 65 64 20 75 | 70 64 61 74 65 64 3a 09 |Lasted u|pdated:.|
|00004760| 32 30 20 4a 75 6e 65 20 | 31 39 39 30 0a 58 0a 58 |20 June |1990.X.X|
|00004770| 66 6f 72 20 66 69 6c 65 | 20 69 6e 20 24 31 0a 58 |for file| in $1.X|
|00004780| 64 6f 09 0a 58 09 6e 72 | 6f 66 66 20 2d 6d 61 6e |do..X.nr|off -man|
|00004790| 20 24 66 69 6c 65 20 7c | 20 74 72 20 2d 64 20 22 | $file || tr -d "|
|000047a0| 5f 5c 30 31 30 22 20 3e | 20 24 66 69 6c 65 2e 64 |_\010" >| $file.d|
|000047b0| 6f 63 0a 58 64 6f 6e 65 | 0a 58 0a 58 0a 45 4e 44 |oc.Xdone|.X.X.END|
|000047c0| 5f 4f 46 5f 62 69 6e 2f | 6d 6b 64 6f 63 0a 69 66 |_OF_bin/|mkdoc.if|
|000047d0| 20 74 65 73 74 20 36 37 | 35 20 2d 6e 65 20 60 77 | test 67|5 -ne `w|
|000047e0| 63 20 2d 63 20 3c 62 69 | 6e 2f 6d 6b 64 6f 63 60 |c -c <bi|n/mkdoc`|
|000047f0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00004800| 73 68 61 72 3a 20 5c 22 | 62 69 6e 2f 6d 6b 64 6f |shar: \"|bin/mkdo|
|00004810| 63 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |c\" unpa|cked wit|
|00004820| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00004830| 0a 63 68 6d 6f 64 20 2b | 78 20 62 69 6e 2f 6d 6b |.chmod +|x bin/mk|
|00004840| 64 6f 63 0a 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |doc.# en|d of ove|
|00004850| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 66 |rwriting| check.f|
|00004860| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 62 69 6e |i.if tes|t -f bin|
|00004870| 2f 73 68 6f 72 74 20 2d | 61 20 22 24 7b 31 7d 22 |/short -|a "${1}"|
|00004880| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00004890| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000048a0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000048b0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000048c0| 5c 22 62 69 6e 2f 73 68 | 6f 72 74 5c 22 0a 65 6c |\"bin/sh|ort\".el|
|000048d0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000048e0| 74 72 61 63 74 69 6e 67 | 20 5c 22 62 69 6e 2f 73 |tracting| \"bin/s|
|000048f0| 68 6f 72 74 5c 22 20 5c | 28 36 35 39 20 63 68 61 |hort\" \|(659 cha|
|00004900| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00004910| 2f 5e 58 2f 2f 22 20 3e | 62 69 6e 2f 73 68 6f 72 |/^X//" >|bin/shor|
|00004920| 74 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 62 69 6e 2f |t <<'END|_OF_bin/|
|00004930| 73 68 6f 72 74 27 0a 58 | 23 21 20 2f 62 69 6e 2f |short'.X|#! /bin/|
|00004940| 73 68 0a 58 23 20 4e 41 | 4d 45 0a 58 23 09 73 68 |sh.X# NA|ME.X#.sh|
|00004950| 6f 72 74 20 2d 20 61 20 | 73 68 6f 72 74 20 64 65 |ort - a |short de|
|00004960| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 61 76 61 |scriptio|n of ava|
|00004970| 69 6c 61 62 6c 65 20 64 | 65 66 69 6e 69 74 69 6f |ilable d|efinitio|
|00004980| 6e 73 20 69 6e 20 61 20 | 74 69 6c 65 20 66 69 6c |ns in a |tile fil|
|00004990| 65 0a 58 23 20 53 59 4e | 4f 50 53 49 53 0a 58 23 |e.X# SYN|OPSIS.X#|
|000049a0| 09 73 68 6f 72 74 20 3c | 66 69 6c 65 3e 0a 58 23 |.short <|file>.X#|
|000049b0| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 58 23 09 | DESCRIP|TION.X#.|
|000049c0| 47 69 76 65 73 20 61 6c | 6c 20 74 68 65 20 64 65 |Gives al|l the de|
|000049d0| 66 69 6e 69 6e 69 74 69 | 6f 6e 20 6c 69 6e 65 73 |fininiti|on lines|
|000049e0| 20 69 6e 20 61 20 74 69 | 6c 65 20 66 6f 72 74 68 | in a ti|le forth|
|000049f0| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 2e 0a 58 23 | source |file..X#|
|00004a00| 09 0a 58 23 20 4f 50 54 | 49 4f 4e 53 0a 58 23 09 |..X# OPT|IONS.X#.|
|00004a10| 6e 6f 6e 65 0a 58 23 20 | 53 45 45 20 41 4c 53 4f |none.X# |SEE ALSO|
|00004a20| 0a 58 23 09 74 69 6c 65 | 28 31 29 2c 20 67 72 65 |.X#.tile|(1), gre|
|00004a30| 70 28 31 29 0a 58 23 20 | 41 55 54 48 4f 52 0a 58 |p(1).X# |AUTHOR.X|
|00004a40| 23 09 4d 69 6b 61 65 6c | 20 52 2e 4b 2e 20 50 61 |#.Mikael| R.K. Pa|
|00004a50| 74 65 6c 0a 58 23 09 43 | 6f 6d 70 75 74 65 72 20 |tel.X#.C|omputer |
|00004a60| 41 69 64 65 64 20 44 65 | 73 69 67 6e 20 4c 61 62 |Aided De|sign Lab|
|00004a70| 6f 72 61 74 6f 72 79 20 | 28 43 41 44 4c 41 42 29 |oratory |(CADLAB)|
|00004a80| 0a 58 23 09 44 65 70 61 | 72 74 6d 65 6e 74 20 6f |.X#.Depa|rtment o|
|00004a90| 66 20 43 6f 6d 70 75 74 | 65 72 20 61 6e 64 20 49 |f Comput|er and I|
|00004aa0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 53 63 69 65 6e |nformati|on Scien|
|00004ab0| 63 65 0a 58 23 09 4c 69 | 6e 6b 6f 70 69 6e 67 20 |ce.X#.Li|nkoping |
|00004ac0| 55 6e 69 76 65 72 73 69 | 74 79 0a 58 23 09 53 2d |Universi|ty.X#.S-|
|00004ad0| 35 38 31 20 38 33 20 4c | 49 4e 4b 4f 50 49 4e 47 |581 83 L|INKOPING|
|00004ae0| 0a 58 23 09 53 57 45 44 | 45 4e 0a 58 23 09 45 6d |.X#.SWED|EN.X#.Em|
|00004af0| 61 69 6c 3a 20 6d 69 70 | 40 69 64 61 2e 6c 69 75 |ail: mip|@ida.liu|
|00004b00| 2e 73 65 0a 58 23 20 48 | 49 53 54 4f 52 59 0a 58 |.se.X# H|ISTORY.X|
|00004b10| 23 20 09 43 72 65 61 74 | 65 64 20 6f 6e 3a 20 09 |# .Creat|ed on: .|
|00004b20| 30 32 20 4a 75 6e 65 20 | 31 39 39 30 0a 58 23 09 |02 June |1990.X#.|
|00004b30| 4c 61 73 74 65 64 20 75 | 70 64 61 74 65 64 3a 09 |Lasted u|pdated:.|
|00004b40| 30 32 20 4a 75 6e 65 20 | 31 39 39 30 0a 58 0a 58 |02 June |1990.X.X|
|00004b50| 69 66 20 5b 20 22 24 31 | 22 20 3d 20 22 22 20 5d |if [ "$1|" = "" ]|
|00004b60| 0a 58 74 68 65 6e 0a 58 | 09 65 63 68 6f 20 22 55 |.Xthen.X|.echo "U|
|00004b70| 73 61 67 65 3a 20 20 73 | 68 6f 72 74 20 66 69 6c |sage: s|hort fil|
|00004b80| 65 20 2e 2e 2e 22 0a 58 | 65 6c 73 65 0a 58 09 66 |e ...".X|else.X.f|
|00004b90| 6f 72 20 66 69 6c 65 20 | 69 6e 20 24 31 0a 58 09 |or file |in $1.X.|
|00004ba0| 64 6f 09 0a 58 09 09 65 | 63 68 6f 20 22 44 65 66 |do..X..e|cho "Def|
|00004bb0| 69 6e 69 74 69 6f 6e 73 | 20 69 6e 3a 20 24 66 69 |initions| in: $fi|
|00004bc0| 6c 65 22 0a 58 09 09 67 | 72 65 70 20 22 5c 2d 5c |le".X..g|rep "\-\|
|00004bd0| 2d 22 20 24 66 69 6c 65 | 0a 58 09 09 65 63 68 6f |-" $file|.X..echo|
|00004be0| 0a 58 09 64 6f 6e 65 0a | 58 66 69 0a 58 0a 45 4e |.X.done.|Xfi.X.EN|
|00004bf0| 44 5f 4f 46 5f 62 69 6e | 2f 73 68 6f 72 74 0a 69 |D_OF_bin|/short.i|
|00004c00| 66 20 74 65 73 74 20 36 | 35 39 20 2d 6e 65 20 60 |f test 6|59 -ne `|
|00004c10| 77 63 20 2d 63 20 3c 62 | 69 6e 2f 73 68 6f 72 74 |wc -c <b|in/short|
|00004c20| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00004c30| 20 73 68 61 72 3a 20 5c | 22 62 69 6e 2f 73 68 6f | shar: \|"bin/sho|
|00004c40| 72 74 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |rt\" unp|acked wi|
|00004c50| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00004c60| 69 0a 63 68 6d 6f 64 20 | 2b 78 20 62 69 6e 2f 73 |i.chmod |+x bin/s|
|00004c70| 68 6f 72 74 0a 23 20 65 | 6e 64 20 6f 66 20 6f 76 |hort.# e|nd of ov|
|00004c80| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|00004c90| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 62 69 |fi.if te|st -f bi|
|00004ca0| 6e 2f 73 6f 70 20 2d 61 | 20 22 24 7b 31 7d 22 20 |n/sop -a| "${1}" |
|00004cb0| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00004cc0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00004cd0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00004ce0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00004cf0| 22 62 69 6e 2f 73 6f 70 | 5c 22 0a 65 6c 73 65 0a |"bin/sop|\".else.|
|00004d00| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00004d10| 63 74 69 6e 67 20 5c 22 | 62 69 6e 2f 73 6f 70 5c |cting \"|bin/sop\|
|00004d20| 22 20 5c 28 36 31 39 20 | 63 68 61 72 61 63 74 65 |" \(619 |characte|
|00004d30| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00004d40| 22 20 3e 62 69 6e 2f 73 | 6f 70 20 3c 3c 27 45 4e |" >bin/s|op <<'EN|
|00004d50| 44 5f 4f 46 5f 62 69 6e | 2f 73 6f 70 27 0a 58 23 |D_OF_bin|/sop'.X#|
|00004d60| 21 20 2f 62 69 6e 2f 73 | 68 0a 58 23 0a 58 23 20 |! /bin/s|h.X#.X# |
|00004d70| 4e 41 4d 45 0a 58 23 09 | 73 6f 70 20 2d 20 73 74 |NAME.X#.|sop - st|
|00004d80| 61 63 6b 20 6f 70 65 72 | 61 74 69 6f 6e 73 0a 58 |ack oper|ations.X|
|00004d90| 23 20 53 59 4e 4f 50 53 | 49 53 0a 58 23 09 73 6f |# SYNOPS|IS.X#.so|
|00004da0| 70 20 66 69 6c 65 73 0a | 58 23 20 44 45 53 43 52 |p files.|X# DESCR|
|00004db0| 49 50 54 49 4f 4e 0a 58 | 23 09 46 69 6e 64 20 70 |IPTION.X|#.Find p|
|00004dc0| 6f 73 73 69 62 6c 65 20 | 73 74 61 63 6b 20 6f 70 |ossible |stack op|
|00004dd0| 74 69 6d 69 7a 61 74 69 | 6f 6e 73 2e 0a 58 23 20 |timizati|ons..X# |
|00004de0| 53 45 45 20 41 4c 53 4f | 0a 58 23 09 67 72 65 70 |SEE ALSO|.X#.grep|
|00004df0| 28 31 29 0a 58 23 20 41 | 55 54 48 4f 52 0a 58 23 |(1).X# A|UTHOR.X#|
|00004e00| 09 4d 69 6b 61 65 6c 20 | 52 2e 4b 2e 20 50 61 74 |.Mikael |R.K. Pat|
|00004e10| 65 6c 0a 58 23 09 43 6f | 6d 70 75 74 65 72 20 41 |el.X#.Co|mputer A|
|00004e20| 69 64 65 64 20 44 65 73 | 69 67 6e 20 4c 61 62 6f |ided Des|ign Labo|
|00004e30| 72 61 74 6f 72 79 20 28 | 43 41 44 4c 41 42 29 0a |ratory (|CADLAB).|
|00004e40| 58 23 09 44 65 70 61 72 | 74 6d 65 6e 74 20 6f 66 |X#.Depar|tment of|
|00004e50| 20 43 6f 6d 70 75 74 65 | 72 20 61 6e 64 20 49 6e | Compute|r and In|
|00004e60| 66 6f 72 6d 61 74 69 6f | 6e 20 53 63 69 65 6e 63 |formatio|n Scienc|
|00004e70| 65 0a 58 23 09 4c 69 6e | 6b 6f 70 69 6e 67 20 55 |e.X#.Lin|koping U|
|00004e80| 6e 69 76 65 72 73 69 74 | 79 0a 58 23 09 53 2d 35 |niversit|y.X#.S-5|
|00004e90| 38 31 20 38 33 20 4c 49 | 4e 4b 4f 50 49 4e 47 0a |81 83 LI|NKOPING.|
|00004ea0| 58 23 09 53 57 45 44 45 | 4e 0a 58 23 09 45 6d 61 |X#.SWEDE|N.X#.Ema|
|00004eb0| 69 6c 3a 20 6d 69 70 40 | 69 64 61 2e 6c 69 75 2e |il: mip@|ida.liu.|
|00004ec0| 73 65 0a 58 23 20 48 49 | 53 54 4f 52 59 0a 58 23 |se.X# HI|STORY.X#|
|00004ed0| 20 09 43 72 65 61 74 65 | 64 20 6f 6e 3a 20 09 30 | .Create|d on: .0|
|00004ee0| 31 20 4d 61 72 63 68 20 | 31 39 39 30 0a 58 23 09 |1 March |1990.X#.|
|00004ef0| 4c 61 73 74 65 64 20 75 | 70 64 61 74 65 64 3a 09 |Lasted u|pdated:.|
|00004f00| 30 32 20 4a 75 6e 65 20 | 31 39 39 30 0a 58 0a 58 |02 June |1990.X.X|
|00004f10| 69 66 20 5b 20 22 24 31 | 22 20 3d 20 22 22 20 5d |if [ "$1|" = "" ]|
|00004f20| 0a 58 74 68 65 6e 0a 58 | 09 65 63 68 6f 20 22 55 |.Xthen.X|.echo "U|
|00004f30| 73 61 67 65 3a 20 20 73 | 6f 70 20 66 69 6c 65 20 |sage: s|op file |
|00004f40| 2e 2e 2e 22 0a 58 65 6c | 73 65 0a 58 09 66 6f 72 |...".Xel|se.X.for|
|00004f50| 20 66 69 6c 65 20 69 6e | 20 24 31 0a 58 09 64 6f | file in| $1.X.do|
|00004f60| 09 0a 58 09 09 65 63 68 | 6f 20 22 53 74 61 63 6b |..X..ech|o "Stack|
|00004f70| 20 6f 70 74 69 6d 69 7a | 61 74 69 6f 6e 73 20 69 | optimiz|ations i|
|00004f80| 6e 3a 20 24 66 69 6c 65 | 22 0a 58 09 09 65 67 72 |n: $file|".X..egr|
|00004f90| 65 70 20 2d 6e 20 22 73 | 77 61 70 20 64 72 6f 70 |ep -n "s|wap drop|
|00004fa0| 20 7c 20 64 72 6f 70 20 | 64 72 6f 70 20 7c 20 72 | | drop |drop | r|
|00004fb0| 6f 74 20 72 6f 74 20 7c | 20 73 77 61 70 20 6f 76 |ot rot || swap ov|
|00004fc0| 65 72 20 7c 20 6f 76 65 | 72 20 6f 76 65 72 22 20 |er | ove|r over" |
|00004fd0| 24 66 69 6c 65 0a 58 09 | 09 65 63 68 6f 0a 58 09 |$file.X.|.echo.X.|
|00004fe0| 64 6f 6e 65 0a 58 0a 58 | 66 69 0a 45 4e 44 5f 4f |done.X.X|fi.END_O|
|00004ff0| 46 5f 62 69 6e 2f 73 6f | 70 0a 69 66 20 74 65 73 |F_bin/so|p.if tes|
|00005000| 74 20 36 31 39 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 619 -n|e `wc -c|
|00005010| 20 3c 62 69 6e 2f 73 6f | 70 60 3b 20 74 68 65 6e | <bin/so|p`; then|
|00005020| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00005030| 5c 22 62 69 6e 2f 73 6f | 70 5c 22 20 75 6e 70 61 |\"bin/so|p\" unpa|
|00005040| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00005050| 73 69 7a 65 21 0a 66 69 | 0a 63 68 6d 6f 64 20 2b |size!.fi|.chmod +|
|00005060| 78 20 62 69 6e 2f 73 6f | 70 0a 23 20 65 6e 64 20 |x bin/so|p.# end |
|00005070| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|00005080| 68 65 63 6b 0a 66 69 0a | 69 66 20 74 65 73 74 20 |heck.fi.|if test |
|00005090| 21 20 2d 64 20 64 6f 63 | 20 3b 20 74 68 65 6e 0a |! -d doc| ; then.|
|000050a0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 43 | echo| shar: C|
|000050b0| 72 65 61 74 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |reating |director|
|000050c0| 79 20 5c 22 64 6f 63 5c | 22 0a 20 20 20 20 6d 6b |y \"doc\|". mk|
|000050d0| 64 69 72 20 64 6f 63 0a | 66 69 0a 69 66 20 74 65 |dir doc.|fi.if te|
|000050e0| 73 74 20 21 20 2d 64 20 | 6c 69 62 20 3b 20 74 68 |st ! -d |lib ; th|
|000050f0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00005100| 3a 20 43 72 65 61 74 69 | 6e 67 20 64 69 72 65 63 |: Creati|ng direc|
|00005110| 74 6f 72 79 20 5c 22 6c | 69 62 5c 22 0a 20 20 20 |tory \"l|ib\". |
|00005120| 20 6d 6b 64 69 72 20 6c | 69 62 0a 66 69 0a 69 66 | mkdir l|ib.fi.if|
|00005130| 20 74 65 73 74 20 21 20 | 2d 64 20 6d 61 6e 20 3b | test ! |-d man ;|
|00005140| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00005150| 68 61 72 3a 20 43 72 65 | 61 74 69 6e 67 20 64 69 |har: Cre|ating di|
|00005160| 72 65 63 74 6f 72 79 20 | 5c 22 6d 61 6e 5c 22 0a |rectory |\"man\".|
|00005170| 20 20 20 20 6d 6b 64 69 | 72 20 6d 61 6e 0a 66 69 | mkdi|r man.fi|
|00005180| 0a 69 66 20 74 65 73 74 | 20 21 20 2d 64 20 6d 61 |.if test| ! -d ma|
|00005190| 6e 2f 6d 61 6e 31 20 3b | 20 74 68 65 6e 0a 20 20 |n/man1 ;| then. |
|000051a0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 43 72 65 | echo s|har: Cre|
|000051b0| 61 74 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 20 |ating di|rectory |
|000051c0| 5c 22 6d 61 6e 2f 6d 61 | 6e 31 5c 22 0a 20 20 20 |\"man/ma|n1\". |
|000051d0| 20 6d 6b 64 69 72 20 6d | 61 6e 2f 6d 61 6e 31 0a | mkdir m|an/man1.|
|000051e0| 66 69 0a 69 66 20 74 65 | 73 74 20 21 20 2d 64 20 |fi.if te|st ! -d |
|000051f0| 6d 61 6e 2f 6d 61 6e 33 | 20 3b 20 74 68 65 6e 0a |man/man3| ; then.|
|00005200| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 43 | echo| shar: C|
|00005210| 72 65 61 74 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |reating |director|
|00005220| 79 20 5c 22 6d 61 6e 2f | 6d 61 6e 33 5c 22 0a 20 |y \"man/|man3\". |
|00005230| 20 20 20 6d 6b 64 69 72 | 20 6d 61 6e 2f 6d 61 6e | mkdir| man/man|
|00005240| 33 0a 66 69 0a 69 66 20 | 74 65 73 74 20 21 20 2d |3.fi.if |test ! -|
|00005250| 64 20 73 72 63 20 3b 20 | 74 68 65 6e 0a 20 20 20 |d src ; |then. |
|00005260| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 43 72 65 61 | echo sh|ar: Crea|
|00005270| 74 69 6e 67 20 64 69 72 | 65 63 74 6f 72 79 20 5c |ting dir|ectory \|
|00005280| 22 73 72 63 5c 22 0a 20 | 20 20 20 6d 6b 64 69 72 |"src\". | mkdir|
|00005290| 20 73 72 63 0a 66 69 0a | 69 66 20 74 65 73 74 20 | src.fi.|if test |
|000052a0| 2d 66 20 73 72 63 2f 65 | 72 72 6f 72 2e 68 20 2d |-f src/e|rror.h -|
|000052b0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000052c0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000052d0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 6f |shar: Wi|ll not o|
|000052e0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|000052f0| 6e 67 20 66 69 6c 65 20 | 5c 22 73 72 63 2f 65 72 |ng file |\"src/er|
|00005300| 72 6f 72 2e 68 5c 22 0a | 65 6c 73 65 0a 65 63 68 |ror.h\".|else.ech|
|00005310| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00005320| 6e 67 20 5c 22 73 72 63 | 2f 65 72 72 6f 72 2e 68 |ng \"src|/error.h|
|00005330| 5c 22 20 5c 28 33 39 36 | 20 63 68 61 72 61 63 74 |\" \(396| charact|
|00005340| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00005350| 2f 22 20 3e 73 72 63 2f | 65 72 72 6f 72 2e 68 20 |/" >src/|error.h |
|00005360| 3c 3c 27 45 4e 44 5f 4f | 46 5f 73 72 63 2f 65 72 |<<'END_O|F_src/er|
|00005370| 72 6f 72 2e 68 27 0a 58 | 2f 2a 0a 58 20 20 43 20 |ror.h'.X|/*.X C |
|00005380| 42 41 53 45 44 20 46 4f | 52 54 48 2d 38 33 20 4d |BASED FO|RTH-83 M|
|00005390| 55 4c 54 49 2d 54 41 53 | 4b 49 4e 47 20 4b 45 52 |ULTI-TAS|KING KER|
|000053a0| 4e 45 4c 20 45 52 52 4f | 52 20 4d 41 4e 41 47 45 |NEL ERRO|R MANAGE|
|000053b0| 4d 45 4e 54 20 44 45 46 | 49 4e 49 54 49 4f 4e 53 |MENT DEF|INITIONS|
|000053c0| 0a 58 0a 58 20 20 43 6f | 70 79 72 69 67 68 74 20 |.X.X Co|pyright |
|000053d0| 28 63 29 20 31 39 38 39 | 2d 31 39 39 30 20 62 79 |(c) 1989|-1990 by|
|000053e0| 20 4d 69 6b 61 65 6c 20 | 52 2e 4b 2e 20 50 61 74 | Mikael |R.K. Pat|
|000053f0| 65 6c 0a 58 0a 58 2a 2f | 0a 58 0a 58 0a 58 2f 2a |el.X.X*/|.X.X.X/*|
|00005400| 20 49 4e 43 4c 55 44 45 | 20 46 49 4c 45 53 3a 20 | INCLUDE| FILES: |
|00005410| 53 45 54 4a 55 4d 50 20 | 2a 2f 0a 58 0a 58 23 69 |SETJUMP |*/.X.X#i|
|00005420| 6e 63 6c 75 64 65 20 3c | 73 65 74 6a 6d 70 2e 68 |nclude <|setjmp.h|
|00005430| 3e 0a 58 0a 58 0a 58 2f | 2a 20 57 41 52 4d 20 52 |>.X.X.X/|* WARM R|
|00005440| 45 53 54 41 52 54 20 45 | 4e 56 49 52 4f 4e 4d 45 |ESTART E|NVIRONME|
|00005450| 4e 54 20 46 4f 52 20 4c | 4f 4e 47 4a 4d 50 20 2a |NT FOR L|ONGJMP *|
|00005460| 2f 0a 58 0a 58 65 78 74 | 65 72 6e 20 6a 6d 70 5f |/.X.Xext|ern jmp_|
|00005470| 62 75 66 20 72 65 73 74 | 61 72 74 3b 0a 58 0a 58 |buf rest|art;.X.X|
|00005480| 0a 58 2f 2a 20 45 58 50 | 4f 52 54 45 44 20 46 55 |.X/* EXP|ORTED FU|
|00005490| 4e 43 54 49 4f 4e 53 20 | 41 4e 44 20 50 52 4f 43 |NCTIONS |AND PROC|
|000054a0| 45 44 55 52 45 53 20 2a | 2f 0a 58 0a 58 56 4f 49 |EDURES *|/.X.XVOI|
|000054b0| 44 20 65 72 72 6f 72 5f | 69 6e 69 74 69 61 74 65 |D error_|initiate|
|000054c0| 28 29 3b 0a 58 56 4f 49 | 44 20 65 72 72 6f 72 5f |();.XVOI|D error_|
|000054d0| 72 65 73 74 61 72 74 28 | 29 3b 0a 58 56 4f 49 44 |restart(|);.XVOID|
|000054e0| 20 65 72 72 6f 72 5f 66 | 61 74 61 6c 28 29 3b 0a | error_f|atal();.|
|000054f0| 58 56 4f 49 44 20 65 72 | 72 6f 72 5f 73 69 67 6e |XVOID er|ror_sign|
|00005500| 61 6c 28 29 3b 0a 58 56 | 4f 49 44 20 65 72 72 6f |al();.XV|OID erro|
|00005510| 72 5f 66 69 6e 69 73 68 | 28 29 3b 0a 45 4e 44 5f |r_finish|();.END_|
|00005520| 4f 46 5f 73 72 63 2f 65 | 72 72 6f 72 2e 68 0a 69 |OF_src/e|rror.h.i|
|00005530| 66 20 74 65 73 74 20 33 | 39 36 20 2d 6e 65 20 60 |f test 3|96 -ne `|
|00005540| 77 63 20 2d 63 20 3c 73 | 72 63 2f 65 72 72 6f 72 |wc -c <s|rc/error|
|00005550| 2e 68 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |.h`; the|n. ec|
|00005560| 68 6f 20 73 68 61 72 3a | 20 5c 22 73 72 63 2f 65 |ho shar:| \"src/e|
|00005570| 72 72 6f 72 2e 68 5c 22 | 20 75 6e 70 61 63 6b 65 |rror.h\"| unpacke|
|00005580| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00005590| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 6f |e!.fi.# |end of o|
|000055a0| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|000055b0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 73 |.fi.if t|est -f s|
|000055c0| 72 63 2f 69 6f 2e 68 20 | 2d 61 20 22 24 7b 31 7d |rc/io.h |-a "${1}|
|000055d0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|000055e0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|000055f0| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00005600| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00005610| 20 5c 22 73 72 63 2f 69 | 6f 2e 68 5c 22 0a 65 6c | \"src/i|o.h\".el|
|00005620| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00005630| 74 72 61 63 74 69 6e 67 | 20 5c 22 73 72 63 2f 69 |tracting| \"src/i|
|00005640| 6f 2e 68 5c 22 20 5c 28 | 31 36 39 33 20 63 68 61 |o.h\" \(|1693 cha|
|00005650| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00005660| 2f 5e 58 2f 2f 22 20 3e | 73 72 63 2f 69 6f 2e 68 |/^X//" >|src/io.h|
|00005670| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 73 72 63 2f 69 | <<'END_|OF_src/i|
|00005680| 6f 2e 68 27 0a 58 2f 2a | 0a 58 20 20 43 20 42 41 |o.h'.X/*|.X C BA|
|00005690| 53 45 44 20 46 4f 52 54 | 48 2d 38 33 20 4d 55 4c |SED FORT|H-83 MUL|
|000056a0| 54 49 2d 54 41 53 4b 49 | 4e 47 20 49 4f 20 4d 41 |TI-TASKI|NG IO MA|
|000056b0| 4e 41 47 45 4d 45 4e 54 | 20 44 45 46 49 4e 49 54 |NAGEMENT| DEFINIT|
|000056c0| 49 4f 4e 53 0a 58 0a 58 | 20 20 43 6f 70 79 72 69 |IONS.X.X| Copyri|
|000056d0| 67 68 74 20 28 63 29 20 | 31 39 38 38 2d 31 39 39 |ght (c) |1988-199|
|000056e0| 30 20 62 79 20 4d 69 6b | 61 65 6c 20 52 2e 4b 2e |0 by Mik|ael R.K.|
|000056f0| 20 50 61 74 65 6c 0a 58 | 0a 58 2a 2f 0a 58 0a 58 | Patel.X|.X*/.X.X|
|00005700| 0a 58 2f 2a 20 49 4e 43 | 4c 55 44 45 20 46 49 4c |.X/* INC|LUDE FIL|
|00005710| 45 53 3a 20 53 54 41 4e | 44 41 52 44 20 49 4e 50 |ES: STAN|DARD INP|
|00005720| 55 54 2f 4f 55 54 50 55 | 54 20 2a 2f 0a 58 0a 58 |UT/OUTPU|T */.X.X|
|00005730| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00005740| 68 3e 0a 58 0a 58 0a 58 | 2f 2a 20 53 54 41 4e 44 |h>.X.X.X|/* STAND|
|00005750| 41 52 44 20 49 4e 50 55 | 54 20 41 4e 44 20 4f 55 |ARD INPU|T AND OU|
|00005760| 54 50 55 54 20 44 45 53 | 43 52 49 50 54 4f 52 53 |TPUT DES|CRIPTORS|
|00005770| 20 2a 2f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 53 | */.X.X#|define S|
|00005780| 54 44 49 4e 20 20 30 0a | 58 23 64 65 66 69 6e 65 |TDIN 0.|X#define|
|00005790| 20 53 54 44 4f 55 54 20 | 31 0a 58 0a 58 0a 58 2f | STDOUT |1.X.X.X/|
|000057a0| 2a 20 57 48 49 54 45 20 | 53 50 41 43 45 20 44 45 |* WHITE |SPACE DE|
|000057b0| 46 49 4e 49 54 49 4f 4e | 2c 20 43 48 41 52 41 43 |FINITION|, CHARAC|
|000057c0| 54 45 52 20 4d 41 53 4b | 20 41 4e 44 20 44 49 52 |TER MASK| AND DIR|
|000057d0| 45 43 54 4f 52 59 20 53 | 45 50 45 52 41 54 4f 52 |ECTORY S|EPERATOR|
|000057e0| 20 2a 2f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 49 | */.X.X#|define I|
|000057f0| 53 53 50 41 43 45 28 63 | 29 20 28 28 63 29 20 3c |SSPACE(c|) ((c) <|
|00005800| 3d 20 27 20 27 29 0a 58 | 23 64 65 66 69 6e 65 20 |= ' ').X|#define |
|00005810| 43 4d 41 53 4b 20 30 33 | 37 37 0a 58 23 64 65 66 |CMASK 03|77.X#def|
|00005820| 69 6e 65 20 44 49 52 53 | 45 50 43 48 41 52 20 27 |ine DIRS|EPCHAR '|
|00005830| 2f 27 0a 58 0a 58 0a 58 | 2f 2a 20 49 4e 46 49 4c |/'.X.X.X|/* INFIL|
|00005840| 45 20 42 55 46 46 45 52 | 20 44 45 46 49 4e 49 54 |E BUFFER| DEFINIT|
|00005850| 49 4f 4e 20 2a 2f 0a 58 | 0a 58 23 64 65 66 69 6e |ION */.X|.X#defin|
|00005860| 65 20 42 55 46 53 49 5a | 45 20 31 30 32 34 0a 58 |e BUFSIZ|E 1024.X|
|00005870| 0a 58 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |.Xtypede|f struct|
|00005880| 20 7b 0a 58 20 20 20 20 | 43 53 54 52 20 66 6e 3b | {.X |CSTR fn;|
|00005890| 0a 58 20 20 20 20 49 4e | 54 20 20 6c 6e 3b 0a 58 |.X IN|T ln;.X|
|000058a0| 20 20 20 20 49 4e 54 20 | 20 66 64 3b 0a 58 20 20 | INT | fd;.X |
|000058b0| 20 20 49 4e 54 20 20 62 | 75 66 70 3b 0a 58 20 20 | INT b|ufp;.X |
|000058c0| 20 20 49 4e 54 20 20 63 | 63 3b 0a 58 20 20 20 20 | INT c|c;.X |
|000058d0| 43 48 41 52 20 62 75 66 | 5b 42 55 46 53 49 5a 45 |CHAR buf|[BUFSIZE|
|000058e0| 5d 3b 0a 58 7d 20 66 69 | 6c 65 5f 62 75 66 66 65 |];.X} fi|le_buffe|
|000058f0| 72 2c 20 2a 49 4e 46 49 | 4c 45 5f 42 55 46 46 45 |r, *INFI|LE_BUFFE|
|00005900| 52 3b 0a 58 0a 58 65 78 | 74 65 72 6e 20 49 4e 46 |R;.X.Xex|tern INF|
|00005910| 49 4c 45 5f 42 55 46 46 | 45 52 20 69 6f 5f 69 6e |ILE_BUFF|ER io_in|
|00005920| 66 73 74 61 63 6b 5b 5d | 3b 0a 58 65 78 74 65 72 |fstack[]|;.Xexter|
|00005930| 6e 20 49 4e 54 20 69 6f | 5f 69 6e 66 73 70 3b 0a |n INT io|_infsp;.|
|00005940| 58 0a 58 0a 58 2f 2a 20 | 4f 55 54 46 49 4c 45 20 |X.X.X/* |OUTFILE |
|00005950| 41 4e 44 20 45 52 52 4f | 52 20 46 49 4c 45 20 44 |AND ERRO|R FILE D|
|00005960| 45 46 49 4e 49 54 49 4f | 4e 20 2a 2f 0a 58 0a 58 |EFINITIO|N */.X.X|
|00005970| 65 78 74 65 72 6e 20 46 | 49 4c 45 20 2a 69 6f 5f |extern F|ILE *io_|
|00005980| 6f 75 74 66 3b 0a 58 65 | 78 74 65 72 6e 20 46 49 |outf;.Xe|xtern FI|
|00005990| 4c 45 20 2a 69 6f 5f 65 | 72 72 66 3b 0a 58 0a 58 |LE *io_e|rrf;.X.X|
|000059a0| 0a 58 2f 2a 20 41 50 50 | 45 4e 44 20 4f 52 44 45 |.X/* APP|END ORDE|
|000059b0| 52 20 46 4f 52 20 49 4f | 5f 50 41 54 48 20 2a 2f |R FOR IO|_PATH */|
|000059c0| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 49 4f 5f 50 |.X.X#def|ine IO_P|
|000059d0| 41 54 48 5f 46 49 52 53 | 54 20 30 0a 58 23 64 65 |ATH_FIRS|T 0.X#de|
|000059e0| 66 69 6e 65 20 49 4f 5f | 50 41 54 48 5f 4c 41 53 |fine IO_|PATH_LAS|
|000059f0| 54 20 31 0a 58 0a 58 0a | 58 2f 2a 20 49 4f 20 4d |T 1.X.X.|X/* IO M|
|00005a00| 41 4e 41 47 45 20 45 52 | 52 4f 52 20 43 4f 44 45 |ANAGE ER|ROR CODE|
|00005a10| 53 20 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |S */.X.X|#define |
|00005a20| 49 4f 5f 4e 4f 5f 45 52 | 52 4f 52 20 30 0a 58 23 |IO_NO_ER|ROR 0.X#|
|00005a30| 64 65 66 69 6e 65 20 49 | 4f 5f 45 4f 46 20 2d 31 |define I|O_EOF -1|
|00005a40| 0a 58 23 64 65 66 69 6e | 65 20 49 4f 5f 50 41 54 |.X#defin|e IO_PAT|
|00005a50| 48 5f 44 45 46 49 4e 45 | 44 20 2d 31 0a 58 23 64 |H_DEFINE|D -1.X#d|
|00005a60| 65 66 69 6e 65 20 49 4f | 5f 46 49 4c 45 5f 49 4e |efine IO|_FILE_IN|
|00005a70| 43 4c 55 44 45 44 20 2d | 31 0a 58 23 64 65 66 69 |CLUDED -|1.X#defi|
|00005a80| 6e 65 20 49 4f 5f 55 4e | 4b 4e 4f 57 4e 5f 46 49 |ne IO_UN|KNOWN_FI|
|00005a90| 4c 45 20 2d 32 0a 58 23 | 64 65 66 69 6e 65 20 49 |LE -2.X#|define I|
|00005aa0| 4f 5f 55 4e 4b 4e 4f 57 | 4e 5f 50 41 54 48 20 2d |O_UNKNOW|N_PATH -|
|00005ab0| 32 0a 58 23 64 65 66 69 | 6e 65 20 49 4f 5f 54 4f |2.X#defi|ne IO_TO|
|00005ac0| 4f 5f 4d 41 4e 59 5f 50 | 41 54 48 53 20 2d 33 0a |O_MANY_P|ATHS -3.|
|00005ad0| 58 23 64 65 66 69 6e 65 | 20 49 4f 5f 54 4f 4f 5f |X#define| IO_TOO_|
|00005ae0| 4d 41 4e 59 5f 46 49 4c | 45 53 20 2d 33 0a 58 0a |MANY_FIL|ES -3.X.|
|00005af0| 58 0a 58 2f 2a 20 45 58 | 50 4f 52 54 45 44 20 4d |X.X/* EX|PORTED M|
|00005b00| 41 43 52 4f 53 2c 20 46 | 55 4e 43 54 49 4f 4e 53 |ACROS, F|UNCTIONS|
|00005b10| 2c 20 41 4e 44 20 50 52 | 4f 43 45 44 55 52 45 53 |, AND PR|OCEDURES|
|00005b20| 20 2a 2f 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 69 | */.X.X#|define i|
|00005b30| 6f 5f 67 65 74 63 68 61 | 72 28 29 20 5c 0a 58 20 |o_getcha|r() \.X |
|00005b40| 20 20 20 28 28 69 6f 5f | 69 6e 66 73 74 61 63 6b | ((io_|infstack|
|00005b50| 5b 69 6f 5f 69 6e 66 73 | 70 5d 20 2d 3e 20 62 75 |[io_infs|p] -> bu|
|00005b60| 66 70 20 3c 20 69 6f 5f | 69 6e 66 73 74 61 63 6b |fp < io_|infstack|
|00005b70| 5b 69 6f 5f 69 6e 66 73 | 70 5d 20 2d 3e 20 63 63 |[io_infs|p] -> cc|
|00005b80| 29 20 3f 20 5c 0a 58 20 | 20 20 20 20 28 6c 6f 6e |) ? \.X | (lon|
|00005b90| 67 29 20 69 6f 5f 69 6e | 66 73 74 61 63 6b 5b 69 |g) io_in|fstack[i|
|00005ba0| 6f 5f 69 6e 66 73 70 5d | 20 2d 3e 20 62 75 66 5b |o_infsp]| -> buf[|
|00005bb0| 69 6f 5f 69 6e 66 73 74 | 61 63 6b 5b 69 6f 5f 69 |io_infst|ack[io_i|
|00005bc0| 6e 66 73 70 5d 20 2d 3e | 20 62 75 66 70 2b 2b 5d |nfsp] ->| bufp++]|
|00005bd0| 20 26 20 43 4d 41 53 4b | 20 3a 20 5c 0a 58 20 20 | & CMASK| : \.X |
|00005be0| 20 20 20 28 6c 6f 6e 67 | 29 20 69 6f 5f 66 69 6c | (long|) io_fil|
|00005bf0| 6c 62 75 66 28 29 29 0a | 58 0a 58 23 64 65 66 69 |lbuf()).|X.X#defi|
|00005c00| 6e 65 20 69 6f 5f 65 6f | 66 28 29 20 28 69 6f 5f |ne io_eo|f() (io_|
|00005c10| 69 6e 66 73 70 20 3d 3d | 20 2d 31 29 0a 58 23 64 |infsp ==| -1).X#d|
|00005c20| 65 66 69 6e 65 20 69 6f | 5f 6e 6f 74 5f 65 6f 66 |efine io|_not_eof|
|00005c30| 28 29 20 28 69 6f 5f 69 | 6e 66 73 70 20 3e 20 2d |() (io_i|nfsp > -|
|00005c40| 31 29 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 69 6f |1).X.X#d|efine io|
|00005c50| 5f 73 6f 75 72 63 65 28 | 29 20 28 69 6f 5f 69 6e |_source(|) (io_in|
|00005c60| 66 73 74 61 63 6b 5b 69 | 6f 5f 69 6e 66 73 70 5d |fstack[i|o_infsp]|
|00005c70| 20 2d 3e 20 66 6e 29 0a | 58 23 64 65 66 69 6e 65 | -> fn).|X#define|
|00005c80| 20 69 6f 5f 6c 69 6e 65 | 28 29 20 28 69 6f 5f 69 | io_line|() (io_i|
|00005c90| 6e 66 73 74 61 63 6b 5b | 69 6f 5f 69 6e 66 73 70 |nfstack[|io_infsp|
|00005ca0| 5d 20 2d 3e 20 6c 6e 29 | 0a 58 23 64 65 66 69 6e |] -> ln)|.X#defin|
|00005cb0| 65 20 69 6f 5f 6e 65 77 | 6c 69 6e 65 28 29 20 28 |e io_new|line() (|
|00005cc0| 2b 2b 69 6f 5f 6c 69 6e | 65 28 29 29 0a 58 0a 58 |++io_lin|e()).X.X|
|00005cd0| 49 4e 54 20 20 69 6f 5f | 70 61 74 68 28 29 3b 0a |INT io_|path();.|
|00005ce0| 58 49 4e 54 20 20 69 6f | 5f 69 6e 66 69 6c 65 28 |XINT io|_infile(|
|00005cf0| 29 3b 0a 58 49 4e 54 20 | 20 69 6f 5f 66 69 6c 6c |);.XINT | io_fill|
|00005d00| 62 75 66 28 29 3b 0a 58 | 0a 58 56 4f 49 44 20 69 |buf();.X|.XVOID i|
|00005d10| 6f 5f 66 6c 75 73 68 28 | 29 3b 0a 58 0a 58 56 4f |o_flush(|);.X.XVO|
|00005d20| 49 44 20 69 6f 5f 73 6b | 69 70 28 29 3b 0a 58 56 |ID io_sk|ip();.XV|
|00005d30| 4f 49 44 20 69 6f 5f 73 | 63 61 6e 28 29 3b 0a 58 |OID io_s|can();.X|
|00005d40| 56 4f 49 44 20 69 6f 5f | 73 6b 69 70 73 70 61 63 |VOID io_|skipspac|
|00005d50| 65 28 29 3b 0a 58 0a 58 | 56 4f 49 44 20 69 6f 5f |e();.X.X|VOID io_|
|00005d60| 69 6e 69 74 69 61 74 65 | 28 29 3b 0a 58 56 4f 49 |initiate|();.XVOI|
|00005d70| 44 20 69 6f 5f 66 69 6e | 69 73 68 28 29 3b 0a 45 |D io_fin|ish();.E|
|00005d80| 4e 44 5f 4f 46 5f 73 72 | 63 2f 69 6f 2e 68 0a 69 |ND_OF_sr|c/io.h.i|
|00005d90| 66 20 74 65 73 74 20 31 | 36 39 33 20 2d 6e 65 20 |f test 1|693 -ne |
|00005da0| 60 77 63 20 2d 63 20 3c | 73 72 63 2f 69 6f 2e 68 |`wc -c <|src/io.h|
|00005db0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00005dc0| 20 73 68 61 72 3a 20 5c | 22 73 72 63 2f 69 6f 2e | shar: \|"src/io.|
|00005dd0| 68 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |h\" unpa|cked wit|
|00005de0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00005df0| 0a 23 20 65 6e 64 20 6f | 66 20 6f 76 65 72 77 72 |.# end o|f overwr|
|00005e00| 69 74 69 6e 67 20 63 68 | 65 63 6b 0a 66 69 0a 69 |iting ch|eck.fi.i|
|00005e10| 66 20 74 65 73 74 20 2d | 66 20 73 72 63 2f 6d 65 |f test -|f src/me|
|00005e20| 6d 6f 72 79 2e 63 20 2d | 61 20 22 24 7b 31 7d 22 |mory.c -|a "${1}"|
|00005e30| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00005e40| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00005e50| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00005e60| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00005e70| 5c 22 73 72 63 2f 6d 65 | 6d 6f 72 79 2e 63 5c 22 |\"src/me|mory.c\"|
|00005e80| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00005e90| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 73 72 | Extract|ing \"sr|
|00005ea0| 63 2f 6d 65 6d 6f 72 79 | 2e 63 5c 22 20 5c 28 31 |c/memory|.c\" \(1|
|00005eb0| 36 39 32 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |692 char|acters\)|
|00005ec0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 73 |.sed "s/|^X//" >s|
|00005ed0| 72 63 2f 6d 65 6d 6f 72 | 79 2e 63 20 3c 3c 27 45 |rc/memor|y.c <<'E|
|00005ee0| 4e 44 5f 4f 46 5f 73 72 | 63 2f 6d 65 6d 6f 72 79 |ND_OF_sr|c/memory|
|00005ef0| 2e 63 27 0a 58 2f 2a 0a | 58 20 20 43 20 42 41 53 |.c'.X/*.|X C BAS|
|00005f00| 45 44 20 46 4f 52 54 48 | 2d 38 33 20 4d 55 4c 54 |ED FORTH|-83 MULT|
|00005f10| 49 2d 54 41 53 4b 49 4e | 47 20 4b 45 52 4e 45 4c |I-TASKIN|G KERNEL|
|00005f20| 20 4d 45 4d 4f 52 59 20 | 4d 41 4e 41 47 45 4d 45 | MEMORY |MANAGEME|
|00005f30| 4e 54 0a 58 0a 58 20 20 | 43 6f 70 79 72 69 67 68 |NT.X.X |Copyrigh|
|00005f40| 74 20 28 63 29 20 31 39 | 38 39 2d 31 39 39 30 20 |t (c) 19|89-1990 |
|00005f50| 62 79 20 4d 69 6b 61 65 | 6c 20 50 61 74 65 6c 0a |by Mikae|l Patel.|
|00005f60| 58 0a 58 20 20 43 6f 6d | 70 75 74 65 72 20 41 69 |X.X Com|puter Ai|
|00005f70| 64 65 64 20 44 65 73 69 | 67 6e 20 4c 61 62 6f 72 |ded Desi|gn Labor|
|00005f80| 61 74 6f 72 79 20 28 43 | 41 44 4c 41 42 29 0a 58 |atory (C|ADLAB).X|
|00005f90| 20 20 44 65 70 61 72 74 | 6d 65 6e 74 20 6f 66 20 | Depart|ment of |
|00005fa0| 43 6f 6d 70 75 74 65 72 | 20 61 6e 64 20 49 6e 66 |Computer| and Inf|
|00005fb0| 6f 72 6d 61 74 69 6f 6e | 20 53 63 69 65 6e 63 65 |ormation| Science|
|00005fc0| 0a 58 20 20 4c 69 6e 6b | 6f 70 69 6e 67 20 55 6e |.X Link|oping Un|
|00005fd0| 69 76 65 72 73 69 74 79 | 0a 58 20 20 53 2d 35 38 |iversity|.X S-58|
|00005fe0| 31 20 38 33 20 4c 49 4e | 4b 4f 50 49 4e 47 0a 58 |1 83 LIN|KOPING.X|
|00005ff0| 20 20 53 57 45 44 45 4e | 0a 58 0a 58 20 20 45 6d | SWEDEN|.X.X Em|
|00006000| 61 69 6c 3a 20 6d 69 70 | 40 69 64 61 2e 6c 69 75 |ail: mip|@ida.liu|
|00006010| 2e 73 65 0a 58 20 20 0a | 58 20 20 53 74 61 72 74 |.se.X .|X Start|
|00006020| 65 64 20 6f 6e 3a 20 38 | 20 4e 6f 76 65 6d 62 65 |ed on: 8| Novembe|
|00006030| 72 20 31 39 38 39 0a 58 | 0a 58 20 20 4c 61 73 74 |r 1989.X|.X Last|
|00006040| 20 75 70 64 61 74 65 64 | 20 6f 6e 3a 20 32 36 20 | updated| on: 26 |
|00006050| 4a 75 6e 65 20 31 39 39 | 30 0a 58 0a 58 20 20 44 |June 199|0.X.X D|
|00006060| 65 70 65 6e 64 65 6e 63 | 69 65 73 3a 0a 58 20 20 |ependenc|ies:.X |
|00006070| 20 20 20 20 20 28 63 63 | 29 20 6d 65 6d 6f 72 79 | (cc|) memory|
|00006080| 2e 68 2c 20 69 6f 2e 68 | 2c 20 61 6e 64 20 6b 65 |.h, io.h|, and ke|
|00006090| 72 6e 65 6c 2e 68 0a 58 | 0a 58 20 20 44 65 73 63 |rnel.h.X|.X Desc|
|000060a0| 72 69 70 74 69 6f 6e 3a | 0a 58 20 20 20 20 20 20 |ription:|.X |
|000060b0| 20 48 61 6e 64 6c 65 73 | 20 6c 6f 77 20 6c 65 76 | Handles| low lev|
|000060c0| 65 6c 20 61 63 63 65 73 | 73 20 74 6f 20 6d 65 6d |el acces|s to mem|
|000060d0| 6f 72 79 20 61 6e 64 20 | 64 69 63 74 69 6f 6e 61 |ory and |dictiona|
|000060e0| 72 79 20 61 6c 6c 6f 63 | 61 74 69 6f 6e 2e 0a 58 |ry alloc|ation..X|
|000060f0| 20 20 0a 58 20 20 43 6f | 70 79 69 6e 67 3a 0a 58 | .X Co|pying:.X|
|00006100| 20 20 20 20 20 20 20 54 | 68 69 73 20 70 72 6f 67 | T|his prog|
|00006110| 72 61 6d 20 69 73 20 66 | 72 65 65 20 73 6f 66 74 |ram is f|ree soft|
|00006120| 77 61 72 65 3b 20 79 6f | 75 20 63 61 6e 20 72 65 |ware; yo|u can re|
|00006130| 64 69 73 74 72 69 62 75 | 74 65 20 69 74 20 61 6e |distribu|te it an|
|00006140| 64 2f 6f 72 20 6d 6f 64 | 69 66 79 0a 58 20 20 20 |d/or mod|ify.X |
|00006150| 20 20 20 20 69 74 20 75 | 6e 64 65 72 20 74 68 65 | it u|nder the|
|00006160| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|00006170| 55 20 47 65 6e 65 72 61 | 6c 20 50 75 62 6c 69 63 |U Genera|l Public|
|00006180| 20 4c 69 63 65 6e 73 65 | 20 61 73 20 70 75 62 6c | License| as publ|
|00006190| 69 73 68 65 64 20 62 79 | 0a 58 20 20 20 20 20 20 |ished by|.X |
|000061a0| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|000061b0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|000061c0| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 31 2c |ither ve|rsion 1,|
|000061d0| 20 6f 72 20 28 61 74 20 | 79 6f 75 72 20 6f 70 74 | or (at |your opt|
|000061e0| 69 6f 6e 29 0a 58 20 20 | 20 20 20 20 20 61 6e 79 |ion).X | any|
|000061f0| 20 6c 61 74 65 72 20 76 | 65 72 73 69 6f 6e 2e 0a | later v|ersion..|
|00006200| 58 0a 58 20 20 20 20 20 | 20 20 54 68 69 73 20 70 |X.X | This p|
|00006210| 72 6f 67 72 61 6d 20 69 | 73 20 64 69 73 74 72 69 |rogram i|s distri|
|00006220| 62 75 74 65 64 20 69 6e | 20 74 68 65 20 68 6f 70 |buted in| the hop|
|00006230| 65 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 62 |e that i|t will b|
|00006240| 65 20 75 73 65 66 75 6c | 2c 0a 58 20 20 20 20 20 |e useful|,.X |
|00006250| 20 20 62 75 74 20 57 49 | 54 48 4f 55 54 20 41 4e | but WI|THOUT AN|
|00006260| 59 20 57 41 52 52 41 4e | 54 59 3b 20 77 69 74 68 |Y WARRAN|TY; with|
|00006270| 6f 75 74 20 65 76 65 6e | 20 74 68 65 20 69 6d 70 |out even| the imp|
|00006280| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 20 6f 66 |lied war|ranty of|
|00006290| 0a 58 20 20 20 20 20 20 | 20 4d 45 52 43 48 41 4e |.X | MERCHAN|
|000062a0| 54 41 42 49 4c 49 54 59 | 20 6f 72 20 46 49 54 4e |TABILITY| or FITN|
|000062b0| 45 53 53 20 46 4f 52 20 | 41 20 50 41 52 54 49 43 |ESS FOR |A PARTIC|
|000062c0| 55 4c 41 52 20 50 55 52 | 50 4f 53 45 2e 20 20 53 |ULAR PUR|POSE. S|
|000062d0| 65 65 20 74 68 65 0a 58 | 20 20 20 20 20 20 20 47 |ee the.X| G|
|000062e0| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|000062f0| 63 20 4c 69 63 65 6e 73 | 65 20 66 6f 72 20 6d 6f |c Licens|e for mo|
|00006300| 72 65 20 64 65 74 61 69 | 6c 73 2e 0a 58 0a 58 20 |re detai|ls..X.X |
|00006310| 20 20 20 20 20 20 59 6f | 75 20 73 68 6f 75 6c 64 | Yo|u should|
|00006320| 20 68 61 76 65 20 72 65 | 63 65 69 76 65 64 20 61 | have re|ceived a|
|00006330| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 47 4e 55 | copy of| the GNU|
|00006340| 20 47 65 6e 65 72 61 6c | 20 50 75 62 6c 69 63 20 | General| Public |
|00006350| 4c 69 63 65 6e 73 65 0a | 58 20 20 20 20 20 20 20 |License.|X |
|00006360| 61 6c 6f 6e 67 20 77 69 | 74 68 20 74 68 69 73 20 |along wi|th this |
|00006370| 70 72 6f 67 72 61 6d 3b | 20 73 65 65 20 74 68 65 |program;| see the|
|00006380| 20 66 69 6c 65 20 43 4f | 50 59 49 4e 47 2e 20 20 | file CO|PYING. |
|00006390| 49 66 20 6e 6f 74 2c 20 | 77 72 69 74 65 20 74 6f |If not, |write to|
|000063a0| 0a 58 20 20 20 20 20 20 | 20 74 68 65 20 46 72 65 |.X | the Fre|
|000063b0| 65 20 53 6f 66 74 77 61 | 72 65 20 46 6f 75 6e 64 |e Softwa|re Found|
|000063c0| 61 74 69 6f 6e 2c 20 36 | 37 35 20 4d 61 73 73 20 |ation, 6|75 Mass |
|000063d0| 41 76 65 2c 20 43 61 6d | 62 72 69 64 67 65 2c 20 |Ave, Cam|bridge, |
|000063e0| 4d 41 20 30 32 31 33 39 | 2c 20 55 53 41 2e 20 0a |MA 02139|, USA. .|
|000063f0| 58 0a 58 2a 2f 0a 58 0a | 58 0a 58 23 69 6e 63 6c |X.X*/.X.|X.X#incl|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.