home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-08-27 | 4.8 KB | [TEXT/KAHL] |
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
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Aug 27 05:56:18 1990, modified Mon Aug 27 05:56:18 1990, creator Think C, type ASCII, 4295 bytes "ErrorString.c" , at 0x1147 348 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 | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 45 72 72 6f 72 53 | 74 72 69 6e 67 2e 63 00 |..ErrorS|tring.c.|
|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 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 10 c7 00 | 00 01 5c a2 fe 9e c2 a2 |........|..\.....|
|00000060| fe 9e c2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 67 9f 00 00 |........|....g...|
|00000080| 2f 2a 0d 43 6f 70 79 72 | 69 67 68 74 20 a9 20 31 |/*.Copyr|ight . 1|
|00000090| 39 39 30 20 41 72 69 20 | 49 2e 20 48 61 6c 62 65 |990 Ari |I. Halbe|
|000000a0| 72 73 74 61 64 74 0d 0d | 54 68 69 73 20 66 69 6c |rstadt..|This fil|
|000000b0| 65 20 69 73 20 70 61 72 | 74 20 6f 66 20 61 20 66 |e is par|t of a f|
|000000c0| 72 65 65 20 70 72 6f 67 | 72 61 6d 2e 20 46 6f 72 |ree prog|ram. For|
|000000d0| 20 70 72 65 63 69 73 65 | 20 74 65 72 6d 73 20 6f | precise| terms o|
|000000e0| 66 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 0d 61 |f distri|bution.a|
|000000f0| 6e 64 20 75 73 65 20 70 | 6c 65 61 73 65 20 73 65 |nd use p|lease se|
|00000100| 65 20 74 68 65 20 66 69 | 6c 65 73 20 69 6e 20 74 |e the fi|les in t|
|00000110| 68 65 20 66 6f 6c 64 65 | 72 20 d2 4c 65 67 61 6c |he folde|r .Legal|
|00000120| d3 20 61 63 63 6f 6d 70 | 61 6e 79 69 6e 67 20 74 |. accomp|anying t|
|00000130| 68 69 73 0d 73 6f 66 74 | 77 61 72 65 2e 20 49 66 |his.soft|ware. If|
|00000140| 20 79 6f 75 20 6d 61 6b | 65 20 61 6e 79 20 6d 6f | you mak|e any mo|
|00000150| 64 69 66 69 63 61 74 69 | 6f 6e 73 20 74 6f 20 74 |dificati|ons to t|
|00000160| 68 69 73 20 66 69 6c 65 | 20 79 6f 75 20 6d 75 73 |his file| you mus|
|00000170| 74 20 61 64 64 20 74 68 | 65 0d 64 61 74 65 2c 20 |t add th|e.date, |
|00000180| 79 6f 75 72 20 6e 61 6d | 65 2c 20 61 6e 64 20 61 |your nam|e, and a|
|00000190| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|000001a0| 77 68 61 74 20 79 6f 75 | 20 68 61 76 65 20 64 6f |what you| have do|
|000001b0| 6e 65 20 74 6f 20 74 68 | 65 0d 72 65 76 69 73 69 |ne to th|e.revisi|
|000001c0| 6f 6e 20 68 69 73 74 6f | 72 79 20 62 65 6c 6f 77 |on histo|ry below|
|000001d0| 2e 20 54 68 69 73 20 6e | 6f 74 69 63 65 20 61 6e |. This n|otice an|
|000001e0| 64 20 74 68 65 20 63 6f | 70 79 72 69 67 68 74 20 |d the co|pyright |
|000001f0| 6e 6f 74 69 63 65 20 6d | 75 73 74 0d 72 65 6d 61 |notice m|ust.rema|
|00000200| 69 6e 20 69 6e 74 61 63 | 74 20 69 6e 20 61 6c 6c |in intac|t in all|
|00000210| 20 63 6f 70 69 65 73 20 | 6f 66 20 74 68 69 73 20 | copies |of this |
|00000220| 66 69 6c 65 2e 20 54 68 | 65 20 66 69 6c 65 73 20 |file. Th|e files |
|00000230| 69 6e 20 74 68 65 20 66 | 6f 6c 64 65 72 0d d2 4c |in the f|older..L|
|00000240| 65 67 61 6c d3 20 6d 75 | 73 74 20 62 65 20 61 76 |egal. mu|st be av|
|00000250| 61 69 6c 61 62 6c 65 20 | 74 6f 20 61 6e 79 6f 6e |ailable |to anyon|
|00000260| 65 20 72 65 63 65 69 76 | 69 6e 67 20 63 6f 70 69 |e receiv|ing copi|
|00000270| 65 73 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 2e |es of th|is file.|
|00000280| 0d 0d 41 64 64 20 69 6e | 69 74 69 61 6c 73 20 61 |..Add in|itials a|
|00000290| 6e 64 20 6e 61 6d 65 20 | 68 65 72 65 3a 0d 49 6e |nd name |here:.In|
|000002a0| 69 74 69 61 6c 73 09 4e | 61 6d 65 0d 41 49 48 09 |itials.N|ame.AIH.|
|000002b0| 09 41 72 69 20 49 2e 20 | 48 61 6c 62 65 72 73 74 |.Ari I. |Halberst|
|000002c0| 61 64 74 0d 0d 52 65 76 | 69 73 69 6f 6e 20 48 69 |adt..Rev|ision Hi|
|000002d0| 73 74 6f 72 79 20 28 64 | 61 74 65 20 66 6f 72 6d |story (d|ate form|
|000002e0| 61 74 20 69 73 20 6d 6d | 2d 64 64 2d 79 79 29 3a |at is mm|-dd-yy):|
|000002f0| 0d 44 61 74 65 20 20 20 | 20 20 20 4e 61 6d 65 20 |.Date | Name |
|00000300| 20 43 6f 6d 6d 65 6e 74 | 73 0d 30 37 2d 31 31 2d | Comment|s.07-11-|
|00000310| 39 30 09 20 41 49 48 20 | 20 20 56 65 72 73 69 6f |90. AIH | Versio|
|00000320| 6e 20 30 2e 39 0d 2a 2f | 0d 0d 2f 2a 0d 09 54 68 |n 0.9.*/|../*..Th|
|00000330| 69 73 20 69 73 20 74 68 | 65 20 45 72 72 6f 72 53 |is is th|e ErrorS|
|00000340| 74 72 69 6e 67 20 58 46 | 43 4e 2e 20 45 72 72 6f |tring XF|CN. Erro|
|00000350| 72 53 74 72 69 6e 67 20 | 74 61 6b 65 73 20 61 6e |rString |takes an|
|00000360| 20 65 72 72 6f 72 20 63 | 6f 64 65 0d 09 28 61 6e | error c|ode..(an|
|00000370| 20 69 6e 74 65 67 65 72 | 29 2c 20 6f 72 20 61 6e | integer|), or an|
|00000380| 20 65 72 72 6f 72 20 6e | 61 6d 65 20 61 73 20 72 | error n|ame as r|
|00000390| 65 74 75 72 6e 65 64 20 | 62 79 20 74 68 65 20 45 |eturned |by the E|
|000003a0| 72 72 6f 72 4e 61 6d 65 | 0d 09 58 46 43 4e 2c 20 |rrorName|..XFCN, |
|000003b0| 61 6e 64 20 63 6f 6e 76 | 65 72 74 73 20 69 74 20 |and conv|erts it |
|000003c0| 69 6e 74 6f 20 61 20 73 | 74 72 69 6e 67 20 64 65 |into a s|tring de|
|000003d0| 73 63 72 69 62 69 6e 67 | 20 74 68 65 20 65 72 72 |scribing| the err|
|000003e0| 6f 72 2e 0d 09 54 68 65 | 20 73 74 72 69 6e 67 20 |or...The| string |
|000003f0| 63 61 6e 20 74 68 65 6e | 20 62 65 20 64 69 73 70 |can then| be disp|
|00000400| 6c 61 79 65 64 20 69 6e | 20 61 6e 20 61 6c 65 72 |layed in| an aler|
|00000410| 74 20 62 6f 78 20 74 6f | 20 6e 6f 74 69 66 79 0d |t box to| notify.|
|00000420| 09 74 68 65 20 75 73 65 | 72 2e 0d 09 0d 09 41 20 |.the use|r.....A |
|00000430| 74 79 70 69 63 61 6c 20 | 77 61 79 20 74 6f 20 75 |typical |way to u|
|00000440| 73 65 20 45 72 72 6f 72 | 53 74 72 69 6e 67 20 69 |se Error|String i|
|00000450| 73 3a 0d 09 0d 09 09 69 | 66 20 74 68 65 45 72 72 |s:.....i|f theErr|
|00000460| 6f 72 43 6f 64 65 20 69 | 73 20 6e 6f 74 20 65 6d |orCode i|s not em|
|00000470| 70 74 79 20 74 68 65 6e | 0d 09 09 09 61 6e 73 77 |pty then|....answ|
|00000480| 65 72 20 22 45 72 72 6f | 72 3a 20 22 20 26 20 45 |er "Erro|r: " & E|
|00000490| 72 72 6f 72 53 74 72 69 | 6e 67 28 74 68 65 45 72 |rrorStri|ng(theEr|
|000004a0| 72 6f 72 43 6f 64 65 29 | 0d 09 09 09 65 78 69 74 |rorCode)|....exit|
|000004b0| 20 74 6f 20 48 79 70 65 | 72 43 61 72 64 0d 09 09 | to Hype|rCard...|
|000004c0| 65 6e 64 20 69 66 0d 09 | 09 0d 09 45 72 72 6f 72 |end if..|...Error|
|000004d0| 53 74 72 69 6e 67 20 61 | 63 63 65 70 74 73 20 65 |String a|ccepts e|
|000004e0| 69 74 68 65 72 20 61 6e | 20 65 72 72 6f 72 20 63 |ither an| error c|
|000004f0| 6f 64 65 20 28 61 6e 20 | 69 6e 74 65 67 65 72 29 |ode (an |integer)|
|00000500| 0d 09 6f 72 20 61 6e 20 | 65 72 72 6f 72 20 6e 61 |..or an |error na|
|00000510| 6d 65 20 28 61 20 73 74 | 72 69 6e 67 29 2c 20 61 |me (a st|ring), a|
|00000520| 6e 64 20 63 6f 6e 76 65 | 72 74 73 20 74 68 65 6d |nd conve|rts them|
|00000530| 20 69 6e 74 6f 0d 09 61 | 20 64 65 73 63 72 69 70 | into..a| descrip|
|00000540| 74 69 76 65 20 73 74 72 | 69 6e 67 2e 20 46 6f 72 |tive str|ing. For|
|00000550| 20 69 6e 73 74 61 6e 63 | 65 2c 20 74 68 65 20 66 | instanc|e, the f|
|00000560| 6f 6c 6c 6f 77 69 6e 67 | 20 6c 69 6e 65 73 0d 09 |ollowing| lines..|
|00000570| 79 69 65 6c 64 20 74 68 | 65 20 73 61 6d 65 20 73 |yield th|e same s|
|00000580| 74 72 69 6e 67 20 28 74 | 68 65 20 61 63 74 75 61 |tring (t|he actua|
|00000590| 6c 20 73 74 72 69 6e 67 | 73 20 72 65 74 75 72 6e |l string|s return|
|000005a0| 65 64 20 6d 61 79 0d 09 | 76 61 72 79 20 73 6c 69 |ed may..|vary sli|
|000005b0| 67 68 74 6c 79 20 66 72 | 6f 6d 20 6f 6e 65 20 76 |ghtly fr|om one v|
|000005c0| 65 72 73 69 6f 6e 20 74 | 6f 20 74 68 65 20 6e 65 |ersion t|o the ne|
|000005d0| 78 74 2c 20 62 75 74 20 | 74 68 65 73 65 0d 09 63 |xt, but |these..c|
|000005e0| 6f 6d 6d 61 6e 64 73 2c | 20 69 66 20 65 78 65 63 |ommands,| if exec|
|000005f0| 75 74 65 64 20 61 74 20 | 74 68 65 20 73 61 6d 65 |uted at |the same|
|00000600| 20 74 69 6d 65 2c 20 77 | 69 6c 6c 20 72 65 74 75 | time, w|ill retu|
|00000610| 72 6e 20 74 68 65 0d 09 | 73 61 6d 65 20 73 74 72 |rn the..|same str|
|00000620| 69 6e 67 29 3a 0d 09 0d | 09 09 2d 2d 20 54 68 65 |ing):...|..-- The|
|00000630| 73 65 20 6c 69 6e 65 73 | 20 72 65 74 75 72 6e 20 |se lines| return |
|00000640| 22 55 6e 6b 6e 6f 77 6e | 20 65 72 72 6f 72 22 0d |"Unknown| error".|
|00000650| 09 09 45 72 72 6f 72 53 | 74 72 69 6e 67 28 31 29 |..ErrorS|tring(1)|
|00000660| 0d 09 09 45 72 72 6f 72 | 53 74 72 69 6e 67 28 45 |...Error|String(E|
|00000670| 52 52 5f 42 41 53 49 43 | 5f 55 4e 4b 4e 4f 57 4e |RR_BASIC|_UNKNOWN|
|00000680| 29 0d 09 09 45 72 72 6f | 72 53 74 72 69 6e 67 28 |)...Erro|rString(|
|00000690| 45 72 72 6f 72 4e 61 6d | 65 28 31 29 29 0d 09 09 |ErrorNam|e(1))...|
|000006a0| 45 72 72 6f 72 53 74 72 | 69 6e 67 28 45 72 72 6f |ErrorStr|ing(Erro|
|000006b0| 72 4e 61 6d 65 28 45 52 | 52 5f 42 41 53 49 43 5f |rName(ER|R_BASIC_|
|000006c0| 55 4e 4b 4e 4f 57 4e 29 | 29 0d 09 0d 09 45 72 72 |UNKNOWN)|)....Err|
|000006d0| 6f 72 53 74 72 69 6e 67 | 20 63 6f 75 6c 64 20 65 |orString| could e|
|000006e0| 61 73 69 6c 79 20 62 65 | 20 61 64 61 70 74 65 64 |asily be| adapted|
|000006f0| 20 74 6f 20 68 6f 6c 64 | 20 64 65 73 63 72 69 70 | to hold| descrip|
|00000700| 74 69 6f 6e 73 0d 09 6f | 66 20 74 68 65 20 4d 61 |tions..o|f the Ma|
|00000710| 63 69 6e 74 6f 73 68 20 | 74 6f 6f 6c 62 6f 78 20 |cintosh |toolbox |
|00000720| 65 72 72 6f 72 73 2e 20 | 54 68 65 20 22 4d 61 6b |errors. |The "Mak|
|00000730| 65 52 73 72 63 73 22 0d | 09 70 72 6f 6a 65 63 74 |eRsrcs".|.project|
|00000740| 20 63 6f 6e 74 61 69 6e | 73 20 64 61 74 61 20 66 | contain|s data f|
|00000750| 69 6c 65 73 20 66 6f 72 | 20 74 68 65 20 72 65 73 |iles for| the res|
|00000760| 6f 75 72 63 65 73 2e 0d | 09 42 79 20 6d 6f 64 69 |ources..|.By modi|
|00000770| 66 79 69 6e 67 20 28 6f | 72 20 61 64 64 69 6e 67 |fying (o|r adding|
|00000780| 20 74 6f 29 20 74 68 69 | 73 20 64 61 74 61 2c 20 | to) thi|s data, |
|00000790| 79 6f 75 20 63 61 6e 0d | 09 75 73 65 20 45 72 72 |you can.|.use Err|
|000007a0| 6f 72 53 74 72 69 6e 67 | 20 66 6f 72 20 61 6e 79 |orString| for any|
|000007b0| 20 6f 74 68 65 72 20 70 | 72 6f 67 72 61 6d 2e 0d | other p|rogram..|
|000007c0| 2a 2f 0d 09 09 0d 23 69 | 6e 63 6c 75 64 65 20 3c |*/....#i|nclude <|
|000007d0| 4d 79 48 65 61 64 65 72 | 73 3e 0d 23 69 6e 63 6c |MyHeader|s>.#incl|
|000007e0| 75 64 65 20 3c 53 65 74 | 55 70 41 34 2e 68 3e 0d |ude <Set|UpA4.h>.|
|000007f0| 23 69 6e 63 6c 75 64 65 | 20 22 68 79 70 65 72 6c |#include| "hyperl|
|00000800| 69 62 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ib.h".#i|nclude "|
|00000810| 73 74 72 6c 69 62 2e 68 | 22 0d 23 69 6e 63 6c 75 |strlib.h|".#inclu|
|00000820| 64 65 20 22 72 73 72 63 | 6c 69 62 2e 68 22 0d 0d |de "rsrc|lib.h"..|
|00000830| 2f 2a 20 52 65 73 6f 75 | 72 63 65 20 49 44 73 20 |/* Resou|rce IDs |
|00000840| 61 72 65 20 73 74 6f 72 | 65 64 20 69 6e 74 65 72 |are stor|ed inter|
|00000850| 6e 61 6c 6c 79 20 61 73 | 20 75 6e 69 71 75 65 20 |nally as| unique |
|00000860| 69 6e 74 65 67 65 72 73 | 2e 0d 09 54 68 65 20 49 |integers|...The I|
|00000870| 44 73 20 61 72 65 20 70 | 61 73 73 65 64 20 74 6f |Ds are p|assed to|
|00000880| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 | a funct|ion that|
|00000890| 20 6d 61 70 73 20 74 68 | 65 73 65 20 69 6e 74 65 | maps th|ese inte|
|000008a0| 72 6e 61 6c 0d 09 6e 75 | 6d 62 65 72 73 20 74 6f |rnal..nu|mbers to|
|000008b0| 20 74 68 65 20 49 44 73 | 20 6f 66 20 74 68 65 20 | the IDs| of the |
|000008c0| 61 63 74 75 61 6c 20 72 | 65 73 6f 75 72 63 65 73 |actual r|esources|
|000008d0| 20 69 6e 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | in the |resource|
|000008e0| 20 66 69 6c 65 2e 20 2a | 2f 0d 0d 2f 2a 20 72 65 | file. *|/../* re|
|000008f0| 73 6f 75 72 63 65 73 20 | 66 6f 72 20 74 68 65 20 |sources |for the |
|00000900| 70 72 6f 67 72 61 6d 20 | 2a 2f 0d 65 6e 75 6d 20 |program |*/.enum |
|00000910| 7b 0d 09 52 53 52 43 5f | 49 4e 46 4f 5f 49 44 2c |{..RSRC_|INFO_ID,|
|00000920| 09 09 2f 2a 20 69 6e 66 | 6f 20 73 74 72 69 6e 67 |../* inf|o string|
|00000930| 73 20 2a 2f 0d 09 52 53 | 52 43 5f 53 54 52 49 4e |s */..RS|RC_STRIN|
|00000940| 47 53 5f 49 44 2c 09 2f | 2a 20 74 61 62 6c 65 20 |GS_ID,./|* table |
|00000950| 6f 66 20 65 72 72 6f 72 | 20 73 74 72 69 6e 67 73 |of error| strings|
|00000960| 20 2a 2f 0d 09 52 53 52 | 43 5f 4e 41 4d 45 53 5f | */..RSR|C_NAMES_|
|00000970| 49 44 2c 09 09 2f 2a 20 | 74 61 62 6c 65 20 6f 66 |ID,../* |table of|
|00000980| 20 65 72 72 6f 72 20 6e | 61 6d 65 73 20 2a 2f 0d | error n|ames */.|
|00000990| 09 52 53 52 43 5f 43 4f | 55 4e 54 09 09 09 2f 2a |.RSRC_CO|UNT.../*|
|000009a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 72 65 73 6f 75 | number |of resou|
|000009b0| 72 63 65 73 20 2a 2f 0d | 7d 3b 0d 0d 2f 2a 20 74 |rces */.|};../* t|
|000009c0| 68 65 20 69 6e 66 6f 20 | 73 74 72 69 6e 67 73 20 |he info |strings |
|000009d0| 2a 2f 0d 65 6e 75 6d 20 | 7b 0d 09 52 53 52 43 5f |*/.enum |{..RSRC_|
|000009e0| 56 45 52 53 49 4f 4e 5f | 49 4e 44 45 58 3d 31 2c |VERSION_|INDEX=1,|
|000009f0| 09 2f 2a 20 76 65 72 73 | 69 6f 6e 20 73 74 72 69 |./* vers|ion stri|
|00000a00| 6e 67 20 2a 2f 0d 09 52 | 53 52 43 5f 55 53 41 47 |ng */..R|SRC_USAG|
|00000a10| 45 5f 49 4e 44 45 58 09 | 09 09 2f 2a 20 75 73 61 |E_INDEX.|../* usa|
|00000a20| 67 65 20 73 74 72 69 6e | 67 20 2a 2f 0d 7d 3b 0d |ge strin|g */.};.|
|00000a30| 0d 73 74 61 74 69 63 20 | 42 6f 6f 6c 65 61 6e 20 |.static |Boolean |
|00000a40| 69 73 6e 75 6d 28 63 68 | 61 72 20 2a 73 29 3b 0d |isnum(ch|ar *s);.|
|00000a50| 73 74 61 74 69 63 20 76 | 6f 69 64 20 61 72 67 32 |static v|oid arg2|
|00000a60| 73 74 72 28 63 68 61 72 | 20 2a 61 72 67 2c 20 63 |str(char| *arg, c|
|00000a70| 68 61 72 20 2a 73 74 72 | 2c 20 52 65 73 49 44 20 |har *str|, ResID |
|00000a80| 2a 6d 61 70 29 3b 0d 73 | 74 61 74 69 63 20 52 65 |*map);.s|tatic Re|
|00000a90| 73 49 44 20 47 65 74 52 | 73 72 63 49 44 28 52 65 |sID GetR|srcID(Re|
|00000aa0| 73 49 44 20 2a 6d 61 70 | 2c 20 52 65 73 49 44 20 |sID *map|, ResID |
|00000ab0| 69 6e 74 65 72 6e 61 6c | 5f 69 64 29 3b 0d 0d 70 |internal|_id);..p|
|00000ac0| 61 73 63 61 6c 20 76 6f | 69 64 20 6d 61 69 6e 28 |ascal vo|id main(|
|00000ad0| 58 43 6d 64 42 6c 6f 63 | 6b 50 74 72 20 70 61 72 |XCmdBloc|kPtr par|
|00000ae0| 61 6d 29 0d 7b 0d 09 43 | 53 74 72 32 35 35 20 73 |am).{..C|Str255 s|
|00000af0| 74 72 3b 09 2f 2a 20 67 | 65 6e 65 72 61 6c 6c 79 |tr;./* g|enerally|
|00000b00| 20 75 73 65 66 75 6c 20 | 73 74 72 69 6e 67 20 2a | useful |string *|
|00000b10| 2f 0d 09 63 68 61 72 20 | 2a 61 72 67 3b 09 09 2f |/..char |*arg;../|
|00000b20| 2a 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 20 74 |* the ar|gument t|
|00000b30| 6f 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 2a 2f |o the pr|ogram */|
|00000b40| 0d 09 52 65 73 49 44 20 | 6d 61 70 5b 52 53 52 43 |..ResID |map[RSRC|
|00000b50| 5f 43 4f 55 4e 54 5d 3b | 2f 2a 6d 61 70 20 66 72 |_COUNT];|/*map fr|
|00000b60| 6f 6d 20 69 6e 74 65 72 | 6e 61 6c 20 72 65 73 6f |om inter|nal reso|
|00000b70| 75 72 63 65 20 49 44 73 | 20 74 6f 20 61 63 74 75 |urce IDs| to actu|
|00000b80| 61 6c 20 72 65 73 6f 75 | 72 63 65 20 49 44 73 2a |al resou|rce IDs*|
|00000b90| 2f 0d 09 4f 53 45 72 72 | 20 65 72 72 20 3d 20 6e |/..OSErr| err = n|
|00000ba0| 6f 45 72 72 3b 0d 09 0d | 09 52 65 6d 65 6d 62 65 |oErr;...|.Remembe|
|00000bb0| 72 41 30 28 29 3b 0d 09 | 53 65 74 55 70 41 34 28 |rA0();..|SetUpA4(|
|00000bc0| 29 3b 0d 09 65 72 72 20 | 3d 20 72 73 72 63 5f 62 |);..err |= rsrc_b|
|00000bd0| 75 69 6c 64 5f 6e 61 6d | 65 64 5f 6d 61 70 28 45 |uild_nam|ed_map(E|
|00000be0| 52 52 4f 52 53 54 52 49 | 4e 47 5f 58 46 43 4e 5f |RRORSTRI|NG_XFCN_|
|00000bf0| 4e 41 4d 45 20 22 3a 52 | 65 73 6f 75 72 63 65 4d |NAME ":R|esourceM|
|00000c00| 61 70 22 2c 20 6d 61 70 | 29 3b 0d 09 69 66 20 28 |ap", map|);..if (|
|00000c10| 70 61 72 61 6d 2d 3e 70 | 61 72 61 6d 43 6f 75 6e |param->p|aramCoun|
|00000c20| 74 20 3d 3d 20 31 29 20 | 7b 0d 09 09 48 4c 6f 63 |t == 1) |{...HLoc|
|00000c30| 6b 28 70 61 72 61 6d 2d | 3e 70 61 72 61 6d 73 5b |k(param-|>params[|
|00000c40| 30 5d 29 3b 0d 09 09 61 | 72 67 20 3d 20 2a 70 61 |0]);...a|rg = *pa|
|00000c50| 72 61 6d 2d 3e 70 61 72 | 61 6d 73 5b 30 5d 3b 0d |ram->par|ams[0];.|
|00000c60| 09 09 73 77 69 74 63 68 | 20 28 2a 61 72 67 29 20 |..switch| (*arg) |
|00000c70| 7b 0d 09 09 63 61 73 65 | 20 27 21 27 3a 0d 09 09 |{...case| '!':...|
|00000c80| 09 47 65 74 56 65 72 53 | 74 72 69 6e 67 28 73 74 |.GetVerS|tring(st|
|00000c90| 72 2c 20 47 65 74 52 73 | 72 63 49 44 28 6d 61 70 |r, GetRs|rcID(map|
|00000ca0| 2c 20 52 53 52 43 5f 49 | 4e 46 4f 5f 49 44 29 2c |, RSRC_I|NFO_ID),|
|00000cb0| 0d 09 09 09 09 09 09 09 | 09 09 09 52 53 52 43 5f |........|...RSRC_|
|00000cc0| 56 45 52 53 49 4f 4e 5f | 49 4e 44 45 58 2c 20 5f |VERSION_|INDEX, _|
|00000cd0| 5f 44 41 54 45 5f 5f 2c | 20 5f 5f 54 49 4d 45 5f |_DATE__,| __TIME_|
|00000ce0| 5f 29 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |_);....b|reak;...|
|00000cf0| 63 61 73 65 20 27 3f 27 | 3a 0d 09 09 09 47 65 74 |case '?'|:....Get|
|00000d00| 49 6e 64 53 74 72 69 6e | 67 28 73 74 72 2c 20 47 |IndStrin|g(str, G|
|00000d10| 65 74 52 73 72 63 49 44 | 28 6d 61 70 2c 20 52 53 |etRsrcID|(map, RS|
|00000d20| 52 43 5f 49 4e 46 4f 5f | 49 44 29 2c 0d 09 09 09 |RC_INFO_|ID),....|
|00000d30| 09 09 09 09 09 09 09 52 | 53 52 43 5f 55 53 41 47 |.......R|SRC_USAG|
|00000d40| 45 5f 49 4e 44 45 58 29 | 3b 0d 09 09 09 50 74 6f |E_INDEX)|;....Pto|
|00000d50| 43 73 74 72 28 73 74 72 | 29 3b 0d 09 09 09 62 72 |Cstr(str|);....br|
|00000d60| 65 61 6b 3b 0d 09 09 64 | 65 66 61 75 6c 74 3a 0d |eak;...d|efault:.|
|00000d70| 09 09 09 61 72 67 32 73 | 74 72 28 61 72 67 2c 20 |...arg2s|tr(arg, |
|00000d80| 73 74 72 2c 20 6d 61 70 | 29 3b 0d 09 09 7d 0d 09 |str, map|);...}..|
|00000d90| 09 48 55 6e 6c 6f 63 6b | 28 70 61 72 61 6d 2d 3e |.HUnlock|(param->|
|00000da0| 70 61 72 61 6d 73 5b 30 | 5d 29 3b 0d 09 09 50 74 |params[0|]);...Pt|
|00000db0| 72 54 6f 48 61 6e 64 28 | 73 74 72 2c 20 26 70 61 |rToHand(|str, &pa|
|00000dc0| 72 61 6d 2d 3e 72 65 74 | 75 72 6e 56 61 6c 75 65 |ram->ret|urnValue|
|00000dd0| 2c 20 73 74 72 6c 65 6e | 28 73 74 72 29 2b 31 29 |, strlen|(str)+1)|
|00000de0| 3b 0d 09 7d 09 09 0d 09 | 52 65 73 74 6f 72 65 41 |;..}....|RestoreA|
|00000df0| 34 28 29 3b 0d 7d 0d 0d | 2f 2a 20 63 6f 6e 76 65 |4();.}..|/* conve|
|00000e00| 72 74 20 61 72 67 75 6d | 65 6e 74 20 69 6e 74 6f |rt argum|ent into|
|00000e10| 20 61 6e 20 65 72 72 6f | 72 20 73 74 72 69 6e 67 | an erro|r string|
|00000e20| 20 2a 2f 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 | */.stat|ic void |
|00000e30| 61 72 67 32 73 74 72 28 | 63 68 61 72 20 2a 61 72 |arg2str(|char *ar|
|00000e40| 67 2c 20 63 68 61 72 20 | 2a 73 74 72 2c 20 52 65 |g, char |*str, Re|
|00000e50| 73 49 44 20 2a 6d 61 70 | 29 0d 7b 0d 09 69 66 20 |sID *map|).{..if |
|00000e60| 28 69 73 6e 75 6d 28 61 | 72 67 29 29 0d 09 09 45 |(isnum(a|rg))...E|
|00000e70| 72 72 4e 75 6d 54 6f 53 | 74 72 28 73 74 72 2c 20 |rrNumToS|tr(str, |
|00000e80| 47 65 74 52 73 72 63 49 | 44 28 6d 61 70 2c 20 52 |GetRsrcI|D(map, R|
|00000e90| 53 52 43 5f 53 54 52 49 | 4e 47 53 5f 49 44 29 2c |SRC_STRI|NGS_ID),|
|00000ea0| 20 61 74 6f 6c 28 61 72 | 67 29 29 3b 0d 09 65 6c | atol(ar|g));..el|
|00000eb0| 73 65 20 7b 0d 09 09 69 | 6e 74 20 6e 75 6d 20 3d |se {...i|nt num =|
|00000ec0| 20 45 72 72 53 74 72 54 | 6f 4e 75 6d 28 61 72 67 | ErrStrT|oNum(arg|
|00000ed0| 2c 20 47 65 74 52 73 72 | 63 49 44 28 6d 61 70 2c |, GetRsr|cID(map,|
|00000ee0| 20 52 53 52 43 5f 4e 41 | 4d 45 53 5f 49 44 29 29 | RSRC_NA|MES_ID))|
|00000ef0| 3b 0d 09 09 45 72 72 4e | 75 6d 54 6f 53 74 72 28 |;...ErrN|umToStr(|
|00000f00| 73 74 72 2c 20 47 65 74 | 52 73 72 63 49 44 28 6d |str, Get|RsrcID(m|
|00000f10| 61 70 2c 20 52 53 52 43 | 5f 53 54 52 49 4e 47 53 |ap, RSRC|_STRINGS|
|00000f20| 5f 49 44 29 2c 20 6e 75 | 6d 29 3b 0d 09 7d 0d 7d |_ID), nu|m);..}.}|
|00000f30| 0d 0d 2f 2a 20 74 72 75 | 65 20 69 66 20 73 74 72 |../* tru|e if str|
|00000f40| 69 6e 67 20 69 73 20 61 | 20 6e 75 6d 62 65 72 20 |ing is a| number |
|00000f50| 2a 2f 0d 73 74 61 74 69 | 63 20 42 6f 6f 6c 65 61 |*/.stati|c Boolea|
|00000f60| 6e 20 69 73 6e 75 6d 28 | 63 68 61 72 20 2a 73 29 |n isnum(|char *s)|
|00000f70| 0d 7b 0d 09 77 68 69 6c | 65 20 28 5f 69 73 73 70 |.{..whil|e (_issp|
|00000f80| 61 63 65 28 2a 73 29 29 | 20 2b 2b 73 3b 0d 09 72 |ace(*s))| ++s;..r|
|00000f90| 65 74 75 72 6e 28 5f 69 | 73 64 69 67 69 74 28 2a |eturn(_i|sdigit(*|
|00000fa0| 73 29 20 7c 7c 20 2a 73 | 20 3d 3d 20 27 2d 27 20 |s) || *s| == '-' |
|00000fb0| 7c 7c 20 2a 73 20 3d 3d | 20 27 2b 27 29 3b 0d 7d ||| *s ==| '+');.}|
|00000fc0| 0d 0d 2f 2a 20 62 75 69 | 6c 64 20 61 20 76 65 72 |../* bui|ld a ver|
|00000fd0| 73 69 6f 6e 20 73 74 72 | 69 6e 67 20 2a 2f 0d 73 |sion str|ing */.s|
|00000fe0| 74 61 74 69 63 20 76 6f | 69 64 20 47 65 74 56 65 |tatic vo|id GetVe|
|00000ff0| 72 53 74 72 69 6e 67 28 | 63 68 61 72 20 2a 73 74 |rString(|char *st|
|00001000| 72 2c 20 52 65 73 49 44 | 20 69 64 2c 20 73 68 6f |r, ResID| id, sho|
|00001010| 72 74 20 73 74 72 6e 75 | 6d 2c 0d 09 09 09 09 09 |rt strnu|m,......|
|00001020| 09 09 09 09 63 68 61 72 | 20 2a 64 61 74 65 2c 20 |....char| *date, |
|00001030| 63 68 61 72 20 2a 74 69 | 6d 65 29 0d 7b 0d 09 47 |char *ti|me).{..G|
|00001040| 65 74 49 6e 64 53 74 72 | 69 6e 67 28 73 74 72 2c |etIndStr|ing(str,|
|00001050| 20 69 64 2c 20 73 74 72 | 6e 75 6d 29 3b 0d 09 50 | id, str|num);..P|
|00001060| 74 6f 43 73 74 72 28 73 | 74 72 29 3b 0d 09 73 74 |toCstr(s|tr);..st|
|00001070| 72 63 61 74 28 73 74 72 | 63 61 74 28 73 74 72 63 |rcat(str|cat(strc|
|00001080| 61 74 28 73 74 72 63 61 | 74 28 73 74 72 2c 20 22 |at(strca|t(str, "|
|00001090| 20 22 29 2c 20 64 61 74 | 65 29 2c 20 22 20 22 29 | "), dat|e), " ")|
|000010a0| 2c 20 74 69 6d 65 29 3b | 0d 7d 0d 0d 2f 2a 20 72 |, time);|.}../* r|
|000010b0| 65 74 75 72 6e 20 74 68 | 65 20 61 63 74 75 61 6c |eturn th|e actual|
|000010c0| 20 49 44 20 6f 66 20 74 | 68 65 20 72 65 73 6f 75 | ID of t|he resou|
|000010d0| 72 63 65 20 77 69 74 68 | 20 74 68 65 20 67 69 76 |rce with| the giv|
|000010e0| 65 6e 20 69 6e 74 65 72 | 6e 61 6c 20 49 44 20 2a |en inter|nal ID *|
|000010f0| 2f 0d 73 74 61 74 69 63 | 20 52 65 73 49 44 20 47 |/.static| ResID G|
|00001100| 65 74 52 73 72 63 49 44 | 28 52 65 73 49 44 20 2a |etRsrcID|(ResID *|
|00001110| 6d 61 70 2c 20 52 65 73 | 49 44 20 69 6e 74 65 72 |map, Res|ID inter|
|00001120| 6e 61 6c 5f 69 64 29 0d | 7b 0d 09 72 65 74 75 72 |nal_id).|{..retur|
|00001130| 6e 28 6d 61 70 5b 69 6e | 74 65 72 6e 61 6c 5f 69 |n(map[in|ternal_i|
|00001140| 64 5d 29 3b 0d 7d 0d 00 | 00 00 00 00 00 00 00 00 |d]);.}..|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00001190| 6c 69 62 0d 23 64 65 66 | 69 6e 65 20 5f 48 5f 61 |lib.#def|ine _H_a|
|000011a0| 72 72 61 79 6c 69 62 0d | 0d 23 69 66 6e 64 65 66 |rraylib.|.#ifndef|
|000011b0| 0d 45 72 72 6f 72 53 74 | 72 69 6e 67 2e 63 02 00 |.ErrorSt|ring.c..|
|000011c0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 40 00 00 |..TEXTKA|HL...@..|
|000011d0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 40 00 00 |..TEXTKA|HL...@..|
|000011e0| 00 60 11 a3 00 00 00 00 | 00 00 00 00 00 00 00 00 |.`......|........|
|000011f0| 00 00 a2 c8 47 b5 00 00 | 10 c7 00 00 01 5c 0d 23 |....G...|.....\.#|
|00001200| 64 65 66 69 6e 65 20 53 | 55 42 53 5f 53 54 41 52 |define S|UBS_STAR|
|00001210| 54 09 27 5b 27 0d 23 64 | 65 66 69 6e 65 20 53 55 |T.'['.#d|efine SU|
|00001220| 42 53 5f 45 4e 44 09 09 | 27 5d 27 0d 23 64 65 66 |BS_END..|']'.#def|
|00001230| 69 6e 65 20 53 55 42 53 | 5f 52 41 4e 47 45 09 27 |ine SUBS|_RANGE.'|
|00001240| c9 27 0d 0d 2f 2a 20 73 | 74 72 75 63 74 75 72 65 |.'../* s|tructure|
|00001250| 20 64 65 73 63 72 69 62 | 69 6e 67 20 61 20 73 69 | describ|ing a si|
|00001260| 6e 67 6c 65 20 64 69 6d | 65 6e 73 69 6f 6e 20 6f |ngle dim|ension o|
|00001270| 66 20 61 6e 20 61 72 72 | 61 79 20 2a 2f 0d 74 79 |f an arr|ay */.ty|
|00001280| 00 00 00 04 00 06 00 03 | 00 00 00 0a 00 0a 07 43 |........|.......C|
|00001290| 6f 75 72 69 65 72 00 00 | 01 00 00 00 01 16 00 00 |ourier..|........|
|000012a0| 00 16 00 00 00 46 00 12 | 4f e6 04 c8 00 00 00 1c |.....F..|O.......|
|000012b0| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|000012c0| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 0f d0 a4 |........|........|
|000012d0| 03 eb ff ff 00 00 00 08 | 00 12 4f 42 00 00 00 00 |........|..OB....|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+