home *** CD-ROM | disk | FTP | other *** search
Unknown | 1993-10-27 | 9.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '/*
| default (weak)
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 2f 2a 0a 2a 2a 20 24 | 56 45 52 3a 20 49 5f 54 |./*.** $|VER: I_T|
|00000010| 6f 44 69 63 74 69 6f 6e | 61 72 79 2e 65 64 67 65 |oDiction|ary.edge|
|00000020| 20 31 2e 32 20 28 53 75 | 6e 64 61 79 20 30 38 2d | 1.2 (Su|nday 08-|
|00000030| 41 75 67 2d 39 33 20 30 | 32 3a 34 33 3a 35 38 29 |Aug-93 0|2:43:58)|
|00000040| 0a 2a 2a 0a 2a 2a 20 53 | 63 72 69 70 74 20 74 6f |.**.** S|cript to|
|00000050| 20 74 72 61 6e 73 66 6f | 72 6d 20 61 73 73 65 6d | transfo|rm assem|
|00000060| 62 6c 65 72 20 68 65 61 | 64 65 72 20 66 69 6c 65 |bler hea|der file|
|00000070| 73 20 28 2e 69 29 20 74 | 6f 20 64 69 63 74 69 6f |s (.i) t|o dictio|
|00000080| 6e 61 72 79 0a 2a 2a 20 | 66 69 6c 65 73 20 66 6f |nary.** |files fo|
|00000090| 72 20 45 64 67 65 2e 20 | 54 68 65 20 73 63 72 69 |r Edge. |The scri|
|000000a0| 70 74 20 77 69 6c 6c 20 | 70 75 74 20 61 6c 6c 20 |pt will |put all |
|000000b0| 74 72 61 6e 73 66 6f 72 | 6d 65 64 20 66 69 6c 65 |transfor|med file|
|000000c0| 73 20 69 6e 20 0a 2a 2a | 09 73 75 62 64 69 72 65 |s in .**|.subdire|
|000000d0| 63 74 6f 72 69 65 73 20 | 69 6e 20 61 20 27 49 27 |ctories |in a 'I'|
|000000e0| 20 64 69 72 65 63 74 6f | 72 79 20 69 6e 20 74 68 | directo|ry in th|
|000000f0| 65 20 73 65 6c 65 63 74 | 65 64 20 64 65 73 74 69 |e select|ed desti|
|00000100| 6e 61 74 69 6f 6e 0a 2a | 2a 09 64 69 72 65 63 74 |nation.*|*.direct|
|00000110| 6f 72 79 2e 20 54 68 65 | 20 64 69 72 65 63 74 6f |ory. The| directo|
|00000120| 72 69 65 73 20 77 69 6c | 6c 20 62 65 20 63 72 65 |ries wil|l be cre|
|00000130| 61 74 65 64 20 69 66 20 | 74 68 65 79 20 64 6f 6e |ated if |they don|
|00000140| 27 74 20 65 78 69 73 74 | 2e 0a 2a 2a 0a 2a 2a 20 |'t exist|..**.** |
|00000150| 4e 4f 54 45 3a 20 72 75 | 6e 6e 69 6e 67 20 74 68 |NOTE: ru|nning th|
|00000160| 69 73 20 73 63 72 69 70 | 74 20 6f 6e 20 61 6c 6c |is scrip|t on all|
|00000170| 20 61 73 73 65 6d 62 6c | 65 72 20 69 6e 6c 63 75 | assembl|er inlcu|
|00000180| 64 65 20 66 69 6c 65 73 | 20 74 61 6b 65 73 0a 2a |de files| takes.*|
|00000190| 2a 09 09 09 61 20 6c 6f | 74 20 6f 66 20 74 69 6d |*...a lo|t of tim|
|000001a0| 65 2c 20 73 6f 20 62 65 | 20 61 77 61 72 65 2e 0a |e, so be| aware..|
|000001b0| 2a 2a 0a 2a 2a 20 54 68 | 69 73 20 69 73 20 6e 6f |**.** Th|is is no|
|000001c0| 74 20 74 68 65 20 6d 6f | 73 74 20 65 66 66 65 63 |t the mo|st effec|
|000001d0| 74 69 76 65 20 77 61 79 | 20 74 6f 20 64 6f 20 74 |tive way| to do t|
|000001e0| 68 69 73 20 73 6f 72 74 | 20 6f 66 20 74 68 69 6e |his sort| of thin|
|000001f0| 67 2c 20 62 75 74 20 69 | 74 20 69 73 0a 2a 2a 09 |g, but i|t is.**.|
|00000200| 70 72 65 74 74 79 20 73 | 69 6d 70 6c 65 20 70 72 |pretty s|imple pr|
|00000210| 6f 67 72 61 6d 20 61 6e | 64 20 69 74 20 69 73 20 |ogram an|d it is |
|00000220| 65 61 73 79 20 74 6f 20 | 63 68 61 6e 67 65 2e 0a |easy to |change..|
|00000230| 2a 2a 0a 2a 2a 20 57 72 | 69 74 74 65 6e 20 62 79 |**.** Wr|itten by|
|00000240| 20 54 68 6f 6d 61 73 20 | 6c 69 6c 6a 65 74 6f 66 | Thomas |liljetof|
|00000250| 74 0a 2a 2f 0a 0a 6f 70 | 74 69 6f 6e 73 20 72 65 |t.*/..op|tions re|
|00000260| 73 75 6c 74 73 0a 0a 2f | 2a 20 73 65 74 20 75 70 |sults../|* set up|
|00000270| 20 74 68 65 20 74 79 70 | 65 73 20 74 61 62 6c 65 | the typ|es table|
|00000280| 20 2a 2f 0a 74 79 70 65 | 73 2e 30 20 3d 20 27 57 | */.type|s.0 = 'W|
|00000290| 4f 52 44 27 0a 74 79 70 | 65 73 2e 31 20 3d 20 27 |ORD'.typ|es.1 = '|
|000002a0| 55 57 4f 52 44 27 0a 74 | 79 70 65 73 2e 32 20 3d |UWORD'.t|ypes.2 =|
|000002b0| 20 27 53 54 52 55 43 54 | 55 52 45 27 0a 74 79 70 | 'STRUCT|URE'.typ|
|000002c0| 65 73 2e 33 20 3d 20 27 | 53 54 52 55 43 54 27 0a |es.3 = '|STRUCT'.|
|000002d0| 74 79 70 65 73 2e 34 20 | 3d 20 27 4c 41 42 45 4c |types.4 |= 'LABEL|
|000002e0| 27 0a 74 79 70 65 73 2e | 35 20 3d 20 27 42 59 54 |'.types.|5 = 'BYT|
|000002f0| 45 27 0a 74 79 70 65 73 | 2e 36 20 3d 20 27 55 42 |E'.types|.6 = 'UB|
|00000300| 59 54 45 27 0a 74 79 70 | 65 73 2e 37 20 3d 20 27 |YTE'.typ|es.7 = '|
|00000310| 4c 4f 4e 47 27 0a 74 79 | 70 65 73 2e 38 20 3d 20 |LONG'.ty|pes.8 = |
|00000320| 27 55 4c 4f 4e 47 27 0a | 74 79 70 65 73 2e 39 20 |'ULONG'.|types.9 |
|00000330| 3d 20 27 41 50 54 52 27 | 0a 74 79 70 65 73 2e 31 |= 'APTR'|.types.1|
|00000340| 30 20 3d 20 27 46 50 54 | 52 27 0a 74 79 70 65 73 |0 = 'FPT|R'.types|
|00000350| 2e 31 31 20 3d 20 27 42 | 4f 4f 4c 27 0a 74 79 70 |.11 = 'B|OOL'.typ|
|00000360| 65 73 2e 31 32 20 3d 20 | 27 53 48 4f 52 54 27 0a |es.12 = |'SHORT'.|
|00000370| 74 79 70 65 73 2e 31 33 | 20 3d 20 27 55 53 48 4f |types.13| = 'USHO|
|00000380| 52 54 27 0a 74 79 70 65 | 73 2e 31 34 20 3d 20 27 |RT'.type|s.14 = '|
|00000390| 46 4c 4f 41 54 27 0a 74 | 79 70 65 73 2e 31 35 20 |FLOAT'.t|ypes.15 |
|000003a0| 3d 20 27 44 4f 55 42 4c | 45 27 0a 74 79 70 65 73 |= 'DOUBL|E'.types|
|000003b0| 2e 31 36 20 3d 20 27 43 | 50 54 52 27 0a 74 79 70 |.16 = 'C|PTR'.typ|
|000003c0| 65 73 2e 31 37 20 3d 20 | 27 52 50 54 52 27 0a 74 |es.17 = |'RPTR'.t|
|000003d0| 79 70 65 73 2e 31 38 20 | 3d 20 27 41 4c 49 4e 47 |ypes.18 |= 'ALING|
|000003e0| 57 4f 52 44 27 0a 74 79 | 70 65 73 2e 31 39 20 3d |WORD'.ty|pes.19 =|
|000003f0| 20 27 41 4c 49 4e 47 4c | 4f 4e 47 27 0a 74 79 70 | 'ALINGL|ONG'.typ|
|00000400| 65 73 2e 32 30 20 3d 20 | 27 45 49 54 45 4d 27 0a |es.20 = |'EITEM'.|
|00000410| 74 79 70 65 73 2e 32 31 | 20 3d 20 27 42 50 54 52 |types.21| = 'BPTR|
|00000420| 27 0a 74 79 70 65 73 2e | 32 32 20 3d 20 27 42 53 |'.types.|22 = 'BS|
|00000430| 54 52 27 0a 74 79 70 65 | 73 2e 32 33 20 3d 20 27 |TR'.type|s.23 = '|
|00000440| 44 45 56 43 4d 44 27 0a | 74 79 70 65 73 2e 32 34 |DEVCMD'.|types.24|
|00000450| 20 3d 20 27 46 55 4e 43 | 44 45 46 27 0a 74 79 70 | = 'FUNC|DEF'.typ|
|00000460| 65 73 2e 32 35 20 3d 20 | 27 4c 49 42 45 4e 54 27 |es.25 = |'LIBENT'|
|00000470| 0a 74 79 70 65 73 2e 32 | 36 20 3d 20 27 4c 49 42 |.types.2|6 = 'LIB|
|00000480| 44 45 46 27 0a 0a 2f 2a | 20 73 65 74 20 75 70 20 |DEF'../*| set up |
|00000490| 64 69 72 65 63 74 69 76 | 65 20 74 61 62 6c 65 20 |directiv|e table |
|000004a0| 2a 2f 0a 64 69 72 65 63 | 2e 30 20 3d 20 27 65 71 |*/.direc|.0 = 'eq|
|000004b0| 75 27 0a 64 69 72 65 63 | 2e 31 20 3d 20 27 73 65 |u'.direc|.1 = 'se|
|000004c0| 74 27 0a 64 69 72 65 63 | 2e 32 20 3d 20 27 6d 61 |t'.direc|.2 = 'ma|
|000004d0| 63 72 6f 27 0a 64 69 72 | 65 63 2e 33 20 3d 20 27 |cro'.dir|ec.3 = '|
|000004e0| 72 73 27 0a 0a 2f 2a 20 | 67 65 74 20 75 73 65 72 |rs'../* |get user|
|000004f0| 73 20 65 72 72 6f 72 20 | 6c 65 76 65 6c 20 2a 2f |s error |level */|
|00000500| 0a 27 67 65 74 65 6e 76 | 76 61 72 27 20 5f 67 65 |.'getenv|var' _ge|
|00000510| 5f 65 72 72 6c 65 76 65 | 6c 0a 65 72 72 6c 65 76 |_errleve|l.errlev|
|00000520| 65 6c 20 3d 20 72 65 73 | 75 6c 74 0a 0a 6f 72 69 |el = res|ult..ori|
|00000530| 67 69 6e 20 3d 20 61 64 | 64 72 65 73 73 28 29 09 |gin = ad|dress().|
|00000540| 2f 2a 20 61 64 64 72 65 | 73 73 20 6f 66 20 6f 72 |/* addre|ss of or|
|00000550| 69 67 69 6e 61 6c 20 66 | 69 6c 65 20 2a 2f 0a 0a |iginal f|ile */..|
|00000560| 2f 2a 20 6f 70 65 6e 20 | 61 20 6e 65 77 20 66 69 |/* open |a new fi|
|00000570| 6c 65 20 74 6f 20 77 6f | 72 6b 20 69 6e 20 2a 2f |le to wo|rk in */|
|00000580| 0a 27 6e 65 77 27 20 68 | 65 69 67 68 74 20 30 0a |.'new' h|eight 0.|
|00000590| 69 66 20 52 43 20 7e 3d | 20 30 20 74 68 65 6e 20 |if RC ~=| 0 then |
|000005a0| 65 78 69 74 28 65 72 72 | 6f 72 28 52 43 29 29 0a |exit(err|or(RC)).|
|000005b0| 61 64 64 72 65 73 73 20 | 76 61 6c 75 65 20 72 65 |address |value re|
|000005c0| 73 75 6c 74 0a 0a 27 70 | 75 74 65 6e 76 76 61 72 |sult..'p|utenvvar|
|000005d0| 27 20 5f 66 65 5f 66 6c | 61 67 73 20 22 73 61 66 |' _fe_fl|ags "saf|
|000005e0| 65 73 61 76 65 73 7c 65 | 64 69 74 61 62 6c 65 7c |esaves|e|ditable||
|000005f0| 61 75 74 6f 69 6e 64 65 | 6e 74 7c 69 6e 73 65 72 |autoinde|nt|inser|
|00000600| 74 22 0a 2f 2a 20 20 20 | 20 20 20 20 20 20 20 20 |t"./* | |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000620| 20 20 20 00 01 02 03 04 | 05 06 07 08 20 20 0b 20 | .....|.... . |
|00000630| 0c 0e 0f 10 11 12 13 14 | 15 16 17 18 19 1a 1b 1c |........|........|
|00000640| 1d 1e 1f 20 21 22 23 24 | 25 26 27 28 29 2a 2b 2c |... !"#$|%&'()*+,|
|00000650| 2d 2e 2f 30 31 32 33 34 | 35 36 37 38 39 3a 3b 3c |-./01234|56789:;<|
|00000660| 3d 3e 3f 40 41 42 43 44 | 45 46 47 48 49 4a 4b 4c |=>?@ABCD|EFGHIJKL|
|00000670| 4d 4e 4f 50 51 52 53 54 | 55 56 57 58 59 5a 5b 5c |MNOPQRST|UVWXYZ[\|
|00000680| 5d 5e 5f 60 61 62 63 64 | 65 66 67 68 69 6a 6b 6c |]^_`abcd|efghijkl|
|00000690| 6d 6e 6f 70 71 72 73 74 | 75 76 77 78 79 7a 7b 7c |mnopqrst|uvwxyz{||
|000006a0| 7d 7e 7f 80 81 82 83 84 | 85 86 87 88 89 8a 8b 8c |}~......|........|
|000006b0| 8d 8e 8f 90 91 92 93 94 | 95 96 97 98 99 9a 9b 9c |........|........|
|000006c0| 9d 9e 9f a0 a1 a2 a3 a4 | a5 a6 a7 a8 a9 aa ab ac |........|........|
|000006d0| ad ae af b0 b1 b2 b3 b4 | b5 b6 b7 b8 b9 ba bb bc |........|........|
|000006e0| bd be bf c0 c1 c2 c3 c4 | c5 c6 c7 c8 c9 ca cb cc |........|........|
|000006f0| cd ce cf d0 d1 d2 d3 d4 | d5 d6 d7 d8 d9 da db dc |........|........|
|00000700| dd de df e0 e1 e2 e3 e4 | e5 e6 e7 e8 e9 ea eb ec |........|........|
|00000710| ed ee ef f0 f1 f2 f3 f4 | f5 f6 f7 f8 f9 fa fb fc |........|........|
|00000720| fd fe ff 2a 2f 0a 27 70 | 75 74 65 6e 76 76 61 72 |...*/.'p|utenvvar|
|00000730| 27 20 5f 66 65 5f 75 6e | 64 6f 62 75 66 66 20 30 |' _fe_un|dobuff 0|
|00000740| 0a 27 70 75 74 65 6e 76 | 76 61 72 27 20 5f 67 65 |.'putenv|var' _ge|
|00000750| 5f 77 6f 72 64 64 65 6c | 69 6d 69 74 65 72 73 20 |_worddel|imiters |
|00000760| 22 31 31 31 31 31 31 31 | 31 31 32 32 31 31 32 31 |"1111111|11221121|
|00000770| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00000780| 31 32 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |12000000|00000000|
|00000790| 30 31 31 31 31 31 31 31 | 31 31 31 30 30 30 30 30 |01111111|11100000|
|000007a0| 30 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |01111111|11111111|
|000007b0| 31 31 31 31 31 31 31 31 | 31 31 31 31 30 30 30 30 |11111111|11110000|
|000007c0| 31 30 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |10111111|11111111|
|000007d0| 31 31 31 31 31 31 31 31 | 31 31 31 31 30 30 30 30 |11111111|11110000|
|000007e0| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|000007f0| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00000800| 31 31 31 31 31 31 31 31 | 31 31 31 31 30 31 31 31 |11111111|11110111|
|00000810| 31 31 31 31 31 31 31 31 | 31 31 31 31 30 31 31 31 |11111111|11110111|
|00000820| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00000830| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00000840| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00000850| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00000860| 31 22 0a 0a 2f 2a 20 61 | 73 6b 20 66 6f 72 20 73 |1"../* a|sk for s|
|00000870| 6f 72 63 65 20 64 69 72 | 65 63 74 6f 72 79 20 2a |orce dir|ectory *|
|00000880| 2f 0a 27 72 65 71 75 65 | 73 74 66 69 6c 65 27 20 |/.'reque|stfile' |
|00000890| 74 69 74 6c 65 20 27 22 | 53 65 6c 65 63 74 20 41 |title '"|Select A|
|000008a0| 73 73 65 6d 62 6c 65 72 | 20 48 65 61 64 65 72 2d |ssembler| Header-|
|000008b0| 66 69 6c 65 20 73 6f 75 | 72 63 65 20 64 69 72 65 |file sou|rce dire|
|000008c0| 63 74 6f 72 79 2e 2e 2e | 22 27 20 70 61 74 68 20 |ctory...|"' path |
|000008d0| 27 22 22 27 20 64 69 72 | 20 67 65 74 64 69 72 0a |'""' dir| getdir.|
|000008e0| 0a 2f 2a 20 69 66 20 73 | 6f 6d 65 74 68 69 6e 67 |./* if s|omething|
|000008f0| 20 77 65 6e 74 20 77 72 | 6f 6e 67 20 72 65 70 6f | went wr|ong repo|
|00000900| 72 74 20 74 68 65 20 66 | 61 75 6c 74 20 61 6e 64 |rt the f|ault and|
|00000910| 20 65 78 69 74 20 2a 2f | 0a 69 66 20 52 43 20 7e | exit */|.if RC ~|
|00000920| 3d 20 30 20 74 68 65 6e | 20 65 78 69 74 28 65 72 |= 0 then| exit(er|
|00000930| 72 6f 72 28 52 43 29 29 | 0a 73 6f 75 72 63 65 5f |ror(RC))|.source_|
|00000940| 64 69 72 20 3d 20 72 65 | 73 75 6c 74 0a 0a 2f 2a |dir = re|sult../*|
|00000950| 20 61 73 6b 20 66 6f 72 | 20 64 65 73 74 69 6e 61 | ask for| destina|
|00000960| 74 69 6f 6e 20 64 69 72 | 65 63 74 6f 72 79 20 2a |tion dir|ectory *|
|00000970| 2f 0a 27 72 65 71 75 65 | 73 74 66 69 6c 65 27 20 |/.'reque|stfile' |
|00000980| 74 69 74 6c 65 20 27 22 | 53 65 6c 65 63 74 20 64 |title '"|Select d|
|00000990| 69 63 74 69 6f 6e 61 72 | 79 20 6f 75 74 70 75 74 |ictionar|y output|
|000009a0| 20 64 69 72 65 63 74 6f | 72 79 2e 2e 2e 22 27 20 | directo|ry..."' |
|000009b0| 70 61 74 68 20 27 22 65 | 64 67 65 70 72 67 3a 64 |path '"e|dgeprg:d|
|000009c0| 69 63 74 69 6f 6e 61 72 | 69 65 73 22 27 20 64 69 |ictionar|ies"' di|
|000009d0| 72 20 67 65 74 64 69 72 | 0a 69 66 20 52 43 20 7e |r getdir|.if RC ~|
|000009e0| 3d 20 30 20 74 68 65 6e | 20 65 78 69 74 28 65 72 |= 0 then| exit(er|
|000009f0| 72 6f 72 28 52 43 29 29 | 0a 64 65 73 74 5f 64 69 |ror(RC))|.dest_di|
|00000a00| 72 20 3d 20 72 65 73 75 | 6c 74 7c 7c 27 49 27 0a |r = resu|lt||'I'.|
|00000a10| 0a 2f 2a 20 63 68 65 63 | 6b 20 69 66 20 74 68 65 |./* chec|k if the|
|00000a20| 20 27 49 27 20 64 69 72 | 65 63 74 6f 72 79 20 65 | 'I' dir|ectory e|
|00000a30| 78 69 73 74 73 20 69 6e | 20 74 68 65 20 64 65 73 |xists in| the des|
|00000a40| 74 69 6e 61 74 69 6f 6e | 20 64 69 72 65 63 74 6f |tination| directo|
|00000a50| 72 79 2c 20 69 66 20 6e | 6f 74 20 63 72 65 61 74 |ry, if n|ot creat|
|00000a60| 65 20 69 74 20 2a 2f 0a | 69 66 20 7e 65 78 69 73 |e it */.|if ~exis|
|00000a70| 74 73 28 64 65 73 74 5f | 64 69 72 29 20 74 68 65 |ts(dest_|dir) the|
|00000a80| 6e 0a 64 6f 0a 09 61 64 | 64 72 65 73 73 20 63 6f |n.do..ad|dress co|
|00000a90| 6d 6d 61 6e 64 20 6d 61 | 6b 65 64 69 72 20 64 65 |mmand ma|kedir de|
|00000aa0| 73 74 5f 64 69 72 0a 09 | 69 66 20 52 43 20 7e 3d |st_dir..|if RC ~=|
|00000ab0| 20 30 20 74 68 65 6e 20 | 65 78 69 74 28 64 6f 73 | 0 then |exit(dos|
|00000ac0| 65 72 72 6f 72 28 52 43 | 29 29 0a 65 6e 64 0a 64 |error(RC|)).end.d|
|00000ad0| 65 73 74 5f 64 69 72 20 | 3d 20 64 65 73 74 5f 64 |est_dir |= dest_d|
|00000ae0| 69 72 27 2f 27 0a 0a 2f | 2a 20 67 65 74 20 6c 69 |ir'/'../|* get li|
|00000af0| 73 74 20 6f 66 20 73 6f | 75 72 63 65 20 64 69 72 |st of so|urce dir|
|00000b00| 65 63 74 6f 72 69 65 73 | 2c 20 65 2e 67 20 65 78 |ectories|, e.g ex|
|00000b10| 65 63 2f 2c 20 67 72 61 | 70 68 69 63 73 2f 2c 20 |ec/, gra|phics/, |
|00000b20| 65 74 63 20 2a 2f 0a 73 | 6f 75 72 63 65 5f 64 69 |etc */.s|ource_di|
|00000b30| 72 5f 6c 69 73 74 20 3d | 20 73 68 6f 77 64 69 72 |r_list =| showdir|
|00000b40| 28 73 6f 75 72 63 65 5f | 64 69 72 2c 22 64 69 72 |(source_|dir,"dir|
|00000b50| 22 29 0a 73 6f 75 72 63 | 65 5f 64 69 72 73 20 3d |").sourc|e_dirs =|
|00000b60| 20 77 6f 72 64 73 28 73 | 6f 75 72 63 65 5f 64 69 | words(s|ource_di|
|00000b70| 72 5f 6c 69 73 74 29 0a | 0a 2f 2a 20 67 65 74 20 |r_list).|./* get |
|00000b80| 61 20 6c 69 73 74 20 6f | 66 20 6c 6f 6f 73 65 20 |a list o|f loose |
|00000b90| 66 69 6c 65 73 20 69 6e | 20 73 6f 75 72 63 65 20 |files in| source |
|00000ba0| 64 69 72 65 63 74 6f 72 | 79 2c 20 69 66 20 61 6e |director|y, if an|
|00000bb0| 79 2c 20 61 6e 64 20 74 | 72 61 6e 73 66 6f 72 6d |y, and t|ransform|
|00000bc0| 20 74 68 65 6d 20 2a 2f | 0a 66 69 6c 65 73 20 3d | them */|.files =|
|00000bd0| 20 73 68 6f 77 64 69 72 | 28 73 6f 75 72 63 65 5f | showdir|(source_|
|00000be0| 64 69 72 2c 22 66 69 6c | 65 22 29 0a 63 61 6c 6c |dir,"fil|e").call|
|00000bf0| 20 74 72 61 6e 73 66 6f | 72 6d 28 73 6f 75 72 63 | transfo|rm(sourc|
|00000c00| 65 5f 64 69 72 2c 27 27 | 2c 66 69 6c 65 73 2c 64 |e_dir,''|,files,d|
|00000c10| 65 73 74 5f 64 69 72 29 | 0a 0a 2f 2a 20 63 72 65 |est_dir)|../* cre|
|00000c20| 61 74 65 20 61 6e 20 6f | 76 65 72 61 6c 6c 20 27 |ate an o|verall '|
|00000c30| 61 6c 6c 27 20 66 69 6c | 65 20 66 6f 72 20 61 6c |all' fil|e for al|
|00000c40| 6c 20 64 69 63 74 69 6f | 6e 61 72 69 65 73 20 2a |l dictio|naries *|
|00000c50| 2f 0a 27 63 6c 65 61 72 | 27 20 66 6f 72 63 65 0a |/.'clear|' force.|
|00000c60| 27 67 65 74 65 6e 76 76 | 61 72 27 20 5f 67 65 5f |'getenvv|ar' _ge_|
|00000c70| 64 61 74 65 09 09 2f 2a | 20 67 65 74 20 63 75 72 |date../*| get cur|
|00000c80| 72 65 6e 74 20 64 61 74 | 65 20 61 6e 64 20 74 69 |rent dat|e and ti|
|00000c90| 6d 65 20 2a 2f 0a 64 61 | 74 65 73 74 61 6d 70 20 |me */.da|testamp |
|00000ca0| 3d 20 72 65 73 75 6c 74 | 0a 27 70 75 74 65 6e 76 |= result|.'putenv|
|00000cb0| 76 61 72 27 20 5f 66 65 | 5f 64 6f 73 6e 61 6d 65 |var' _fe|_dosname|
|00000cc0| 20 64 65 73 74 5f 64 69 | 72 22 61 6c 6c 2e 69 2e | dest_di|r"all.i.|
|00000cd0| 64 69 63 74 69 6f 6e 61 | 72 79 22 0a 27 74 65 78 |dictiona|ry".'tex|
|00000ce0| 74 27 20 27 22 27 22 5c | 31 30 3b 20 24 56 45 52 |t' '"'"\|10; $VER|
|00000cf0| 3a 20 61 6c 6c 2e 69 2e | 64 69 63 74 69 6f 6e 61 |: all.i.|dictiona|
|00000d00| 72 79 20 31 2e 30 20 28 | 22 64 61 74 65 73 74 61 |ry 1.0 (|"datesta|
|00000d10| 6d 70 22 29 5c 31 30 3b | 5c 31 30 3b 20 41 6c 6c |mp")\10;|\10; All|
|00000d20| 20 73 63 72 69 70 74 20 | 74 6f 20 69 6e 63 6c 75 | script |to inclu|
|00000d30| 64 65 20 61 6c 6c 20 64 | 69 63 74 69 6f 6e 61 72 |de all d|ictionar|
|00000d40| 69 65 73 2e 5c 31 30 3b | 5c 31 30 3b 20 43 72 65 |ies.\10;|\10; Cre|
|00000d50| 61 74 65 64 20 62 79 20 | 49 5f 54 6f 44 69 63 74 |ated by |I_ToDict|
|00000d60| 69 6f 6e 61 72 79 5c 31 | 30 5c 31 30 5c 31 30 22 |ionary\1|0\10\10"|
|00000d70| 27 22 27 0a 69 66 20 77 | 6f 72 64 73 28 66 69 6c |'"'.if w|ords(fil|
|00000d80| 65 73 29 20 7e 3d 20 30 | 20 74 68 65 6e 0a 64 6f |es) ~= 0| then.do|
|00000d90| 0a 09 27 74 65 78 74 27 | 20 27 22 49 4e 43 4c 55 |..'text'| '"INCLU|
|00000da0| 44 45 09 6c 6f 6f 73 65 | 5f 61 6c 6c 2e 69 2e 64 |DE.loose|_all.i.d|
|00000db0| 69 63 74 69 6f 6e 61 72 | 79 5c 31 30 22 27 0a 65 |ictionar|y\10"'.e|
|00000dc0| 6e 64 0a 64 6f 20 69 20 | 3d 20 31 20 74 6f 20 73 |nd.do i |= 1 to s|
|00000dd0| 6f 75 72 63 65 5f 64 69 | 72 73 0a 09 27 74 65 78 |ource_di|rs..'tex|
|00000de0| 74 27 20 27 22 27 22 49 | 4e 43 4c 55 44 45 09 22 |t' '"'"I|NCLUDE."|
|00000df0| 77 6f 72 64 28 73 6f 75 | 72 63 65 5f 64 69 72 5f |word(sou|rce_dir_|
|00000e00| 6c 69 73 74 2c 69 29 22 | 2f 22 77 6f 72 64 28 73 |list,i)"|/"word(s|
|00000e10| 6f 75 72 63 65 5f 64 69 | 72 5f 6c 69 73 74 2c 69 |ource_di|r_list,i|
|00000e20| 29 22 5f 61 6c 6c 2e 69 | 2e 64 69 63 74 69 6f 6e |)"_all.i|.diction|
|00000e30| 61 72 79 5c 31 30 22 27 | 22 27 0a 65 6e 64 0a 27 |ary\10"'|"'.end.'|
|00000e40| 73 61 76 65 27 20 6e 6f | 69 63 6f 6e 20 6e 6f 62 |save' no|icon nob|
|00000e50| 61 63 6b 75 70 0a 0a 2f | 2a 20 74 68 65 6e 2c 20 |ackup../|* then, |
|00000e60| 74 72 61 6e 73 66 6f 72 | 6d 20 61 6c 6c 20 66 69 |transfor|m all fi|
|00000e70| 6c 65 73 20 69 6e 20 61 | 6c 6c 20 73 75 62 2d 64 |les in a|ll sub-d|
|00000e80| 69 72 65 63 74 6f 72 69 | 65 73 20 6f 66 20 74 68 |irectori|es of th|
|00000e90| 65 20 73 6f 75 72 63 65 | 20 64 69 72 65 63 74 6f |e source| directo|
|00000ea0| 72 79 20 2a 2f 0a 64 6f | 20 69 20 3d 20 31 20 74 |ry */.do| i = 1 t|
|00000eb0| 6f 20 73 6f 75 72 63 65 | 5f 64 69 72 73 0a 09 73 |o source|_dirs..s|
|00000ec0| 75 62 64 69 72 20 3d 20 | 77 6f 72 64 28 73 6f 75 |ubdir = |word(sou|
|00000ed0| 72 63 65 5f 64 69 72 5f | 6c 69 73 74 2c 69 29 0a |rce_dir_|list,i).|
|00000ee0| 09 66 69 6c 65 73 20 3d | 20 73 68 6f 77 64 69 72 |.files =| showdir|
|00000ef0| 28 73 6f 75 72 63 65 5f | 64 69 72 7c 7c 73 75 62 |(source_|dir||sub|
|00000f00| 64 69 72 2c 22 66 69 6c | 65 22 29 0a 09 63 61 6c |dir,"fil|e")..cal|
|00000f10| 6c 20 74 72 61 6e 73 66 | 6f 72 6d 28 73 6f 75 72 |l transf|orm(sour|
|00000f20| 63 65 5f 64 69 72 2c 73 | 75 62 64 69 72 2c 66 69 |ce_dir,s|ubdir,fi|
|00000f30| 6c 65 73 2c 64 65 73 74 | 5f 64 69 72 29 0a 65 6e |les,dest|_dir).en|
|00000f40| 64 0a 0a 2f 2a 20 63 6c | 6f 73 65 20 64 6f 77 6e |d../* cl|ose down|
|00000f50| 20 74 68 65 20 66 69 6c | 65 20 77 65 20 6f 70 65 | the fil|e we ope|
|00000f60| 6e 65 64 20 2a 2f 0a 27 | 63 6c 6f 73 65 27 20 66 |ned */.'|close' f|
|00000f70| 6f 72 63 65 0a 0a 65 78 | 69 74 28 30 29 0a 0a 0a |orce..ex|it(0)...|
|00000f80| 2f 2a 0a 2a 2a 09 74 72 | 61 6e 73 66 6f 72 6d 20 |/*.**.tr|ansform |
|00000f90| 61 6c 6c 20 66 69 6c 65 | 73 20 69 6e 20 74 68 65 |all file|s in the|
|00000fa0| 20 67 69 76 65 6e 20 64 | 69 72 65 63 74 6f 72 79 | given d|irectory|
|00000fb0| 0a 2a 2f 20 0a 0a 74 72 | 61 6e 73 66 6f 72 6d 3a |.*/ ..tr|ansform:|
|00000fc0| 20 70 72 6f 63 65 64 75 | 72 65 20 65 78 70 6f 73 | procedu|re expos|
|00000fd0| 65 20 74 79 70 65 73 2e | 20 64 69 72 65 63 2e 0a |e types.| direc..|
|00000fe0| 09 70 61 72 73 65 20 61 | 72 67 20 73 6f 75 72 63 |.parse a|rg sourc|
|00000ff0| 65 5f 64 69 72 2c 73 75 | 62 5f 64 69 72 2c 66 69 |e_dir,su|b_dir,fi|
|00001000| 6c 65 5f 6c 69 73 74 2c | 64 65 73 74 5f 64 69 72 |le_list,|dest_dir|
|00001010| 0a 0a 09 2f 2a 20 63 68 | 65 63 6b 20 69 66 20 64 |.../* ch|eck if d|
|00001020| 65 73 74 69 6e 61 74 69 | 6f 6e 20 64 69 72 65 63 |estinati|on direc|
|00001030| 74 6f 72 79 20 65 78 69 | 73 74 73 2c 20 69 66 20 |tory exi|sts, if |
|00001040| 6e 6f 74 20 2d 20 63 72 | 65 61 74 65 20 69 74 20 |not - cr|eate it |
|00001050| 2a 2f 0a 09 69 66 20 7e | 65 78 69 73 74 73 28 64 |*/..if ~|exists(d|
|00001060| 65 73 74 5f 64 69 72 7c | 7c 73 75 62 5f 64 69 72 |est_dir|||sub_dir|
|00001070| 29 20 74 68 65 6e 0a 09 | 64 6f 0a 09 09 61 64 64 |) then..|do...add|
|00001080| 72 65 73 73 20 63 6f 6d | 6d 61 6e 64 20 6d 61 6b |ress com|mand mak|
|00001090| 65 64 69 72 20 64 65 73 | 74 5f 64 69 72 7c 7c 73 |edir des|t_dir||s|
|000010a0| 75 62 5f 64 69 72 0a 09 | 09 69 66 20 52 43 20 7e |ub_dir..|.if RC ~|
|000010b0| 3d 20 30 20 74 68 65 6e | 20 65 78 69 74 28 64 6f |= 0 then| exit(do|
|000010c0| 73 65 72 72 6f 72 28 52 | 43 29 29 0a 09 65 6e 64 |serror(R|C))..end|
|000010d0| 0a 09 66 69 6c 65 73 20 | 3d 20 77 6f 72 64 73 28 |..files |= words(|
|000010e0| 66 69 6c 65 5f 6c 69 73 | 74 29 0a 0a 09 2f 2a 20 |file_lis|t).../* |
|000010f0| 63 72 65 61 74 65 20 61 | 6e 20 27 61 6c 6c 27 20 |create a|n 'all' |
|00001100| 66 69 6c 65 20 66 6f 72 | 20 74 68 69 73 20 64 69 |file for| this di|
|00001110| 72 65 63 74 6f 72 79 2c | 20 69 66 20 69 74 20 68 |rectory,| if it h|
|00001120| 61 73 20 61 6e 79 20 66 | 69 6c 65 73 20 2a 2f 0a |as any f|iles */.|
|00001130| 09 69 66 20 66 69 6c 65 | 73 20 7e 3d 20 30 20 74 |.if file|s ~= 0 t|
|00001140| 68 65 6e 0a 09 64 6f 0a | 09 09 27 63 6c 65 61 72 |hen..do.|..'clear|
|00001150| 27 20 66 6f 72 63 65 0a | 09 09 27 67 65 74 65 6e |' force.|..'geten|
|00001160| 76 76 61 72 27 20 5f 67 | 65 5f 64 61 74 65 09 09 |vvar' _g|e_date..|
|00001170| 2f 2a 20 67 65 74 20 63 | 75 72 72 65 6e 74 20 64 |/* get c|urrent d|
|00001180| 61 74 65 20 61 6e 64 20 | 74 69 6d 65 20 2a 2f 0a |ate and |time */.|
|00001190| 09 09 64 61 74 65 73 74 | 61 6d 70 20 3d 20 72 65 |..datest|amp = re|
|000011a0| 73 75 6c 74 0a 09 09 69 | 66 20 73 75 62 5f 64 69 |sult...i|f sub_di|
|000011b0| 72 20 7e 3d 20 27 27 20 | 74 68 65 6e 0a 09 09 64 |r ~= '' |then...d|
|000011c0| 6f 0a 09 09 09 27 70 75 | 74 65 6e 76 76 61 72 27 |o....'pu|tenvvar'|
|000011d0| 20 5f 66 65 5f 64 6f 73 | 6e 61 6d 65 20 64 65 73 | _fe_dos|name des|
|000011e0| 74 5f 64 69 72 7c 7c 73 | 75 62 5f 64 69 72 22 2f |t_dir||s|ub_dir"/|
|000011f0| 22 73 75 62 5f 64 69 72 | 22 5f 61 6c 6c 2e 69 2e |"sub_dir|"_all.i.|
|00001200| 64 69 63 74 69 6f 6e 61 | 72 79 22 0a 09 09 09 27 |dictiona|ry"....'|
|00001210| 74 65 78 74 27 20 27 22 | 27 22 5c 31 30 3b 20 24 |text' '"|'"\10; $|
|00001220| 56 45 52 3a 20 22 73 75 | 62 5f 64 69 72 22 5f 61 |VER: "su|b_dir"_a|
|00001230| 6c 6c 2e 69 2e 64 69 63 | 74 69 6f 6e 61 72 79 20 |ll.i.dic|tionary |
|00001240| 31 2e 30 20 28 22 64 61 | 74 65 73 74 61 6d 70 22 |1.0 ("da|testamp"|
|00001250| 29 5c 31 30 3b 5c 31 30 | 3b 20 41 6c 6c 20 73 63 |)\10;\10|; All sc|
|00001260| 72 69 70 74 20 66 6f 72 | 20 22 73 75 62 5f 64 69 |ript for| "sub_di|
|00001270| 72 22 20 64 69 72 65 63 | 74 6f 72 79 2e 5c 31 30 |r" direc|tory.\10|
|00001280| 3b 5c 31 30 3b 20 43 72 | 65 61 74 65 64 20 62 79 |;\10; Cr|eated by|
|00001290| 20 49 5f 54 6f 44 69 63 | 74 69 6f 6e 61 72 79 5c | I_ToDic|tionary\|
|000012a0| 31 30 5c 31 30 5c 31 30 | 22 27 22 27 0a 09 09 65 |10\10\10|"'"'...e|
|000012b0| 6e 64 0a 09 09 65 6c 73 | 65 0a 09 09 64 6f 0a 09 |nd...els|e...do..|
|000012c0| 09 09 27 70 75 74 65 6e | 76 76 61 72 27 20 5f 66 |..'puten|vvar' _f|
|000012d0| 65 5f 64 6f 73 6e 61 6d | 65 20 64 65 73 74 5f 64 |e_dosnam|e dest_d|
|000012e0| 69 72 22 6c 6f 6f 73 65 | 5f 61 6c 6c 2e 69 2e 64 |ir"loose|_all.i.d|
|000012f0| 69 63 74 69 6f 6e 61 72 | 79 22 0a 09 09 09 27 74 |ictionar|y"....'t|
|00001300| 65 78 74 27 20 27 22 27 | 22 5c 31 30 3b 20 24 56 |ext' '"'|"\10; $V|
|00001310| 45 52 3a 20 6c 6f 6f 73 | 65 5f 61 6c 6c 2e 69 2e |ER: loos|e_all.i.|
|00001320| 64 69 63 74 69 6f 6e 61 | 72 79 20 31 2e 30 20 28 |dictiona|ry 1.0 (|
|00001330| 22 64 61 74 65 73 74 61 | 6d 70 22 29 5c 31 30 3b |"datesta|mp")\10;|
|00001340| 5c 31 30 3b 20 41 6c 6c | 20 73 63 72 69 70 74 20 |\10; All| script |
|00001350| 66 6f 72 20 6c 6f 6f 73 | 65 20 66 69 6c 65 73 2e |for loos|e files.|
|00001360| 5c 31 30 3b 5c 31 30 3b | 20 43 72 65 61 74 65 64 |\10;\10;| Created|
|00001370| 20 62 79 20 49 5f 54 6f | 44 69 63 74 69 6f 6e 61 | by I_To|Dictiona|
|00001380| 72 79 5c 31 30 5c 31 30 | 5c 31 30 22 27 22 27 0a |ry\10\10|\10"'"'.|
|00001390| 09 09 65 6e 64 0a 09 09 | 64 6f 20 69 20 3d 20 31 |..end...|do i = 1|
|000013a0| 20 74 6f 20 66 69 6c 65 | 73 0a 09 09 09 27 74 65 | to file|s....'te|
|000013b0| 78 74 27 20 27 22 27 22 | 49 4e 43 4c 55 44 45 09 |xt' '"'"|INCLUDE.|
|000013c0| 22 77 6f 72 64 28 66 69 | 6c 65 5f 6c 69 73 74 2c |"word(fi|le_list,|
|000013d0| 69 29 22 2e 64 69 63 74 | 69 6f 6e 61 72 79 5c 31 |i)".dict|ionary\1|
|000013e0| 30 22 27 22 27 0a 09 09 | 65 6e 64 0a 09 09 27 73 |0"'"'...|end...'s|
|000013f0| 61 76 65 27 20 6e 6f 69 | 63 6f 6e 20 6e 6f 62 61 |ave' noi|con noba|
|00001400| 63 6b 75 70 0a 09 65 6e | 64 0a 0a 09 2f 2a 20 63 |ckup..en|d.../* c|
|00001410| 61 6c 6c 20 74 68 65 20 | 61 63 74 75 61 6c 6c 20 |all the |actuall |
|00001420| 74 72 61 6e 73 66 6f 72 | 6d 20 72 6f 75 74 69 6e |transfor|m routin|
|00001430| 65 20 6f 6e 20 61 6c 6c | 20 66 69 6c 65 73 20 69 |e on all| files i|
|00001440| 6e 20 74 68 65 20 67 69 | 76 65 6e 20 64 69 72 65 |n the gi|ven dire|
|00001450| 63 74 6f 72 79 20 2a 2f | 0a 09 64 6f 20 69 20 3d |ctory */|..do i =|
|00001460| 20 31 20 74 6f 20 66 69 | 6c 65 73 0a 09 09 66 69 | 1 to fi|les...fi|
|00001470| 6c 65 20 3d 20 77 6f 72 | 64 28 66 69 6c 65 5f 6c |le = wor|d(file_l|
|00001480| 69 73 74 2c 69 29 0a 09 | 09 69 66 20 73 75 62 5f |ist,i)..|.if sub_|
|00001490| 64 69 72 20 7e 3d 20 22 | 22 20 74 68 65 6e 0a 09 |dir ~= "|" then..|
|000014a0| 09 09 63 61 6c 6c 20 74 | 72 61 6e 73 66 6f 72 6d |..call t|ransform|
|000014b0| 66 69 6c 65 28 73 6f 75 | 72 63 65 5f 64 69 72 7c |file(sou|rce_dir||
|000014c0| 7c 73 75 62 5f 64 69 72 | 27 2f 27 66 69 6c 65 2c ||sub_dir|'/'file,|
|000014d0| 64 65 73 74 5f 64 69 72 | 7c 7c 73 75 62 5f 64 69 |dest_dir|||sub_di|
|000014e0| 72 27 2f 27 66 69 6c 65 | 27 2e 64 69 63 74 69 6f |r'/'file|'.dictio|
|000014f0| 6e 61 72 79 27 29 0a 09 | 09 65 6c 73 65 0a 09 09 |nary')..|.else...|
|00001500| 09 63 61 6c 6c 20 74 72 | 61 6e 73 66 6f 72 6d 66 |.call tr|ansformf|
|00001510| 69 6c 65 28 73 6f 75 72 | 63 65 5f 64 69 72 7c 7c |ile(sour|ce_dir|||
|00001520| 66 69 6c 65 2c 64 65 73 | 74 5f 64 69 72 7c 7c 66 |file,des|t_dir||f|
|00001530| 69 6c 65 27 2e 64 69 63 | 74 69 6f 6e 61 72 79 27 |ile'.dic|tionary'|
|00001540| 29 0a 09 65 6e 64 0a 72 | 65 74 75 72 6e 20 31 0a |)..end.r|eturn 1.|
|00001550| 0a 0a 2f 2a 0a 2a 2a 20 | 74 68 65 20 61 63 74 75 |../*.** |the actu|
|00001560| 61 6c 20 74 72 61 6e 73 | 66 6f 72 6d 69 6e 67 20 |al trans|forming |
|00001570| 72 6f 75 74 69 6e 67 0a | 2a 2f 0a 0a 74 72 61 6e |routing.|*/..tran|
|00001580| 73 66 6f 72 6d 66 69 6c | 65 3a 20 70 72 6f 63 65 |sformfil|e: proce|
|00001590| 64 75 72 65 20 65 78 70 | 6f 73 65 20 74 79 70 65 |dure exp|ose type|
|000015a0| 73 2e 20 64 69 72 65 63 | 2e 0a 09 70 61 72 73 65 |s. direc|...parse|
|000015b0| 20 61 72 67 20 69 6e 70 | 75 74 5f 66 69 6c 65 2c | arg inp|ut_file,|
|000015c0| 6f 75 74 70 75 74 5f 66 | 69 6c 65 0a 0a 09 2f 2a |output_f|ile.../*|
|000015d0| 20 66 69 72 73 74 20 6c | 6f 61 64 20 74 68 65 20 | first l|oad the |
|000015e0| 66 69 6c 65 20 2a 2f 0a | 09 27 6f 70 65 6e 27 20 |file */.|.'open' |
|000015f0| 69 6e 70 75 74 5f 66 69 | 6c 65 0a 09 69 66 20 52 |input_fi|le..if R|
|00001600| 43 20 7e 3d 20 30 20 74 | 68 65 6e 20 65 78 69 74 |C ~= 0 t|hen exit|
|00001610| 28 65 72 72 6f 72 28 52 | 43 29 29 0a 09 0a 09 2f |(error(R|C))..../|
|00001620| 2a 20 73 61 76 65 20 74 | 68 65 20 6f 6c 64 20 6e |* save t|he old n|
|00001630| 61 6d 65 2c 20 73 65 74 | 20 74 68 65 20 6f 75 74 |ame, set| the out|
|00001640| 70 75 74 20 70 61 74 68 | 2f 6e 61 6d 65 20 61 6e |put path|/name an|
|00001650| 64 20 67 65 74 20 74 68 | 65 20 6f 75 74 70 75 74 |d get th|e output|
|00001660| 20 6e 61 6d 65 20 2a 2f | 0a 09 27 67 65 74 65 6e | name */|..'geten|
|00001670| 76 76 61 72 27 20 5f 66 | 65 5f 6e 61 6d 65 0a 09 |vvar' _f|e_name..|
|00001680| 69 6e 6e 61 6d 65 20 3d | 20 72 65 73 75 6c 74 0a |inname =| result.|
|00001690| 09 27 70 75 74 65 6e 76 | 76 61 72 27 20 5f 66 65 |.'putenv|var' _fe|
|000016a0| 5f 64 6f 73 6e 61 6d 65 | 20 6f 75 74 70 75 74 5f |_dosname| output_|
|000016b0| 66 69 6c 65 0a 09 27 67 | 65 74 65 6e 76 76 61 72 |file..'g|etenvvar|
|000016c0| 27 20 5f 66 65 5f 6e 61 | 6d 65 0a 09 6f 75 74 6e |' _fe_na|me..outn|
|000016d0| 61 6d 65 20 3d 20 72 65 | 73 75 6c 74 0a 0a 09 27 |ame = re|sult...'|
|000016e0| 67 65 74 65 6e 76 76 61 | 72 27 20 5f 67 65 5f 64 |getenvva|r' _ge_d|
|000016f0| 61 74 65 09 09 2f 2a 20 | 67 65 74 20 63 75 72 72 |ate../* |get curr|
|00001700| 65 6e 74 20 64 61 74 65 | 20 61 6e 64 20 74 69 6d |ent date| and tim|
|00001710| 65 20 2a 2f 0a 09 64 61 | 74 65 73 74 61 6d 70 20 |e */..da|testamp |
|00001720| 3d 20 72 65 73 75 6c 74 | 0a 0a 09 2f 2a 20 66 69 |= result|.../* fi|
|00001730| 6e 64 20 74 68 69 73 20 | 66 69 6c 65 73 20 72 65 |nd this |files re|
|00001740| 76 69 73 69 6f 6e 20 6e | 75 6d 62 65 72 2c 20 69 |vision n|umber, i|
|00001750| 66 20 6e 6f 74 20 66 6f | 75 6e 64 20 6d 61 6b 65 |f not fo|und make|
|00001760| 20 69 74 20 27 33 37 27 | 20 2a 2f 0a 09 27 70 6f | it '37'| */..'po|
|00001770| 73 69 74 69 6f 6e 27 20 | 73 6f 66 0a 09 27 66 69 |sition' |sof..'fi|
|00001780| 6e 64 27 20 27 22 24 52 | 65 76 69 73 69 6f 6e 3a |nd' '"$R|evision:|
|00001790| 20 22 27 20 66 6f 72 77 | 61 72 64 20 31 20 75 63 | "' forw|ard 1 uc|
|000017a0| 65 71 6c 63 20 30 20 77 | 6f 72 64 73 20 30 20 63 |eqlc 0 w|ords 0 c|
|000017b0| 69 72 63 75 6c 61 72 20 | 30 20 77 69 6c 64 63 61 |ircular |0 wildca|
|000017c0| 72 64 20 30 0a 09 69 66 | 20 52 43 20 7e 3d 20 30 |rd 0..if| RC ~= 0|
|000017d0| 20 74 68 65 6e 0a 09 09 | 76 65 72 73 69 6f 6e 20 | then...|version |
|000017e0| 3d 20 27 33 37 20 27 0a | 09 65 6c 73 65 0a 09 09 |= '37 '.|.else...|
|000017f0| 64 6f 0a 09 09 27 63 75 | 72 73 6f 72 27 20 72 69 |do...'cu|rsor' ri|
|00001800| 67 68 74 20 31 31 0a 09 | 09 27 6d 61 72 6b 62 6c |ght 11..|.'markbl|
|00001810| 6f 63 6b 27 0a 09 09 27 | 66 69 6e 64 27 20 27 22 |ock'...'|find' '"|
|00001820| 24 22 27 0a 09 09 27 63 | 6f 70 79 27 20 73 6d 61 |$"'...'c|opy' sma|
|00001830| 6c 6c 63 6c 69 70 0a 09 | 09 27 67 65 74 65 6e 76 |llclip..|.'getenv|
|00001840| 76 61 72 27 20 5f 66 65 | 5f 73 6d 61 6c 6c 63 6c |var' _fe|_smallcl|
|00001850| 69 70 0a 09 09 76 65 72 | 73 69 6f 6e 20 3d 20 72 |ip...ver|sion = r|
|00001860| 65 73 75 6c 74 0a 09 09 | 27 70 6f 73 69 74 69 6f |esult...|'positio|
|00001870| 6e 27 20 73 6f 66 0a 09 | 09 65 6e 64 0a 09 09 0a |n' sof..|.end....|
|00001880| 09 2f 2a 20 69 6e 73 65 | 72 74 20 61 20 68 65 61 |./* inse|rt a hea|
|00001890| 64 65 72 2c 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |der, con|taining |
|000018a0| 76 65 72 73 69 6f 6e 20 | 73 74 72 69 6e 67 2c 20 |version |string, |
|000018b0| 6e 61 6d 65 2c 20 61 6e | 64 20 63 72 65 61 74 6f |name, an|d creato|
|000018c0| 72 20 2a 2f 0a 09 27 74 | 65 78 74 27 20 27 22 27 |r */..'t|ext' '"'|
|000018d0| 22 5c 31 30 3b 20 24 56 | 45 52 3a 20 22 6f 75 74 |"\10; $V|ER: "out|
|000018e0| 6e 61 6d 65 22 20 22 76 | 65 72 73 69 6f 6e 22 28 |name" "v|ersion"(|
|000018f0| 22 64 61 74 65 73 74 61 | 6d 70 22 29 5c 31 30 3b |"datesta|mp")\10;|
|00001900| 5c 31 30 3b 20 44 69 63 | 74 69 6f 6e 61 72 79 20 |\10; Dic|tionary |
|00001910| 66 69 6c 65 20 6f 66 20 | 22 69 6e 6e 61 6d 65 22 |file of |"inname"|
|00001920| 5c 31 30 3b 5c 31 30 3b | 20 43 72 65 61 74 65 64 |\10;\10;| Created|
|00001930| 20 62 79 20 49 5f 54 6f | 44 69 63 74 69 6f 6e 61 | by I_To|Dictiona|
|00001940| 72 79 5c 31 30 5c 31 30 | 5c 31 30 22 27 22 27 0a |ry\10\10|\10"'"'.|
|00001950| 0a 09 2f 2a 20 66 69 72 | 73 74 20 64 65 61 6c 20 |../* fir|st deal |
|00001960| 77 69 74 68 20 74 68 65 | 20 64 69 66 66 65 72 65 |with the| differe|
|00001970| 6e 74 20 74 79 70 65 20 | 74 79 70 65 73 20 2a 2f |nt type |types */|
|00001980| 0a 09 64 6f 20 69 20 3d | 20 30 20 74 6f 20 32 36 |..do i =| 0 to 26|
|00001990| 0a 09 09 27 67 6f 74 6f | 6c 69 6e 65 27 20 38 0a |...'goto|line' 8.|
|000019a0| 09 09 64 6f 20 66 6f 72 | 65 76 65 72 0a 09 09 09 |..do for|ever....|
|000019b0| 27 66 69 6e 64 27 20 27 | 22 27 74 79 70 65 73 2e |'find' '|"'types.|
|000019c0| 69 27 22 27 20 75 63 65 | 71 6c 63 20 30 20 77 6f |i'"' uce|qlc 0 wo|
|000019d0| 72 64 73 20 31 20 63 69 | 72 63 75 6c 61 72 20 30 |rds 1 ci|rcular 0|
|000019e0| 0a 09 09 09 69 66 20 52 | 43 20 7e 3d 20 30 20 74 |....if R|C ~= 0 t|
|000019f0| 68 65 6e 20 6c 65 61 76 | 65 0a 0a 09 09 09 70 61 |hen leav|e.....pa|
|00001a00| 72 73 65 20 76 61 72 20 | 72 65 73 75 6c 74 20 6c |rse var |result l|
|00001a10| 69 6e 65 6e 75 6d 62 65 | 72 20 6f 66 66 73 65 74 |inenumbe|r offset|
|00001a20| 20 63 6f 6c 75 6d 6e 0a | 09 09 09 27 67 65 74 65 | column.|...'gete|
|00001a30| 6e 76 76 61 72 27 20 5f | 77 65 5f 63 6c 69 6e 65 |nvvar' _|we_cline|
|00001a40| 20 72 61 77 0a 09 09 09 | 69 66 20 6f 66 66 73 65 | raw....|if offse|
|00001a50| 74 20 3e 20 30 20 26 20 | 28 69 6e 64 65 78 28 72 |t > 0 & |(index(r|
|00001a60| 65 73 75 6c 74 2c 27 2a | 27 29 20 3d 20 30 20 7c |esult,'*|') = 0 ||
|00001a70| 20 69 6e 64 65 78 28 72 | 65 73 75 6c 74 2c 27 2a | index(r|esult,'*|
|00001a80| 27 29 20 3e 20 6f 66 66 | 73 65 74 29 20 26 20 28 |') > off|set) & (|
|00001a90| 69 6e 64 65 78 28 72 65 | 73 75 6c 74 2c 27 3b 27 |index(re|sult,';'|
|00001aa0| 29 20 3d 20 30 20 7c 20 | 69 6e 64 65 78 28 72 65 |) = 0 | |index(re|
|00001ab0| 73 75 6c 74 2c 27 3b 27 | 29 20 3e 20 6f 66 66 73 |sult,';'|) > offs|
|00001ac0| 65 74 29 20 74 68 65 6e | 0a 09 09 09 64 6f 0a 09 |et) then|....do..|
|00001ad0| 09 09 09 27 6e 65 78 74 | 27 20 77 6f 72 64 0a 09 |...'next|' word..|
|00001ae0| 09 09 09 27 64 65 6c 65 | 74 65 27 20 73 6f 6c 0a |...'dele|te' sol.|
|00001af0| 09 09 09 09 27 67 65 74 | 65 6e 76 76 61 72 27 20 |....'get|envvar' |
|00001b00| 5f 77 65 5f 63 6c 69 6e | 65 20 72 61 77 0a 09 09 |_we_clin|e raw...|
|00001b10| 09 09 69 66 20 6c 65 66 | 74 28 72 65 73 75 6c 74 |..if lef|t(result|
|00001b20| 2c 31 29 20 7e 3d 20 27 | 5c 27 20 74 68 65 6e 0a |,1) ~= '|\' then.|
|00001b30| 09 09 09 09 64 6f 0a 09 | 09 09 09 09 27 74 65 78 |....do..|....'tex|
|00001b40| 74 27 20 27 22 57 4f 52 | 44 09 5c 33 34 22 27 0a |t' '"WOR|D.\34"'.|
|00001b50| 09 09 09 09 09 27 70 6f | 73 69 74 69 6f 6e 27 20 |.....'po|sition' |
|00001b60| 65 6f 77 0a 09 09 09 09 | 09 27 63 75 72 73 6f 72 |eow.....|.'cursor|
|00001b70| 27 20 72 69 67 68 74 20 | 31 0a 09 09 09 09 09 27 |' right |1......'|
|00001b80| 74 65 78 74 27 20 27 22 | 5c 33 34 22 27 0a 09 09 |text' '"|\34"'...|
|00001b90| 09 09 09 27 64 65 6c 65 | 74 65 27 20 65 6f 6c 0a |...'dele|te' eol.|
|00001ba0| 09 09 09 09 65 6e 64 0a | 09 09 09 65 6e 64 0a 09 |....end.|...end..|
|00001bb0| 09 65 6e 64 0a 09 65 6e | 64 0a 0a 09 2f 2a 20 6e |.end..en|d.../* n|
|00001bc0| 6f 77 20 64 65 61 6c 20 | 77 69 74 68 20 61 6c 6c |ow deal |with all|
|00001bd0| 20 64 69 72 65 63 74 69 | 76 65 73 20 2a 2f 0a 09 | directi|ves */..|
|00001be0| 64 6f 20 69 20 3d 20 30 | 20 74 6f 20 33 0a 09 09 |do i = 0| to 3...|
|00001bf0| 27 67 6f 74 6f 6c 69 6e | 65 27 20 38 0a 09 09 64 |'gotolin|e' 8...d|
|00001c00| 6f 20 66 6f 72 65 76 65 | 72 0a 09 09 09 27 66 69 |o foreve|r....'fi|
|00001c10| 6e 64 27 20 27 22 27 64 | 69 72 65 63 2e 69 27 22 |nd' '"'d|irec.i'"|
|00001c20| 27 20 75 63 65 71 6c 63 | 20 31 20 77 6f 72 64 73 |' uceqlc| 1 words|
|00001c30| 20 31 20 63 69 72 63 75 | 6c 61 72 20 30 0a 09 09 | 1 circu|lar 0...|
|00001c40| 09 69 66 20 52 43 20 7e | 3d 20 30 20 74 68 65 6e |.if RC ~|= 0 then|
|00001c50| 20 6c 65 61 76 65 0a 0a | 09 09 09 70 61 72 73 65 | leave..|...parse|
|00001c60| 20 76 61 72 20 72 65 73 | 75 6c 74 20 6c 69 6e 65 | var res|ult line|
|00001c70| 6e 75 6d 62 65 72 20 6f | 66 66 73 65 74 20 63 6f |number o|ffset co|
|00001c80| 6c 75 6d 6e 0a 09 09 09 | 27 67 65 74 65 6e 76 76 |lumn....|'getenvv|
|00001c90| 61 72 27 20 5f 77 65 5f | 63 6c 69 6e 65 20 72 61 |ar' _we_|cline ra|
|00001ca0| 77 0a 09 09 09 69 66 20 | 28 69 6e 64 65 78 28 72 |w....if |(index(r|
|00001cb0| 65 73 75 6c 74 2c 27 2a | 27 29 20 3d 20 30 20 7c |esult,'*|') = 0 ||
|00001cc0| 20 69 6e 64 65 78 28 72 | 65 73 75 6c 74 2c 27 2a | index(r|esult,'*|
|00001cd0| 27 29 20 3e 20 6f 66 66 | 73 65 74 29 20 26 20 28 |') > off|set) & (|
|00001ce0| 69 6e 64 65 78 28 72 65 | 73 75 6c 74 2c 27 3b 27 |index(re|sult,';'|
|00001cf0| 29 20 3d 20 30 20 7c 20 | 69 6e 64 65 78 28 72 65 |) = 0 | |index(re|
|00001d00| 73 75 6c 74 2c 27 3b 27 | 29 20 3e 20 6f 66 66 73 |sult,';'|) > offs|
|00001d10| 65 74 29 20 26 20 28 75 | 70 70 65 72 28 6c 65 66 |et) & (u|pper(lef|
|00001d20| 74 28 72 65 73 75 6c 74 | 2c 31 29 29 20 3e 3d 20 |t(result|,1)) >= |
|00001d30| 27 41 27 20 26 20 75 70 | 70 65 72 28 6c 65 66 74 |'A' & up|per(left|
|00001d40| 28 72 65 73 75 6c 74 2c | 31 29 29 20 3c 3d 20 27 |(result,|1)) <= '|
|00001d50| 5a 27 29 20 74 68 65 6e | 0a 09 09 09 64 6f 0a 09 |Z') then|....do..|
|00001d60| 09 09 09 27 70 72 65 76 | 69 6f 75 73 27 20 77 6f |...'prev|ious' wo|
|00001d70| 72 64 0a 09 09 09 09 27 | 70 6f 73 69 74 69 6f 6e |rd.....'|position|
|00001d80| 27 20 65 6f 77 0a 09 09 | 09 09 27 63 75 72 73 6f |' eow...|..'curso|
|00001d90| 72 27 20 72 69 67 68 74 | 20 31 0a 09 09 09 09 27 |r' right| 1.....'|
|00001da0| 64 65 6c 65 74 65 27 20 | 65 6f 6c 0a 09 09 09 09 |delete' |eol.....|
|00001db0| 27 74 65 78 74 27 20 27 | 22 5c 33 34 22 27 0a 09 |'text' '|"\34"'..|
|00001dc0| 09 09 09 27 70 6f 73 69 | 74 69 6f 6e 27 20 73 6f |...'posi|tion' so|
|00001dd0| 6c 0a 09 09 09 09 27 74 | 65 78 74 27 20 27 22 57 |l.....'t|ext' '"W|
|00001de0| 4f 52 44 09 5c 33 34 22 | 27 0a 09 09 09 09 27 70 |ORD.\34"|'.....'p|
|00001df0| 6f 73 69 74 69 6f 6e 27 | 20 65 6f 6c 0a 09 09 09 |osition'| eol....|
|00001e00| 65 6e 64 0a 09 09 65 6e | 64 0a 09 65 6e 64 0a 0a |end...en|d..end..|
|00001e10| 09 2f 2a 20 74 61 6b 65 | 20 63 61 72 65 20 6f 66 |./* take| care of|
|00001e20| 20 62 69 74 64 65 66 20 | 2a 2f 0a 0a 09 27 67 6f | bitdef |*/...'go|
|00001e30| 74 6f 6c 69 6e 65 27 20 | 38 0a 09 64 6f 20 66 6f |toline' |8..do fo|
|00001e40| 72 65 76 65 72 0a 09 09 | 27 66 69 6e 64 27 20 27 |rever...|'find' '|
|00001e50| 22 62 69 74 64 65 66 22 | 27 20 75 63 65 71 6c 63 |"bitdef"|' uceqlc|
|00001e60| 20 31 20 77 6f 72 64 73 | 20 31 20 63 69 72 63 75 | 1 words| 1 circu|
|00001e70| 6c 61 72 20 30 0a 09 09 | 69 66 20 52 43 20 7e 3d |lar 0...|if RC ~=|
|00001e80| 20 30 20 74 68 65 6e 20 | 6c 65 61 76 65 0a 0a 09 | 0 then |leave...|
|00001e90| 09 70 61 72 73 65 20 76 | 61 72 20 72 65 73 75 6c |.parse v|ar resul|
|00001ea0| 74 20 6c 69 6e 65 6e 75 | 6d 62 65 72 20 6f 66 66 |t linenu|mber off|
|00001eb0| 73 65 74 20 63 6f 6c 75 | 6d 6e 0a 09 09 27 67 65 |set colu|mn...'ge|
|00001ec0| 74 65 6e 76 76 61 72 27 | 20 5f 77 65 5f 63 6c 69 |tenvvar'| _we_cli|
|00001ed0| 6e 65 20 72 61 77 0a 09 | 09 69 66 20 6f 66 66 73 |ne raw..|.if offs|
|00001ee0| 65 74 20 3e 20 30 20 26 | 20 28 69 6e 64 65 78 28 |et > 0 &| (index(|
|00001ef0| 72 65 73 75 6c 74 2c 27 | 2a 27 29 20 3d 20 30 20 |result,'|*') = 0 |
|00001f00| 7c 20 69 6e 64 65 78 28 | 72 65 73 75 6c 74 2c 27 || index(|result,'|
|00001f10| 2a 27 29 20 3e 20 6f 66 | 66 73 65 74 29 20 26 20 |*') > of|fset) & |
|00001f20| 28 69 6e 64 65 78 28 72 | 65 73 75 6c 74 2c 27 3b |(index(r|esult,';|
|00001f30| 27 29 20 3d 20 30 20 7c | 20 69 6e 64 65 78 28 72 |') = 0 || index(r|
|00001f40| 65 73 75 6c 74 2c 27 3b | 27 29 20 3e 20 6f 66 66 |esult,';|') > off|
|00001f50| 73 65 74 29 20 26 20 6c | 65 66 74 28 72 65 73 75 |set) & l|eft(resu|
|00001f60| 6c 74 2c 31 29 20 3c 3d | 20 27 20 27 20 74 68 65 |lt,1) <=| ' ' the|
|00001f70| 6e 0a 09 09 64 6f 0a 09 | 09 09 27 6e 65 78 74 27 |n...do..|..'next'|
|00001f80| 20 77 6f 72 64 0a 09 09 | 09 27 64 65 6c 65 74 65 | word...|.'delete|
|00001f90| 27 20 73 6f 6c 0a 09 09 | 09 27 74 65 78 74 27 20 |' sol...|.'text' |
|00001fa0| 27 22 57 4f 52 44 09 5c | 33 34 22 27 0a 09 09 09 |'"WORD.\|34"'....|
|00001fb0| 27 6e 65 78 74 27 20 77 | 6f 72 64 0a 09 09 09 69 |'next' w|ord....i|
|00001fc0| 66 20 52 43 20 7e 3d 20 | 30 20 74 68 65 6e 0a 09 |f RC ~= |0 then..|
|00001fd0| 09 09 64 6f 0a 09 09 09 | 09 27 64 65 6c 65 74 65 |..do....|.'delete|
|00001fe0| 20 6c 69 6e 65 27 0a 09 | 09 09 09 6c 65 61 76 65 | line'..|...leave|
|00001ff0| 0a 09 09 09 65 6e 64 0a | 09 09 09 27 6e 65 78 74 |....end.|...'next|
|00002000| 27 20 77 6f 72 64 0a 09 | 09 09 27 70 6f 73 69 74 |' word..|..'posit|
|00002010| 69 6f 6e 27 20 65 6f 77 | 0a 09 09 09 27 63 75 72 |ion' eow|....'cur|
|00002020| 73 6f 72 27 20 72 69 67 | 68 74 20 31 0a 09 09 09 |sor' rig|ht 1....|
|00002030| 27 64 65 6c 65 74 65 27 | 20 65 6f 6c 0a 09 09 09 |'delete'| eol....|
|00002040| 27 74 65 78 74 27 20 27 | 22 5c 33 34 22 27 0a 09 |'text' '|"\34"'..|
|00002050| 09 09 27 63 6f 70 79 20 | 6c 69 6e 65 27 0a 09 09 |..'copy |line'...|
|00002060| 09 27 70 72 65 76 69 6f | 75 73 27 20 77 6f 72 64 |.'previo|us' word|
|00002070| 0a 09 09 09 27 70 72 65 | 76 69 6f 75 73 27 20 77 |....'pre|vious' w|
|00002080| 6f 72 64 0a 09 09 09 27 | 64 65 6c 65 74 65 27 20 |ord....'|delete' |
|00002090| 63 68 61 72 20 62 61 63 | 6b 0a 09 09 09 27 74 65 |char bac|k....'te|
|000020a0| 78 74 27 20 27 22 42 5f | 22 27 0a 09 09 09 27 63 |xt' '"B_|"'....'c|
|000020b0| 75 72 73 6f 72 27 20 64 | 6f 77 6e 20 31 0a 09 09 |ursor' d|own 1...|
|000020c0| 09 27 70 6f 73 69 74 69 | 6f 6e 27 20 73 6f 6c 0a |.'positi|on' sol.|
|000020d0| 09 09 09 27 70 61 73 74 | 65 27 0a 09 09 09 27 63 |...'past|e'....'c|
|000020e0| 75 72 73 6f 72 27 20 75 | 70 20 31 0a 09 09 09 27 |ursor' u|p 1....'|
|000020f0| 6e 65 78 74 27 20 77 6f | 72 64 0a 09 09 09 27 6e |next' wo|rd....'n|
|00002100| 65 78 74 27 20 77 6f 72 | 64 0a 09 09 09 27 6e 65 |ext' wor|d....'ne|
|00002110| 78 74 27 20 77 6f 72 64 | 0a 09 09 09 27 64 65 6c |xt' word|....'del|
|00002120| 65 74 65 27 20 63 68 61 | 72 0a 09 09 09 27 74 65 |ete' cha|r....'te|
|00002130| 78 74 27 20 27 22 46 5f | 22 27 0a 09 09 09 27 70 |xt' '"F_|"'....'p|
|00002140| 6f 73 69 74 69 6f 6e 27 | 20 65 6f 6c 0a 09 09 65 |osition'| eol...e|
|00002150| 6e 64 0a 09 65 6e 64 0a | 0a 09 2f 2a 20 6e 6f 77 |nd..end.|../* now|
|00002160| 20 64 65 6c 65 74 65 20 | 61 6c 6c 20 6c 69 6e 65 | delete |all line|
|00002170| 73 20 6e 6f 74 20 62 65 | 67 69 6e 69 6e 67 20 77 |s not be|gining w|
|00002180| 69 74 68 20 27 57 4f 52 | 44 09 27 2a 2f 0a 0a 09 |ith 'WOR|D.'*/...|
|00002190| 27 67 6f 74 6f 6c 69 6e | 65 27 20 39 0a 09 64 6f |'gotolin|e' 9..do|
|000021a0| 20 66 6f 72 65 76 65 72 | 0a 09 09 27 67 65 74 65 | forever|...'gete|
|000021b0| 6e 76 76 61 72 27 20 5f | 77 65 5f 63 6c 69 6e 65 |nvvar' _|we_cline|
|000021c0| 20 72 61 77 0a 09 09 69 | 66 20 6c 65 66 74 28 72 | raw...i|f left(r|
|000021d0| 65 73 75 6c 74 2c 35 29 | 20 7e 3d 20 27 57 4f 52 |esult,5)| ~= 'WOR|
|000021e0| 44 09 27 20 26 20 6c 65 | 6e 67 74 68 28 72 65 73 |D.' & le|ngth(res|
|000021f0| 75 6c 74 29 20 7e 3d 20 | 30 20 74 68 65 6e 0a 09 |ult) ~= |0 then..|
|00002200| 09 64 6f 0a 09 09 09 27 | 64 65 6c 65 74 65 20 6c |.do....'|delete l|
|00002210| 69 6e 65 27 0a 09 09 65 | 6e 64 0a 09 09 65 6c 73 |ine'...e|nd...els|
|00002220| 65 0a 09 09 64 6f 0a 09 | 09 09 27 63 75 72 73 6f |e...do..|..'curso|
|00002230| 72 27 20 64 6f 77 6e 20 | 31 0a 09 09 09 69 66 20 |r' down |1....if |
|00002240| 52 43 20 7e 3d 20 30 20 | 74 68 65 6e 20 6c 65 61 |RC ~= 0 |then lea|
|00002250| 76 65 09 0a 09 09 65 6e | 64 0a 09 65 6e 64 0a 09 |ve....en|d..end..|
|00002260| 0a 09 2f 2a 20 73 61 76 | 65 20 74 68 65 20 66 69 |../* sav|e the fi|
|00002270| 6c 65 20 2a 2f 0a 09 27 | 73 61 76 65 27 20 6e 6f |le */..'|save' no|
|00002280| 69 63 6f 6e 20 6e 6f 62 | 61 63 6b 75 70 0a 72 65 |icon nob|ackup.re|
|00002290| 74 75 72 6e 20 31 0a 0a | 0a 2f 2a 0a 2a 2a 20 65 |turn 1..|./*.** e|
|000022a0| 72 72 6f 72 20 68 61 6e | 64 6c 69 6e 67 20 72 6f |rror han|dling ro|
|000022b0| 75 74 69 6e 65 73 0a 2a | 2f 0a 0a 65 72 72 6f 72 |utines.*|/..error|
|000022c0| 3a 0a 09 61 72 67 20 72 | 63 0a 0a 09 2f 2a 20 69 |:..arg r|c.../* i|
|000022d0| 66 20 74 68 65 20 73 65 | 76 65 72 69 74 79 20 6c |f the se|verity l|
|000022e0| 65 76 65 6c 20 6f 6e 20 | 74 68 65 20 65 72 72 6f |evel on |the erro|
|000022f0| 72 20 69 73 20 67 72 65 | 61 74 65 72 20 6f 72 20 |r is gre|ater or |
|00002300| 65 71 75 61 6c 20 74 6f | 20 74 68 65 20 75 73 65 |equal to| the use|
|00002310| 72 73 0a 09 09 65 72 72 | 6f 72 20 6c 65 76 65 6c |rs...err|or level|
|00002320| 20 67 65 74 20 74 68 65 | 20 66 61 75 6c 74 20 73 | get the| fault s|
|00002330| 74 72 69 6e 67 20 61 6e | 64 20 64 69 73 70 6c 61 |tring an|d displa|
|00002340| 79 20 69 74 20 2a 2f 0a | 09 69 66 20 72 63 20 3e |y it */.|.if rc >|
|00002350| 3d 20 65 72 72 6c 65 76 | 65 6c 20 74 68 65 6e 0a |= errlev|el then.|
|00002360| 09 64 6f 0a 09 09 27 66 | 61 75 6c 74 27 0a 09 09 |.do...'f|ault'...|
|00002370| 27 72 65 71 75 65 73 74 | 6e 6f 74 69 66 79 27 20 |'request|notify' |
|00002380| 27 22 27 72 65 73 75 6c | 74 27 22 27 0a 09 65 6e |'"'resul|t'"'..en|
|00002390| 64 0a 09 0a 09 2f 2a 20 | 69 66 20 77 65 20 68 61 |d..../* |if we ha|
|000023a0| 76 65 20 6f 70 65 6e 65 | 64 20 61 20 6e 65 77 20 |ve opene|d a new |
|000023b0| 66 69 6c 65 2c 20 63 6c | 6f 73 65 20 69 74 20 2a |file, cl|ose it *|
|000023c0| 2f 0a 09 69 66 20 6f 72 | 69 67 69 6e 20 7e 3d 20 |/..if or|igin ~= |
|000023d0| 61 64 64 72 65 73 73 28 | 29 09 74 68 65 6e 20 27 |address(|).then '|
|000023e0| 63 6c 6f 73 65 27 20 66 | 6f 72 63 65 0a 72 65 74 |close' f|orce.ret|
|000023f0| 75 72 6e 20 72 63 0a 0a | 64 6f 73 65 72 72 6f 72 |urn rc..|doserror|
|00002400| 3a 0a 09 61 72 67 20 72 | 63 0a 0a 09 2f 2a 20 69 |:..arg r|c.../* i|
|00002410| 66 20 77 65 20 68 61 76 | 65 20 6f 70 65 6e 65 64 |f we hav|e opened|
|00002420| 20 61 20 6e 65 77 20 66 | 69 6c 65 2c 20 63 6c 6f | a new f|ile, clo|
|00002430| 73 65 20 69 74 20 2a 2f | 0a 09 69 66 20 6f 72 69 |se it */|..if ori|
|00002440| 67 69 6e 20 7e 3d 20 61 | 64 64 72 65 73 73 28 29 |gin ~= a|ddress()|
|00002450| 09 74 68 65 6e 20 27 63 | 6c 6f 73 65 27 20 66 6f |.then 'c|lose' fo|
|00002460| 72 63 65 0a 72 65 74 75 | 72 6e 20 72 63 0a |rce.retu|rn rc. |
+--------+-------------------------+-------------------------+--------+--------+