home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / unix_c / utils / spin.tar < prev    next >
Tape Archive  |  1989-03-22  |  88.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: spin.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file spin/, mode 755 , uid 243 , gid 13 , size 0 , seconds 4411555602 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 73 70 69 6e 2f 00 00 00 | 00 00 00 00 00 00 00 00 |spin/...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 31 31 35 35 35 | 0 | 4411555|
|00000090| 36 30 32 20 20 20 34 37 | 37 30 00 20 00 00 00 00 |602 47|70. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 73 70 69 6e 2f 53 68 61 | 72 46 69 6c 65 2e 48 65 |spin/Sha|rFile.He|
|00000210| 61 64 65 72 73 00 00 00 | 00 00 00 00 00 00 00 00 |aders...|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000280| 20 20 20 34 35 31 30 20 | 20 34 34 31 31 35 35 35 | 4510 | 4411555|
|00000290| 36 30 32 20 20 31 30 30 | 34 37 00 20 00 00 00 00 |602 100|47. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 73 70 69 6e | 2e 73 68 61 72 30 31 20 |=== spin|.shar01 |
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 46 72 6f 6d 20 72 |========|=.From r|
|00000430| 69 61 63 73 21 65 6f 73 | 21 61 6d 65 73 21 6f 6c |iacs!eos|!ames!ol|
|00000440| 69 76 65 62 21 61 70 70 | 6c 65 21 62 62 6e 21 62 |iveb!app|le!bbn!b|
|00000450| 62 6e 2e 63 6f 6d 21 72 | 73 61 6c 7a 20 54 68 75 |bn.com!r|salz Thu|
|00000460| 20 4d 61 72 20 20 39 20 | 31 37 3a 30 39 3a 32 38 | Mar 9 |17:09:28|
|00000470| 20 50 53 54 20 31 39 38 | 39 0a 0a 53 75 62 6d 69 | PST 198|9..Submi|
|00000480| 74 74 65 64 2d 62 79 3a | 20 4a 69 6d 20 4d 63 42 |tted-by:| Jim McB|
|00000490| 65 61 74 68 20 3c 76 6f | 64 65 72 21 73 63 69 21 |eath <vo|der!sci!|
|000004a0| 67 75 6d 62 79 21 6a 69 | 6d 6d 63 3e 0a 50 6f 73 |gumby!ji|mmc>.Pos|
|000004b0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000004c0| 75 6d 65 20 31 38 2c 20 | 49 73 73 75 65 20 39 0a |ume 18, |Issue 9.|
|000004d0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 73 70 |Archive-|name: sp|
|000004e0| 69 6e 2f 70 61 72 74 30 | 31 0a 0a 5b 20 20 54 68 |in/part0|1..[ Th|
|000004f0| 69 73 20 70 6f 73 74 69 | 6e 67 20 69 73 20 68 61 |is posti|ng is ha|
|00000500| 72 64 20 74 6f 20 64 65 | 73 63 72 69 62 65 2e 20 |rd to de|scribe. |
|00000510| 20 49 74 27 73 20 73 6f | 72 74 20 6f 66 20 6c 69 | It's so|rt of li|
|00000520| 6b 65 20 61 6e 20 65 78 | 74 65 6e 73 69 62 6c 65 |ke an ex|tensible|
|00000530| 0a 20 20 20 63 6f 6d 6d | 61 6e 64 2d 6c 61 6e 67 |. comm|and-lang|
|00000540| 75 61 67 65 20 69 6e 74 | 65 72 70 72 65 74 65 72 |uage int|erpreter|
|00000550| 20 6c 69 62 72 61 72 79 | 2e 20 20 2d 2d 72 24 20 | library|. --r$ |
|00000560| 20 5d 0a 0a 53 70 69 6e | 20 69 73 20 61 20 73 69 | ]..Spin| is a si|
|00000570| 6d 70 6c 65 20 69 6e 74 | 65 72 70 72 65 74 65 72 |mple int|erpreter|
|00000580| 20 69 6e 74 65 6e 64 65 | 64 20 66 6f 72 20 75 73 | intende|d for us|
|00000590| 65 20 61 73 20 61 20 70 | 72 6f 67 72 61 6d 20 64 |e as a p|rogram d|
|000005a0| 65 76 65 6c 6f 70 6d 65 | 6e 74 0a 74 6f 6f 6c 20 |evelopme|nt.tool |
|000005b0| 61 6e 64 20 6d 6f 64 65 | 73 74 20 70 72 6f 67 72 |and mode|st progr|
|000005c0| 61 6d 6d 61 62 6c 65 20 | 69 6e 74 65 72 66 61 63 |ammable |interfac|
|000005d0| 65 2e 20 20 49 74 20 63 | 6f 6e 74 61 69 6e 73 20 |e. It c|ontains |
|000005e0| 61 20 70 61 72 73 65 72 | 20 61 6e 64 0a 65 78 65 |a parser| and.exe|
|000005f0| 63 75 74 69 6f 6e 20 65 | 6e 67 69 6e 65 2c 20 77 |cution e|ngine, w|
|00000600| 69 74 68 20 74 68 65 20 | 61 62 69 6c 69 74 79 20 |ith the |ability |
|00000610| 74 6f 20 65 61 73 69 6c | 79 20 65 78 74 65 6e 64 |to easil|y extend|
|00000620| 20 74 68 65 20 62 61 73 | 69 63 20 65 6e 67 69 6e | the bas|ic engin|
|00000630| 65 20 77 69 74 68 0a 61 | 64 64 69 74 69 6f 6e 61 |e with.a|dditiona|
|00000640| 6c 20 66 65 61 74 75 72 | 65 73 20 73 75 63 68 20 |l featur|es such |
|00000650| 61 73 20 63 6f 6e 74 72 | 6f 6c 20 63 6f 6e 73 74 |as contr|ol const|
|00000660| 72 75 63 74 73 20 6f 72 | 20 6e 65 77 20 6f 70 65 |ructs or| new ope|
|00000670| 72 61 74 69 6f 6e 73 2e | 0a 0a 54 68 65 20 73 70 |rations.|..The sp|
|00000680| 69 6e 20 69 6e 74 65 72 | 70 72 65 74 65 72 20 68 |in inter|preter h|
|00000690| 61 73 20 62 65 65 6e 20 | 73 65 74 20 75 70 20 74 |as been |set up t|
|000006a0| 6f 20 62 65 20 75 73 61 | 62 6c 65 20 69 6e 20 61 |o be usa|ble in a|
|000006b0| 20 62 61 72 65 2d 62 6f | 6e 65 73 0a 63 6f 6e 66 | bare-bo|nes.conf|
|000006c0| 69 67 75 72 61 74 69 6f | 6e 2c 20 69 6e 20 77 68 |iguratio|n, in wh|
|000006d0| 69 63 68 20 74 68 65 72 | 65 20 61 72 65 20 61 6c |ich ther|e are al|
|000006e0| 6d 6f 73 74 20 6e 6f 20 | 63 61 70 61 62 69 6c 69 |most no |capabili|
|000006f0| 74 69 65 73 20 6f 72 20 | 66 75 6e 63 74 69 6f 6e |ties or |function|
|00000700| 73 0a 61 76 61 69 6c 61 | 62 6c 65 20 6f 74 68 65 |s.availa|ble othe|
|00000710| 72 20 74 68 61 6e 20 61 | 70 70 6c 69 63 61 74 69 |r than a|pplicati|
|00000720| 6f 6e 2d 73 70 65 63 69 | 66 69 63 20 6f 6e 65 73 |on-speci|fic ones|
|00000730| 2e 20 20 54 68 65 72 65 | 20 61 72 65 20 61 6c 73 |. There| are als|
|00000740| 6f 20 61 20 73 65 74 20 | 6f 66 0a 76 61 72 69 6f |o a set |of.vario|
|00000750| 75 73 20 73 69 6d 70 6c | 65 20 65 78 74 65 6e 73 |us simpl|e extens|
|00000760| 69 6f 6e 73 20 61 76 61 | 69 6c 61 62 6c 65 20 77 |ions ava|ilable w|
|00000770| 68 69 63 68 20 72 61 69 | 73 65 20 74 68 65 0a 61 |hich rai|se the.a|
|00000780| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 69 6e 64 65 70 |pplicati|on-indep|
|00000790| 65 6e 64 65 6e 74 20 63 | 61 70 61 62 69 6c 69 74 |endent c|apabilit|
|000007a0| 69 65 73 20 6f 66 20 73 | 70 69 6e 20 75 70 20 74 |ies of s|pin up t|
|000007b0| 6f 20 61 20 6c 65 76 65 | 6c 20 77 68 65 72 65 20 |o a leve|l where |
|000007c0| 69 74 20 69 73 0a 61 6c | 6d 6f 73 74 20 75 73 61 |it is.al|most usa|
|000007d0| 62 6c 65 20 62 79 20 69 | 74 73 65 6c 66 2e 20 20 |ble by i|tself. |
|000007e0| 54 68 65 20 69 6e 74 65 | 6e 74 20 69 73 20 66 6f |The inte|nt is fo|
|000007f0| 72 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |r the ap|plicatio|
|00000800| 6e 20 74 6f 20 61 64 64 | 0a 77 68 61 74 65 76 65 |n to add|.whateve|
|00000810| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2d 73 70 |r applic|ation-sp|
|00000820| 65 63 69 66 69 63 20 66 | 75 6e 63 74 69 6f 6e 73 |ecific f|unctions|
|00000830| 20 69 74 20 6e 65 65 64 | 73 20 61 6e 64 20 74 6f | it need|s and to|
|00000840| 20 73 65 6c 65 63 74 20 | 74 68 65 20 6c 65 76 65 | select |the leve|
|00000850| 6c 0a 6f 66 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |l.of app|lication|
|00000860| 2d 69 6e 64 65 70 65 6e | 64 65 6e 74 20 73 75 70 |-indepen|dent sup|
|00000870| 70 6f 72 74 20 6e 65 65 | 64 65 64 2e 20 20 54 68 |port nee|ded. Th|
|00000880| 65 20 73 70 69 6e 20 6c | 69 62 72 61 72 79 20 77 |e spin l|ibrary w|
|00000890| 61 73 20 64 65 73 69 67 | 6e 65 64 0a 74 6f 20 62 |as desig|ned.to b|
|000008a0| 65 20 6d 6f 64 75 6c 61 | 72 20 65 6e 6f 75 67 68 |e modula|r enough|
|000008b0| 20 74 68 61 74 20 74 68 | 65 20 61 70 70 6c 69 63 | that th|e applic|
|000008c0| 61 74 69 6f 6e 20 70 72 | 6f 67 72 61 6d 20 63 6f |ation pr|ogram co|
|000008d0| 75 6c 64 20 70 69 63 6b | 20 61 6e 64 20 63 68 6f |uld pick| and cho|
|000008e0| 6f 73 65 0a 61 6d 6f 6e | 67 20 61 6c 6d 6f 73 74 |ose.amon|g almost|
|000008f0| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 61 73 70 65 | all of |the aspe|
|00000900| 63 74 73 20 6f 66 20 74 | 68 65 20 69 6e 74 65 72 |cts of t|he inter|
|00000910| 70 72 65 74 65 72 2e 20 | 20 49 66 20 74 68 65 72 |preter. | If ther|
|00000920| 65 20 69 73 20 61 0a 63 | 61 70 61 62 69 6c 69 74 |e is a.c|apabilit|
|00000930| 79 20 77 68 69 63 68 20 | 69 73 20 6e 6f 74 20 6e |y which |is not n|
|00000940| 65 65 64 65 64 2c 20 69 | 74 20 64 6f 65 73 20 6e |eeded, i|t does n|
|00000950| 6f 74 20 6e 65 65 64 20 | 74 6f 20 62 65 20 6c 6f |ot need |to be lo|
|00000960| 61 64 65 64 2e 20 20 49 | 66 20 74 68 65 72 65 0a |aded. I|f there.|
|00000970| 69 73 20 61 20 63 61 70 | 61 62 69 6c 69 74 79 20 |is a cap|ability |
|00000980| 77 68 69 63 68 20 74 68 | 65 20 70 72 6f 67 72 61 |which th|e progra|
|00000990| 6d 6d 65 72 20 66 65 65 | 6c 73 20 68 65 20 63 61 |mmer fee|ls he ca|
|000009a0| 6e 20 69 6d 70 6c 65 6d | 65 6e 74 20 62 65 74 74 |n implem|ent bett|
|000009b0| 65 72 2c 20 69 74 20 69 | 73 0a 74 79 70 69 63 61 |er, it i|s.typica|
|000009c0| 6c 6c 79 20 61 20 66 61 | 69 72 6c 79 20 73 69 6d |lly a fa|irly sim|
|000009d0| 70 6c 65 20 6a 6f 62 20 | 66 6f 72 20 68 69 6d 20 |ple job |for him |
|000009e0| 74 6f 20 72 65 77 72 69 | 74 65 20 74 68 61 74 20 |to rewri|te that |
|000009f0| 63 61 70 61 62 69 6c 69 | 74 79 20 77 69 74 68 6f |capabili|ty witho|
|00000a00| 75 74 0a 77 6f 72 72 79 | 69 6e 67 20 61 62 6f 75 |ut.worry|ing abou|
|00000a10| 74 20 6f 74 68 65 72 20 | 70 61 72 74 73 20 6f 66 |t other |parts of|
|00000a20| 20 74 68 65 20 73 79 73 | 74 65 6d 2e 0a 0a 49 6e | the sys|tem...In|
|00000a30| 20 61 64 64 69 74 69 6f | 6e 20 74 6f 20 74 68 65 | additio|n to the|
|00000a40| 20 67 65 6e 65 72 69 63 | 20 65 78 74 65 6e 73 69 | generic| extensi|
|00000a50| 6f 6e 73 2c 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |ons, an |applicat|
|00000a60| 69 6f 6e 20 70 72 6f 67 | 72 61 6d 20 63 61 6e 20 |ion prog|ram can |
|00000a70| 61 64 64 0a 77 68 61 74 | 65 76 65 72 20 61 70 70 |add.what|ever app|
|00000a80| 6c 69 63 61 74 69 6f 6e | 2d 73 70 65 63 69 66 69 |lication|-specifi|
|00000a90| 63 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 72 65 20 |c functi|ons are |
|00000aa0| 64 65 73 69 72 65 64 2e | 20 20 45 61 63 68 20 66 |desired.| Each f|
|00000ab0| 75 6e 63 74 69 6f 6e 0a | 72 65 71 75 69 72 65 73 |unction.|requires|
|00000ac0| 20 61 20 6f 6e 65 2d 6c | 69 6e 65 20 63 61 6c 6c | a one-l|ine call|
|00000ad0| 20 74 6f 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 73 | to one |of the s|
|00000ae0| 70 69 6e 20 70 72 69 6d | 69 74 69 76 65 73 2c 20 |pin prim|itives, |
|00000af0| 74 6f 20 62 65 20 65 78 | 65 63 75 74 65 64 0a 64 |to be ex|ecuted.d|
|00000b00| 75 72 69 6e 67 20 70 72 | 6f 67 72 61 6d 20 73 74 |uring pr|ogram st|
|00000b10| 61 72 74 75 70 20 74 69 | 6d 65 2e 20 20 4f 6e 63 |artup ti|me. Onc|
|00000b20| 65 20 74 68 69 73 20 68 | 61 73 20 62 65 65 6e 20 |e this h|as been |
|00000b30| 64 6f 6e 65 2c 20 74 68 | 65 20 66 75 6e 63 74 69 |done, th|e functi|
|00000b40| 6f 6e 20 69 73 0a 61 76 | 61 69 6c 61 62 6c 65 20 |on is.av|ailable |
|00000b50| 74 6f 20 74 68 65 20 75 | 73 65 72 20 6f 66 20 74 |to the u|ser of t|
|00000b60| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 0a |he appli|cation..|
|00000b70| 0a 54 68 65 72 65 20 61 | 72 65 20 61 20 73 6d 61 |.There a|re a sma|
|00000b80| 6c 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 64 61 74 |ll numbe|r of dat|
|00000b90| 61 20 74 79 70 65 73 20 | 6b 6e 6f 77 6e 20 74 6f |a types |known to|
|00000ba0| 20 73 70 69 6e 20 28 65 | 2e 67 2e 20 69 6e 74 2c | spin (e|.g. int,|
|00000bb0| 20 66 6c 6f 61 74 2c 0a | 73 74 72 69 6e 67 29 2c | float,.|string),|
|00000bc0| 20 77 68 69 63 68 20 63 | 61 6e 20 62 65 20 73 70 | which c|an be sp|
|00000bd0| 65 63 69 66 69 65 64 20 | 61 73 20 74 68 65 20 61 |ecified |as the a|
|00000be0| 72 67 75 6d 65 6e 74 20 | 61 6e 64 20 72 65 74 75 |rgument |and retu|
|00000bf0| 72 6e 20 74 79 70 65 73 | 20 66 6f 72 0a 66 75 6e |rn types| for.fun|
|00000c00| 63 74 69 6f 6e 73 2e 20 | 20 54 68 65 20 73 70 69 |ctions. | The spi|
|00000c10| 6e 20 69 6e 74 65 72 70 | 72 65 74 65 72 20 77 69 |n interp|reter wi|
|00000c20| 6c 6c 20 64 6f 20 74 79 | 70 65 20 63 68 65 63 6b |ll do ty|pe check|
|00000c30| 69 6e 67 20 6f 6e 20 61 | 6c 6c 20 61 72 67 75 6d |ing on a|ll argum|
|00000c40| 65 6e 74 73 0a 70 61 73 | 73 65 64 20 74 6f 20 66 |ents.pas|sed to f|
|00000c50| 75 6e 63 74 69 6f 6e 73 | 2e 0a 0a 0a 3d 3d 3d 20 |unctions|....=== |
|00000c60| 73 70 69 6e 2e 73 68 61 | 72 30 32 20 3d 3d 3d 3d |spin.sha|r02 ====|
|00000c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000c80| 3d 3d 3d 3d 3d 0a 46 72 | 6f 6d 20 72 69 61 63 73 |=====.Fr|om riacs|
|00000c90| 21 65 6f 73 21 61 6d 65 | 73 21 6f 6c 69 76 65 62 |!eos!ame|s!oliveb|
|00000ca0| 21 61 70 70 6c 65 21 62 | 62 6e 21 62 62 6e 2e 63 |!apple!b|bn!bbn.c|
|00000cb0| 6f 6d 21 72 73 61 6c 7a | 20 54 68 75 20 4d 61 72 |om!rsalz| Thu Mar|
|00000cc0| 20 20 39 20 31 37 3a 30 | 39 3a 34 33 20 50 53 54 | 9 17:0|9:43 PST|
|00000cd0| 20 31 39 38 39 0a 0a 53 | 75 62 6d 69 74 74 65 64 | 1989..S|ubmitted|
|00000ce0| 2d 62 79 3a 20 4a 69 6d | 20 4d 63 42 65 61 74 68 |-by: Jim| McBeath|
|00000cf0| 20 3c 76 6f 64 65 72 21 | 73 63 69 21 67 75 6d 62 | <voder!|sci!gumb|
|00000d00| 79 21 6a 69 6d 6d 63 3e | 0a 50 6f 73 74 69 6e 67 |y!jimmc>|.Posting|
|00000d10| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|00000d20| 31 38 2c 20 49 73 73 75 | 65 20 31 30 0a 41 72 63 |18, Issu|e 10.Arc|
|00000d30| 68 69 76 65 2d 6e 61 6d | 65 3a 20 73 70 69 6e 2f |hive-nam|e: spin/|
|00000d40| 70 61 72 74 30 31 0a 0a | 00 00 00 00 00 00 00 00 |part01..|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 73 70 69 6e 2f 4d 41 4e | 49 46 45 53 54 00 00 00 |spin/MAN|IFEST...|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000e70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00000e80| 20 20 20 31 34 35 31 20 | 20 34 34 31 31 35 35 35 | 1451 | 4411555|
|00000e90| 35 32 33 20 20 20 36 32 | 31 31 00 20 00 00 00 00 |523 62|11. ....|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 20 20 20 46 69 6c 65 20 | 4e 61 6d 65 09 09 41 72 | File |Name..Ar|
|00001010| 63 68 69 76 65 20 23 09 | 44 65 73 63 72 69 70 74 |chive #.|Descript|
|00001020| 69 6f 6e 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion.----|--------|
|00001030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00001060| 20 4d 41 4e 49 46 45 53 | 54 20 20 20 20 20 20 20 | MANIFES|T |
|00001070| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 20 | | 1.. |
|00001080| 4d 61 6b 65 66 69 6c 65 | 20 20 20 20 20 20 20 20 |Makefile| |
|00001090| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 20 52 | | 1.. R|
|000010a0| 45 41 44 4d 45 20 20 20 | 20 20 20 20 20 20 20 20 |EADME | |
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 20 54 4f | | 1.. TO|
|000010c0| 44 4f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |DO | |
|000010d0| 20 20 20 20 20 20 20 20 | 20 31 09 0a 20 63 6f 6e | | 1.. con|
|000010e0| 74 2e 73 70 20 20 20 20 | 20 20 20 20 20 20 20 20 |t.sp | |
|000010f0| 20 20 20 20 20 20 20 20 | 31 09 0a 20 63 6f 6e 74 | |1.. cont|
|00001100| 73 75 62 73 2e 63 20 20 | 20 20 20 20 20 20 20 20 |subs.c | |
|00001110| 20 20 20 20 20 20 20 31 | 09 0a 20 65 78 65 63 2e | 1|.. exec.|
|00001120| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|00001130| 20 20 20 20 20 20 32 09 | 0a 20 65 78 65 63 2e 68 | 2.|. exec.h|
|00001140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001150| 20 20 20 20 20 31 09 0a | 20 66 69 6c 65 73 75 62 | 1..| filesub|
|00001160| 73 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.c | |
|00001170| 20 20 20 20 31 09 0a 20 | 67 6f 74 6f 2e 63 20 20 | 1.. |goto.c |
|00001180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001190| 20 20 20 31 09 0a 20 67 | 6f 74 6f 2e 68 20 20 20 | 1.. g|oto.h |
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011b0| 20 20 31 09 0a 20 69 6e | 69 74 73 75 62 73 2e 63 | 1.. in|itsubs.c|
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011d0| 20 31 09 0a 20 6c 65 78 | 2e 6c 20 20 20 20 20 20 | 1.. lex|.l |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011f0| 31 09 0a 20 6c 69 73 74 | 73 75 62 73 2e 63 20 20 |1.. list|subs.c |
|00001200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 | | 1|
|00001210| 09 0a 20 6d 61 69 6e 2e | 63 20 20 20 20 20 20 20 |.. main.|c |
|00001220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 09 | | 1.|
|00001230| 0a 20 6d 61 74 68 73 75 | 62 73 2e 63 20 20 20 20 |. mathsu|bs.c |
|00001240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 0a | | 1..|
|00001250| 20 70 61 72 73 65 2e 63 | 20 20 20 20 20 20 20 20 | parse.c| |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 0a 20 | | 1.. |
|00001270| 73 70 69 6e 2e 33 20 20 | 20 20 20 20 20 20 20 20 |spin.3 | |
|00001280| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 20 73 | | 1.. s|
|00001290| 70 69 6e 2e 68 20 20 20 | 20 20 20 20 20 20 20 20 |pin.h | |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 20 73 70 | | 1.. sp|
|000012b0| 69 6e 70 61 72 73 65 2e | 68 20 20 20 20 20 20 20 |inparse.|h |
|000012c0| 20 20 20 20 20 20 20 20 | 20 31 09 0a 20 76 61 72 | | 1.. var|
|000012d0| 73 75 62 73 2e 63 20 20 | 20 20 20 20 20 20 20 20 |subs.c | |
|000012e0| 20 20 20 20 20 20 20 20 | 31 09 0a 20 78 61 6c 6c | |1.. xall|
|000012f0| 6f 63 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |oc.c | |
|00001300| 20 20 20 20 20 20 20 31 | 09 0a 20 78 61 6c 6c 6f | 1|.. xallo|
|00001310| 63 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c.h | |
|00001320| 20 20 20 20 20 20 31 09 | 0a 69 63 20 6f 6e 65 73 | 1.|.ic ones|
|00001330| 2e 20 20 54 68 65 72 65 | 20 61 72 65 20 61 6c 73 |. There| are als|
|00001340| 6f 20 61 20 73 65 74 20 | 6f 66 0a 76 61 72 69 6f |o a set |of.vario|
|00001350| 75 73 20 73 69 6d 70 6c | 65 20 65 78 74 65 6e 73 |us simpl|e extens|
|00001360| 69 6f 6e 73 20 61 76 61 | 69 6c 61 62 6c 65 20 77 |ions ava|ilable w|
|00001370| 68 69 63 68 20 72 61 69 | 73 65 20 74 68 65 0a 61 |hich rai|se the.a|
|00001380| 70 70 6c 69 63 61 74 69 | 6f 6e 2d 69 6e 64 65 70 |pplicati|on-indep|
|00001390| 65 6e 64 65 6e 74 20 63 | 61 70 61 62 69 6c 69 74 |endent c|apabilit|
|000013a0| 69 65 73 20 6f 66 20 73 | 70 69 6e 20 75 70 20 74 |ies of s|pin up t|
|000013b0| 6f 20 61 20 6c 65 76 65 | 6c 20 77 68 65 72 65 20 |o a leve|l where |
|000013c0| 69 74 20 69 73 0a 61 6c | 6d 6f 73 74 20 75 73 61 |it is.al|most usa|
|000013d0| 62 6c 65 20 62 79 20 69 | 74 73 65 6c 66 2e 20 20 |ble by i|tself. |
|000013e0| 54 68 65 20 69 6e 74 65 | 6e 74 20 69 73 20 66 6f |The inte|nt is fo|
|000013f0| 72 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |r the ap|plicatio|
|00001400| 73 70 69 6e 2f 4d 61 6b | 65 66 69 6c 65 00 00 00 |spin/Mak|efile...|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001470| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00001480| 20 20 20 36 35 35 37 20 | 20 34 34 31 31 35 35 35 | 6557 | 4411555|
|00001490| 35 32 34 20 20 20 36 35 | 33 35 00 20 00 00 00 00 |524 65|35. ....|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 23 4d 61 6b 65 66 69 6c | 65 20 66 6f 72 20 73 70 |#Makefil|e for sp|
|00001610| 69 6e 0a 23 20 32 38 2e | 4a 75 6c 2e 38 37 20 20 |in.# 28.|Jul.87 |
|00001620| 6a 69 6d 6d 63 20 20 49 | 6e 69 74 69 61 6c 20 64 |jimmc I|nitial d|
|00001630| 65 66 69 6e 69 74 69 6f | 6e 0a 23 20 20 32 2e 41 |efinitio|n.# 2.A|
|00001640| 75 67 2e 38 37 20 20 6a | 69 6d 6d 63 20 20 41 64 |ug.87 j|immc Ad|
|00001650| 64 20 62 61 63 6b 75 70 | 20 74 61 67 0a 23 20 33 |d backup| tag.# 3|
|00001660| 30 2e 4e 6f 76 2e 38 37 | 20 20 6a 69 6d 6d 63 20 |0.Nov.87| jimmc |
|00001670| 20 41 64 64 20 4c 49 4e | 54 53 52 43 53 20 6d 61 | Add LIN|TSRCS ma|
|00001680| 63 72 6f 2c 20 53 48 41 | 52 20 73 74 75 66 66 0a |cro, SHA|R stuff.|
|00001690| 23 20 31 31 2e 4a 61 6e | 2e 38 38 20 20 6a 69 6d |# 11.Jan|.88 jim|
|000016a0| 6d 63 20 20 52 65 6d 6f | 76 65 20 6d 61 69 6e 2e |mc Remo|ve main.|
|000016b0| 6f 20 66 72 6f 6d 20 6f | 62 6a 65 63 74 20 6c 69 |o from o|bject li|
|000016c0| 73 74 20 66 6f 72 20 6c | 69 62 72 61 72 79 0a 23 |st for l|ibrary.#|
|000016d0| 20 20 31 2e 4d 61 72 2e | 38 37 20 20 6a 69 6d 6d | 1.Mar.|87 jimm|
|000016e0| 63 20 20 41 64 64 20 6d | 61 6e 20 74 61 67 0a 0a |c Add m|an tag..|
|000016f0| 52 4f 4f 54 4e 41 4d 45 | 20 20 20 20 20 20 3d 20 |ROOTNAME| = |
|00001700| 73 70 69 6e 0a 4c 49 42 | 52 41 52 59 09 20 20 20 |spin.LIB|RARY. |
|00001710| 20 20 20 3d 20 24 28 52 | 4f 4f 54 4e 41 4d 45 29 | = $(R|OOTNAME)|
|00001720| 2e 61 0a 4c 49 4e 54 4c | 49 42 09 20 20 20 20 20 |.a.LINTL|IB. |
|00001730| 20 3d 20 6c 6c 69 62 2d | 24 28 4c 49 42 52 41 52 | = llib-|$(LIBRAR|
|00001740| 59 29 2e 6c 6e 0a 50 52 | 4f 47 52 41 4d 09 20 20 |Y).ln.PR|OGRAM. |
|00001750| 20 20 20 20 3d 20 24 28 | 52 4f 4f 54 4e 41 4d 45 | = $(|ROOTNAME|
|00001760| 29 0a 44 45 53 54 09 20 | 20 20 20 20 20 3d 20 2e |).DEST. | = .|
|00001770| 0a 0a 4d 4b 4d 46 20 20 | 20 20 20 20 20 20 20 20 |..MKMF | |
|00001780| 3d 20 6d 6b 6d 66 0a 0a | 43 4c 41 53 48 20 20 20 |= mkmf..|CLASH |
|00001790| 20 20 20 20 20 20 3d 20 | 63 6c 61 73 68 0a 0a 53 | = |clash..S|
|000017a0| 48 41 52 20 20 20 20 20 | 20 20 20 20 20 3d 20 73 |HAR | = s|
|000017b0| 68 61 72 0a 53 48 41 52 | 46 49 4c 45 20 20 20 20 |har.SHAR|FILE |
|000017c0| 20 20 3d 20 24 28 52 4f | 4f 54 4e 41 4d 45 29 2e | = $(RO|OTNAME).|
|000017d0| 73 68 61 72 0a 0a 4d 41 | 4b 45 09 20 20 20 20 20 |shar..MA|KE. |
|000017e0| 20 3d 09 6d 61 6b 65 20 | 24 28 4d 46 4c 41 47 53 | =.make |$(MFLAGS|
|000017f0| 29 0a 4d 41 4b 45 46 49 | 4c 45 20 20 20 20 20 20 |).MAKEFI|LE |
|00001800| 3d 20 4d 61 6b 65 66 69 | 6c 65 0a 0a 42 4b 50 4d |= Makefi|le..BKPM|
|00001810| 41 43 48 20 3d 20 77 68 | 65 65 6c 0a 42 4b 50 44 |ACH = wh|eel.BKPD|
|00001820| 49 52 20 3d 20 73 72 63 | 2f 24 28 52 4f 4f 54 4e |IR = src|/$(ROOTN|
|00001830| 41 4d 45 29 2e 62 61 6b | 0a 0a 23 20 63 61 72 65 |AME).bak|..# care|
|00001840| 66 75 6c 20 77 69 74 68 | 20 74 68 69 73 20 76 61 |ful with| this va|
|00001850| 72 69 61 62 6c 65 2e 20 | 20 69 74 20 69 73 20 72 |riable. | it is r|
|00001860| 65 61 6c 6c 79 20 73 65 | 74 20 64 6f 77 6e 20 69 |eally se|t down i|
|00001870| 6e 20 74 61 72 67 65 74 | 20 22 64 65 70 65 6e 64 |n target| "depend|
|00001880| 3a 22 0a 43 46 4c 41 47 | 53 09 3d 20 24 28 43 43 |:".CFLAG|S.= $(CC|
|00001890| 4f 50 54 53 29 20 0a 0a | 49 4e 43 4c 55 44 45 09 |OPTS) ..|INCLUDE.|
|000018a0| 3d 0a 43 43 4f 50 54 53 | 20 3d 20 2d 67 0a 0a 4c |=.CCOPTS| = -g..L|
|000018b0| 49 4e 4b 45 52 09 20 20 | 20 20 20 20 3d 20 63 63 |INKER. | = cc|
|000018c0| 20 0a 0a 4c 49 4e 54 46 | 4c 41 47 53 20 3d 09 24 | ..LINTF|LAGS =.$|
|000018d0| 28 49 4e 43 4c 55 44 45 | 29 20 24 28 4c 49 4e 54 |(INCLUDE|) $(LINT|
|000018e0| 4f 50 54 53 29 0a 4c 49 | 4e 54 4f 50 54 53 09 3d |OPTS).LI|NTOPTS.=|
|000018f0| 20 2d 62 61 75 7a 0a 0a | 53 52 43 53 09 20 20 20 | -bauz..|SRCS. |
|00001900| 20 20 20 3d 20 63 6f 6e | 74 73 75 62 73 2e 63 20 | = con|tsubs.c |
|00001910| 5c 0a 09 09 65 78 65 63 | 2e 63 20 5c 0a 09 09 66 |\...exec|.c \...f|
|00001920| 69 6c 65 73 75 62 73 2e | 63 20 5c 0a 09 09 67 6f |ilesubs.|c \...go|
|00001930| 74 6f 2e 63 20 5c 0a 09 | 09 69 6e 69 74 73 75 62 |to.c \..|.initsub|
|00001940| 73 2e 63 20 5c 0a 09 09 | 6c 65 78 2e 6c 20 5c 0a |s.c \...|lex.l \.|
|00001950| 09 09 6c 69 73 74 73 75 | 62 73 2e 63 20 5c 0a 09 |..listsu|bs.c \..|
|00001960| 09 6d 61 69 6e 2e 63 20 | 5c 0a 09 09 6d 61 74 68 |.main.c |\...math|
|00001970| 73 75 62 73 2e 63 20 5c | 0a 09 09 70 61 72 73 65 |subs.c \|...parse|
|00001980| 2e 63 20 5c 0a 09 09 76 | 61 72 73 75 62 73 2e 63 |.c \...v|arsubs.c|
|00001990| 20 5c 0a 09 09 78 61 6c | 6c 6f 63 2e 63 0a 0a 4c | \...xal|loc.c..L|
|000019a0| 49 4e 54 53 52 43 53 20 | 3d 20 60 65 63 68 6f 20 |INTSRCS |= `echo |
|000019b0| 24 28 53 52 43 53 29 20 | 7c 20 73 65 64 20 2d 65 |$(SRCS) || sed -e|
|000019c0| 20 27 73 2f 6c 65 78 2e | 6c 2f 2f 27 20 2d 65 20 | 's/lex.|l//' -e |
|000019d0| 27 73 2f 6d 61 69 6e 2e | 63 2f 2f 27 20 60 0a 0a |'s/main.|c//' `..|
|000019e0| 4c 49 42 4f 42 4a 53 20 | 3d 20 60 65 63 68 6f 20 |LIBOBJS |= `echo |
|000019f0| 24 28 4f 42 4a 53 29 20 | 7c 20 73 65 64 20 2d 65 |$(OBJS) || sed -e|
|00001a00| 20 27 73 2f 6d 61 69 6e | 2e 6f 2f 2f 27 20 60 0a | 's/main|.o//' `.|
|00001a10| 0a 4f 42 4a 53 09 20 20 | 20 20 20 20 3d 20 63 6f |.OBJS. | = co|
|00001a20| 6e 74 73 75 62 73 2e 6f | 20 5c 0a 09 09 65 78 65 |ntsubs.o| \...exe|
|00001a30| 63 2e 6f 20 5c 0a 09 09 | 66 69 6c 65 73 75 62 73 |c.o \...|filesubs|
|00001a40| 2e 6f 20 5c 0a 09 09 67 | 6f 74 6f 2e 6f 20 5c 0a |.o \...g|oto.o \.|
|00001a50| 09 09 69 6e 69 74 73 75 | 62 73 2e 6f 20 5c 0a 09 |..initsu|bs.o \..|
|00001a60| 09 6c 65 78 2e 6f 20 5c | 0a 09 09 6c 69 73 74 73 |.lex.o \|...lists|
|00001a70| 75 62 73 2e 6f 20 5c 0a | 09 09 6d 61 69 6e 2e 6f |ubs.o \.|..main.o|
|00001a80| 20 5c 0a 09 09 6d 61 74 | 68 73 75 62 73 2e 6f 20 | \...mat|hsubs.o |
|00001a90| 5c 0a 09 09 70 61 72 73 | 65 2e 6f 20 5c 0a 09 09 |\...pars|e.o \...|
|00001aa0| 76 61 72 73 75 62 73 2e | 6f 20 5c 0a 09 09 78 61 |varsubs.|o \...xa|
|00001ab0| 6c 6c 6f 63 2e 6f 0a 0a | 48 44 52 53 09 20 20 20 |lloc.o..|HDRS. |
|00001ac0| 20 20 20 3d 20 65 78 65 | 63 2e 68 20 5c 0a 09 09 | = exe|c.h \...|
|00001ad0| 67 6f 74 6f 2e 68 20 5c | 0a 09 09 73 70 69 6e 2e |goto.h \|...spin.|
|00001ae0| 68 20 5c 0a 09 09 73 70 | 69 6e 70 61 72 73 65 2e |h \...sp|inparse.|
|00001af0| 68 20 5c 0a 09 09 78 61 | 6c 6c 6f 63 2e 68 0a 0a |h \...xa|lloc.h..|
|00001b00| 53 48 41 52 45 54 43 20 | 3d 20 50 6f 73 74 2e 6e |SHARETC |= Post.n|
|00001b10| 6f 74 65 20 52 45 41 44 | 4d 45 20 24 28 52 4f 4f |ote READ|ME $(ROO|
|00001b20| 54 4e 41 4d 45 29 2e 33 | 20 54 4f 44 4f 20 63 6f |TNAME).3| TODO co|
|00001b30| 6e 74 2e 73 70 0a 0a 53 | 48 41 52 53 52 43 53 20 |nt.sp..S|HARSRCS |
|00001b40| 3d 20 24 28 53 48 41 52 | 45 54 43 29 20 24 28 53 |= $(SHAR|ETC) $(S|
|00001b50| 52 43 53 29 20 24 28 48 | 44 52 53 29 20 24 28 4d |RCS) $(H|DRS) $(M|
|00001b60| 41 4b 45 46 49 4c 45 29 | 0a 0a 45 58 54 48 44 52 |AKEFILE)|..EXTHDR|
|00001b70| 53 09 20 20 20 20 20 20 | 3d 20 2f 75 73 72 2f 69 |S. |= /usr/i|
|00001b80| 6e 63 6c 75 64 65 2f 63 | 74 79 70 65 2e 68 20 5c |nclude/c|type.h \|
|00001b90| 0a 09 09 2f 75 73 72 2f | 69 6e 63 6c 75 64 65 2f |.../usr/|include/|
|00001ba0| 73 65 74 6a 6d 70 2e 68 | 20 5c 0a 09 09 2f 75 73 |setjmp.h| \.../us|
|00001bb0| 72 2f 69 6e 63 6c 75 64 | 65 2f 73 74 64 69 6f 2e |r/includ|e/stdio.|
|00001bc0| 68 0a 0a 4c 49 42 53 20 | 20 20 20 20 20 20 20 20 |h..LIBS | |
|00001bd0| 20 3d 0a 0a 58 4c 49 4e | 54 4c 49 42 53 20 20 20 | =..XLIN|TLIBS |
|00001be0| 20 20 20 3d 0a 0a 64 65 | 66 61 75 6c 74 3a 09 24 | =..de|fault:.$|
|00001bf0| 28 50 52 4f 47 52 41 4d | 29 0a 0a 6c 69 62 3a 09 |(PROGRAM|)..lib:.|
|00001c00| 09 24 28 4c 49 42 52 41 | 52 59 29 0a 0a 6c 69 62 |.$(LIBRA|RY)..lib|
|00001c10| 72 61 72 79 3a 09 24 28 | 4c 49 42 52 41 52 59 29 |rary:.$(|LIBRARY)|
|00001c20| 0a 0a 6c 69 6e 74 6c 69 | 62 3a 09 24 28 4c 49 4e |..lintli|b:.$(LIN|
|00001c30| 54 4c 49 42 29 0a 0a 73 | 68 61 72 3a 09 09 24 28 |TLIB)..s|har:..$(|
|00001c40| 53 48 41 52 46 49 4c 45 | 29 0a 0a 63 6c 61 73 68 |SHARFILE|)..clash|
|00001c50| 3a 3b 09 09 24 28 43 4c | 41 53 48 29 20 24 28 48 |:;..$(CL|ASH) $(H|
|00001c60| 44 52 53 29 20 24 28 4c | 49 4e 54 53 52 43 53 29 |DRS) $(L|INTSRCS)|
|00001c70| 0a 0a 61 6c 6c 3a 09 09 | 24 28 50 52 4f 47 52 41 |..all:..|$(PROGRA|
|00001c80| 4d 29 20 24 28 4c 49 4e | 54 4c 49 42 29 0a 0a 24 |M) $(LIN|TLIB)..$|
|00001c90| 28 50 52 4f 47 52 41 4d | 29 3a 09 6d 61 69 6e 2e |(PROGRAM|):.main.|
|00001ca0| 6f 20 24 28 4c 49 42 52 | 41 52 59 29 0a 09 09 40 |o $(LIBR|ARY)...@|
|00001cb0| 65 63 68 6f 20 2d 6e 20 | 22 4c 6f 61 64 69 6e 67 |echo -n |"Loading|
|00001cc0| 20 24 28 50 52 4f 47 52 | 41 4d 29 20 2e 2e 2e 20 | $(PROGR|AM) ... |
|00001cd0| 22 0a 09 09 40 72 6d 20 | 2d 66 20 24 28 50 52 4f |"...@rm |-f $(PRO|
|00001ce0| 47 52 41 4d 29 0a 09 09 | 40 24 28 4c 49 4e 4b 45 |GRAM)...|@$(LINKE|
|00001cf0| 52 29 20 24 28 43 46 4c | 41 47 53 29 20 6d 61 69 |R) $(CFL|AGS) mai|
|00001d00| 6e 2e 6f 20 24 28 4c 49 | 42 52 41 52 59 29 20 2d |n.o $(LI|BRARY) -|
|00001d10| 6f 20 24 28 50 52 4f 47 | 52 41 4d 29 2e 6e 65 77 |o $(PROG|RAM).new|
|00001d20| 0a 09 09 40 6d 76 20 2d | 66 20 24 28 50 52 4f 47 |...@mv -|f $(PROG|
|00001d30| 52 41 4d 29 2e 6e 65 77 | 20 24 28 50 52 4f 47 52 |RAM).new| $(PROGR|
|00001d40| 41 4d 29 0a 09 09 40 65 | 63 68 6f 20 22 64 6f 6e |AM)...@e|cho "don|
|00001d50| 65 22 0a 0a 24 28 4c 49 | 42 52 41 52 59 29 3a 09 |e"..$(LI|BRARY):.|
|00001d60| 24 28 4f 42 4a 53 29 0a | 09 09 40 65 63 68 6f 20 |$(OBJS).|..@echo |
|00001d70| 2d 6e 20 22 4c 6f 61 64 | 69 6e 67 20 24 28 4c 49 |-n "Load|ing $(LI|
|00001d80| 42 52 41 52 59 29 20 2e | 2e 2e 20 22 0a 09 09 40 |BRARY) .|.. "...@|
|00001d90| 61 72 20 63 72 75 20 24 | 28 4c 49 42 52 41 52 59 |ar cru $|(LIBRARY|
|00001da0| 29 20 24 28 4c 49 42 4f | 42 4a 53 29 0a 09 09 40 |) $(LIBO|BJS)...@|
|00001db0| 72 61 6e 6c 69 62 20 24 | 28 4c 49 42 52 41 52 59 |ranlib $|(LIBRARY|
|00001dc0| 29 0a 09 09 40 65 63 68 | 6f 20 22 64 6f 6e 65 22 |)...@ech|o "done"|
|00001dd0| 0a 0a 24 28 4c 49 4e 54 | 4c 49 42 29 3a 09 24 28 |..$(LINT|LIB):.$(|
|00001de0| 53 52 43 53 29 0a 09 09 | 6c 69 6e 74 20 2d 43 24 |SRCS)...|lint -C$|
|00001df0| 28 4c 49 42 52 41 52 59 | 29 20 24 28 4c 49 4e 54 |(LIBRARY|) $(LINT|
|00001e00| 46 4c 41 47 53 29 20 24 | 28 4c 49 4e 54 53 52 43 |FLAGS) $|(LINTSRC|
|00001e10| 53 29 0a 0a 6d 61 6e 3a | 09 09 24 28 52 4f 4f 54 |S)..man:|..$(ROOT|
|00001e20| 4e 41 4d 45 29 2e 33 0a | 09 09 6e 72 6f 66 66 20 |NAME).3.|..nroff |
|00001e30| 2d 6d 61 6e 20 24 28 52 | 4f 4f 54 4e 41 4d 45 29 |-man $(R|OOTNAME)|
|00001e40| 2e 33 20 3e 20 24 28 52 | 4f 4f 54 4e 41 4d 45 29 |.3 > $(R|OOTNAME)|
|00001e50| 2e 6d 61 6e 2e 6e 65 77 | 0a 09 09 6d 76 20 24 28 |.man.new|...mv $(|
|00001e60| 52 4f 4f 54 4e 41 4d 45 | 29 2e 6d 61 6e 2e 6e 65 |ROOTNAME|).man.ne|
|00001e70| 77 20 24 28 52 4f 4f 54 | 4e 41 4d 45 29 2e 6d 61 |w $(ROOT|NAME).ma|
|00001e80| 6e 0a 0a 24 28 53 48 41 | 52 46 49 4c 45 29 3a 09 |n..$(SHA|RFILE):.|
|00001e90| 24 28 53 48 41 52 53 52 | 43 53 29 0a 09 09 24 28 |$(SHARSR|CS)...$(|
|00001ea0| 53 48 41 52 29 20 24 28 | 53 48 41 52 53 52 43 53 |SHAR) $(|SHARSRCS|
|00001eb0| 29 20 3e 20 24 28 53 48 | 41 52 46 49 4c 45 29 0a |) > $(SH|ARFILE).|
|00001ec0| 0a 69 6e 73 74 61 6c 6c | 3a 09 24 28 50 52 4f 47 |.install|:.$(PROG|
|00001ed0| 52 41 4d 29 0a 09 09 40 | 65 63 68 6f 20 49 6e 73 |RAM)...@|echo Ins|
|00001ee0| 74 61 6c 6c 69 6e 67 20 | 24 28 50 52 4f 47 52 41 |talling |$(PROGRA|
|00001ef0| 4d 29 20 69 6e 20 24 28 | 44 45 53 54 29 0a 09 09 |M) in $(|DEST)...|
|00001f00| 40 69 6e 73 74 61 6c 6c | 20 2d 6d 20 37 37 30 20 |@install| -m 770 |
|00001f10| 2d 63 20 24 28 50 52 4f | 47 52 41 4d 29 20 24 28 |-c $(PRO|GRAM) $(|
|00001f20| 44 45 53 54 29 0a 0a 64 | 65 70 65 6e 64 3a 09 09 |DEST)..d|epend:..|
|00001f30| 24 28 58 44 45 50 29 0a | 09 09 40 65 63 68 6f 20 |$(XDEP).|..@echo |
|00001f40| 55 70 64 61 74 69 6e 67 | 20 24 28 4d 41 4b 45 46 |Updating| $(MAKEF|
|00001f50| 49 4c 45 29 20 2e 2e 2e | 0a 09 09 40 24 28 4d 4b |ILE) ...|...@$(MK|
|00001f60| 4d 46 29 20 2d 66 20 24 | 28 4d 41 4b 45 46 49 4c |MF) -f $|(MAKEFIL|
|00001f70| 45 29 20 5c 0a 09 09 09 | 43 46 4c 41 47 53 3d 27 |E) \....|CFLAGS='|
|00001f80| 24 24 28 43 43 4f 50 54 | 53 29 20 24 28 49 4e 43 |$$(CCOPT|S) $(INC|
|00001f90| 4c 55 44 45 29 27 0a 23 | 20 50 52 4f 47 52 41 4d |LUDE)'.#| PROGRAM|
|00001fa0| 20 6d 61 6b 65 73 20 6d | 6b 6d 66 20 75 73 65 20 | makes m|kmf use |
|00001fb0| 70 2e 4d 61 6b 65 66 69 | 6c 65 20 74 65 6d 70 6c |p.Makefi|le templ|
|00001fc0| 61 74 65 0a 23 09 09 09 | 50 52 4f 47 52 41 4d 3d |ate.#...|PROGRAM=|
|00001fd0| 24 28 50 52 4f 47 52 41 | 4d 29 0a 0a 6c 69 6e 74 |$(PROGRA|M)..lint|
|00001fe0| 3a 3b 09 09 6c 69 6e 74 | 20 24 28 4c 49 4e 54 46 |:;..lint| $(LINTF|
|00001ff0| 4c 41 47 53 29 20 24 28 | 4c 49 4e 54 53 52 43 53 |LAGS) $(|LINTSRCS|
|00002000| 29 20 24 28 4c 49 4e 54 | 4c 49 42 53 29 0a 0a 74 |) $(LINT|LIBS)..t|
|00002010| 69 64 79 3a 3b 09 09 40 | 72 6d 20 2d 66 20 24 28 |idy:;..@|rm -f $(|
|00002020| 4f 42 4a 53 29 0a 0a 63 | 6c 65 61 6e 3a 09 09 74 |OBJS)..c|lean:..t|
|00002030| 69 64 79 0a 09 09 40 72 | 6d 20 2d 66 20 24 28 50 |idy...@r|m -f $(P|
|00002040| 52 4f 47 52 41 4d 29 20 | 24 28 4c 49 42 52 41 52 |ROGRAM) |$(LIBRAR|
|00002050| 59 29 0a 0a 70 72 69 6e | 74 3a 3b 09 09 40 70 72 |Y)..prin|t:;..@pr|
|00002060| 20 24 28 53 52 43 53 29 | 20 24 28 48 44 52 53 29 | $(SRCS)| $(HDRS)|
|00002070| 0a 0a 74 61 67 73 3a 20 | 20 20 20 20 20 20 20 20 |..tags: | |
|00002080| 20 20 24 28 48 44 52 53 | 29 20 24 28 53 52 43 53 | $(HDRS|) $(SRCS|
|00002090| 29 3b 20 40 63 74 61 67 | 73 20 24 28 48 44 52 53 |); @ctag|s $(HDRS|
|000020a0| 29 20 24 28 53 52 43 53 | 29 0a 0a 62 61 63 6b 75 |) $(SRCS|)..backu|
|000020b0| 70 3a 3b 09 74 61 72 20 | 63 66 20 2d 20 24 28 48 |p:;.tar |cf - $(H|
|000020c0| 44 52 53 29 20 24 28 53 | 52 43 53 29 20 24 28 4d |DRS) $(S|RCS) $(M|
|000020d0| 41 4b 45 46 49 4c 45 29 | 20 7c 20 5c 0a 09 09 09 |AKEFILE)| | \....|
|000020e0| 72 73 68 20 24 28 42 4b | 50 4d 41 43 48 29 20 27 |rsh $(BK|PMACH) '|
|000020f0| 63 64 20 24 28 42 4b 50 | 44 49 52 29 3b 20 74 61 |cd $(BKP|DIR); ta|
|00002100| 72 20 78 42 66 20 2d 27 | 0a 0a 6c 65 78 2e 6f 3a |r xBf -'|..lex.o:|
|00002110| 20 73 70 69 6e 2e 68 20 | 73 70 69 6e 70 61 72 73 | spin.h |spinpars|
|00002120| 65 2e 68 20 78 61 6c 6c | 6f 63 2e 68 0a 0a 23 23 |e.h xall|oc.h..##|
|00002130| 23 0a 63 6f 6e 74 73 75 | 62 73 2e 6f 3a 20 2f 75 |#.contsu|bs.o: /u|
|00002140| 73 72 2f 69 6e 63 6c 75 | 64 65 2f 73 74 64 69 6f |sr/inclu|de/stdio|
|00002150| 2e 68 20 78 61 6c 6c 6f | 63 2e 68 20 73 70 69 6e |.h xallo|c.h spin|
|00002160| 2e 68 20 65 78 65 63 2e | 68 0a 65 78 65 63 2e 6f |.h exec.|h.exec.o|
|00002170| 3a 20 2f 75 73 72 2f 69 | 6e 63 6c 75 64 65 2f 73 |: /usr/i|nclude/s|
|00002180| 74 64 69 6f 2e 68 20 2f | 75 73 72 2f 69 6e 63 6c |tdio.h /|usr/incl|
|00002190| 75 64 65 2f 63 74 79 70 | 65 2e 68 20 67 6f 74 6f |ude/ctyp|e.h goto|
|000021a0| 2e 68 20 5c 0a 09 2f 75 | 73 72 2f 69 6e 63 6c 75 |.h \../u|sr/inclu|
|000021b0| 64 65 2f 73 65 74 6a 6d | 70 2e 68 20 78 61 6c 6c |de/setjm|p.h xall|
|000021c0| 6f 63 2e 68 20 73 70 69 | 6e 2e 68 20 73 70 69 6e |oc.h spi|n.h spin|
|000021d0| 70 61 72 73 65 2e 68 20 | 65 78 65 63 2e 68 0a 66 |parse.h |exec.h.f|
|000021e0| 69 6c 65 73 75 62 73 2e | 6f 3a 20 2f 75 73 72 2f |ilesubs.|o: /usr/|
|000021f0| 69 6e 63 6c 75 64 65 2f | 73 74 64 69 6f 2e 68 20 |include/|stdio.h |
|00002200| 67 6f 74 6f 2e 68 20 2f | 75 73 72 2f 69 6e 63 6c |goto.h /|usr/incl|
|00002210| 75 64 65 2f 73 65 74 6a | 6d 70 2e 68 20 73 70 69 |ude/setj|mp.h spi|
|00002220| 6e 2e 68 20 5c 0a 09 78 | 61 6c 6c 6f 63 2e 68 0a |n.h \..x|alloc.h.|
|00002230| 67 6f 74 6f 2e 6f 3a 20 | 67 6f 74 6f 2e 68 20 2f |goto.o: |goto.h /|
|00002240| 75 73 72 2f 69 6e 63 6c | 75 64 65 2f 73 65 74 6a |usr/incl|ude/setj|
|00002250| 6d 70 2e 68 20 78 61 6c | 6c 6f 63 2e 68 0a 69 6e |mp.h xal|loc.h.in|
|00002260| 69 74 73 75 62 73 2e 6f | 3a 20 73 70 69 6e 2e 68 |itsubs.o|: spin.h|
|00002270| 0a 6c 69 73 74 73 75 62 | 73 2e 6f 3a 20 78 61 6c |.listsub|s.o: xal|
|00002280| 6c 6f 63 2e 68 20 73 70 | 69 6e 2e 68 0a 6d 61 69 |loc.h sp|in.h.mai|
|00002290| 6e 2e 6f 3a 20 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |n.o: /us|r/includ|
|000022a0| 65 2f 73 74 64 69 6f 2e | 68 20 78 61 6c 6c 6f 63 |e/stdio.|h xalloc|
|000022b0| 2e 68 0a 6d 61 74 68 73 | 75 62 73 2e 6f 3a 20 73 |.h.maths|ubs.o: s|
|000022c0| 70 69 6e 2e 68 0a 70 61 | 72 73 65 2e 6f 3a 20 2f |pin.h.pa|rse.o: /|
|000022d0| 75 73 72 2f 69 6e 63 6c | 75 64 65 2f 73 74 64 69 |usr/incl|ude/stdi|
|000022e0| 6f 2e 68 20 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 |o.h /usr|/include|
|000022f0| 2f 63 74 79 70 65 2e 68 | 20 67 6f 74 6f 2e 68 20 |/ctype.h| goto.h |
|00002300| 5c 0a 09 2f 75 73 72 2f | 69 6e 63 6c 75 64 65 2f |\../usr/|include/|
|00002310| 73 65 74 6a 6d 70 2e 68 | 20 78 61 6c 6c 6f 63 2e |setjmp.h| xalloc.|
|00002320| 68 20 73 70 69 6e 2e 68 | 20 73 70 69 6e 70 61 72 |h spin.h| spinpar|
|00002330| 73 65 2e 68 0a 76 61 72 | 73 75 62 73 2e 6f 3a 20 |se.h.var|subs.o: |
|00002340| 78 61 6c 6c 6f 63 2e 68 | 20 73 70 69 6e 2e 68 0a |xalloc.h| spin.h.|
|00002350| 78 61 6c 6c 6f 63 2e 6f | 3a 20 2f 75 73 72 2f 69 |xalloc.o|: /usr/i|
|00002360| 6e 63 6c 75 64 65 2f 73 | 74 64 69 6f 2e 68 0a 68 |nclude/s|tdio.h.h|
|00002370| 73 75 62 73 2e 63 20 5c | 0a 09 09 70 61 72 73 65 |subs.c \|...parse|
|00002380| 2e 63 20 5c 0a 09 09 76 | 61 72 73 75 62 73 2e 63 |.c \...v|arsubs.c|
|00002390| 20 5c 0a 09 09 78 61 6c | 6c 6f 63 2e 63 0a 0a 4c | \...xal|loc.c..L|
|000023a0| 49 4e 54 53 52 43 53 20 | 3d 20 60 65 63 68 6f 20 |INTSRCS |= `echo |
|000023b0| 24 28 53 52 43 53 29 20 | 7c 20 73 65 64 20 2d 65 |$(SRCS) || sed -e|
|000023c0| 20 27 73 2f 6c 65 78 2e | 6c 2f 2f 27 20 2d 65 20 | 's/lex.|l//' -e |
|000023d0| 27 73 2f 6d 61 69 6e 2e | 63 2f 2f 27 20 60 0a 0a |'s/main.|c//' `..|
|000023e0| 4c 49 42 4f 42 4a 53 20 | 3d 20 60 65 63 68 6f 20 |LIBOBJS |= `echo |
|000023f0| 24 28 4f 42 4a 53 29 20 | 7c 20 73 65 64 20 2d 65 |$(OBJS) || sed -e|
|00002400| 73 70 69 6e 2f 52 45 41 | 44 4d 45 00 00 00 00 00 |spin/REA|DME.....|
|00002410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002470| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00002480| 20 20 20 32 34 31 31 20 | 20 34 34 31 31 35 35 35 | 2411 | 4411555|
|00002490| 35 32 35 20 20 20 35 37 | 33 37 00 20 00 00 00 00 |525 57|37. ....|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 54 68 65 20 53 50 49 4e | 20 4c 69 62 72 61 72 79 |The SPIN| Library|
|00002610| 09 09 09 09 20 31 2e 4d | 61 72 2e 38 38 0a 57 72 |.... 1.M|ar.88.Wr|
|00002620| 69 74 74 65 6e 20 62 79 | 20 4a 69 6d 20 4d 63 42 |itten by| Jim McB|
|00002630| 65 61 74 68 20 28 6a 69 | 6d 6d 63 29 20 61 74 20 |eath (ji|mmc) at |
|00002640| 53 43 49 0a 0a 54 68 69 | 73 20 69 73 20 76 65 72 |SCI..Thi|s is ver|
|00002650| 73 69 6f 6e 20 31 2e 30 | 20 6f 66 20 53 50 49 4e |sion 1.0| of SPIN|
|00002660| 2c 20 61 20 53 69 6d 70 | 6c 65 20 50 72 6f 67 72 |, a Simp|le Progr|
|00002670| 61 6d 6d 61 62 6c 65 20 | 49 4e 74 65 72 66 61 63 |ammable |INterfac|
|00002680| 65 2e 0a 49 74 20 69 73 | 20 69 6e 74 65 6e 64 65 |e..It is| intende|
|00002690| 64 20 74 6f 20 6d 61 6b | 65 20 6c 69 66 65 20 65 |d to mak|e life e|
|000026a0| 61 73 69 65 72 20 77 68 | 65 6e 20 64 65 76 65 6c |asier wh|en devel|
|000026b0| 6f 70 69 6e 67 20 70 72 | 6f 67 72 61 6d 73 3b 0a |oping pr|ograms;.|
|000026c0| 69 74 20 69 73 20 6e 6f | 74 20 63 6f 6d 6d 65 72 |it is no|t commer|
|000026d0| 63 69 61 6c 20 71 75 61 | 6c 69 74 79 2c 20 62 75 |cial qua|lity, bu|
|000026e0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 6d 6f 64 75 |t should| be modu|
|000026f0| 6c 61 72 20 65 6e 6f 75 | 67 68 20 74 68 61 74 0a |lar enou|gh that.|
|00002700| 61 6e 79 20 63 6f 6d 70 | 65 74 65 6e 74 20 70 72 |any comp|etent pr|
|00002710| 6f 67 72 61 6d 6d 65 72 | 20 63 61 6e 20 69 6e 63 |ogrammer| can inc|
|00002720| 72 65 6d 65 6e 74 61 6c | 6c 79 20 69 6d 70 72 6f |remental|ly impro|
|00002730| 76 65 20 74 68 6f 73 65 | 20 70 61 72 74 73 0a 6f |ve those| parts.o|
|00002740| 66 20 69 74 20 77 68 69 | 63 68 20 73 75 69 74 20 |f it whi|ch suit |
|00002750| 68 69 73 20 6e 65 65 64 | 73 2e 0a 0a 46 69 6c 65 |his need|s...File|
|00002760| 73 20 6f 66 20 69 6e 74 | 65 72 65 73 74 3a 0a 20 |s of int|erest:. |
|00002770| 20 20 20 2a 2e 5b 63 68 | 5d 09 54 68 65 20 73 6f | *.[ch|].The so|
|00002780| 75 72 63 65 20 66 69 6c | 65 73 20 66 6f 72 20 73 |urce fil|es for s|
|00002790| 70 69 6e 2e 0a 20 20 20 | 20 4d 61 6b 65 66 69 6c |pin.. | Makefil|
|000027a0| 65 09 45 78 61 63 74 6c | 79 20 74 68 61 74 2e 0a |e.Exactl|y that..|
|000027b0| 20 20 20 20 52 45 41 44 | 4d 45 09 57 68 61 74 20 | READ|ME.What |
|000027c0| 79 6f 75 20 61 72 65 20 | 6c 6f 6f 6b 69 6e 67 20 |you are |looking |
|000027d0| 61 74 20 72 69 67 68 74 | 20 6e 6f 77 2e 0a 20 20 |at right| now.. |
|000027e0| 20 20 73 70 69 6e 2e 33 | 09 53 6f 75 72 63 65 20 | spin.3|.Source |
|000027f0| 66 6f 72 20 6d 61 6e 20 | 70 61 67 65 2e 20 20 44 |for man |page. D|
|00002800| 65 73 63 72 69 62 65 73 | 20 28 62 72 69 65 66 6c |escribes| (briefl|
|00002810| 79 29 20 77 68 61 74 0a | 09 09 73 70 69 6e 20 69 |y) what.|..spin i|
|00002820| 73 20 61 6c 6c 20 61 62 | 6f 75 74 2e 0a 09 09 55 |s all ab|out....U|
|00002830| 73 65 20 22 6d 61 6b 65 | 20 6d 61 6e 22 20 74 6f |se "make| man" to|
|00002840| 20 63 72 65 61 74 65 20 | 73 70 69 6e 20 6d 61 6e | create |spin man|
|00002850| 20 66 69 6c 65 20 28 73 | 70 69 6e 2e 6d 61 6e 29 | file (s|pin.man)|
|00002860| 2e 0a 20 20 20 20 63 6f | 6e 74 2e 73 70 09 41 20 |.. co|nt.sp.A |
|00002870| 73 61 6d 70 6c 65 20 73 | 70 69 6e 20 66 69 6c 65 |sample s|pin file|
|00002880| 2e 0a 0a 57 68 61 74 20 | 74 6f 20 64 6f 20 28 61 |...What |to do (a|
|00002890| 66 74 65 72 20 75 6e 70 | 61 63 6b 69 6e 67 29 3a |fter unp|acking):|
|000028a0| 0a 31 2e 20 55 73 65 20 | 22 6d 61 6b 65 20 6d 61 |.1. Use |"make ma|
|000028b0| 6e 22 20 74 6f 20 63 72 | 65 61 74 65 20 73 70 69 |n" to cr|eate spi|
|000028c0| 6e 2e 6d 61 6e 20 66 72 | 6f 6d 20 73 70 69 6e 2e |n.man fr|om spin.|
|000028d0| 33 2e 20 20 52 65 61 64 | 20 69 74 2e 0a 32 2e 20 |3. Read| it..2. |
|000028e0| 4d 61 6b 65 20 74 68 65 | 20 6c 69 62 72 61 72 79 |Make the| library|
|000028f0| 20 61 6e 64 20 70 72 6f | 67 72 61 6d 20 62 79 20 | and pro|gram by |
|00002900| 64 6f 69 6e 67 20 61 20 | 73 69 6d 70 6c 65 20 22 |doing a |simple "|
|00002910| 6d 61 6b 65 22 2e 0a 33 | 2e 20 54 65 73 74 20 74 |make"..3|. Test t|
|00002920| 68 65 20 70 72 6f 67 72 | 61 6d 20 28 73 70 69 6e |he progr|am (spin|
|00002930| 29 20 62 79 20 72 75 6e | 6e 69 6e 67 20 69 74 20 |) by run|ning it |
|00002940| 61 6e 64 20 69 73 73 75 | 69 6e 67 20 74 68 65 20 |and issu|ing the |
|00002950| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 6d 61 6e |followin|g comman|
|00002960| 64 73 0a 20 20 20 28 79 | 6f 75 20 74 79 70 65 20 |ds. (y|ou type |
|00002970| 69 6e 20 74 68 65 20 73 | 74 75 66 66 20 6f 6e 20 |in the s|tuff on |
|00002980| 74 68 65 20 6c 69 6e 65 | 73 20 61 66 74 65 72 20 |the line|s after |
|00002990| 74 68 65 20 22 3e 22 20 | 70 72 6f 6d 70 74 29 3a |the ">" |prompt):|
|000029a0| 0a 09 3e 53 50 76 65 72 | 73 69 6f 6e 0a 09 53 54 |..>SPver|sion..ST|
|000029b0| 52 49 4e 47 20 73 70 69 | 6e 20 76 31 2e 30 20 31 |RING spi|n v1.0 1|
|000029c0| 2e 4d 61 72 2e 38 38 0a | 09 3e 70 6c 75 73 20 31 |.Mar.88.|.>plus 1|
|000029d0| 20 32 0a 09 61 64 64 20 | 31 20 32 0a 09 49 4e 54 | 2..add |1 2..INT|
|000029e0| 20 33 0a 09 3e 73 74 72 | 63 61 74 20 66 6f 6f 20 | 3..>str|cat foo |
|000029f0| 22 2e 62 61 72 22 0a 09 | 53 54 52 49 4e 47 20 66 |".bar"..|STRING f|
|00002a00| 6f 6f 2e 62 61 72 0a 09 | 3e 71 75 69 74 0a 34 2e |oo.bar..|>quit.4.|
|00002a10| 20 4d 61 6b 65 20 74 68 | 65 20 6c 69 6e 74 20 6c | Make th|e lint l|
|00002a20| 69 62 72 61 72 79 20 28 | 66 6f 72 20 6f 74 68 65 |ibrary (|for othe|
|00002a30| 72 20 70 72 6f 67 72 61 | 6d 73 29 20 62 79 20 64 |r progra|ms) by d|
|00002a40| 6f 69 6e 67 20 22 6d 61 | 6b 65 20 6c 69 6e 74 6c |oing "ma|ke lintl|
|00002a50| 69 62 22 2e 0a 20 20 20 | 59 6f 75 20 61 72 65 20 |ib".. |You are |
|00002a60| 6e 6f 77 20 72 65 61 64 | 79 20 74 6f 20 6c 69 6e |now read|y to lin|
|00002a70| 6b 20 6f 74 68 65 72 20 | 70 72 6f 67 72 61 6d 73 |k other |programs|
|00002a80| 20 77 69 74 68 20 73 70 | 69 6e 2e 0a 35 2e 20 53 | with sp|in..5. S|
|00002a90| 65 6e 64 20 6d 65 20 79 | 6f 75 72 20 63 6f 6d 6d |end me y|our comm|
|00002aa0| 65 6e 74 73 2c 20 77 69 | 73 68 65 73 2c 20 61 6e |ents, wi|shes, an|
|00002ab0| 64 20 69 6d 70 72 6f 76 | 65 6d 65 6e 74 73 2e 0a |d improv|ements..|
|00002ac0| 0a 09 09 2d 4a 69 6d 20 | 4d 63 42 65 61 74 68 20 |...-Jim |McBeath |
|00002ad0| 20 7b 64 65 63 77 72 6c | 7c 6f 6c 69 76 65 62 7c | {decwrl||oliveb||
|00002ae0| 77 65 69 74 65 6b 7c 61 | 75 73 70 79 72 7d 21 73 |weitek|a|uspyr}!s|
|00002af0| 63 69 21 6a 69 6d 6d 63 | 0a 09 09 20 20 31 2e 4d |ci!jimmc|... 1.M|
|00002b00| 61 72 2e 31 39 38 38 0a | 0a 20 50 6f 73 74 2e 6e |ar.1988.|. Post.n|
|00002b10| 6f 74 65 20 52 45 41 44 | 4d 45 20 24 28 52 4f 4f |ote READ|ME $(ROO|
|00002b20| 54 4e 41 4d 45 29 2e 33 | 20 54 4f 44 4f 20 63 6f |TNAME).3| TODO co|
|00002b30| 6e 74 2e 73 70 0a 0a 53 | 48 41 52 53 52 43 53 20 |nt.sp..S|HARSRCS |
|00002b40| 3d 20 24 28 53 48 41 52 | 45 54 43 29 20 24 28 53 |= $(SHAR|ETC) $(S|
|00002b50| 52 43 53 29 20 24 28 48 | 44 52 53 29 20 24 28 4d |RCS) $(H|DRS) $(M|
|00002b60| 41 4b 45 46 49 4c 45 29 | 0a 0a 45 58 54 48 44 52 |AKEFILE)|..EXTHDR|
|00002b70| 53 09 20 20 20 20 20 20 | 3d 20 2f 75 73 72 2f 69 |S. |= /usr/i|
|00002b80| 6e 63 6c 75 64 65 2f 63 | 74 79 70 65 2e 68 20 5c |nclude/c|type.h \|
|00002b90| 0a 09 09 2f 75 73 72 2f | 69 6e 63 6c 75 64 65 2f |.../usr/|include/|
|00002ba0| 73 65 74 6a 6d 70 2e 68 | 20 5c 0a 09 09 2f 75 73 |setjmp.h| \.../us|
|00002bb0| 72 2f 69 6e 63 6c 75 64 | 65 2f 73 74 64 69 6f 2e |r/includ|e/stdio.|
|00002bc0| 68 0a 0a 4c 49 42 53 20 | 20 20 20 20 20 20 20 20 |h..LIBS | |
|00002bd0| 20 3d 0a 0a 58 4c 49 4e | 54 4c 49 42 53 20 20 20 | =..XLIN|TLIBS |
|00002be0| 20 20 20 3d 0a 0a 64 65 | 66 61 75 6c 74 3a 09 24 | =..de|fault:.$|
|00002bf0| 28 50 52 4f 47 52 41 4d | 29 0a 0a 6c 69 62 3a 09 |(PROGRAM|)..lib:.|
|00002c00| 73 70 69 6e 2f 54 4f 44 | 4f 00 00 00 00 00 00 00 |spin/TOD|O.......|
|00002c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002c70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00002c80| 20 20 20 20 35 33 31 20 | 20 34 34 31 31 35 35 35 | 531 | 4411555|
|00002c90| 35 32 36 20 20 20 35 35 | 33 31 00 20 00 00 00 00 |526 55|31. ....|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 20 31 2e 4d 61 72 2e 38 | 38 0a 0a 2d 20 4d 61 6b | 1.Mar.8|8..- Mak|
|00002e10| 65 20 53 50 65 73 63 61 | 70 65 20 74 72 75 6c 79 |e SPesca|pe truly|
|00002e20| 20 76 61 72 61 72 67 73 | 0a 2d 20 57 72 69 74 65 | varargs|.- Write|
|00002e30| 20 61 20 72 6f 75 74 69 | 6e 65 20 74 6f 20 73 63 | a routi|ne to sc|
|00002e40| 61 6e 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |an comma|nd line |
|00002e50| 73 77 69 74 63 68 65 73 | 20 61 6e 64 20 72 65 6d |switches| and rem|
|00002e60| 6f 76 65 20 72 65 63 6f | 67 6e 69 7a 65 64 20 6f |ove reco|gnized o|
|00002e70| 6e 65 73 3f 0a 2d 20 44 | 65 63 69 64 65 20 68 6f |nes?.- D|ecide ho|
|00002e80| 77 20 6c 69 73 74 73 20 | 61 72 65 20 61 6c 6c 6f |w lists |are allo|
|00002e90| 63 61 74 65 64 0a 2d 20 | 72 65 65 78 61 6d 69 6e |cated.- |reexamin|
|00002ea0| 65 20 61 72 67 20 61 6e | 64 20 72 65 74 75 72 6e |e arg an|d return|
|00002eb0| 20 63 6f 64 65 20 63 68 | 61 72 61 63 74 65 72 73 | code ch|aracters|
|00002ec0| 20 61 6e 64 20 6d 65 61 | 6e 69 6e 67 73 0a 2d 20 | and mea|nings.- |
|00002ed0| 63 6c 65 61 6e 20 75 70 | 20 6d 65 6d 6f 72 79 20 |clean up| memory |
|00002ee0| 6d 61 6e 61 67 65 6d 65 | 6e 74 3b 20 74 68 65 72 |manageme|nt; ther|
|00002ef0| 65 20 61 72 65 20 6d 61 | 6e 79 20 6d 65 6d 6f 72 |e are ma|ny memor|
|00002f00| 79 20 6c 65 61 6b 73 2e | 0a 20 20 20 68 6f 77 20 |y leaks.|. how |
|00002f10| 61 62 6f 75 74 20 67 61 | 72 62 61 67 65 20 63 6f |about ga|rbage co|
|00002f20| 6c 6c 65 63 74 69 6f 6e | 20 66 6f 72 20 74 6f 6b |llection| for tok|
|00002f30| 65 6e 73 20 61 6e 64 20 | 73 74 72 69 6e 67 73 3f |ens and |strings?|
|00002f40| 0a 2d 20 69 6d 70 72 6f | 76 65 20 64 6f 63 75 6d |.- impro|ve docum|
|00002f50| 65 6e 74 61 74 69 6f 6e | 0a 00 01 98 00 01 71 44 |entation|......qD|
|00002f60| 00 18 00 09 76 61 72 73 | 75 62 73 2e 63 00 01 98 |....vars|ubs.c...|
|00002f70| 00 00 01 ac 00 01 71 45 | 00 18 00 08 78 61 6c 6c |......qE|....xall|
|00002f80| 6f 63 2e 63 00 00 01 ac | 00 00 01 d4 00 01 71 47 |oc.c....|......qG|
|00002f90| 00 18 00 08 78 61 6c 6c | 6f 63 2e 68 00 00 01 d4 |....xall|oc.h....|
|00002fa0| 00 00 02 00 00 01 71 49 | 00 14 00 06 65 78 65 63 |......qI|....exec|
|00002fb0| 2e 63 00 70 52 45 41 44 | 4d 45 09 57 68 61 74 20 |.c.pREAD|ME.What |
|00002fc0| 79 6f 75 20 61 72 65 20 | 6c 6f 6f 6b 69 6e 67 20 |you are |looking |
|00002fd0| 61 74 20 72 69 67 68 74 | 20 6e 6f 77 2e 0a 20 20 |at right| now.. |
|00002fe0| 20 20 73 70 69 6e 2e 33 | 09 53 6f 75 72 63 65 20 | spin.3|.Source |
|00002ff0| 66 6f 72 20 6d 61 6e 20 | 70 61 67 65 2e 20 20 44 |for man |page. D|
|00003000| 73 70 69 6e 2f 63 6f 6e | 74 2e 73 70 00 00 00 00 |spin/con|t.sp....|
|00003010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003070| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00003080| 20 20 20 32 34 35 36 20 | 20 34 34 31 31 35 35 35 | 2456 | 4411555|
|00003090| 35 32 37 20 20 20 36 34 | 30 31 00 20 00 00 00 00 |527 64|01. ....|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 2f 2a 20 53 6f 6d 65 20 | 63 6f 6e 74 72 6f 6c 20 |/* Some |control |
|00003210| 73 74 72 75 63 74 75 72 | 65 73 20 74 6f 20 74 65 |structur|es to te|
|00003220| 73 74 20 73 70 69 6e 20 | 2a 2f 0a 0a 64 65 66 69 |st spin |*/..defi|
|00003230| 6e 65 20 77 68 69 6c 65 | 20 28 5c 0a 09 28 66 73 |ne while| (\..(fs|
|00003240| 65 74 20 63 20 28 61 72 | 67 71 75 6f 74 65 20 31 |et c (ar|gquote 1|
|00003250| 29 29 5c 0a 09 28 66 73 | 65 74 20 65 20 28 61 72 |))\..(fs|et e (ar|
|00003260| 67 71 75 6f 74 65 20 32 | 29 29 5c 0a 28 6c 61 62 |gquote 2|))\.(lab|
|00003270| 65 6c 20 62 65 67 69 6e | 29 5c 0a 09 28 69 66 20 |el begin|)\..(if |
|00003280| 28 65 76 61 6c 20 28 67 | 65 74 20 63 29 29 5c 0a |(eval (g|et c))\.|
|00003290| 09 09 28 67 6f 74 6f 20 | 6f 6b 29 29 5c 0a 09 28 |..(goto |ok))\..(|
|000032a0| 67 6f 74 6f 20 65 6e 64 | 29 5c 0a 28 6c 61 62 65 |goto end|)\.(labe|
|000032b0| 6c 20 6f 6b 29 5c 0a 09 | 28 65 76 61 6c 20 28 67 |l ok)\..|(eval (g|
|000032c0| 65 74 20 65 29 29 5c 0a | 09 28 67 6f 74 6f 20 62 |et e))\.|.(goto b|
|000032d0| 65 67 69 6e 29 5c 0a 28 | 6c 61 62 65 6c 20 65 6e |egin)\.(|label en|
|000032e0| 64 29 5c 0a 29 0a 0a 64 | 65 66 69 6e 65 20 75 6e |d)\.)..d|efine un|
|000032f0| 74 69 6c 20 28 5c 0a 09 | 28 66 73 65 74 20 63 20 |til (\..|(fset c |
|00003300| 28 61 72 67 71 75 6f 74 | 65 20 31 29 29 5c 0a 09 |(argquot|e 1))\..|
|00003310| 28 66 73 65 74 20 65 20 | 28 61 72 67 71 75 6f 74 |(fset e |(argquot|
|00003320| 65 20 32 29 29 5c 0a 28 | 6c 61 62 65 6c 20 62 65 |e 2))\.(|label be|
|00003330| 67 69 6e 29 5c 0a 09 28 | 69 66 20 28 65 76 61 6c |gin)\..(|if (eval|
|00003340| 20 28 67 65 74 20 63 29 | 29 5c 0a 09 09 28 67 6f | (get c)|)\...(go|
|00003350| 74 6f 20 65 6e 64 29 29 | 5c 0a 09 28 65 76 61 6c |to end))|\..(eval|
|00003360| 20 28 67 65 74 20 65 29 | 29 5c 0a 09 28 67 6f 74 | (get e)|)\..(got|
|00003370| 6f 20 62 65 67 69 6e 29 | 5c 0a 28 6c 61 62 65 6c |o begin)|\.(label|
|00003380| 20 65 6e 64 29 5c 0a 29 | 0a 0a 64 65 66 69 6e 65 | end)\.)|..define|
|00003390| 20 64 6f 20 28 5c 0a 09 | 28 66 73 65 74 20 65 20 | do (\..|(fset e |
|000033a0| 28 61 72 67 71 75 6f 74 | 65 20 31 29 29 5c 0a 09 |(argquot|e 1))\..|
|000033b0| 28 66 73 65 74 20 6b 20 | 28 61 72 67 71 75 6f 74 |(fset k |(argquot|
|000033c0| 65 20 32 29 29 5c 0a 09 | 28 66 73 65 74 20 63 20 |e 2))\..|(fset c |
|000033d0| 28 61 72 67 71 75 6f 74 | 65 20 33 29 29 5c 0a 28 |(argquot|e 3))\.(|
|000033e0| 6c 61 62 65 6c 20 62 65 | 67 69 6e 29 5c 0a 09 28 |label be|gin)\..(|
|000033f0| 65 76 61 6c 20 28 67 65 | 74 20 65 29 29 5c 0a 09 |eval (ge|t e))\..|
|00003400| 28 69 66 20 28 73 74 72 | 65 71 20 22 77 68 69 6c |(if (str|eq "whil|
|00003410| 65 22 20 28 67 65 74 20 | 6b 29 29 20 28 67 6f 74 |e" (get |k)) (got|
|00003420| 6f 20 64 6f 77 68 69 6c | 65 29 29 5c 0a 2f 2a 20 |o dowhil|e))\./* |
|00003430| 64 6f 75 6e 74 69 6c 20 | 2a 2f 5c 0a 09 28 69 66 |dountil |*/\..(if|
|00003440| 20 28 65 76 61 6c 20 28 | 67 65 74 20 63 29 29 20 | (eval (|get c)) |
|00003450| 28 67 6f 74 6f 20 64 6f | 6e 65 29 29 5c 0a 09 28 |(goto do|ne))\..(|
|00003460| 67 6f 74 6f 20 62 65 67 | 69 6e 29 5c 0a 28 6c 61 |goto beg|in)\.(la|
|00003470| 62 65 6c 20 64 6f 77 68 | 69 6c 65 29 5c 0a 09 28 |bel dowh|ile)\..(|
|00003480| 69 66 20 28 65 76 61 6c | 20 28 67 65 74 20 63 29 |if (eval| (get c)|
|00003490| 29 20 28 67 6f 74 6f 20 | 62 65 67 69 6e 29 29 5c |) (goto |begin))\|
|000034a0| 0a 28 6c 61 62 65 6c 20 | 64 6f 6e 65 29 5c 0a 29 |.(label |done)\.)|
|000034b0| 0a 0a 64 65 66 69 6e 65 | 20 74 65 73 74 77 68 69 |..define| testwhi|
|000034c0| 6c 65 20 28 5c 0a 09 28 | 66 73 65 74 20 61 20 28 |le (\..(|fset a (|
|000034d0| 61 72 67 65 76 61 6c 20 | 31 29 29 5c 0a 09 28 66 |argeval |1))\..(f|
|000034e0| 73 65 74 20 62 20 28 61 | 72 67 65 76 61 6c 20 32 |set b (a|rgeval 2|
|000034f0| 29 29 5c 0a 09 28 77 68 | 69 6c 65 20 28 69 67 72 |))\..(wh|ile (igr|
|00003500| 20 28 67 65 74 20 62 29 | 20 28 67 65 74 20 61 29 | (get b)| (get a)|
|00003510| 29 20 28 5c 0a 09 09 28 | 70 72 69 6e 74 20 28 67 |) (\...(|print (g|
|00003520| 65 74 20 61 29 29 5c 0a | 09 09 28 73 65 74 20 61 |et a))\.|..(set a|
|00003530| 20 28 70 6c 75 73 20 31 | 20 28 67 65 74 20 61 29 | (plus 1| (get a)|
|00003540| 29 29 5c 0a 09 29 29 5c | 0a 29 0a 0a 64 65 66 69 |))\..))\|.)..defi|
|00003550| 6e 65 20 74 65 73 74 75 | 6e 74 69 6c 20 28 5c 0a |ne testu|ntil (\.|
|00003560| 09 28 66 73 65 74 20 61 | 20 28 61 72 67 65 76 61 |.(fset a| (argeva|
|00003570| 6c 20 31 29 29 5c 0a 09 | 28 66 73 65 74 20 62 20 |l 1))\..|(fset b |
|00003580| 28 61 72 67 65 76 61 6c | 20 32 29 29 5c 0a 09 28 |(argeval| 2))\..(|
|00003590| 75 6e 74 69 6c 20 28 69 | 67 72 20 28 67 65 74 20 |until (i|gr (get |
|000035a0| 61 29 20 28 67 65 74 20 | 62 29 29 20 28 5c 0a 09 |a) (get |b)) (\..|
|000035b0| 09 28 70 72 69 6e 74 20 | 28 67 65 74 20 61 29 29 |.(print |(get a))|
|000035c0| 5c 0a 09 09 28 73 65 74 | 20 61 20 28 70 6c 75 73 |\...(set| a (plus|
|000035d0| 20 31 20 28 67 65 74 20 | 61 29 29 29 5c 0a 09 29 | 1 (get |a)))\..)|
|000035e0| 29 5c 0a 29 0a 0a 64 65 | 66 69 6e 65 20 74 65 73 |)\.)..de|fine tes|
|000035f0| 74 64 6f 75 6e 74 69 6c | 20 28 5c 0a 09 28 66 73 |tdountil| (\..(fs|
|00003600| 65 74 20 61 20 28 61 72 | 67 65 76 61 6c 20 31 29 |et a (ar|geval 1)|
|00003610| 29 5c 0a 09 28 66 73 65 | 74 20 62 20 28 61 72 67 |)\..(fse|t b (arg|
|00003620| 65 76 61 6c 20 32 29 29 | 5c 0a 09 28 64 6f 20 28 |eval 2))|\..(do (|
|00003630| 5c 0a 09 09 28 70 72 69 | 6e 74 20 28 67 65 74 20 |\...(pri|nt (get |
|00003640| 61 29 29 5c 0a 09 09 28 | 73 65 74 20 61 20 28 70 |a))\...(|set a (p|
|00003650| 6c 75 73 20 31 20 28 67 | 65 74 20 61 29 29 29 5c |lus 1 (g|et a)))\|
|00003660| 0a 09 29 20 75 6e 74 69 | 6c 20 28 69 67 72 20 28 |..) unti|l (igr (|
|00003670| 67 65 74 20 61 29 20 28 | 67 65 74 20 62 29 29 29 |get a) (|get b)))|
|00003680| 5c 0a 29 0a 0a 64 65 66 | 69 6e 65 20 74 65 73 74 |\.)..def|ine test|
|00003690| 64 6f 77 68 69 6c 65 20 | 28 5c 0a 09 28 66 73 65 |dowhile |(\..(fse|
|000036a0| 74 20 61 20 28 61 72 67 | 65 76 61 6c 20 31 29 29 |t a (arg|eval 1))|
|000036b0| 5c 0a 09 28 66 73 65 74 | 20 62 20 28 61 72 67 65 |\..(fset| b (arge|
|000036c0| 76 61 6c 20 32 29 29 5c | 0a 09 28 64 6f 20 28 5c |val 2))\|..(do (\|
|000036d0| 0a 09 09 28 70 72 69 6e | 74 20 28 67 65 74 20 61 |...(prin|t (get a|
|000036e0| 29 29 5c 0a 09 09 28 73 | 65 74 20 61 20 28 70 6c |))\...(s|et a (pl|
|000036f0| 75 73 20 31 20 28 67 65 | 74 20 61 29 29 29 5c 0a |us 1 (ge|t a)))\.|
|00003700| 09 29 20 77 68 69 6c 65 | 20 28 69 67 72 20 28 67 |.) while| (igr (g|
|00003710| 65 74 20 62 29 20 28 67 | 65 74 20 61 29 29 29 5c |et b) (g|et a)))\|
|00003720| 0a 29 0a 0a 2f 2a 20 65 | 6e 64 20 2a 2f 0a 63 6f |.)../* e|nd */.co|
|00003730| 6e 74 2e 73 70 0a 0a 53 | 48 41 52 53 52 43 53 20 |nt.sp..S|HARSRCS |
|00003740| 3d 20 24 28 53 48 41 52 | 45 54 43 29 20 24 28 53 |= $(SHAR|ETC) $(S|
|00003750| 52 43 53 29 20 24 28 48 | 44 52 53 29 20 24 28 4d |RCS) $(H|DRS) $(M|
|00003760| 41 4b 45 46 49 4c 45 29 | 0a 0a 45 58 54 48 44 52 |AKEFILE)|..EXTHDR|
|00003770| 53 09 20 20 20 20 20 20 | 3d 20 2f 75 73 72 2f 69 |S. |= /usr/i|
|00003780| 6e 63 6c 75 64 65 2f 63 | 74 79 70 65 2e 68 20 5c |nclude/c|type.h \|
|00003790| 0a 09 09 2f 75 73 72 2f | 69 6e 63 6c 75 64 65 2f |.../usr/|include/|
|000037a0| 73 65 74 6a 6d 70 2e 68 | 20 5c 0a 09 09 2f 75 73 |setjmp.h| \.../us|
|000037b0| 72 2f 69 6e 63 6c 75 64 | 65 2f 73 74 64 69 6f 2e |r/includ|e/stdio.|
|000037c0| 68 0a 0a 4c 49 42 53 20 | 20 20 20 20 20 20 20 20 |h..LIBS | |
|000037d0| 20 3d 0a 0a 58 4c 49 4e | 54 4c 49 42 53 20 20 20 | =..XLIN|TLIBS |
|000037e0| 20 20 20 3d 0a 0a 64 65 | 66 61 75 6c 74 3a 09 24 | =..de|fault:.$|
|000037f0| 28 50 52 4f 47 52 41 4d | 29 0a 0a 6c 69 62 3a 09 |(PROGRAM|)..lib:.|
|00003800| 73 70 69 6e 2f 63 6f 6e | 74 73 75 62 73 2e 63 00 |spin/con|tsubs.c.|
|00003810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003870| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00003880| 20 20 20 36 37 32 37 20 | 20 34 34 31 31 35 35 35 | 6727 | 4411555|
|00003890| 35 35 30 20 20 20 37 30 | 37 37 00 20 00 00 00 00 |550 70|77. ....|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 2f 2a 20 63 6f 6e 74 73 | 75 62 73 2e 63 20 2d 20 |/* conts|ubs.c - |
|00003a10| 63 6f 6e 74 72 6f 6c 20 | 73 74 72 75 63 74 75 72 |control |structur|
|00003a20| 65 20 73 75 62 72 6f 75 | 74 69 6e 65 73 20 66 6f |e subrou|tines fo|
|00003a30| 72 20 73 70 69 6e 0a 20 | 2a 0a 20 2a 20 31 36 2e |r spin. |*. * 16.|
|00003a40| 4f 63 74 2e 38 37 20 20 | 6a 69 6d 6d 63 20 20 49 |Oct.87 |jimmc I|
|00003a50| 6e 69 74 69 61 6c 20 64 | 65 66 69 6e 69 74 69 6f |nitial d|efinitio|
|00003a60| 6e 0a 20 2a 20 32 31 2e | 4f 63 74 2e 38 37 20 20 |n. * 21.|Oct.87 |
|00003a70| 6a 69 6d 6d 63 20 20 41 | 64 64 20 66 75 6e 63 20 |jimmc A|dd func |
|00003a80| 61 6e 64 20 61 72 67 73 | 20 73 74 75 66 66 0a 20 |and args| stuff. |
|00003a90| 2a 20 33 30 2e 4e 6f 76 | 2e 38 37 20 20 6a 69 6d |* 30.Nov|.87 jim|
|00003aa0| 6d 63 20 20 4c 69 6e 74 | 20 63 6c 65 61 6e 75 70 |mc Lint| cleanup|
|00003ab0| 0a 20 2a 2f 0a 2f 2a 20 | 4c 49 4e 54 4c 49 42 52 |. */./* |LINTLIBR|
|00003ac0| 41 52 59 20 2a 2f 0a 0a | 23 69 6e 63 6c 75 64 65 |ARY */..|#include|
|00003ad0| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 23 69 6e 63 6c | <stdio.|h>.#incl|
|00003ae0| 75 64 65 20 22 78 61 6c | 6c 6f 63 2e 68 22 0a 23 |ude "xal|loc.h".#|
|00003af0| 69 6e 63 6c 75 64 65 20 | 22 73 70 69 6e 2e 68 22 |include |"spin.h"|
|00003b00| 0a 23 69 6e 63 6c 75 64 | 65 20 22 65 78 65 63 2e |.#includ|e "exec.|
|00003b10| 68 22 0a 0a 73 74 72 75 | 63 74 20 66 75 6e 63 61 |h"..stru|ct funca|
|00003b20| 72 67 73 20 7b 0a 09 73 | 74 72 75 63 74 20 66 75 |rgs {..s|truct fu|
|00003b30| 6e 63 61 72 67 73 20 2a | 75 70 3b 0a 09 69 6e 74 |ncargs *|up;..int|
|00003b40| 20 6e 75 6d 3b 09 2f 2a | 20 6e 75 6d 62 65 72 20 | num;./*| number |
|00003b50| 6f 66 20 61 72 67 73 20 | 2a 2f 0a 09 53 50 74 6f |of args |*/..SPto|
|00003b60| 6b 65 6e 20 2a 2a 76 61 | 6c 3b 09 2f 2a 20 74 68 |ken **va|l;./* th|
|00003b70| 65 20 61 72 67 73 20 28 | 70 6f 69 6e 74 65 72 20 |e args (|pointer |
|00003b80| 74 6f 20 61 72 72 61 79 | 20 6f 66 20 70 6f 69 6e |to array| of poin|
|00003b90| 74 65 72 73 29 20 2a 2f | 0a 09 53 50 74 6f 6b 65 |ters) */|..SPtoke|
|00003ba0| 6e 20 2a 76 61 6c 6c 69 | 73 74 3b 0a 7d 3b 0a 73 |n *valli|st;.};.s|
|00003bb0| 74 72 75 63 74 20 66 75 | 6e 63 61 72 67 73 20 2a |truct fu|ncargs *|
|00003bc0| 63 75 72 61 72 67 73 3b | 0a 0a 65 78 74 65 72 6e |curargs;|..extern|
|00003bd0| 20 53 50 74 6f 6b 65 6e | 20 2a 53 50 65 78 65 63 | SPtoken| *SPexec|
|00003be0| 28 29 3b 0a 0a 53 50 74 | 6f 6b 65 6e 20 2a 0a 73 |();..SPt|oken *.s|
|00003bf0| 70 5f 69 66 28 74 65 73 | 74 2c 74 72 75 65 63 6f |p_if(tes|t,trueco|
|00003c00| 64 65 2c 66 61 6c 73 65 | 63 6f 64 65 29 0a 69 6e |de,false|code).in|
|00003c10| 74 20 74 65 73 74 3b 09 | 2f 2a 20 74 68 65 20 76 |t test;.|/* the v|
|00003c20| 61 6c 75 65 20 74 6f 20 | 74 65 73 74 20 2a 2f 0a |alue to |test */.|
|00003c30| 53 50 74 6f 6b 65 6e 20 | 2a 74 72 75 65 63 6f 64 |SPtoken |*truecod|
|00003c40| 65 3b 09 2f 2a 20 65 78 | 65 63 75 74 65 20 74 68 |e;./* ex|ecute th|
|00003c50| 69 73 20 69 66 20 74 72 | 75 65 20 2a 2f 0a 53 50 |is if tr|ue */.SP|
|00003c60| 74 6f 6b 65 6e 20 2a 66 | 61 6c 73 65 63 6f 64 65 |token *f|alsecode|
|00003c70| 3b 09 2f 2a 20 65 78 65 | 63 75 74 65 20 74 68 69 |;./* exe|cute thi|
|00003c80| 73 20 69 73 20 66 61 6c | 73 65 20 2a 2f 0a 7b 0a |s is fal|se */.{.|
|00003c90| 09 69 66 20 28 74 65 73 | 74 29 20 7b 0a 09 09 72 |.if (tes|t) {...r|
|00003ca0| 65 74 75 72 6e 20 53 50 | 65 78 65 63 28 74 72 75 |eturn SP|exec(tru|
|00003cb0| 65 63 6f 64 65 29 3b 0a | 09 7d 0a 09 65 6c 73 65 |ecode);.|.}..else|
|00003cc0| 20 7b 0a 09 09 72 65 74 | 75 72 6e 20 53 50 65 78 | {...ret|urn SPex|
|00003cd0| 65 63 28 66 61 6c 73 65 | 63 6f 64 65 29 3b 0a 09 |ec(false|code);..|
|00003ce0| 7d 0a 7d 0a 0a 76 6f 69 | 64 0a 73 70 5f 65 78 69 |}.}..voi|d.sp_exi|
|00003cf0| 74 28 63 6f 64 65 29 0a | 69 6e 74 20 63 6f 64 65 |t(code).|int code|
|00003d00| 3b 0a 7b 0a 2f 2a 2a 2a | 20 73 68 6f 75 6c 64 20 |;.{./***| should |
|00003d10| 61 6c 6c 6f 77 20 70 72 | 6f 67 72 61 6d 73 20 74 |allow pr|ograms t|
|00003d20| 6f 20 73 65 74 20 75 70 | 20 65 78 69 74 20 72 6f |o set up| exit ro|
|00003d30| 75 74 69 6e 65 73 20 77 | 68 69 63 68 20 61 72 65 |utines w|hich are|
|00003d40| 20 63 61 6c 6c 65 64 0a | 20 2a 20 62 65 66 6f 72 | called.| * befor|
|00003d50| 65 20 74 68 65 20 65 78 | 69 74 20 69 73 20 61 63 |e the ex|it is ac|
|00003d60| 74 75 61 6c 6c 79 20 64 | 6f 6e 65 2c 20 6f 72 20 |tually d|one, or |
|00003d70| 77 68 69 63 68 20 6d 61 | 79 20 61 62 6f 72 74 20 |which ma|y abort |
|00003d80| 74 68 65 20 65 78 69 74 | 2e 0a 20 2a 2f 0a 09 65 |the exit|.. */..e|
|00003d90| 78 69 74 28 63 6f 64 65 | 29 3b 0a 7d 0a 0a 63 68 |xit(code|);.}..ch|
|00003da0| 61 72 20 2a 0a 73 70 5f | 70 72 69 6d 69 6e 66 6f |ar *.sp_|priminfo|
|00003db0| 28 6e 61 6d 65 29 0a 63 | 68 61 72 20 2a 6e 61 6d |(name).c|har *nam|
|00003dc0| 65 3b 0a 7b 0a 53 50 66 | 75 6e 63 69 6e 66 6f 20 |e;.{.SPf|uncinfo |
|00003dd0| 2a 66 69 6e 66 6f 2c 20 | 2a 53 50 66 69 6e 64 66 |*finfo, |*SPfindf|
|00003de0| 75 6e 63 28 29 3b 0a 0a | 09 66 69 6e 66 6f 20 3d |unc();..|.finfo =|
|00003df0| 20 53 50 66 69 6e 64 66 | 75 6e 63 28 6e 61 6d 65 | SPfindf|unc(name|
|00003e00| 29 3b 0a 09 69 66 20 28 | 21 66 69 6e 66 6f 29 20 |);..if (|!finfo) |
|00003e10| 72 65 74 75 72 6e 20 4e | 49 4c 3b 0a 09 72 65 74 |return N|IL;..ret|
|00003e20| 75 72 6e 20 66 69 6e 66 | 6f 2d 3e 61 72 67 73 3b |urn finf|o->args;|
|00003e30| 0a 7d 0a 0a 76 6f 69 64 | 0a 73 70 5f 64 65 66 69 |.}..void|.sp_defi|
|00003e40| 6e 65 28 6e 61 6d 65 2c | 6c 69 73 74 29 0a 63 68 |ne(name,|list).ch|
|00003e50| 61 72 20 2a 6e 61 6d 65 | 3b 0a 53 50 74 6f 6b 65 |ar *name|;.SPtoke|
|00003e60| 6e 20 2a 6c 69 73 74 3b | 0a 7b 0a 65 78 74 65 72 |n *list;|.{.exter|
|00003e70| 6e 20 53 50 74 6f 6b 65 | 6e 20 2a 73 70 5f 66 73 |n SPtoke|n *sp_fs|
|00003e80| 65 74 28 29 3b 0a 0a 09 | 28 76 6f 69 64 29 73 70 |et();...|(void)sp|
|00003e90| 5f 66 73 65 74 28 6e 61 | 6d 65 2c 6c 69 73 74 29 |_fset(na|me,list)|
|00003ea0| 3b 0a 7d 0a 0a 69 6e 74 | 09 2f 2a 20 31 20 69 66 |;.}..int|./* 1 if|
|00003eb0| 20 77 65 20 66 6f 75 6e | 64 20 61 6e 64 20 65 78 | we foun|d and ex|
|00003ec0| 65 63 75 74 65 64 20 74 | 68 65 20 66 75 6e 63 74 |ecuted t|he funct|
|00003ed0| 69 6f 6e 20 2a 2f 0a 73 | 70 5f 78 65 78 65 63 28 |ion */.s|p_xexec(|
|00003ee0| 6e 61 6d 65 2c 61 72 67 | 73 2c 72 76 61 6c 29 0a |name,arg|s,rval).|
|00003ef0| 63 68 61 72 20 2a 6e 61 | 6d 65 3b 09 2f 2a 20 6e |char *na|me;./* n|
|00003f00| 61 6d 65 20 6f 66 20 74 | 68 65 20 66 75 6e 63 74 |ame of t|he funct|
|00003f10| 69 6f 6e 20 74 6f 20 65 | 78 65 63 75 74 65 20 2a |ion to e|xecute *|
|00003f20| 2f 0a 53 50 74 6f 6b 65 | 6e 20 2a 61 72 67 73 3b |/.SPtoke|n *args;|
|00003f30| 09 2f 2a 20 74 68 65 20 | 61 72 67 73 20 74 6f 20 |./* the |args to |
|00003f40| 74 68 61 74 20 66 75 6e | 63 74 69 6f 6e 20 2a 2f |that fun|ction */|
|00003f50| 0a 53 50 74 6f 6b 65 6e | 20 2a 72 76 61 6c 3b 09 |.SPtoken| *rval;.|
|00003f60| 2f 2a 20 74 68 65 20 74 | 6f 6b 65 6e 20 69 6e 20 |/* the t|oken in |
|00003f70| 77 68 69 63 68 20 74 6f | 20 72 65 74 75 72 6e 20 |which to| return |
|00003f80| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|00003f90| 20 66 75 6e 63 20 2a 2f | 0a 7b 0a 53 50 74 6f 6b | func */|.{.SPtok|
|00003fa0| 65 6e 20 2a 66 76 61 6c | 2c 20 2a 73 70 5f 66 67 |en *fval|, *sp_fg|
|00003fb0| 65 74 28 29 2c 20 2a 72 | 72 76 61 6c 2c 20 2a 53 |et(), *r|rval, *S|
|00003fc0| 50 65 78 65 63 28 29 3b | 0a 73 74 72 75 63 74 20 |Pexec();|.struct |
|00003fd0| 66 75 6e 63 61 72 67 73 | 20 66 61 72 67 73 3b 0a |funcargs| fargs;.|
|00003fe0| 69 6e 74 20 6e 3b 0a 53 | 50 74 6f 6b 65 6e 2a 20 |int n;.S|Ptoken* |
|00003ff0| 74 6b 3b 0a 0a 09 66 76 | 61 6c 20 3d 20 73 70 5f |tk;...fv|al = sp_|
|00004000| 66 67 65 74 28 6e 61 6d | 65 29 3b 09 2f 2a 20 73 |fget(nam|e);./* s|
|00004010| 65 65 20 69 66 20 77 65 | 20 68 61 76 65 20 69 74 |ee if we| have it|
|00004020| 20 2a 2f 0a 09 69 66 20 | 28 21 66 76 61 6c 29 20 | */..if |(!fval) |
|00004030| 72 65 74 75 72 6e 20 30 | 3b 09 2f 2a 20 6e 6f 74 |return 0|;./* not|
|00004040| 20 66 6f 75 6e 64 20 2a | 2f 0a 09 66 6f 72 20 28 | found *|/..for (|
|00004050| 6e 3d 30 2c 74 6b 3d 61 | 72 67 73 3b 20 74 6b 3b |n=0,tk=a|rgs; tk;|
|00004060| 20 74 6b 3d 74 6b 2d 3e | 6e 65 78 74 29 20 6e 2b | tk=tk->|next) n+|
|00004070| 2b 3b 09 2f 2a 20 63 6f | 75 6e 74 20 61 72 67 73 |+;./* co|unt args|
|00004080| 20 2a 2f 0a 09 66 61 72 | 67 73 2e 6e 75 6d 20 3d | */..far|gs.num =|
|00004090| 20 6e 3b 0a 09 69 66 20 | 28 6e 3e 30 29 20 66 61 | n;..if |(n>0) fa|
|000040a0| 72 67 73 2e 76 61 6c 20 | 3d 20 58 41 4c 4c 4f 43 |rgs.val |= XALLOC|
|000040b0| 28 53 50 74 6f 6b 65 6e | 20 2a 2c 6e 29 3b 0a 09 |(SPtoken| *,n);..|
|000040c0| 66 6f 72 20 28 6e 3d 30 | 2c 74 6b 3d 61 72 67 73 |for (n=0|,tk=args|
|000040d0| 3b 20 74 6b 3b 20 74 6b | 3d 74 6b 2d 3e 6e 65 78 |; tk; tk|=tk->nex|
|000040e0| 74 29 20 66 61 72 67 73 | 2e 76 61 6c 5b 6e 2b 2b |t) fargs|.val[n++|
|000040f0| 5d 3d 74 6b 3b 0a 09 66 | 61 72 67 73 2e 76 61 6c |]=tk;..f|args.val|
|00004100| 6c 69 73 74 20 3d 20 4e | 49 4c 3b 0a 09 66 61 72 |list = N|IL;..far|
|00004110| 67 73 2e 75 70 20 3d 20 | 63 75 72 61 72 67 73 3b |gs.up = |curargs;|
|00004120| 0a 09 63 75 72 61 72 67 | 73 20 3d 20 26 66 61 72 |..curarg|s = &far|
|00004130| 67 73 3b 0a 09 72 72 76 | 61 6c 20 3d 20 53 50 65 |gs;..rrv|al = SPe|
|00004140| 78 65 63 28 66 76 61 6c | 29 3b 09 2f 2a 20 65 78 |xec(fval|);./* ex|
|00004150| 65 63 75 74 65 20 74 68 | 65 20 66 75 6e 63 74 69 |ecute th|e functi|
|00004160| 6f 6e 20 28 6a 75 73 74 | 20 61 20 6c 69 73 74 21 |on (just| a list!|
|00004170| 29 20 2a 2f 0a 09 09 2f | 2a 2a 2a 20 6e 6f 74 20 |) */.../|*** not |
|00004180| 6d 75 63 68 20 61 72 67 | 75 6d 65 6e 74 20 63 68 |much arg|ument ch|
|00004190| 65 63 6b 69 6e 67 20 68 | 65 72 65 21 20 2a 2f 0a |ecking h|ere! */.|
|000041a0| 09 69 66 20 28 72 72 76 | 61 6c 29 20 2a 72 76 61 |.if (rrv|al) *rva|
|000041b0| 6c 20 3d 20 2a 72 72 76 | 61 6c 3b 0a 09 65 6c 73 |l = *rrv|al;..els|
|000041c0| 65 20 72 76 61 6c 2d 3e | 74 79 70 65 20 3d 20 53 |e rval->|type = S|
|000041d0| 50 54 6f 6b 4e 69 6c 3b | 0a 09 69 66 20 28 6e 3e |PTokNil;|..if (n>|
|000041e0| 30 29 20 58 46 52 45 45 | 28 66 61 72 67 73 2e 76 |0) XFREE|(fargs.v|
|000041f0| 61 6c 29 3b 0a 09 63 75 | 72 61 72 67 73 20 3d 20 |al);..cu|rargs = |
|00004200| 66 61 72 67 73 2e 75 70 | 3b 0a 09 72 65 74 75 72 |fargs.up|;..retur|
|00004210| 6e 20 31 3b 09 09 2f 2a | 20 77 65 20 67 6f 74 20 |n 1;../*| we got |
|00004220| 69 74 20 4f 4b 20 2a 2f | 0a 7d 0a 0a 53 50 74 6f |it OK */|.}..SPto|
|00004230| 6b 65 6e 20 2a 0a 73 70 | 5f 61 72 67 71 75 6f 74 |ken *.sp|_argquot|
|00004240| 65 28 61 72 67 6e 75 6d | 29 0a 69 6e 74 20 61 72 |e(argnum|).int ar|
|00004250| 67 6e 75 6d 3b 0a 7b 0a | 09 69 66 20 28 21 63 75 |gnum;.{.|.if (!cu|
|00004260| 72 61 72 67 73 20 7c 7c | 20 61 72 67 6e 75 6d 3c |rargs ||| argnum<|
|00004270| 31 20 7c 7c 20 61 72 67 | 6e 75 6d 3e 63 75 72 61 |1 || arg|num>cura|
|00004280| 72 67 73 2d 3e 6e 75 6d | 29 20 72 65 74 75 72 6e |rgs->num|) return|
|00004290| 20 4e 49 4c 3b 0a 09 72 | 65 74 75 72 6e 20 63 75 | NIL;..r|eturn cu|
|000042a0| 72 61 72 67 73 2d 3e 76 | 61 6c 5b 61 72 67 6e 75 |rargs->v|al[argnu|
|000042b0| 6d 2d 31 5d 3b 0a 7d 0a | 0a 53 50 74 6f 6b 65 6e |m-1];.}.|.SPtoken|
|000042c0| 20 2a 0a 73 70 5f 61 72 | 67 65 76 61 6c 28 61 72 | *.sp_ar|geval(ar|
|000042d0| 67 6e 75 6d 29 0a 69 6e | 74 20 61 72 67 6e 75 6d |gnum).in|t argnum|
|000042e0| 3b 0a 7b 0a 09 69 66 20 | 28 21 63 75 72 61 72 67 |;.{..if |(!curarg|
|000042f0| 73 20 7c 7c 20 61 72 67 | 6e 75 6d 3c 31 20 7c 7c |s || arg|num<1 |||
|00004300| 20 61 72 67 6e 75 6d 3e | 63 75 72 61 72 67 73 2d | argnum>|curargs-|
|00004310| 3e 6e 75 6d 29 20 72 65 | 74 75 72 6e 20 4e 49 4c |>num) re|turn NIL|
|00004320| 3b 0a 09 72 65 74 75 72 | 6e 20 53 50 65 78 65 63 |;..retur|n SPexec|
|00004330| 28 63 75 72 61 72 67 73 | 2d 3e 76 61 6c 5b 61 72 |(curargs|->val[ar|
|00004340| 67 6e 75 6d 2d 31 5d 29 | 3b 0a 7d 0a 0a 73 74 61 |gnum-1])|;.}..sta|
|00004350| 74 69 63 0a 73 70 5f 6d | 61 6b 65 76 61 6c 6c 69 |tic.sp_m|akevalli|
|00004360| 73 74 28 29 0a 7b 0a 09 | 41 4c 4c 4f 43 54 4f 4b |st().{..|ALLOCTOK|
|00004370| 45 4e 28 63 75 72 61 72 | 67 73 2d 3e 76 61 6c 6c |EN(curar|gs->vall|
|00004380| 69 73 74 29 0a 09 63 75 | 72 61 72 67 73 2d 3e 76 |ist)..cu|rargs->v|
|00004390| 61 6c 6c 69 73 74 2d 3e | 74 79 70 65 20 3d 20 53 |allist->|type = S|
|000043a0| 50 54 6f 6b 4c 69 73 74 | 3b 0a 09 63 75 72 61 72 |PTokList|;..curar|
|000043b0| 67 73 2d 3e 76 61 6c 6c | 69 73 74 2d 3e 76 61 6c |gs->vall|ist->val|
|000043c0| 75 65 2e 6c 20 3d 20 63 | 75 72 61 72 67 73 2d 3e |ue.l = c|urargs->|
|000043d0| 76 61 6c 5b 30 5d 3b 0a | 09 63 75 72 61 72 67 73 |val[0];.|.curargs|
|000043e0| 2d 3e 76 61 6c 6c 69 73 | 74 2d 3e 6e 65 78 74 20 |->vallis|t->next |
|000043f0| 3d 20 4e 49 4c 3b 0a 7d | 0a 0a 53 50 74 6f 6b 65 |= NIL;.}|..SPtoke|
|00004400| 6e 20 2a 0a 73 70 5f 61 | 72 67 6c 69 73 74 71 75 |n *.sp_a|rglistqu|
|00004410| 6f 74 65 28 29 0a 7b 0a | 09 69 66 20 28 21 63 75 |ote().{.|.if (!cu|
|00004420| 72 61 72 67 73 29 20 72 | 65 74 75 72 6e 20 4e 49 |rargs) r|eturn NI|
|00004430| 4c 3b 0a 09 69 66 20 28 | 21 63 75 72 61 72 67 73 |L;..if (|!curargs|
|00004440| 2d 3e 76 61 6c 6c 69 73 | 74 29 20 73 70 5f 6d 61 |->vallis|t) sp_ma|
|00004450| 6b 65 76 61 6c 6c 69 73 | 74 28 29 3b 0a 09 72 65 |kevallis|t();..re|
|00004460| 74 75 72 6e 20 63 75 72 | 61 72 67 73 2d 3e 76 61 |turn cur|args->va|
|00004470| 6c 6c 69 73 74 3b 0a 7d | 0a 0a 53 50 74 6f 6b 65 |llist;.}|..SPtoke|
|00004480| 6e 20 2a 0a 73 70 5f 61 | 72 67 6c 69 73 74 65 76 |n *.sp_a|rglistev|
|00004490| 61 6c 28 29 0a 7b 0a 53 | 50 74 6f 6b 65 6e 20 2a |al().{.S|Ptoken *|
|000044a0| 6c 69 73 74 2c 20 2a 74 | 6b 2c 20 2a 6e 65 77 74 |list, *t|k, *newt|
|000044b0| 6b 2c 20 2a 2a 70 72 65 | 76 74 6b 70 2c 20 2a 53 |k, **pre|vtkp, *S|
|000044c0| 50 6e 65 77 6e 69 6c 28 | 29 3b 0a 0a 09 69 66 20 |Pnewnil(|);...if |
|000044d0| 28 21 63 75 72 61 72 67 | 73 29 20 72 65 74 75 72 |(!curarg|s) retur|
|000044e0| 6e 20 4e 49 4c 3b 0a 09 | 69 66 20 28 21 63 75 72 |n NIL;..|if (!cur|
|000044f0| 61 72 67 73 2d 3e 76 61 | 6c 6c 69 73 74 29 20 73 |args->va|llist) s|
|00004500| 70 5f 6d 61 6b 65 76 61 | 6c 6c 69 73 74 28 29 3b |p_makeva|llist();|
|00004510| 0a 09 41 4c 4c 4f 43 54 | 4f 4b 45 4e 28 6c 69 73 |..ALLOCT|OKEN(lis|
|00004520| 74 29 0a 09 6c 69 73 74 | 2d 3e 74 79 70 65 20 3d |t)..list|->type =|
|00004530| 20 53 50 54 6f 6b 4c 69 | 73 74 3b 0a 09 6c 69 73 | SPTokLi|st;..lis|
|00004540| 74 2d 3e 6e 65 78 74 20 | 3d 20 4e 49 4c 3b 0a 09 |t->next |= NIL;..|
|00004550| 70 72 65 76 74 6b 70 20 | 3d 20 26 6c 69 73 74 2d |prevtkp |= &list-|
|00004560| 3e 76 61 6c 75 65 2e 6c | 3b 0a 09 66 6f 72 20 28 |>value.l|;..for (|
|00004570| 74 6b 3d 63 75 72 61 72 | 67 73 2d 3e 76 61 6c 6c |tk=curar|gs->vall|
|00004580| 69 73 74 2d 3e 76 61 6c | 75 65 2e 6c 3b 20 74 6b |ist->val|ue.l; tk|
|00004590| 3b 20 74 6b 3d 74 6b 2d | 3e 6e 65 78 74 29 20 7b |; tk=tk-|>next) {|
|000045a0| 0a 09 09 6e 65 77 74 6b | 20 3d 20 53 50 65 78 65 |...newtk| = SPexe|
|000045b0| 63 28 74 6b 29 3b 0a 09 | 09 69 66 20 28 21 6e 65 |c(tk);..|.if (!ne|
|000045c0| 77 74 6b 29 20 6e 65 77 | 74 6b 20 3d 20 53 50 6e |wtk) new|tk = SPn|
|000045d0| 65 77 6e 69 6c 28 29 3b | 0a 09 09 2a 70 72 65 76 |ewnil();|...*prev|
|000045e0| 74 6b 70 20 3d 20 6e 65 | 77 74 6b 3b 0a 09 09 70 |tkp = ne|wtk;...p|
|000045f0| 72 65 76 74 6b 70 20 3d | 20 26 6e 65 77 74 6b 2d |revtkp =| &newtk-|
|00004600| 3e 6e 65 78 74 3b 0a 09 | 7d 0a 09 2a 70 72 65 76 |>next;..|}..*prev|
|00004610| 74 6b 70 20 3d 20 4e 49 | 4c 3b 0a 09 72 65 74 75 |tkp = NI|L;..retu|
|00004620| 72 6e 20 6c 69 73 74 3b | 0a 7d 0a 0a 53 50 69 6e |rn list;|.}..SPin|
|00004630| 69 74 63 6f 6e 74 28 29 | 0a 7b 0a 09 53 50 64 65 |itcont()|.{..SPde|
|00004640| 66 66 75 6e 63 28 22 69 | 66 22 2c 22 6c 62 4c 4c |ffunc("i|f","lbLL|
|00004650| 22 2c 73 70 5f 69 66 29 | 3b 0a 09 53 50 64 65 66 |",sp_if)|;..SPdef|
|00004660| 66 75 6e 63 28 22 65 78 | 69 74 22 2c 22 76 49 30 |func("ex|it","vI0|
|00004670| 22 2c 73 70 5f 65 78 69 | 74 29 3b 0a 09 53 50 64 |",sp_exi|t);..SPd|
|00004680| 65 66 66 75 6e 63 28 22 | 71 75 69 74 22 2c 22 76 |effunc("|quit","v|
|00004690| 49 30 22 2c 73 70 5f 65 | 78 69 74 29 3b 09 2f 2a |I0",sp_e|xit);./*|
|000046a0| 20 73 79 6e 6f 6e 79 6d | 20 66 6f 72 20 65 78 69 | synonym| for exi|
|000046b0| 74 20 2a 2f 0a 09 53 50 | 64 65 66 66 75 6e 63 28 |t */..SP|deffunc(|
|000046c0| 22 64 65 66 69 6e 65 22 | 2c 22 76 6e 4c 22 2c 73 |"define"|,"vnL",s|
|000046d0| 70 5f 64 65 66 69 6e 65 | 29 3b 0a 09 53 50 64 65 |p_define|);..SPde|
|000046e0| 66 66 75 6e 63 28 22 61 | 72 67 71 75 6f 74 65 22 |ffunc("a|rgquote"|
|000046f0| 2c 22 6c 69 22 2c 73 70 | 5f 61 72 67 71 75 6f 74 |,"li",sp|_argquot|
|00004700| 65 29 3b 0a 09 53 50 64 | 65 66 66 75 6e 63 28 22 |e);..SPd|effunc("|
|00004710| 61 72 67 65 76 61 6c 22 | 2c 22 4c 69 22 2c 73 70 |argeval"|,"Li",sp|
|00004720| 5f 61 72 67 65 76 61 6c | 29 3b 0a 09 53 50 64 65 |_argeval|);..SPde|
|00004730| 66 66 75 6e 63 28 22 61 | 72 67 6c 69 73 74 71 75 |ffunc("a|rglistqu|
|00004740| 6f 74 65 22 2c 22 6c 22 | 2c 73 70 5f 61 72 67 6c |ote","l"|,sp_argl|
|00004750| 69 73 74 71 75 6f 74 65 | 29 3b 0a 09 53 50 64 65 |istquote|);..SPde|
|00004760| 66 66 75 6e 63 28 22 61 | 72 67 6c 69 73 74 65 76 |ffunc("a|rglistev|
|00004770| 61 6c 22 2c 22 4c 22 2c | 73 70 5f 61 72 67 6c 69 |al","L",|sp_argli|
|00004780| 73 74 65 76 61 6c 29 3b | 0a 09 53 50 64 65 66 66 |steval);|..SPdeff|
|00004790| 75 6e 63 28 22 70 72 69 | 6d 69 6e 66 6f 22 2c 22 |unc("pri|minfo","|
|000047a0| 73 6e 22 2c 73 70 5f 70 | 72 69 6d 69 6e 66 6f 29 |sn",sp_p|riminfo)|
|000047b0| 3b 0a 09 53 50 73 65 74 | 78 65 78 65 63 70 28 73 |;..SPset|xexecp(s|
|000047c0| 70 5f 78 65 78 65 63 29 | 3b 0a 7d 0a 0a 2f 2a 20 |p_xexec)|;.}../* |
|000047d0| 65 6e 64 20 2a 2f 0a 54 | 4c 49 42 29 3a 09 24 28 |end */.T|LIB):.$(|
|000047e0| 53 52 43 53 29 0a 09 09 | 6c 69 6e 74 20 2d 43 24 |SRCS)...|lint -C$|
|000047f0| 28 4c 49 42 52 41 52 59 | 29 20 24 28 4c 49 4e 54 |(LIBRARY|) $(LINT|
|00004800| 73 70 69 6e 2f 65 78 65 | 63 2e 68 00 00 00 00 00 |spin/exe|c.h.....|
|00004810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004870| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00004880| 20 20 20 20 34 30 30 20 | 20 34 34 31 31 35 35 35 | 400 | 4411555|
|00004890| 35 35 31 20 20 20 36 31 | 32 37 00 20 00 00 00 00 |551 61|27. ....|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 2f 2a 20 65 78 65 63 2e | 68 20 2d 20 73 74 75 66 |/* exec.|h - stuf|
|00004a10| 66 20 66 6f 72 20 73 70 | 69 6e 20 65 78 65 63 75 |f for sp|in execu|
|00004a20| 74 69 6f 6e 0a 20 2a 0a | 20 2a 2f 0a 0a 74 79 70 |tion. *.| */..typ|
|00004a30| 65 64 65 66 20 73 74 72 | 75 63 74 20 5f 53 50 66 |edef str|uct _SPf|
|00004a40| 75 6e 63 69 6e 66 6f 20 | 7b 0a 09 63 68 61 72 20 |uncinfo |{..char |
|00004a50| 2a 6e 61 6d 65 3b 09 09 | 2f 2a 20 6e 61 6d 65 20 |*name;..|/* name |
|00004a60| 6f 66 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |of the f|unction |
|00004a70| 2a 2f 0a 09 63 68 61 72 | 20 2a 61 72 67 73 3b 09 |*/..char| *args;.|
|00004a80| 09 2f 2a 20 72 65 74 75 | 72 6e 20 61 72 64 20 61 |./* retu|rn ard a|
|00004a90| 72 67 20 74 79 70 65 73 | 20 2a 2f 0a 09 76 6f 69 |rg types| */..voi|
|00004aa0| 64 20 28 2a 66 75 6e 63 | 70 29 28 29 3b 09 2f 2a |d (*func|p)();./*|
|00004ab0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00004ac0| 66 75 6e 63 74 69 6f 6e | 20 2a 2f 0a 09 73 74 72 |function| */..str|
|00004ad0| 75 63 74 20 5f 53 50 66 | 75 6e 63 69 6e 66 6f 20 |uct _SPf|uncinfo |
|00004ae0| 2a 6e 65 78 74 3b 0a 7d | 20 53 50 66 75 6e 63 69 |*next;.}| SPfunci|
|00004af0| 6e 66 6f 3b 0a 0a 2f 2a | 20 65 6e 64 20 2a 2f 0a |nfo;../*| end */.|
|00004b00| 00 00 01 84 00 01 71 43 | 00 18 00 0b 73 70 69 6e |......qC|....spin|
|00004b10| 70 61 72 73 65 2e 68 00 | 00 00 01 98 00 01 71 44 |parse.h.|......qD|
|00004b20| 00 18 00 09 76 61 72 73 | 75 62 73 2e 63 00 68 00 |....vars|ubs.c.h.|
|00004b30| 00 00 01 ac 00 01 71 45 | 00 18 00 08 78 61 6c 6c |......qE|....xall|
|00004b40| 6f 63 2e 63 00 00 01 98 | 00 00 01 d4 00 01 71 47 |oc.c....|......qG|
|00004b50| 00 18 00 08 78 61 6c 6c | 6f 63 2e 68 00 00 01 ac |....xall|oc.h....|
|00004b60| 00 00 02 00 00 01 71 49 | 00 14 00 06 65 78 65 63 |......qI|....exec|
|00004b70| 2e 63 00 68 0a 09 09 2f | 2a 2a 2a 20 6e 6f 74 20 |.c.h.../|*** not |
|00004b80| 6d 75 63 68 20 61 72 67 | 75 6d 65 6e 74 20 63 68 |much arg|ument ch|
|00004b90| 65 63 6b 69 6e 67 20 68 | 65 72 65 21 20 2a 2f 0a |ecking h|ere! */.|
|00004ba0| 09 69 66 20 28 72 72 76 | 61 6c 29 20 2a 72 76 61 |.if (rrv|al) *rva|
|00004bb0| 6c 20 3d 20 2a 72 72 76 | 61 6c 3b 0a 09 65 6c 73 |l = *rrv|al;..els|
|00004bc0| 65 20 72 76 61 6c 2d 3e | 74 79 70 65 20 3d 20 53 |e rval->|type = S|
|00004bd0| 50 54 6f 6b 4e 69 6c 3b | 0a 09 69 66 20 28 6e 3e |PTokNil;|..if (n>|
|00004be0| 30 29 20 58 46 52 45 45 | 28 66 61 72 67 73 2e 76 |0) XFREE|(fargs.v|
|00004bf0| 61 6c 29 3b 0a 09 63 75 | 72 61 72 67 73 20 3d 20 |al);..cu|rargs = |
|00004c00| 73 70 69 6e 2f 66 69 6c | 65 73 75 62 73 2e 63 00 |spin/fil|esubs.c.|
|00004c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004c70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00004c80| 20 20 20 32 33 36 37 20 | 20 34 34 31 31 35 35 35 | 2367 | 4411555|
|00004c90| 35 35 32 20 20 20 37 30 | 35 31 00 20 00 00 00 00 |552 70|51. ....|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 2f 2a 20 66 69 6c 65 73 | 75 62 73 2e 63 20 2d 20 |/* files|ubs.c - |
|00004e10| 66 69 6c 65 20 73 75 62 | 72 6f 75 74 69 6e 65 73 |file sub|routines|
|00004e20| 20 66 6f 72 20 73 70 69 | 6e 0a 20 2a 0a 20 2a 20 | for spi|n. *. * |
|00004e30| 32 30 2e 4f 63 74 2e 38 | 37 20 20 6a 69 6d 6d 63 |20.Oct.8|7 jimmc|
|00004e40| 20 20 49 6e 69 74 69 61 | 6c 20 64 65 66 69 6e 69 | Initia|l defini|
|00004e50| 74 69 6f 6e 0a 20 2a 20 | 20 34 2e 4e 6f 76 2e 38 |tion. * | 4.Nov.8|
|00004e60| 37 20 20 6a 69 6d 6d 63 | 20 20 41 64 64 20 70 72 |7 jimmc| Add pr|
|00004e70| 69 6e 74 0a 20 2a 20 20 | 35 2e 4e 6f 76 2e 38 37 |int. * |5.Nov.87|
|00004e80| 20 20 6a 69 6d 6d 63 20 | 20 41 64 64 20 73 65 74 | jimmc | Add set|
|00004e90| 6a 6d 70 20 73 74 75 66 | 66 20 69 6e 20 73 6f 75 |jmp stuf|f in sou|
|00004ea0| 72 63 65 66 69 6c 65 0a | 20 2a 20 33 30 2e 4e 6f |rcefile.| * 30.No|
|00004eb0| 76 2e 38 37 20 20 6a 69 | 6d 6d 63 20 20 4c 69 6e |v.87 ji|mmc Lin|
|00004ec0| 74 20 63 6c 65 61 6e 75 | 70 0a 20 2a 2f 0a 2f 2a |t cleanu|p. */./*|
|00004ed0| 20 4c 49 4e 54 4c 49 42 | 52 41 52 59 20 2a 2f 0a | LINTLIB|RARY */.|
|00004ee0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |.#includ|e <stdio|
|00004ef0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 22 67 6f |.h>.#inc|lude "go|
|00004f00| 74 6f 2e 68 22 0a 23 69 | 6e 63 6c 75 64 65 20 22 |to.h".#i|nclude "|
|00004f10| 73 70 69 6e 2e 68 22 0a | 23 69 6e 63 6c 75 64 65 |spin.h".|#include|
|00004f20| 20 22 78 61 6c 6c 6f 63 | 2e 68 22 0a 0a 69 6e 74 | "xalloc|.h"..int|
|00004f30| 09 09 09 2f 2a 20 30 20 | 69 66 20 6e 6f 20 65 72 |.../* 0 |if no er|
|00004f40| 72 6f 72 73 20 2a 2f 0a | 73 70 5f 73 6f 75 72 63 |rors */.|sp_sourc|
|00004f50| 65 66 69 6c 65 28 66 69 | 6c 65 6e 61 6d 65 29 0a |efile(fi|lename).|
|00004f60| 63 68 61 72 20 2a 66 69 | 6c 65 6e 61 6d 65 3b 0a |char *fi|lename;.|
|00004f70| 7b 0a 53 50 74 6f 6b 65 | 6e 20 2a 72 76 61 6c 2c |{.SPtoke|n *rval,|
|00004f80| 20 2a 53 50 70 61 72 73 | 65 66 69 6c 65 28 29 3b | *SPpars|efile();|
|00004f90| 0a 46 49 4c 45 20 2a 66 | 70 3b 0a 6a 6d 70 5f 62 |.FILE *f|p;.jmp_b|
|00004fa0| 75 66 20 6a 62 75 66 3b | 0a 6a 6d 70 5f 62 75 66 |uf jbuf;|.jmp_buf|
|00004fb0| 70 20 6f 6c 64 62 75 66 | 70 3b 0a 0a 09 66 70 20 |p oldbuf|p;...fp |
|00004fc0| 3d 20 66 6f 70 65 6e 28 | 66 69 6c 65 6e 61 6d 65 |= fopen(|filename|
|00004fd0| 2c 22 72 22 29 3b 0a 09 | 69 66 20 28 21 66 70 29 |,"r");..|if (!fp)|
|00004fe0| 20 7b 0a 09 09 53 50 65 | 73 63 61 70 65 28 22 43 | {...SPe|scape("C|
|00004ff0| 61 6e 74 4f 70 65 6e 46 | 69 6c 65 22 2c 22 63 61 |antOpenF|ile","ca|
|00005000| 6e 27 74 20 6f 70 65 6e | 20 66 69 6c 65 20 25 73 |n't open| file %s|
|00005010| 22 2c 66 69 6c 65 6e 61 | 6d 65 29 3b 0a 09 09 2f |",filena|me);.../|
|00005020| 2a 20 4e 4f 54 52 45 41 | 43 48 45 44 20 2a 2f 0a |* NOTREA|CHED */.|
|00005030| 09 7d 0a 09 6f 6c 64 62 | 75 66 70 20 3d 20 53 50 |.}..oldb|ufp = SP|
|00005040| 6a 62 75 66 70 3b 0a 09 | 53 50 6a 62 75 66 70 20 |jbufp;..|SPjbufp |
|00005050| 3d 20 6a 6d 70 62 75 66 | 5f 61 64 64 72 28 6a 62 |= jmpbuf|_addr(jb|
|00005060| 75 66 29 3b 0a 09 69 66 | 20 28 73 65 74 6a 6d 70 |uf);..if| (setjmp|
|00005070| 28 6a 62 75 66 29 29 20 | 7b 09 2f 2a 20 67 6f 74 |(jbuf)) |{./* got|
|00005080| 20 61 6e 20 65 72 72 6f | 72 20 77 68 69 6c 65 20 | an erro|r while |
|00005090| 70 72 6f 63 65 73 73 69 | 6e 67 20 2a 2f 0a 09 09 |processi|ng */...|
|000050a0| 66 63 6c 6f 73 65 28 66 | 70 29 3b 09 2f 2a 20 63 |fclose(f|p);./* c|
|000050b0| 6c 6f 73 65 20 74 68 65 | 20 66 69 6c 65 20 2a 2f |lose the| file */|
|000050c0| 0a 09 09 53 50 6a 62 75 | 66 70 20 3d 20 6f 6c 64 |...SPjbu|fp = old|
|000050d0| 62 75 66 70 3b 0a 09 09 | 6c 6f 6e 67 6a 6d 70 28 |bufp;...|longjmp(|
|000050e0| 6a 6d 70 62 75 66 5f 72 | 65 66 28 53 50 6a 62 75 |jmpbuf_r|ef(SPjbu|
|000050f0| 66 70 29 2c 31 29 3b 09 | 2f 2a 20 63 6f 6e 74 69 |fp),1);.|/* conti|
|00005100| 6e 75 65 20 75 70 20 2a | 2f 0a 09 09 2f 2a 20 4e |nue up *|/.../* N|
|00005110| 4f 54 52 45 41 43 48 45 | 44 20 2a 2f 0a 09 7d 0a |OTREACHE|D */..}.|
|00005120| 09 72 76 61 6c 20 3d 20 | 53 50 70 61 72 73 65 66 |.rval = |SPparsef|
|00005130| 69 6c 65 28 66 70 29 3b | 0a 09 66 63 6c 6f 73 65 |ile(fp);|..fclose|
|00005140| 28 66 70 29 3b 0a 09 46 | 52 45 45 54 4f 4b 45 4e |(fp);..F|REETOKEN|
|00005150| 4c 49 53 54 28 72 76 61 | 6c 29 0a 09 53 50 6a 62 |LIST(rva|l)..SPjb|
|00005160| 75 66 70 20 3d 20 6f 6c | 64 62 75 66 70 3b 0a 09 |ufp = ol|dbufp;..|
|00005170| 72 65 74 75 72 6e 20 30 | 3b 0a 7d 0a 0a 69 6e 74 |return 0|;.}..int|
|00005180| 09 09 09 2f 2a 20 30 20 | 69 66 20 6e 6f 20 65 72 |.../* 0 |if no er|
|00005190| 72 6f 72 73 20 2a 2f 0a | 73 70 5f 73 6f 75 72 63 |rors */.|sp_sourc|
|000051a0| 65 73 74 72 69 6e 67 28 | 73 74 72 69 6e 67 29 0a |estring(|string).|
|000051b0| 63 68 61 72 20 2a 73 74 | 72 69 6e 67 3b 0a 7b 0a |char *st|ring;.{.|
|000051c0| 53 50 74 6f 6b 65 6e 20 | 2a 72 76 61 6c 2c 20 2a |SPtoken |*rval, *|
|000051d0| 53 50 70 61 72 73 65 73 | 74 72 69 6e 67 28 29 3b |SPparses|tring();|
|000051e0| 0a 0a 09 72 76 61 6c 20 | 3d 20 53 50 70 61 72 73 |...rval |= SPpars|
|000051f0| 65 73 74 72 69 6e 67 28 | 73 74 72 69 6e 67 29 3b |estring(|string);|
|00005200| 0a 09 46 52 45 45 54 4f | 4b 45 4e 4c 49 53 54 28 |..FREETO|KENLIST(|
|00005210| 72 76 61 6c 29 0a 09 72 | 65 74 75 72 6e 20 30 3b |rval)..r|eturn 0;|
|00005220| 0a 7d 0a 0a 73 70 5f 70 | 72 69 6e 74 28 76 29 0a |.}..sp_p|rint(v).|
|00005230| 53 50 74 6f 6b 65 6e 20 | 2a 76 3b 0a 7b 0a 09 53 |SPtoken |*v;.{..S|
|00005240| 50 70 72 69 6e 74 76 61 | 6c 28 73 74 64 6f 75 74 |Pprintva|l(stdout|
|00005250| 2c 76 2c 30 29 3b 0a 7d | 0a 0a 53 50 69 6e 69 74 |,v,0);.}|..SPinit|
|00005260| 66 69 6c 65 28 29 0a 7b | 0a 09 53 50 64 65 66 66 |file().{|..SPdeff|
|00005270| 75 6e 63 28 22 73 6f 75 | 72 63 65 66 69 6c 65 22 |unc("sou|rcefile"|
|00005280| 2c 22 69 73 22 2c 73 70 | 5f 73 6f 75 72 63 65 66 |,"is",sp|_sourcef|
|00005290| 69 6c 65 29 3b 0a 09 53 | 50 64 65 66 66 75 6e 63 |ile);..S|Pdeffunc|
|000052a0| 28 22 73 6f 75 72 63 65 | 73 74 72 69 6e 67 22 2c |("source|string",|
|000052b0| 22 69 73 22 2c 73 70 5f | 73 6f 75 72 63 65 73 74 |"is",sp_|sourcest|
|000052c0| 72 69 6e 67 29 3b 0a 09 | 53 50 64 65 66 66 75 6e |ring);..|SPdeffun|
|000052d0| 63 28 22 70 72 69 6e 74 | 22 2c 22 76 56 22 2c 73 |c("print|","vV",s|
|000052e0| 70 5f 70 72 69 6e 74 29 | 3b 0a 7d 0a 0a 2f 2a 20 |p_print)|;.}../* |
|000052f0| 65 6e 64 20 2a 2f 0a 61 | 6c 6c 69 73 74 29 20 73 |end */.a|llist) s|
|00005300| 70 5f 6d 61 6b 65 76 61 | 6c 6c 69 73 74 28 29 3b |p_makeva|llist();|
|00005310| 0a 09 41 4c 4c 4f 43 54 | 4f 4b 45 4e 28 6c 69 73 |..ALLOCT|OKEN(lis|
|00005320| 74 29 0a 09 6c 69 73 74 | 2d 3e 74 79 70 65 20 3d |t)..list|->type =|
|00005330| 20 53 50 54 6f 6b 4c 69 | 73 74 3b 0a 09 6c 69 73 | SPTokLi|st;..lis|
|00005340| 74 2d 3e 6e 65 78 74 20 | 3d 20 4e 49 4c 3b 0a 09 |t->next |= NIL;..|
|00005350| 70 72 65 76 74 6b 70 20 | 3d 20 26 6c 69 73 74 2d |prevtkp |= &list-|
|00005360| 3e 76 61 6c 75 65 2e 6c | 3b 0a 09 66 6f 72 20 28 |>value.l|;..for (|
|00005370| 74 6b 3d 63 75 72 61 72 | 67 73 2d 3e 76 61 6c 6c |tk=curar|gs->vall|
|00005380| 69 73 74 2d 3e 76 61 6c | 75 65 2e 6c 3b 20 74 6b |ist->val|ue.l; tk|
|00005390| 3b 20 74 6b 3d 74 6b 2d | 3e 6e 65 78 74 29 20 7b |; tk=tk-|>next) {|
|000053a0| 0a 09 09 6e 65 77 74 6b | 20 3d 20 53 50 65 78 65 |...newtk| = SPexe|
|000053b0| 63 28 74 6b 29 3b 0a 09 | 09 69 66 20 28 21 6e 65 |c(tk);..|.if (!ne|
|000053c0| 77 74 6b 29 20 6e 65 77 | 74 6b 20 3d 20 53 50 6e |wtk) new|tk = SPn|
|000053d0| 65 77 6e 69 6c 28 29 3b | 0a 09 09 2a 70 72 65 76 |ewnil();|...*prev|
|000053e0| 74 6b 70 20 3d 20 6e 65 | 77 74 6b 3b 0a 09 09 70 |tkp = ne|wtk;...p|
|000053f0| 72 65 76 74 6b 70 20 3d | 20 26 6e 65 77 74 6b 2d |revtkp =| &newtk-|
|00005400| 73 70 69 6e 2f 67 6f 74 | 6f 2e 63 00 00 00 00 00 |spin/got|o.c.....|
|00005410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005470| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00005480| 20 20 20 33 33 31 36 20 | 20 34 34 31 31 35 35 35 | 3316 | 4411555|
|00005490| 35 35 33 20 20 20 36 32 | 30 31 00 20 00 00 00 00 |553 62|01. ....|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 2f 2a 20 67 6f 74 6f 2e | 63 20 2d 20 73 75 62 72 |/* goto.|c - subr|
|00005610| 6f 75 74 69 6e 65 73 20 | 75 73 65 64 20 69 6e 20 |outines |used in |
|00005620| 67 6f 74 6f 20 28 61 6c | 73 6f 20 66 6f 72 20 65 |goto (al|so for e|
|00005630| 72 72 6f 72 20 67 6f 74 | 6f 29 0a 20 2a 0a 20 2a |rror got|o). *. *|
|00005640| 20 20 34 2e 4e 6f 76 2e | 38 37 20 20 6a 69 6d 6d | 4.Nov.|87 jimm|
|00005650| 63 20 20 49 6e 69 74 69 | 61 6c 20 64 65 66 69 6e |c Initi|al defin|
|00005660| 69 74 69 6f 6e 0a 20 2a | 20 33 30 2e 4e 6f 76 2e |ition. *| 30.Nov.|
|00005670| 38 37 20 20 6a 69 6d 6d | 63 20 20 4c 69 6e 74 20 |87 jimm|c Lint |
|00005680| 63 6c 65 61 6e 75 70 0a | 20 2a 2f 0a 2f 2a 20 4c |cleanup.| */./* L|
|00005690| 49 4e 54 4c 49 42 52 41 | 52 59 20 2a 2f 0a 0a 23 |INTLIBRA|RY */..#|
|000056a0| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 73 |include |<strings|
|000056b0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 22 67 6f |.h>.#inc|lude "go|
|000056c0| 74 6f 2e 68 22 0a 23 69 | 6e 63 6c 75 64 65 20 22 |to.h".#i|nclude "|
|000056d0| 78 61 6c 6c 6f 63 2e 68 | 22 0a 0a 65 78 74 65 72 |xalloc.h|"..exter|
|000056e0| 6e 20 63 68 61 72 20 2a | 73 70 72 69 6e 74 66 28 |n char *|sprintf(|
|000056f0| 29 3b 09 2f 2a 20 6d 61 | 6b 65 20 6c 69 6e 74 20 |);./* ma|ke lint |
|00005700| 68 61 70 70 79 20 2a 2f | 0a 0a 6a 6d 70 5f 62 75 |happy */|..jmp_bu|
|00005710| 66 70 20 53 50 6a 62 75 | 66 70 3b 0a 63 68 61 72 |fp SPjbu|fp;.char|
|00005720| 20 2a 53 50 67 6f 74 6f | 6c 61 62 65 6c 3b 0a 63 | *SPgoto|label;.c|
|00005730| 68 61 72 20 2a 53 50 65 | 72 72 6f 72 73 74 72 3b |har *SPe|rrorstr;|
|00005740| 0a 0a 53 50 67 6f 74 6f | 28 6c 61 62 65 6c 29 0a |..SPgoto|(label).|
|00005750| 63 68 61 72 20 2a 6c 61 | 62 65 6c 3b 0a 7b 0a 09 |char *la|bel;.{..|
|00005760| 69 66 20 28 53 50 67 6f | 74 6f 6c 61 62 65 6c 29 |if (SPgo|tolabel)|
|00005770| 20 58 46 52 45 45 28 53 | 50 67 6f 74 6f 6c 61 62 | XFREE(S|Pgotolab|
|00005780| 65 6c 29 3b 0a 09 53 50 | 67 6f 74 6f 6c 61 62 65 |el);..SP|gotolabe|
|00005790| 6c 20 3d 20 58 41 4c 4c | 4f 43 28 63 68 61 72 2c |l = XALL|OC(char,|
|000057a0| 73 74 72 6c 65 6e 28 6c | 61 62 65 6c 29 2b 31 29 |strlen(l|abel)+1)|
|000057b0| 3b 0a 09 73 74 72 63 70 | 79 28 53 50 67 6f 74 6f |;..strcp|y(SPgoto|
|000057c0| 6c 61 62 65 6c 2c 6c 61 | 62 65 6c 29 3b 0a 09 6c |label,la|bel);..l|
|000057d0| 6f 6e 67 6a 6d 70 28 6a | 6d 70 62 75 66 5f 72 65 |ongjmp(j|mpbuf_re|
|000057e0| 66 28 53 50 6a 62 75 66 | 70 29 2c 31 29 3b 0a 09 |f(SPjbuf|p),1);..|
|000057f0| 2f 2a 20 4e 4f 54 52 45 | 41 43 48 45 44 20 2a 2f |/* NOTRE|ACHED */|
|00005800| 0a 7d 0a 0a 2f 2a 20 41 | 52 47 53 55 53 45 44 20 |.}../* A|RGSUSED |
|00005810| 2a 2f 0a 76 6f 69 64 0a | 53 50 6c 61 62 65 6c 28 |*/.void.|SPlabel(|
|00005820| 6c 61 62 65 6c 29 09 2f | 2a 20 6c 61 62 65 6c 73 |label)./|* labels|
|00005830| 20 61 72 65 20 61 63 74 | 75 61 6c 6c 79 20 68 61 | are act|ually ha|
|00005840| 6e 64 6c 65 64 20 69 6e | 20 53 50 65 78 65 63 6c |ndled in| SPexecl|
|00005850| 69 73 74 20 2a 2f 0a 63 | 68 61 72 20 2a 6c 61 62 |ist */.c|har *lab|
|00005860| 65 6c 3b 0a 7b 0a 09 3b | 09 2f 2a 20 6e 6f 20 76 |el;.{..;|./* no v|
|00005870| 61 6c 75 65 20 66 6f 72 | 20 61 20 6c 61 62 65 6c |alue for| a label|
|00005880| 20 73 74 61 74 65 6d 65 | 6e 74 20 2a 2f 0a 7d 0a | stateme|nt */.}.|
|00005890| 0a 63 68 61 72 20 2a 0a | 53 50 65 72 72 6f 72 69 |.char *.|SPerrori|
|000058a0| 6e 66 6f 28 69 6e 66 6f | 29 0a 63 68 61 72 20 2a |nfo(info|).char *|
|000058b0| 69 6e 66 6f 3b 0a 7b 0a | 69 6e 74 20 6c 3b 0a 63 |info;.{.|int l;.c|
|000058c0| 68 61 72 20 2a 6e 65 77 | 65 72 72 6f 72 73 74 72 |har *new|errorstr|
|000058d0| 3b 0a 0a 09 69 66 20 28 | 21 69 6e 66 6f 29 20 72 |;...if (|!info) r|
|000058e0| 65 74 75 72 6e 20 53 50 | 65 72 72 6f 72 73 74 72 |eturn SP|errorstr|
|000058f0| 3b 0a 09 69 66 20 28 69 | 6e 66 6f 5b 30 5d 3d 3d |;..if (i|nfo[0]==|
|00005900| 27 2b 27 29 20 7b 0a 09 | 09 69 66 20 28 53 50 65 |'+') {..|.if (SPe|
|00005910| 72 72 6f 72 73 74 72 29 | 20 6c 20 3d 20 73 74 72 |rrorstr)| l = str|
|00005920| 6c 65 6e 28 53 50 65 72 | 72 6f 72 73 74 72 29 2b |len(SPer|rorstr)+|
|00005930| 73 74 72 6c 65 6e 28 69 | 6e 66 6f 2b 31 29 2b 31 |strlen(i|nfo+1)+1|
|00005940| 3b 0a 09 09 65 6c 73 65 | 20 6c 20 3d 20 73 74 72 |;...else| l = str|
|00005950| 6c 65 6e 28 69 6e 66 6f | 2b 31 29 2b 31 3b 0a 09 |len(info|+1)+1;..|
|00005960| 09 6e 65 77 65 72 72 6f | 72 73 74 72 20 3d 20 58 |.newerro|rstr = X|
|00005970| 41 4c 4c 4f 43 28 63 68 | 61 72 2c 6c 29 3b 0a 09 |ALLOC(ch|ar,l);..|
|00005980| 09 69 66 20 28 53 50 65 | 72 72 6f 72 73 74 72 29 |.if (SPe|rrorstr)|
|00005990| 20 73 74 72 63 70 79 28 | 6e 65 77 65 72 72 6f 72 | strcpy(|newerror|
|000059a0| 73 74 72 2c 53 50 65 72 | 72 6f 72 73 74 72 29 3b |str,SPer|rorstr);|
|000059b0| 0a 09 09 65 6c 73 65 20 | 6e 65 77 65 72 72 6f 72 |...else |newerror|
|000059c0| 73 74 72 5b 30 5d 3d 30 | 3b 0a 09 09 73 74 72 63 |str[0]=0|;...strc|
|000059d0| 61 74 28 6e 65 77 65 72 | 72 6f 72 73 74 72 2c 69 |at(newer|rorstr,i|
|000059e0| 6e 66 6f 2b 31 29 3b 0a | 09 7d 0a 09 65 6c 73 65 |nfo+1);.|.}..else|
|000059f0| 20 7b 0a 09 09 6c 20 3d | 20 73 74 72 6c 65 6e 28 | {...l =| strlen(|
|00005a00| 69 6e 66 6f 29 2b 31 3b | 0a 09 09 6e 65 77 65 72 |info)+1;|...newer|
|00005a10| 72 6f 72 73 74 72 20 3d | 20 58 41 4c 4c 4f 43 28 |rorstr =| XALLOC(|
|00005a20| 63 68 61 72 2c 6c 29 3b | 0a 09 09 73 74 72 63 70 |char,l);|...strcp|
|00005a30| 79 28 6e 65 77 65 72 72 | 6f 72 73 74 72 2c 69 6e |y(newerr|orstr,in|
|00005a40| 66 6f 29 3b 0a 09 7d 0a | 09 69 66 20 28 53 50 65 |fo);..}.|.if (SPe|
|00005a50| 72 72 6f 72 73 74 72 29 | 20 58 46 52 45 45 28 53 |rrorstr)| XFREE(S|
|00005a60| 50 65 72 72 6f 72 73 74 | 72 29 3b 0a 09 53 50 65 |Perrorst|r);..SPe|
|00005a70| 72 72 6f 72 73 74 72 20 | 3d 20 6e 65 77 65 72 72 |rrorstr |= newerr|
|00005a80| 6f 72 73 74 72 3b 0a 09 | 72 65 74 75 72 6e 20 53 |orstr;..|return S|
|00005a90| 50 65 72 72 6f 72 73 74 | 72 3b 0a 7d 0a 0a 2f 2a |Perrorst|r;.}../*|
|00005aa0| 20 53 50 65 73 63 61 70 | 65 20 69 73 20 61 6e 20 | SPescap|e is an |
|00005ab0| 69 6e 74 65 72 6e 61 6c | 20 66 75 6e 63 74 69 6f |internal| functio|
|00005ac0| 6e 20 75 73 65 64 20 74 | 6f 20 64 65 61 6c 20 77 |n used t|o deal w|
|00005ad0| 69 74 68 20 65 72 72 6f | 72 73 20 2a 2f 0a 2f 2a |ith erro|rs */./*|
|00005ae0| 20 56 41 52 41 52 47 53 | 32 20 2a 2f 0a 53 50 65 | VARARGS|2 */.SPe|
|00005af0| 73 63 61 70 65 28 6c 61 | 62 65 6c 2c 66 6d 74 2c |scape(la|bel,fmt,|
|00005b00| 61 72 67 31 2c 61 72 67 | 32 29 0a 63 68 61 72 20 |arg1,arg|2).char |
|00005b10| 2a 6c 61 62 65 6c 3b 09 | 09 2f 2a 20 6c 61 62 65 |*label;.|./* labe|
|00005b20| 6c 20 74 6f 20 67 6f 20 | 74 6f 20 2a 2f 0a 63 68 |l to go |to */.ch|
|00005b30| 61 72 20 2a 66 6d 74 3b | 09 09 2f 2a 20 70 72 69 |ar *fmt;|../* pri|
|00005b40| 6e 74 66 2d 73 74 79 6c | 65 20 66 6f 72 6d 61 74 |ntf-styl|e format|
|00005b50| 20 66 6f 72 20 65 72 72 | 6f 72 20 69 6e 66 6f 20 | for err|or info |
|00005b60| 2a 2f 0a 63 68 61 72 20 | 2a 61 72 67 31 2c 2a 61 |*/.char |*arg1,*a|
|00005b70| 72 67 32 3b 09 09 2f 2a | 20 66 69 72 73 74 20 6f |rg2;../*| first o|
|00005b80| 66 20 70 72 69 6e 74 66 | 2d 73 74 79 6c 65 20 61 |f printf|-style a|
|00005b90| 72 67 73 20 2a 2f 0a 7b | 0a 63 68 61 72 20 62 75 |rgs */.{|.char bu|
|00005ba0| 66 5b 32 30 30 30 5d 3b | 0a 0a 2f 2a 2a 2a 20 74 |f[2000];|../*** t|
|00005bb0| 68 69 73 20 6e 65 65 64 | 73 20 74 6f 20 62 65 20 |his need|s to be |
|00005bc0| 66 69 78 65 64 20 75 70 | 20 74 6f 20 62 65 20 74 |fixed up| to be t|
|00005bd0| 72 75 6c 79 20 76 61 72 | 69 61 62 6c 65 20 6e 75 |ruly var|iable nu|
|00005be0| 6d 62 65 72 20 6f 66 20 | 61 72 67 73 20 2a 2f 0a |mber of |args */.|
|00005bf0| 09 73 70 72 69 6e 74 66 | 28 62 75 66 2c 66 6d 74 |.sprintf|(buf,fmt|
|00005c00| 2c 61 72 67 31 2c 61 72 | 67 32 29 3b 0a 09 53 50 |,arg1,ar|g2);..SP|
|00005c10| 65 72 72 6f 72 69 6e 66 | 6f 28 62 75 66 29 3b 0a |errorinf|o(buf);.|
|00005c20| 09 53 50 67 6f 74 6f 28 | 6c 61 62 65 6c 29 3b 0a |.SPgoto(|label);.|
|00005c30| 09 2f 2a 20 4e 4f 54 52 | 45 41 43 48 45 44 20 2a |./* NOTR|EACHED *|
|00005c40| 2f 0a 7d 0a 0a 53 50 69 | 6e 69 74 67 6f 74 6f 28 |/.}..SPi|nitgoto(|
|00005c50| 29 0a 7b 0a 09 53 50 64 | 65 66 66 75 6e 63 28 22 |).{..SPd|effunc("|
|00005c60| 67 6f 74 6f 22 2c 22 76 | 73 22 2c 53 50 67 6f 74 |goto","v|s",SPgot|
|00005c70| 6f 29 3b 0a 09 53 50 64 | 65 66 66 75 6e 63 28 22 |o);..SPd|effunc("|
|00005c80| 6c 61 62 65 6c 22 2c 22 | 76 73 22 2c 53 50 6c 61 |label","|vs",SPla|
|00005c90| 62 65 6c 29 3b 0a 09 53 | 50 64 65 66 66 75 6e 63 |bel);..S|Pdeffunc|
|00005ca0| 28 22 65 72 72 6f 72 69 | 6e 66 6f 22 2c 22 73 53 |("errori|nfo","sS|
|00005cb0| 4e 22 2c 53 50 65 72 72 | 6f 72 69 6e 66 6f 29 3b |N",SPerr|orinfo);|
|00005cc0| 0a 7d 0a 0a 2f 2a 20 65 | 6e 64 20 2a 2f 0a 2c 73 |.}../* e|nd */.,s|
|00005cd0| 70 5f 64 65 66 69 6e 65 | 29 3b 0a 09 53 50 64 65 |p_define|);..SPde|
|00005ce0| 66 66 75 6e 63 28 22 61 | 72 67 71 75 6f 74 65 22 |ffunc("a|rgquote"|
|00005cf0| 2c 22 6c 69 22 2c 73 70 | 5f 61 72 67 71 75 6f 74 |,"li",sp|_argquot|
|00005d00| 65 29 3b 0a 09 53 50 64 | 65 66 66 75 6e 63 28 22 |e);..SPd|effunc("|
|00005d10| 61 72 67 65 76 61 6c 22 | 2c 22 4c 69 22 2c 73 70 |argeval"|,"Li",sp|
|00005d20| 5f 61 72 67 65 76 61 6c | 29 3b 0a 09 53 50 64 65 |_argeval|);..SPde|
|00005d30| 66 66 75 6e 63 28 22 61 | 72 67 6c 69 73 74 71 75 |ffunc("a|rglistqu|
|00005d40| 6f 74 65 22 2c 22 6c 22 | 2c 73 70 5f 61 72 67 6c |ote","l"|,sp_argl|
|00005d50| 69 73 74 71 75 6f 74 65 | 29 3b 0a 09 53 50 64 65 |istquote|);..SPde|
|00005d60| 66 66 75 6e 63 28 22 61 | 72 67 6c 69 73 74 65 76 |ffunc("a|rglistev|
|00005d70| 61 6c 22 2c 22 4c 22 2c | 73 70 5f 61 72 67 6c 69 |al","L",|sp_argli|
|00005d80| 73 74 65 76 61 6c 29 3b | 0a 09 53 50 64 65 66 66 |steval);|..SPdeff|
|00005d90| 75 6e 63 28 22 70 72 69 | 6d 69 6e 66 6f 22 2c 22 |unc("pri|minfo","|
|00005da0| 73 6e 22 2c 73 70 5f 70 | 72 69 6d 69 6e 66 6f 29 |sn",sp_p|riminfo)|
|00005db0| 3b 0a 09 53 50 73 65 74 | 78 65 78 65 63 70 28 73 |;..SPset|xexecp(s|
|00005dc0| 70 5f 78 65 78 65 63 29 | 3b 0a 7d 0a 0a 2f 2a 20 |p_xexec)|;.}../* |
|00005dd0| 65 6e 64 20 2a 2f 0a 54 | 4c 49 42 29 3a 09 24 28 |end */.T|LIB):.$(|
|00005de0| 53 52 43 53 29 0a 09 09 | 6c 69 6e 74 20 2d 43 24 |SRCS)...|lint -C$|
|00005df0| 28 4c 49 42 52 41 52 59 | 29 20 24 28 4c 49 4e 54 |(LIBRARY|) $(LINT|
|00005e00| 73 70 69 6e 2f 67 6f 74 | 6f 2e 68 00 00 00 00 00 |spin/got|o.h.....|
|00005e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005e70| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00005e80| 20 20 20 20 37 34 31 20 | 20 34 34 31 31 35 35 35 | 741 | 4411555|
|00005e90| 35 35 34 20 20 20 36 31 | 36 36 00 20 00 00 00 00 |554 61|66. ....|
|00005ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006000| 2f 2a 20 67 6f 74 6f 2e | 68 20 2d 20 74 68 69 6e |/* goto.|h - thin|
|00006010| 67 73 20 72 65 71 75 69 | 72 65 64 20 74 6f 20 75 |gs requi|red to u|
|00006020| 73 65 20 74 68 65 20 73 | 65 74 6a 6d 70 20 73 74 |se the s|etjmp st|
|00006030| 75 66 66 20 69 6e 20 53 | 50 0a 20 2a 0a 20 2a 20 |uff in S|P. *. * |
|00006040| 20 34 2e 4e 6f 76 2e 38 | 37 20 20 6a 69 6d 6d 63 | 4.Nov.8|7 jimmc|
|00006050| 20 20 49 6e 69 74 69 61 | 6c 20 64 65 66 69 6e 69 | Initia|l defini|
|00006060| 74 69 6f 6e 0a 20 2a 2f | 0a 0a 23 69 6e 63 6c 75 |tion. */|..#inclu|
|00006070| 64 65 20 3c 73 65 74 6a | 6d 70 2e 68 3e 0a 0a 2f |de <setj|mp.h>../|
|00006080| 2a 20 54 68 65 20 66 61 | 63 74 20 74 68 61 74 20 |* The fa|ct that |
|00006090| 6a 6d 70 5f 62 75 66 20 | 69 73 20 73 6f 20 68 61 |jmp_buf |is so ha|
|000060a0| 7a 69 6c 79 20 64 65 66 | 69 6e 65 64 20 6d 61 6b |zily def|ined mak|
|000060b0| 65 73 20 69 74 20 64 69 | 66 66 69 63 75 6c 74 20 |es it di|fficult |
|000060c0| 74 6f 0a 20 2a 20 64 65 | 61 6c 20 77 69 74 68 20 |to. * de|al with |
|000060d0| 70 6f 69 6e 74 65 72 73 | 20 74 6f 20 6a 6d 70 5f |pointers| to jmp_|
|000060e0| 62 75 66 73 2c 20 65 74 | 63 2e 20 20 54 68 65 20 |bufs, et|c. The |
|000060f0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 64 65 20 61 |followin|g code a|
|00006100| 73 73 75 6d 65 73 0a 20 | 2a 20 74 68 61 74 20 61 |ssumes. |* that a|
|00006110| 20 6a 6d 70 5f 62 75 66 | 20 69 73 20 61 6e 20 61 | jmp_buf| is an a|
|00006120| 72 72 61 79 20 6f 66 20 | 69 6e 74 73 2c 20 73 6f |rray of |ints, so|
|00006130| 20 69 74 20 6d 61 79 20 | 62 65 20 6d 61 63 68 69 | it may |be machi|
|00006140| 6e 65 20 64 65 70 65 6e | 64 65 6e 74 2e 0a 20 2a |ne depen|dent.. *|
|00006150| 2f 0a 0a 74 79 70 65 64 | 65 66 20 69 6e 74 20 2a |/..typed|ef int *|
|00006160| 6a 6d 70 5f 62 75 66 70 | 3b 0a 0a 65 78 74 65 72 |jmp_bufp|;..exter|
|00006170| 6e 20 6a 6d 70 5f 62 75 | 66 70 20 53 50 6a 62 75 |n jmp_bu|fp SPjbu|
|00006180| 66 70 3b 0a 65 78 74 65 | 72 6e 20 63 68 61 72 20 |fp;.exte|rn char |
|00006190| 2a 53 50 67 6f 74 6f 6c | 61 62 65 6c 3b 0a 0a 23 |*SPgotol|abel;..#|
|000061a0| 64 65 66 69 6e 65 20 6a | 6d 70 62 75 66 5f 61 64 |define j|mpbuf_ad|
|000061b0| 64 72 28 6a 62 29 20 6a | 62 0a 23 64 65 66 69 6e |dr(jb) j|b.#defin|
|000061c0| 65 20 6a 6d 70 62 75 66 | 5f 72 65 66 28 6a 62 70 |e jmpbuf|_ref(jbp|
|000061d0| 29 20 6a 62 70 0a 0a 2f | 2a 20 65 6e 64 20 2a 2f |) jbp../|* end */|
|000061e0| 0a 28 53 50 6a 62 75 66 | 70 29 2c 31 29 3b 0a 09 |.(SPjbuf|p),1);..|
|000061f0| 2f 2a 20 4e 4f 54 52 45 | 41 43 48 45 44 20 2a 2f |/* NOTRE|ACHED */|
|00006200| 73 70 69 6e 2f 69 6e 69 | 74 73 75 62 73 2e 63 00 |spin/ini|tsubs.c.|
|00006210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00006270| 34 33 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |43 . |13 . |
|00006280| 20 20 20 31 33 36 37 20 | 20 34 34 31 31 35 35 35 | 1367 | 4411555|
|00006290| 35 35 36 20 20 20 37 31 | 30 30 00 20 00 00 00 00 |556 71|00. ....|
|000062a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.