home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-06-15 | 7.8 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Jun 15 12:15:15 1993, modified Tue Jun 15 12:15:15 1993, creator 'MPS ', type ASCII, 7392 bytes "ToolLib.h" , at 0x1d60 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 54 6f 6f 6c 4c 69 | 62 2e 68 00 00 00 00 00 |..ToolLi|b.h.....|
|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 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 1c e0 00 | 00 01 1e a8 43 a6 13 a8 |........|....C...|
|00000060| 43 a6 13 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |C.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 db e9 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 0d 20 2a | 20 20 54 6f 6f 6c 4c 69 |/*. *. *| ToolLi|
|00000090| 62 2e 68 20 2d 20 49 6e | 74 65 72 66 61 63 65 20 |b.h - In|terface |
|000000a0| 66 69 6c 65 20 66 6f 72 | 20 66 75 6e 63 74 69 6f |file for| functio|
|000000b0| 6e 73 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 0d |ns conta|ined in.|
|000000c0| 20 2a 09 09 54 6f 6f 6c | 4c 69 62 20 6c 69 62 72 | *..Tool|Lib libr|
|000000d0| 61 72 79 2e 20 20 54 68 | 65 73 65 20 66 75 6e 63 |ary. Th|ese func|
|000000e0| 74 69 6f 6e 73 20 63 61 | 6e 20 62 65 20 75 73 65 |tions ca|n be use|
|000000f0| 64 20 62 79 0d 20 2a 09 | 09 70 72 6f 67 72 61 6d |d by. *.|.program|
|00000100| 73 20 74 68 61 74 20 61 | 72 65 20 74 6f 20 62 65 |s that a|re to be|
|00000110| 20 6f 70 65 72 61 74 65 | 64 20 61 73 20 74 6f 6f | operate|d as too|
|00000120| 6c 73 20 75 6e 64 65 72 | 20 74 68 65 0d 20 2a 09 |ls under| the. *.|
|00000130| 09 41 50 57 20 73 68 65 | 6c 6c 20 6f 6e 20 74 68 |.APW she|ll on th|
|00000140| 65 20 41 70 70 6c 65 20 | 49 49 67 73 2e 0d 20 2a |e Apple |IIgs.. *|
|00000150| 0d 20 2a 09 43 6f 70 79 | 72 69 67 68 74 20 41 70 |. *.Copy|right Ap|
|00000160| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|00000170| 63 2e 20 31 39 38 39 0d | 20 2a 09 41 6c 6c 20 72 |c. 1989.| *.All r|
|00000180| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 0d 20 |ights re|served. |
|00000190| 2a 0d 20 2a 09 41 75 74 | 68 6f 72 3a 20 47 72 65 |*. *.Aut|hor: Gre|
|000001a0| 67 20 42 72 61 6e 63 68 | 65 0d 20 2a 0d 20 2a 2f |g Branch|e. *. */|
|000001b0| 0d 0d 23 69 66 6e 64 65 | 66 09 5f 5f 54 6f 6f 6c |..#ifnde|f.__Tool|
|000001c0| 4c 69 62 5f 5f 0d 23 64 | 65 66 69 6e 65 20 5f 5f |Lib__.#d|efine __|
|000001d0| 54 6f 6f 6c 4c 69 62 5f | 5f 0d 0d 2f 2a 2a 2a 2a |ToolLib_|_../****|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000200| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000210| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 20 20 20 20 3c 3c |********|.. <<|
|00000220| 3c 20 43 75 72 73 6f 72 | 43 74 6c 20 2d 20 43 75 |< Cursor|Ctl - Cu|
|00000230| 72 73 6f 72 20 43 6f 6e | 74 72 6f 6c 20 52 6f 75 |rsor Con|trol Rou|
|00000240| 74 69 6e 65 73 20 3e 3e | 3e 0d 0d 20 20 20 20 54 |tines >>|>.. T|
|00000250| 68 69 73 20 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |his file| contain|
|00000260| 73 3a 0d 20 20 20 20 0d | 20 20 20 20 49 6e 69 74 |s:. .| Init|
|00000270| 43 75 72 73 6f 72 43 74 | 6c 28 64 65 6c 61 79 63 |CursorCt|l(delayc|
|00000280| 6f 75 6e 74 29 20 2d 20 | 49 6e 69 74 20 43 75 72 |ount) - |Init Cur|
|00000290| 73 6f 72 43 74 6c 20 74 | 6f 20 73 65 74 20 74 68 |sorCtl t|o set th|
|000002a0| 65 20 73 70 69 6e 20 64 | 65 6c 61 79 0d 20 20 20 |e spin d|elay. |
|000002b0| 20 52 6f 74 61 74 65 43 | 75 72 73 6f 72 28 63 6f | RotateC|ursor(co|
|000002c0| 75 6e 74 65 72 29 20 2d | 20 53 65 71 75 65 6e 63 |unter) -| Sequenc|
|000002d0| 65 20 74 68 72 6f 75 67 | 68 20 63 75 72 73 6f 72 |e throug|h cursor|
|000002e0| 20 66 72 61 6d 65 73 20 | 66 6f 72 20 63 6f 75 6e | frames |for coun|
|000002f0| 74 65 72 20 6d 6f 64 20 | 64 65 6c 61 79 0d 20 20 |ter mod |delay. |
|00000300| 20 20 53 70 69 6e 43 75 | 72 73 6f 72 28 69 6e 63 | SpinCu|rsor(inc|
|00000310| 72 65 6d 65 6e 74 29 20 | 2d 20 53 65 71 75 65 6e |rement) |- Sequen|
|00000320| 63 65 20 6d 6f 64 20 64 | 65 6c 61 79 20 69 6e 63 |ce mod d|elay inc|
|00000330| 72 65 6d 65 6e 74 69 6e | 67 20 69 6e 74 65 72 6e |rementin|g intern|
|00000340| 61 6c 20 63 6f 75 6e 74 | 65 72 0d 20 20 20 20 48 |al count|er. H|
|00000350| 69 64 65 5f 43 75 72 73 | 6f 72 28 29 20 2d 20 48 |ide_Curs|or() - H|
|00000360| 69 64 65 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ide the |current |
|00000370| 63 75 72 73 6f 72 0d 20 | 20 20 20 53 68 6f 77 5f |cursor. | Show_|
|00000380| 43 75 72 73 6f 72 28 29 | 20 2d 20 53 68 6f 77 20 |Cursor()| - Show |
|00000390| 74 68 65 20 63 75 72 73 | 6f 72 0d 0d 2a 2a 2a 2a |the curs|or..****|
|000003a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 65 78 74 65 72 |********|/..exter|
|000003e0| 6e 20 70 61 73 63 61 6c | 20 76 6f 69 64 20 49 6e |n pascal| void In|
|000003f0| 69 74 43 75 72 73 6f 72 | 43 74 6c 28 2f 2a 20 64 |itCursor|Ctl(/* d|
|00000400| 65 6c 61 79 63 6f 75 6e | 74 20 2a 2f 29 3b 2f 2a |elaycoun|t */);/*|
|00000410| 0d 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 09 64 |.unsigne|d long.d|
|00000420| 65 6c 61 79 63 6f 75 6e | 74 3b 0d 0d 09 49 6e 69 |elaycoun|t;...Ini|
|00000430| 74 69 61 6c 69 7a 65 20 | 74 68 65 20 43 75 72 73 |tialize |the Curs|
|00000440| 6f 72 43 74 6c 20 75 6e | 69 74 2e 20 20 54 68 69 |orCtl un|it. Thi|
|00000450| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 63 61 6c 6c |s should| be call|
|00000460| 65 64 20 6f 6e 63 65 20 | 70 72 69 6f 72 20 74 6f |ed once |prior to|
|00000470| 20 63 61 6c 6c 69 6e 67 | 0d 09 61 6e 79 20 6f 66 | calling|..any of|
|00000480| 20 74 68 65 20 6f 74 68 | 65 72 20 43 75 72 73 6f | the oth|er Curso|
|00000490| 72 43 74 6c 20 72 6f 75 | 74 69 6e 65 73 2e 20 20 |rCtl rou|tines. |
|000004a0| 49 66 20 64 65 6c 61 79 | 63 6f 75 6e 74 20 3d 20 |If delay|count = |
|000004b0| 30 2c 20 74 68 65 6e 20 | 74 68 65 20 64 65 66 61 |0, then |the defa|
|000004c0| 75 6c 74 20 64 65 6c 61 | 79 0d 09 76 61 6c 75 65 |ult dela|y..value|
|000004d0| 20 6f 66 20 33 32 20 77 | 69 6c 6c 20 62 65 20 75 | of 32 w|ill be u|
|000004e0| 73 65 64 2e 20 20 45 6e | 73 75 72 65 20 74 68 61 |sed. En|sure tha|
|000004f0| 74 20 74 68 65 20 76 61 | 6c 75 65 20 62 65 69 6e |t the va|lue bein|
|00000500| 67 20 70 61 73 73 65 64 | 20 61 73 20 64 65 6c 61 |g passed| as dela|
|00000510| 79 63 6f 75 6e 74 20 69 | 73 0d 09 33 32 2d 62 69 |ycount i|s..32-bi|
|00000520| 74 73 20 69 6e 20 73 69 | 7a 65 20 28 6c 6f 6e 67 |ts in si|ze (long|
|00000530| 29 0d 2a 2f 0d 0d 65 78 | 74 65 72 6e 20 70 61 73 |).*/..ex|tern pas|
|00000540| 63 61 6c 20 76 6f 69 64 | 20 53 68 6f 77 5f 43 75 |cal void| Show_Cu|
|00000550| 72 73 6f 72 28 29 3b 2f | 2a 0d 0d 09 54 68 69 73 |rsor();/|*...This|
|00000560| 20 66 75 6e 63 74 69 6f | 6e 20 72 65 6d 6f 76 65 | functio|n remove|
|00000570| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 69 6e |s the de|fault in|
|00000580| 76 65 72 73 65 20 73 70 | 61 63 65 20 63 75 72 73 |verse sp|ace curs|
|00000590| 6f 72 20 66 72 6f 6d 20 | 74 68 65 20 73 63 72 65 |or from |the scre|
|000005a0| 65 6e 20 61 6e 64 20 72 | 65 70 6c 61 63 65 73 20 |en and r|eplaces |
|000005b0| 69 74 0d 09 77 69 74 68 | 20 74 68 65 20 66 69 72 |it..with| the fir|
|000005c0| 73 74 20 66 72 61 6d 65 | 20 6f 66 20 74 68 65 20 |st frame| of the |
|000005d0| 61 6e 69 6d 61 74 65 64 | 20 63 75 72 73 6f 72 2e |animated| cursor.|
|000005e0| 20 20 49 74 20 74 68 65 | 6e 20 6f 75 74 70 75 74 | It the|n output|
|000005f0| 73 20 61 20 62 61 63 6b | 73 70 61 63 65 20 73 6f |s a back|space so|
|00000600| 20 74 68 61 74 20 61 6e | 79 0d 09 73 75 62 73 65 | that an|y..subse|
|00000610| 71 75 65 6e 74 20 63 68 | 61 72 61 63 74 65 72 73 |quent ch|aracters|
|00000620| 20 77 69 6c 6c 20 61 75 | 74 6f 6d 61 74 69 63 61 | will au|tomatica|
|00000630| 6c 6c 79 20 6f 76 65 72 | 77 72 69 74 65 20 74 68 |lly over|write th|
|00000640| 65 20 63 75 72 73 6f 72 | 20 63 68 61 72 61 63 74 |e cursor| charact|
|00000650| 65 72 2e 0d 2a 2f 0d 0d | 65 78 74 65 72 6e 20 70 |er..*/..|extern p|
|00000660| 61 73 63 61 6c 20 76 6f | 69 64 20 52 6f 74 61 74 |ascal vo|id Rotat|
|00000670| 65 43 75 72 73 6f 72 28 | 2f 2a 20 63 6f 75 6e 74 |eCursor(|/* count|
|00000680| 65 72 20 2a 2f 29 3b 2f | 2a 0d 75 6e 73 69 67 6e |er */);/|*.unsign|
|00000690| 65 64 20 6c 6f 6e 67 09 | 63 6f 75 6e 74 65 72 3b |ed long.|counter;|
|000006a0| 0d 0d 09 52 6f 74 61 74 | 65 43 75 72 73 6f 72 20 |...Rotat|eCursor |
|000006b0| 69 73 20 63 61 6c 6c 65 | 64 20 74 6f 20 72 6f 74 |is calle|d to rot|
|000006c0| 61 74 65 20 74 68 65 20 | 22 49 20 61 6d 20 61 63 |ate the |"I am ac|
|000006d0| 74 69 76 65 22 20 22 73 | 70 69 6e 6e 69 6e 67 20 |tive" "s|pinning |
|000006e0| 77 68 65 65 6c 22 20 63 | 75 72 73 6f 72 2e 20 20 |wheel" c|ursor. |
|000006f0| 54 68 65 20 6e 65 78 74 | 20 63 75 72 73 6f 72 0d |The next| cursor.|
|00000700| 09 28 22 66 72 61 6d 65 | 22 29 20 69 73 20 75 73 |.("frame|") is us|
|00000710| 65 64 20 77 68 65 6e 20 | 28 63 6f 75 6e 74 65 72 |ed when |(counter|
|00000720| 20 4d 4f 44 20 64 65 6c | 61 79 63 6f 75 6e 74 29 | MOD del|aycount)|
|00000730| 20 28 61 73 20 73 70 65 | 63 69 66 69 65 64 20 69 | (as spe|cified i|
|00000740| 6e 20 74 68 65 20 49 6e | 69 74 43 75 72 73 6f 72 |n the In|itCursor|
|00000750| 43 74 6c 20 63 61 6c 6c | 29 20 3d 20 30 0d 09 28 |Ctl call|) = 0..(|
|00000760| 63 6f 75 6e 74 65 72 20 | 69 73 20 73 6f 6d 65 20 |counter |is some |
|00000770| 6b 69 6e 64 20 6f 66 20 | 69 6e 63 72 65 6d 65 6e |kind of |incremen|
|00000780| 74 69 6e 67 20 6f 72 20 | 64 65 63 72 65 6d 65 6e |ting or |decremen|
|00000790| 74 69 6e 67 20 69 6e 64 | 65 78 20 6d 61 69 6e 74 |ting ind|ex maint|
|000007a0| 61 69 6e 65 64 20 62 79 | 20 74 68 65 20 63 61 6c |ained by| the cal|
|000007b0| 6c 65 72 29 2e 20 20 41 | 20 0d 09 70 6f 73 69 74 |ler). A| ..posit|
|000007c0| 69 76 65 20 63 6f 75 6e | 74 65 72 20 73 65 71 75 |ive coun|ter sequ|
|000007d0| 65 6e 63 65 73 20 66 6f | 72 77 61 72 64 20 74 68 |ences fo|rward th|
|000007e0| 72 6f 75 67 68 20 74 68 | 65 20 63 75 72 73 6f 72 |rough th|e cursor|
|000007f0| 73 20 28 65 2e 67 2e 2c | 20 69 74 20 72 6f 74 61 |s (e.g.,| it rota|
|00000800| 74 65 73 20 74 68 65 20 | 63 75 72 73 6f 72 0d 09 |tes the |cursor..|
|00000810| 22 63 6c 6f 63 6b 77 69 | 73 65 22 29 2c 20 61 6e |"clockwi|se"), an|
|00000820| 64 20 61 20 6e 65 67 61 | 74 69 76 65 20 63 75 72 |d a nega|tive cur|
|00000830| 73 6f 72 20 73 65 71 75 | 65 6e 63 65 73 20 74 68 |sor sequ|ences th|
|00000840| 72 6f 75 67 68 20 74 68 | 65 20 63 75 72 73 6f 72 |rough th|e cursor|
|00000850| 73 20 62 61 63 6b 77 61 | 72 64 73 20 28 65 2e 67 |s backwa|rds (e.g|
|00000860| 2e 2c 20 69 74 0d 09 72 | 6f 74 61 74 65 73 20 74 |., it..r|otates t|
|00000870| 68 65 20 63 75 72 73 6f | 72 20 63 6f 75 6e 74 65 |he curso|r counte|
|00000880| 72 63 6c 6f 63 6b 77 69 | 73 65 29 2e 0d 2a 2f 0d |rclockwi|se)..*/.|
|00000890| 0d 65 78 74 65 72 6e 20 | 70 61 73 63 61 6c 20 76 |.extern |pascal v|
|000008a0| 6f 69 64 20 53 70 69 6e | 43 75 72 73 6f 72 28 2f |oid Spin|Cursor(/|
|000008b0| 2a 20 69 6e 63 72 65 6d | 65 6e 74 20 2a 2f 29 3b |* increm|ent */);|
|000008c0| 2f 2a 0d 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |/*.unsig|ned shor|
|000008d0| 74 09 69 6e 63 72 65 6d | 65 6e 74 3b 0d 0d 09 53 |t.increm|ent;...S|
|000008e0| 70 69 6e 43 75 72 73 6f | 72 20 69 73 20 73 69 6d |pinCurso|r is sim|
|000008f0| 69 6c 61 72 20 69 6e 20 | 66 75 6e 63 74 69 6f 6e |ilar in |function|
|00000900| 20 74 6f 20 52 6f 74 61 | 74 65 43 75 72 73 6f 72 | to Rota|teCursor|
|00000910| 2c 20 65 78 63 65 70 74 | 20 74 68 61 74 20 69 6e |, except| that in|
|00000920| 73 74 65 61 64 20 6f 66 | 20 70 61 73 73 69 6e 67 |stead of| passing|
|00000930| 20 61 20 63 6f 75 6e 74 | 65 72 2c 0d 09 61 6e 20 | a count|er,..an |
|00000940| 69 6e 63 72 65 6d 65 6e | 74 20 69 73 20 70 61 73 |incremen|t is pas|
|00000950| 73 65 64 20 61 6e 64 20 | 61 64 64 65 64 20 74 6f |sed and |added to|
|00000960| 20 61 20 63 6f 75 6e 74 | 65 72 20 6d 61 69 6e 74 | a count|er maint|
|00000970| 61 69 6e 65 64 20 68 65 | 72 65 2e 20 20 53 70 69 |ained he|re. Spi|
|00000980| 6e 43 75 72 73 6f 72 20 | 69 73 20 70 72 6f 76 69 |nCursor |is provi|
|00000990| 64 65 64 20 66 6f 72 0d | 09 74 68 6f 73 65 20 75 |ded for.|.those u|
|000009a0| 73 65 72 73 20 77 68 6f | 20 64 6f 20 6e 6f 74 20 |sers who| do not |
|000009b0| 68 61 70 70 65 6e 20 74 | 6f 20 68 61 76 65 20 61 |happen t|o have a|
|000009c0| 20 63 6f 6e 76 65 6e 69 | 65 6e 74 20 63 6f 75 6e | conveni|ent coun|
|000009d0| 74 65 72 20 68 61 6e 64 | 79 20 62 75 74 20 73 74 |ter hand|y but st|
|000009e0| 69 6c 6c 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |ill want| to use |
|000009f0| 74 68 65 0d 09 73 70 69 | 6e 6e 69 6e 67 20 63 75 |the..spi|nning cu|
|00000a00| 72 73 6f 72 2e 20 20 41 | 20 70 6f 73 69 74 69 76 |rsor. A| positiv|
|00000a10| 65 20 69 6e 63 72 65 6d | 65 6e 74 20 73 65 71 75 |e increm|ent sequ|
|00000a20| 65 6e 63 65 73 20 66 6f | 72 77 61 72 64 20 74 68 |ences fo|rward th|
|00000a30| 72 6f 75 67 68 20 74 68 | 65 20 63 75 72 73 6f 72 |rough th|e cursor|
|00000a40| 73 20 28 72 6f 74 61 74 | 69 6e 67 20 74 68 65 0d |s (rotat|ing the.|
|00000a50| 09 63 75 72 73 6f 72 20 | 63 6c 6f 63 6b 77 69 73 |.cursor |clockwis|
|00000a60| 65 29 2c 20 61 6e 64 20 | 61 20 6e 65 67 61 74 69 |e), and |a negati|
|00000a70| 76 65 20 69 6e 63 72 65 | 6d 65 6e 74 20 73 65 71 |ve incre|ment seq|
|00000a80| 75 65 6e 63 65 73 20 62 | 61 63 6b 77 61 72 64 20 |uences b|ackward |
|00000a90| 74 68 72 6f 75 67 68 20 | 74 68 65 20 63 75 72 73 |through |the curs|
|00000aa0| 6f 72 73 20 28 72 6f 74 | 61 74 69 6e 67 0d 09 74 |ors (rot|ating..t|
|00000ab0| 68 65 20 63 75 72 73 6f | 72 20 63 6f 75 6e 74 65 |he curso|r counte|
|00000ac0| 72 63 6c 6f 63 6b 77 69 | 73 65 29 2e 20 20 41 20 |rclockwi|se). A |
|00000ad0| 7a 65 72 6f 20 76 61 6c | 75 65 20 66 6f 72 20 74 |zero val|ue for t|
|00000ae0| 68 65 20 69 6e 63 72 65 | 6d 65 6e 74 20 72 65 73 |he incre|ment res|
|00000af0| 65 74 73 20 74 68 65 20 | 63 6f 75 6e 74 65 72 20 |ets the |counter |
|00000b00| 74 6f 20 7a 65 72 6f 2e | 0d 09 4e 6f 74 65 2c 20 |to zero.|..Note, |
|00000b10| 69 74 20 69 73 20 74 68 | 65 20 69 6e 63 72 65 6d |it is th|e increm|
|00000b20| 65 6e 74 2c 20 61 6e 64 | 20 6e 6f 74 20 74 68 65 |ent, and| not the|
|00000b30| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 63 6f | value o|f the co|
|00000b40| 75 6e 74 65 72 20 74 68 | 61 74 20 64 65 74 65 72 |unter th|at deter|
|00000b50| 6d 69 6e 65 73 20 74 68 | 65 20 73 65 71 75 65 6e |mines th|e sequen|
|00000b60| 63 69 6e 67 0d 09 64 69 | 72 65 63 74 69 6f 6e 20 |cing..di|rection |
|00000b70| 6f 66 20 74 68 65 20 63 | 75 72 73 6f 72 20 28 61 |of the c|ursor (a|
|00000b80| 6e 64 20 68 65 6e 63 65 | 20 74 68 65 20 73 70 69 |nd hence| the spi|
|00000b90| 6e 20 64 69 72 65 63 74 | 69 6f 6e 20 6f 66 20 74 |n direct|ion of t|
|00000ba0| 68 65 20 63 75 72 73 6f | 72 29 2e 0d 2a 2f 0d 0d |he curso|r)..*/..|
|00000bb0| 65 78 74 65 72 6e 20 70 | 61 73 63 61 6c 20 76 6f |extern p|ascal vo|
|00000bc0| 69 64 20 48 69 64 65 5f | 43 75 72 73 6f 72 28 29 |id Hide_|Cursor()|
|00000bd0| 3b 2f 2a 0d 0d 09 48 69 | 64 65 73 20 74 68 65 20 |;/*...Hi|des the |
|00000be0| 63 75 72 72 65 6e 74 20 | 63 68 61 72 61 63 74 65 |current |characte|
|00000bf0| 72 20 6f 66 20 74 68 65 | 20 73 70 69 6e 6e 69 6e |r of the| spinnin|
|00000c00| 67 20 63 75 72 73 6f 72 | 2e 20 20 55 73 65 20 74 |g cursor|. Use t|
|00000c10| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 77 68 65 6e |his rout|ine when|
|00000c20| 20 79 6f 75 20 77 69 73 | 68 20 74 6f 0d 09 72 65 | you wis|h to..re|
|00000c30| 76 65 72 74 20 74 6f 20 | 74 68 65 20 73 74 61 6e |vert to |the stan|
|00000c40| 64 61 72 64 20 69 6e 76 | 65 72 73 65 20 73 70 61 |dard inv|erse spa|
|00000c50| 63 65 20 63 75 72 73 6f | 72 2e 0d 2a 2f 0d 0d 2f |ce curso|r..*/../|
|00000c60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 09 45 |********|****...E|
|00000ca0| 72 72 4d 67 72 2e 68 20 | 2d 20 2f 2f 47 53 20 65 |rrMgr.h |- //GS e|
|00000cb0| 71 75 69 76 61 6c 65 6e | 74 20 6f 66 20 74 68 65 |quivalen|t of the|
|00000cc0| 20 4d 50 57 20 45 72 72 | 6f 72 20 4d 61 6e 61 67 | MPW Err|or Manag|
|00000cd0| 65 72 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |er..****|********|
|00000ce0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000cf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d10| 2f 0d 0d 65 78 74 65 72 | 6e 20 76 6f 69 64 20 49 |/..exter|n void I|
|00000d20| 6e 69 74 45 72 72 4d 67 | 72 28 2f 2a 20 74 6f 6f |nitErrMg|r(/* too|
|00000d30| 6c 45 72 72 46 69 6c 65 | 6e 61 6d 65 2c 20 73 79 |lErrFile|name, sy|
|00000d40| 73 45 72 72 46 69 6c 65 | 6e 61 6d 65 2c 20 73 68 |sErrFile|name, sh|
|00000d50| 6f 77 54 6f 6f 6c 45 72 | 72 4e 62 72 73 20 2a 2f |owToolEr|rNbrs */|
|00000d60| 29 3b 0d 2f 2a 09 63 68 | 61 72 09 2a 74 6f 6f 6c |);./*.ch|ar.*tool|
|00000d70| 45 72 72 46 69 6c 65 6e | 61 6d 65 3b 0d 09 63 68 |ErrFilen|ame;..ch|
|00000d80| 61 72 09 2a 73 79 73 45 | 72 72 46 69 6c 65 6e 61 |ar.*sysE|rrFilena|
|00000d90| 6d 65 3b 0d 09 62 6f 6f | 6c 65 61 6e 09 73 68 6f |me;..boo|lean.sho|
|00000da0| 77 54 6f 6f 6c 45 72 72 | 4e 62 72 73 3b 0d 0d 09 |wToolErr|Nbrs;...|
|00000db0| 49 6e 69 74 69 61 6c 69 | 7a 65 73 20 74 68 65 20 |Initiali|zes the |
|00000dc0| 65 72 72 6f 72 20 6d 61 | 6e 61 67 65 72 2e 20 20 |error ma|nager. |
|00000dd0| 49 66 20 74 6f 6f 6c 45 | 72 72 46 69 6c 65 6e 61 |If toolE|rrFilena|
|00000de0| 6d 65 20 69 73 20 6e 6f | 74 20 6e 75 6c 6c 2c 20 |me is no|t null, |
|00000df0| 74 68 69 73 20 77 69 6c | 6c 20 6f 70 65 6e 20 74 |this wil|l open t|
|00000e00| 68 65 20 72 65 73 6f 75 | 72 63 65 20 66 6f 72 6b |he resou|rce fork|
|00000e10| 0d 09 6f 66 20 74 68 61 | 74 20 66 69 6c 65 20 74 |..of tha|t file t|
|00000e20| 6f 20 61 6c 6c 6f 77 20 | 61 63 63 65 73 73 20 74 |o allow |access t|
|00000e30| 6f 20 74 6f 6f 6c 2d 73 | 70 65 63 69 66 69 63 20 |o tool-s|pecific |
|00000e40| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 73 2e 20 |error me|ssages. |
|00000e50| 20 49 66 20 73 79 73 45 | 72 72 46 69 6c 65 6e 61 | If sysE|rrFilena|
|00000e60| 6d 65 20 69 73 20 6e 6f | 74 20 6e 75 6c 6c 2c 0d |me is no|t null,.|
|00000e70| 09 74 68 69 73 20 77 69 | 6c 6c 20 6f 70 65 6e 20 |.this wi|ll open |
|00000e80| 74 68 65 20 72 65 73 6f | 75 72 63 65 20 66 6f 72 |the reso|urce for|
|00000e90| 6b 20 6f 66 20 74 68 61 | 74 20 66 69 6c 65 20 69 |k of tha|t file i|
|00000ea0| 6e 73 74 65 61 64 20 6f | 66 20 74 68 65 20 73 74 |nstead o|f the st|
|00000eb0| 61 6e 64 61 72 64 20 41 | 50 57 20 65 72 72 6f 72 |andard A|PW error|
|00000ec0| 20 6d 65 73 73 61 67 65 | 20 66 69 6c 65 2e 0d 09 | message| file...|
|00000ed0| 49 66 20 73 68 6f 77 54 | 6f 6f 6c 45 72 72 4e 62 |If showT|oolErrNb|
|00000ee0| 72 73 20 69 73 20 54 52 | 55 45 2c 20 74 68 65 6e |rs is TR|UE, then|
|00000ef0| 20 61 6e 79 20 63 61 6c | 6c 20 74 6f 20 47 65 74 | any cal|l to Get|
|00000f00| 53 79 73 45 72 72 54 65 | 78 74 20 77 69 6c 6c 20 |SysErrTe|xt will |
|00000f10| 73 68 6f 77 20 74 68 65 | 20 64 65 63 69 6d 61 6c |show the| decimal|
|00000f20| 20 61 6e 64 20 68 65 78 | 61 64 65 63 69 6d 61 6c | and hex|adecimal|
|00000f30| 0d 09 65 72 72 6f 72 20 | 6e 75 6d 62 65 72 20 69 |..error |number i|
|00000f40| 6e 20 70 61 72 65 6e 74 | 68 65 73 65 73 20 61 66 |n parent|heses af|
|00000f50| 74 65 72 20 74 68 65 20 | 74 65 78 74 20 6f 66 20 |ter the |text of |
|00000f60| 74 68 65 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |the erro|r messag|
|00000f70| 65 2e 20 20 49 66 20 74 | 68 69 73 20 69 73 20 66 |e. If t|his is f|
|00000f80| 61 6c 73 65 2c 20 61 6c | 6c 20 74 68 61 74 0d 09 |alse, al|l that..|
|00000f90| 47 65 74 53 79 73 45 72 | 72 54 65 78 74 20 77 69 |GetSysEr|rText wi|
|00000fa0| 6c 6c 20 70 72 6f 76 69 | 64 65 20 69 73 20 74 68 |ll provi|de is th|
|00000fb0| 65 20 74 65 78 74 20 6f | 66 20 74 68 65 20 6d 65 |e text o|f the me|
|00000fc0| 73 73 61 67 65 2e 0d 09 | 0d 09 54 6f 20 75 73 65 |ssage...|..To use|
|00000fd0| 20 74 68 65 20 65 72 72 | 6f 72 20 6d 61 6e 61 67 | the err|or manag|
|00000fe0| 65 72 2c 20 79 6f 75 72 | 20 74 6f 6f 6c 20 6d 75 |er, your| tool mu|
|00000ff0| 73 74 20 73 74 61 72 74 | 20 75 70 20 74 68 65 20 |st start| up the |
|00001000| 52 65 73 6f 75 72 63 65 | 20 4d 61 6e 61 67 65 72 |Resource| Manager|
|00001010| 20 70 72 69 6f 72 20 74 | 6f 20 63 61 6c 6c 69 6e | prior t|o callin|
|00001020| 67 0d 09 49 6e 69 74 45 | 72 72 4d 67 72 2e 20 20 |g..InitE|rrMgr. |
|00001030| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 77 69 |This fun|ction wi|
|00001040| 6c 6c 20 4e 4f 54 20 64 | 6f 20 69 74 20 66 6f 72 |ll NOT d|o it for|
|00001050| 20 79 6f 75 2e 0d 2a 2f | 0d 0d 65 78 74 65 72 6e | you..*/|..extern|
|00001060| 20 76 6f 69 64 20 43 6c | 6f 73 65 45 72 72 4d 67 | void Cl|oseErrMg|
|00001070| 72 28 29 3b 0d 2f 2a 0d | 09 54 68 69 73 20 73 69 |r();./*.|.This si|
|00001080| 6d 70 6c 79 20 63 6c 6f | 73 65 73 20 61 6e 79 20 |mply clo|ses any |
|00001090| 72 65 73 6f 75 72 63 65 | 73 20 66 69 6c 65 73 20 |resource|s files |
|000010a0| 6f 70 65 6e 65 64 20 62 | 79 20 49 6e 69 74 45 72 |opened b|y InitEr|
|000010b0| 72 4d 67 72 2e 20 20 49 | 74 20 69 73 20 6e 6f 74 |rMgr. I|t is not|
|000010c0| 20 61 62 73 6f 6c 75 74 | 65 6c 79 20 72 65 71 75 | absolut|ely requ|
|000010d0| 69 72 65 64 20 74 68 61 | 74 0d 09 79 6f 75 20 63 |ired tha|t..you c|
|000010e0| 61 6c 6c 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |all this| functio|
|000010f0| 6e 20 70 72 69 6f 72 20 | 74 6f 20 65 78 69 74 69 |n prior |to exiti|
|00001100| 6e 67 20 79 6f 75 72 20 | 74 6f 6f 6c 2c 20 62 75 |ng your |tool, bu|
|00001110| 74 20 69 74 20 69 73 20 | 61 76 61 69 6c 61 62 6c |t it is |availabl|
|00001120| 65 2e 20 20 49 66 20 69 | 74 20 69 73 20 6e 6f 74 |e. If i|t is not|
|00001130| 20 63 61 6c 6c 65 64 2c | 20 74 68 65 0d 09 52 65 | called,| the..Re|
|00001140| 73 6f 75 72 63 65 20 4d | 61 6e 61 67 65 72 20 77 |source M|anager w|
|00001150| 69 6c 6c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ill auto|maticall|
|00001160| 79 20 63 6c 6f 73 65 20 | 61 6e 79 20 66 69 6c 65 |y close |any file|
|00001170| 73 20 6f 70 65 6e 65 64 | 2e 20 20 59 6f 75 20 6d |s opened|. You m|
|00001180| 75 73 74 20 73 68 75 74 | 64 6f 77 6e 20 74 68 65 |ust shut|down the|
|00001190| 20 52 65 73 6f 75 72 63 | 65 0d 09 4d 61 6e 61 67 | Resourc|e..Manag|
|000011a0| 65 72 20 79 6f 75 72 73 | 65 6c 66 2e 0d 2a 2f 0d |er yours|elf..*/.|
|000011b0| 0d 65 78 74 65 72 6e 20 | 63 68 61 72 20 2a 47 65 |.extern |char *Ge|
|000011c0| 74 53 79 73 45 72 72 54 | 65 78 74 28 2f 2a 20 65 |tSysErrT|ext(/* e|
|000011d0| 72 72 4e 62 72 2c 65 72 | 72 4d 73 67 20 2a 2f 29 |rrNbr,er|rMsg */)|
|000011e0| 3b 0d 2f 2a 09 75 6e 73 | 69 67 6e 65 64 09 65 72 |;./*.uns|igned.er|
|000011f0| 72 4e 62 72 3b 0d 09 53 | 74 72 69 6e 67 50 74 72 |rNbr;..S|tringPtr|
|00001200| 09 65 72 72 4d 73 67 3b | 0d 0d 09 47 65 74 53 79 |.errMsg;|...GetSy|
|00001210| 73 45 72 72 54 65 78 74 | 20 70 65 72 66 6f 72 6d |sErrText| perform|
|00001220| 73 20 61 20 72 65 73 6f | 75 72 63 65 20 6c 6f 6f |s a reso|urce loo|
|00001230| 6b 75 70 20 66 6f 72 20 | 74 68 65 20 73 75 70 70 |kup for |the supp|
|00001240| 6c 69 65 64 20 65 72 72 | 4e 62 72 2e 20 20 49 74 |lied err|Nbr. It|
|00001250| 20 64 6f 65 73 20 74 68 | 69 73 20 62 79 20 63 61 | does th|is by ca|
|00001260| 6c 63 75 6c 61 74 69 6e | 67 0d 09 77 68 69 63 68 |lculatin|g..which|
|00001270| 20 72 65 73 6f 75 72 63 | 65 20 6e 75 6d 62 65 72 | resourc|e number|
|00001280| 20 74 6f 20 75 73 65 20 | 66 72 6f 6d 20 74 68 65 | to use |from the|
|00001290| 20 73 79 73 74 65 6d 20 | 72 65 73 6f 75 72 63 65 | system |resource|
|000012a0| 20 66 69 6c 65 20 6f 72 | 20 74 68 65 20 74 6f 6f | file or| the too|
|000012b0| 6c 2d 73 70 65 63 69 66 | 69 63 20 65 72 72 6f 72 |l-specif|ic error|
|000012c0| 20 66 69 6c 65 2e 20 20 | 0d 0d 09 54 68 65 20 66 | file. |...The f|
|000012d0| 75 6e 63 74 69 6f 6e 20 | 70 6c 61 63 65 73 20 74 |unction |places t|
|000012e0| 68 65 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |he error| message|
|000012f0| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 62 75 66 | text in| the buf|
|00001300| 66 65 72 20 70 6f 69 6e | 74 65 64 20 74 6f 20 62 |fer poin|ted to b|
|00001310| 79 20 65 72 72 4d 73 67 | 2c 20 61 6e 64 20 61 6c |y errMsg|, and al|
|00001320| 73 6f 20 72 65 74 75 72 | 6e 73 0d 09 61 20 70 6f |so retur|ns..a po|
|00001330| 69 6e 74 65 72 20 74 6f | 20 61 20 73 74 61 6e 64 |inter to| a stand|
|00001340| 61 72 64 20 43 20 73 74 | 72 69 6e 67 20 72 65 70 |ard C st|ring rep|
|00001350| 72 65 73 65 6e 74 69 6e | 67 20 74 68 65 20 65 72 |resentin|g the er|
|00001360| 72 6f 72 20 6d 65 73 73 | 61 67 65 20 61 73 73 6f |ror mess|age asso|
|00001370| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00001380| 67 69 76 65 6e 20 65 72 | 72 6f 72 0d 09 6e 75 6d |given er|ror..num|
|00001390| 62 65 72 2e 20 20 49 66 | 20 74 68 65 72 65 20 69 |ber. If| there i|
|000013a0| 73 20 6d 65 73 73 61 67 | 65 20 74 65 78 74 20 61 |s messag|e text a|
|000013b0| 76 61 69 6c 61 62 6c 65 | 20 66 6f 72 20 74 68 65 |vailable| for the|
|000013c0| 20 67 69 76 65 6e 20 65 | 72 72 6f 72 20 6e 75 6d | given e|rror num|
|000013d0| 62 65 72 2c 20 74 68 65 | 20 73 74 72 69 6e 67 20 |ber, the| string |
|000013e0| 77 69 6c 6c 20 68 61 76 | 65 0d 09 74 68 65 20 66 |will hav|e..the f|
|000013f0| 6f 6c 6c 6f 77 69 6e 67 | 20 66 6f 72 6d 61 74 3a |ollowing| format:|
|00001400| 0d 0d 09 09 23 23 23 20 | 7b 74 6f 6f 6c 20 6e 61 |....### |{tool na|
|00001410| 6d 65 7d 3a 20 7b 6d 65 | 73 73 61 67 65 20 74 65 |me}: {me|ssage te|
|00001420| 78 74 7d 0d 09 0d 09 49 | 66 20 6e 6f 20 73 70 65 |xt}....I|f no spe|
|00001430| 63 69 66 69 63 20 6d 65 | 73 73 61 67 65 20 69 73 |cific me|ssage is|
|00001440| 20 61 76 61 69 6c 61 62 | 6c 65 2c 20 74 68 65 20 | availab|le, the |
|00001450| 73 74 72 69 6e 67 20 77 | 69 6c 6c 20 68 61 76 65 |string w|ill have|
|00001460| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 | the fol|lowing f|
|00001470| 6f 72 6d 61 74 3a 0d 0d | 09 09 23 23 23 20 7b 74 |ormat:..|..### {t|
|00001480| 6f 6f 6c 20 6e 61 6d 65 | 7d 3a 20 45 72 72 6f 72 |ool name|}: Error|
|00001490| 20 7b 64 65 63 69 6d 61 | 6c 20 65 72 72 6f 72 20 | {decima|l error |
|000014a0| 6e 75 6d 62 65 72 7d 20 | 28 24 78 78 78 78 29 0d |number} |($xxxx).|
|000014b0| 0d 09 77 68 65 72 65 20 | 24 78 78 78 78 20 69 73 |..where |$xxxx is|
|000014c0| 20 74 68 65 20 68 65 78 | 61 64 65 63 69 6d 61 6c | the hex|adecimal|
|000014d0| 20 65 72 72 6f 72 20 63 | 6f 64 65 2e 0d 2a 2f 0d | error c|ode..*/.|
|000014e0| 0d 2f 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |./******|********|
|000014f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001500| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 0d |********|******..|
|00001520| 09 67 73 53 74 72 69 6e | 67 2e 68 20 2d 20 68 65 |.gsStrin|g.h - he|
|00001530| 61 64 65 72 20 66 69 6c | 65 20 66 6f 72 20 47 53 |ader fil|e for GS|
|00001540| 2f 4f 53 20 73 74 72 69 | 6e 67 20 73 75 70 70 6f |/OS stri|ng suppo|
|00001550| 72 74 20 66 75 6e 63 74 | 69 6f 6e 73 0d 0d 2a 2a |rt funct|ions..**|
|00001560| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001570| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001580| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001590| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 23 69 66 |********|**/..#if|
|000015a0| 64 65 66 09 5f 5f 47 53 | 4f 53 5f 5f 0d 0d 65 78 |def.__GS|OS__..ex|
|000015b0| 74 65 72 6e 09 47 53 53 | 74 72 69 6e 67 32 35 35 |tern.GSS|tring255|
|000015c0| 09 2a 63 32 67 73 73 74 | 72 28 2f 2a 20 73 74 72 |.*c2gsst|r(/* str|
|000015d0| 2c 20 70 61 74 68 47 53 | 20 2a 2f 29 3b 0d 2f 2a |, pathGS| */);./*|
|000015e0| 09 63 68 61 72 09 09 2a | 73 74 72 3b 0d 09 47 53 |.char..*|str;..GS|
|000015f0| 53 74 72 69 6e 67 32 35 | 35 09 2a 70 61 74 68 47 |String25|5.*pathG|
|00001600| 53 3b 0d 09 0d 09 54 68 | 69 73 20 66 75 6e 63 74 |S;....Th|is funct|
|00001610| 69 6f 6e 20 61 63 63 65 | 70 74 73 20 61 20 6e 75 |ion acce|pts a nu|
|00001620| 6c 6c 20 74 65 72 6d 69 | 6e 61 74 65 64 20 43 20 |ll termi|nated C |
|00001630| 73 74 72 69 6e 67 20 61 | 6e 64 20 63 6f 70 69 65 |string a|nd copie|
|00001640| 73 20 69 74 20 74 6f 20 | 61 0d 09 47 53 2f 4f 53 |s it to |a..GS/OS|
|00001650| 2d 73 74 79 6c 65 20 73 | 74 72 69 6e 67 20 28 6c |-style s|tring (l|
|00001660| 65 6e 67 74 68 20 77 6f | 72 64 20 66 6f 6c 6c 6f |ength wo|rd follo|
|00001670| 77 65 64 20 62 79 20 74 | 68 65 20 63 68 61 72 61 |wed by t|he chara|
|00001680| 63 74 65 72 73 20 6f 66 | 20 74 68 65 20 73 74 72 |cters of| the str|
|00001690| 69 6e 67 29 2e 0d 09 4f | 6e 20 72 65 74 75 72 6e |ing)...O|n return|
|000016a0| 2c 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 72 |, the fu|nction r|
|000016b0| 65 74 75 72 6e 73 20 74 | 68 65 20 70 6f 69 6e 74 |eturns t|he point|
|000016c0| 65 72 20 74 6f 20 74 68 | 65 20 70 61 74 68 6e 61 |er to th|e pathna|
|000016d0| 6d 65 20 73 74 72 75 63 | 74 75 72 65 0d 2a 2f 0d |me struc|ture.*/.|
|000016e0| 0d 65 78 74 65 72 6e 09 | 63 68 61 72 20 2a 67 73 |.extern.|char *gs|
|000016f0| 32 63 73 74 72 28 2f 2a | 20 70 61 74 68 47 53 2c |2cstr(/*| pathGS,|
|00001700| 20 73 74 72 20 2a 2f 29 | 3b 0d 2f 2a 09 47 53 53 | str */)|;./*.GSS|
|00001710| 74 72 69 6e 67 32 35 35 | 09 70 61 74 68 47 53 3b |tring255|.pathGS;|
|00001720| 0d 09 63 68 61 72 09 09 | 2a 73 74 72 3b 0d 09 0d |..char..|*str;...|
|00001730| 09 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 63 |.This fu|nction c|
|00001740| 6f 6e 76 65 72 74 73 20 | 61 20 47 53 2f 4f 53 2d |onverts |a GS/OS-|
|00001750| 73 74 79 6c 65 20 73 74 | 72 69 6e 67 20 28 77 6f |style st|ring (wo|
|00001760| 72 64 20 6c 65 6e 67 74 | 68 20 66 6f 6c 6c 6f 77 |rd lengt|h follow|
|00001770| 65 64 20 62 79 20 74 68 | 65 0d 09 63 68 61 72 61 |ed by th|e..chara|
|00001780| 63 74 65 72 73 20 6f 66 | 20 74 68 65 20 73 74 72 |cters of| the str|
|00001790| 69 6e 67 29 20 74 6f 20 | 61 20 6e 6f 72 6d 61 6c |ing) to |a normal|
|000017a0| 2c 20 6e 75 6c 6c 20 74 | 65 72 6d 69 6e 61 74 65 |, null t|erminate|
|000017b0| 64 20 43 20 73 74 72 69 | 6e 67 2e 20 20 4f 6e 20 |d C stri|ng. On |
|000017c0| 65 78 69 74 0d 09 69 74 | 20 72 65 74 75 72 6e 73 |exit..it| returns|
|000017d0| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 | a point|er to th|
|000017e0| 65 20 73 74 72 69 6e 67 | 20 28 77 68 69 63 68 20 |e string| (which |
|000017f0| 69 73 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |is the s|ame as t|
|00001800| 68 61 74 20 73 70 65 63 | 69 66 69 65 64 0d 09 6f |hat spec|ified..o|
|00001810| 6e 20 65 6e 74 72 79 29 | 2e 0d 2a 2f 0d 0d 65 78 |n entry)|..*/..ex|
|00001820| 74 65 72 6e 20 76 6f 69 | 64 20 63 6f 6c 6f 6e 69 |tern voi|d coloni|
|00001830| 7a 65 28 2f 2a 20 66 69 | 6c 65 4e 61 6d 65 20 2a |ze(/* fi|leName *|
|00001840| 2f 29 3b 0d 2f 2a 09 63 | 68 61 72 09 2a 66 69 6c |/);./*.c|har.*fil|
|00001850| 65 4e 61 6d 65 3b 0d 0d | 09 6e 6f 72 6d 61 6c 69 |eName;..|.normali|
|00001860| 7a 65 73 20 61 20 66 69 | 6c 65 6e 61 6d 65 20 73 |zes a fi|lename s|
|00001870| 74 72 69 6e 67 20 73 6f | 20 74 68 61 74 20 69 74 |tring so| that it|
|00001880| 20 63 6f 6e 74 61 69 6e | 73 20 6f 6e 6c 79 20 63 | contain|s only c|
|00001890| 6f 6c 6f 6e 73 20 61 73 | 20 70 61 74 68 6e 61 6d |olons as| pathnam|
|000018a0| 65 0d 09 73 65 70 61 72 | 61 74 6f 72 73 2e 20 20 |e..separ|ators. |
|000018b0| 49 66 20 74 68 65 72 65 | 20 61 72 65 20 6e 6f 20 |If there| are no |
|000018c0| 73 65 70 61 72 61 74 6f | 72 73 20 69 6e 20 74 68 |separato|rs in th|
|000018d0| 65 20 66 69 6c 65 6e 61 | 6d 65 2c 20 74 68 65 20 |e filena|me, the |
|000018e0| 6e 61 6d 65 20 69 73 20 | 6c 65 66 74 0d 09 75 6e |name is |left..un|
|000018f0| 63 68 61 6e 67 65 64 2e | 20 20 49 66 20 74 68 65 |changed.| If the|
|00001900| 20 66 69 6c 65 6e 61 6d | 65 20 63 6f 6e 74 61 69 | filenam|e contai|
|00001910| 6e 73 20 6e 6f 20 73 6c | 61 73 68 65 73 2c 20 74 |ns no sl|ashes, t|
|00001920| 68 65 20 66 69 6c 65 6e | 61 6d 65 20 69 73 20 6c |he filen|ame is l|
|00001930| 65 66 74 0d 09 75 6e 63 | 68 61 6e 67 65 64 2e 0d |eft..unc|hanged..|
|00001940| 2a 2f 0d 23 65 6e 64 69 | 66 0d 0d 2f 2a 2a 2a 2a |*/.#endi|f../****|
|00001950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001980| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 70 61 75 73 65 |********|...pause|
|00001990| 2e 68 20 2d 20 68 65 61 | 64 65 72 20 66 69 6c 65 |.h - hea|der file|
|000019a0| 20 66 6f 72 20 41 50 57 | 2d 63 6f 6d 70 61 74 69 | for APW|-compati|
|000019b0| 62 6c 65 20 70 61 75 73 | 65 20 66 75 6e 63 74 69 |ble paus|e functi|
|000019c0| 6f 6e 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |on..****|********|
|000019d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000019e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000019f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001a00| 2f 0d 0d 65 78 74 65 72 | 6e 20 69 6e 74 20 70 61 |/..exter|n int pa|
|00001a10| 75 73 65 28 29 3b 0d 2f | 2a 0d 09 54 68 69 73 20 |use();./|*..This |
|00001a20| 66 75 6e 63 74 69 6f 6e | 20 73 68 6f 75 6c 64 20 |function| should |
|00001a30| 62 65 20 63 61 6c 6c 65 | 64 20 70 65 72 69 6f 64 |be calle|d period|
|00001a40| 69 63 61 6c 6c 79 20 62 | 79 20 61 6e 20 41 50 57 |ically b|y an APW|
|00001a50| 20 74 6f 6f 6c 20 74 6f | 20 63 68 65 63 6b 20 66 | tool to| check f|
|00001a60| 6f 72 0d 09 61 20 70 65 | 6e 64 69 6e 67 20 6b 65 |or..a pe|nding ke|
|00001a70| 79 70 72 65 73 73 20 61 | 6e 64 2f 6f 72 20 63 6f |ypress a|nd/or co|
|00001a80| 6d 6d 61 6e 64 2d 2e 20 | 28 61 62 6f 72 74 20 73 |mmand-. |(abort s|
|00001a90| 69 67 6e 61 6c 29 2e 20 | 20 49 66 20 74 68 65 20 |ignal). | If the |
|00001aa0| 63 6f 6d 6d 61 6e 64 2d | 2e 0d 09 6b 65 79 70 72 |command-|...keypr|
|00001ab0| 65 73 73 20 69 73 20 70 | 65 6e 64 69 6e 67 2c 20 |ess is p|ending, |
|00001ac0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |the func|tion wil|
|00001ad0| 6c 20 72 65 74 75 72 6e | 20 61 20 6e 6f 6e 2d 7a |l return| a non-z|
|00001ae0| 65 72 6f 20 76 61 6c 75 | 65 0d 09 28 73 69 67 6e |ero valu|e..(sign|
|00001af0| 69 66 79 69 6e 67 20 54 | 52 55 45 29 2e 20 20 49 |ifying T|RUE). I|
|00001b00| 66 20 61 6e 79 20 6f 74 | 68 65 72 20 6b 65 79 70 |f any ot|her keyp|
|00001b10| 72 65 73 73 20 69 73 20 | 70 65 6e 64 69 6e 67 2c |ress is |pending,|
|00001b20| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 0d 09 77 | the fun|ction..w|
|00001b30| 69 6c 6c 20 64 69 73 70 | 6c 61 79 20 61 6e 20 68 |ill disp|lay an h|
|00001b40| 6f 75 72 67 6c 61 73 73 | 20 63 68 61 72 61 63 74 |ourglass| charact|
|00001b50| 65 72 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |er on th|e screen|
|00001b60| 20 61 6e 64 20 70 61 75 | 73 65 20 75 6e 74 69 6c | and pau|se until|
|00001b70| 0d 09 61 6e 6f 74 68 65 | 72 20 6b 65 79 20 69 73 |..anothe|r key is|
|00001b80| 20 70 72 65 73 73 65 64 | 2e 0d 09 0d 09 54 68 65 | pressed|.....The|
|00001b90| 20 76 61 6c 75 65 20 72 | 65 74 75 72 6e 65 64 20 | value r|eturned |
|00001ba0| 69 73 20 65 69 74 68 65 | 72 20 6e 6f 6e 2d 7a 65 |is eithe|r non-ze|
|00001bb0| 72 6f 20 28 54 52 55 45 | 29 2c 20 69 6e 64 69 63 |ro (TRUE|), indic|
|00001bc0| 61 74 69 6e 67 20 74 68 | 61 74 20 63 6f 6d 6d 61 |ating th|at comma|
|00001bd0| 6e 64 2d 2e 0d 09 68 61 | 73 20 62 65 65 6e 20 70 |nd-...ha|s been p|
|00001be0| 72 65 73 73 65 64 20 61 | 6e 64 20 74 68 65 20 74 |ressed a|nd the t|
|00001bf0| 6f 6f 6c 20 73 68 6f 75 | 6c 64 20 61 62 6f 72 74 |ool shou|ld abort|
|00001c00| 2c 20 6f 72 20 30 20 28 | 66 61 6c 73 65 29 2c 20 |, or 0 (|false), |
|00001c10| 69 6e 64 69 63 61 74 69 | 6e 67 0d 09 74 68 61 74 |indicati|ng..that|
|00001c20| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 73 68 6f 75 | process|ing shou|
|00001c30| 6c 64 20 70 72 6f 63 65 | 65 64 2e 0d 2a 2f 0d 0d |ld proce|ed..*/..|
|00001c40| 65 78 74 65 72 6e 20 69 | 6e 74 20 77 61 69 74 28 |extern i|nt wait(|
|00001c50| 29 3b 0d 2f 2a 0d 09 54 | 68 69 73 20 66 75 6e 63 |);./*..T|his func|
|00001c60| 74 69 6f 6e 20 6f 70 65 | 72 61 74 65 73 20 73 69 |tion ope|rates si|
|00001c70| 6d 69 6c 61 72 6c 79 20 | 74 6f 20 74 68 65 20 70 |milarly |to the p|
|00001c80| 61 75 73 65 28 29 20 66 | 75 6e 63 74 69 6f 6e 2c |ause() f|unction,|
|00001c90| 20 65 78 63 65 70 74 20 | 74 68 61 74 0d 09 69 74 | except |that..it|
|00001ca0| 20 66 6f 72 63 65 73 20 | 61 20 6b 65 79 70 72 65 | forces |a keypre|
|00001cb0| 73 73 20 70 72 69 6f 72 | 20 74 6f 20 72 65 74 75 |ss prior| to retu|
|00001cc0| 72 6e 69 6e 67 20 74 6f | 20 74 68 65 20 63 61 6c |rning to| the cal|
|00001cd0| 6c 65 72 2e 20 20 54 68 | 61 74 20 69 73 2c 20 69 |ler. Th|at is, i|
|00001ce0| 74 0d 09 77 61 69 74 73 | 20 69 6e 20 61 20 6c 6f |t..waits| in a lo|
|00001cf0| 6f 70 20 75 6e 74 69 6c | 20 61 20 6b 65 79 70 72 |op until| a keypr|
|00001d00| 65 73 73 20 6f 63 63 75 | 72 73 2e 20 20 54 68 65 |ess occu|rs. The|
|00001d10| 20 76 61 6c 75 65 73 20 | 72 65 74 75 72 6e 65 64 | values |returned|
|00001d20| 20 61 72 65 20 74 68 65 | 20 0d 09 73 61 6d 65 20 | are the| ..same |
|00001d30| 61 73 20 64 65 73 63 72 | 69 62 65 64 20 66 6f 72 |as descr|ibed for|
|00001d40| 20 74 68 65 20 70 61 75 | 73 65 28 29 20 66 75 6e | the pau|se() fun|
|00001d50| 63 74 69 6f 6e 2e 0d 2a | 2f 0d 23 65 6e 64 69 66 |ction..*|/.#endif|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001d90| 00 01 00 0c 00 00 00 01 | 07 00 00 01 00 01 00 00 |........|........|
|00001da0| 00 0c 00 01 00 00 31 00 | 00 00 00 00 00 00 00 54 |......1.|.......T|
|00001db0| 09 54 6f 6f 6c 4c 69 62 | 2e 68 02 00 00 00 54 45 |.ToolLib|.h....TE|
|00001dc0| 58 54 4d 50 53 20 01 00 | ff ff ff ff 00 00 00 00 |XTMPS ..|........|
|00001dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 a0 bd f8 a9 00 00 | 1c e0 00 00 01 1e 6f 72 |........|......or|
|00001e00| 40 00 08 08 00 2b 0f 98 | 71 75 61 6c 20 69 6e 20 |@....+..|qual in |
|00001e10| 64 61 74 61 20 66 6f 72 | 6b 20 28 31 34 34 37 20 |data for|k (1447 |
|00001e20| 62 79 74 65 73 29 2e 0d | 22 53 65 74 4a 6d 70 2e |bytes)..|"SetJmp.|
|00001e30| 68 22 20 22 53 45 54 4a | 4d 50 2e 48 22 20 61 72 |h" "SETJ|MP.H" ar|
|00001e40| 65 20 65 71 75 61 6c 20 | 69 6e 20 64 61 74 61 20 |e equal |in data |
|00001e50| 66 6f 72 6b 20 28 31 34 | 38 20 62 79 74 65 73 29 |fork (14|8 bytes)|
|00001e60| 2e 0d 22 53 68 65 6c 6c | 2e 68 22 20 22 53 48 45 |.."Shell|.h" "SHE|
|00001e70| 4c 4c 2e 48 22 20 61 72 | 65 20 65 71 75 61 6c 20 |LL.H" ar|e equal |
|00001e80| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+