home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-05-23 | 4.1 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: error.c.bin
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| AMOS Picture Packer (image/amosPicturePacker)
| ext
| Supported |
1%
| dexvert
| Debian floppy split (archive/debianFloppySplit)
| ext
| Unsupported |
1%
| dexvert
| Sound Images sound sample (audio/soundImagesSoundSample)
| ext
| Unsupported |
1%
| dexvert
| DESI-III drawing (image/desiIIIDrawing)
| ext
| Unsupported |
1%
| dexvert
| MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable)
| ext
| Unsupported |
1%
| dexvert
| Alien Trilogytextures (other/alienTrilogyTextures)
| ext
| Unsupported |
1%
| dexvert
| APT cache data (other/aptCacheData)
| ext
| Unsupported |
1%
| dexvert
| CorelTRACE configuration (other/corelTRACEConfiguration)
| ext
| Unsupported |
1%
| dexvert
| Dreamcast Disc (other/dreamcastDisc)
| ext
| Unsupported |
1%
| dexvert
| EST flat binary (other/estFlatBinary)
| ext
| Unsupported |
1%
| dexvert
| Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat)
| ext
| Unsupported |
1%
| dexvert
| Sega Genesis/Megadrive/32x ROM (other/genesisROM)
| ext
| Unsupported |
1%
| dexvert
| Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive)
| ext
| Unsupported |
1%
| dexvert
| Sound Images Sound Driver (other/soundImagesSoundDriver)
| ext
| Unsupported |
1%
| dexvert
| Symantec/Norton Config (other/symantecNortonConfig)
| ext
| Unsupported |
1%
| dexvert
| Vectrex ROM (other/vectrexROM)
| ext
| Unsupported |
1%
| dexvert
| BIS raP encoded format (other/bisraPEncoded)
| ext
| Unsupported |
1%
| dexvert
| Pascal Script binary (other/pascalScriptBinary)
| ext
| Unsupported |
1%
| dexvert
| 7th Level game data archive (other/seventhLevelGameDataArchive)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Binary Text (image/binaryText)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary, Wed Mar 29 13:43:30 1989, modified Fri Jan 26 14:41:50 1990, creator Think C, type ASCII, 4062 bytes "error.c"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 1
| default (weak)
| |
100%
| lsar
| MacBinary
| default
| |
100%
| gt2
| MAC Bilddatei
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 65 72 72 6f 72 2e | 63 00 00 00 00 00 00 00 |..error.|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 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f de 00 | 00 00 00 a0 56 d4 52 a1 |........|....V.R.|
|00000060| e6 58 7e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.X~.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 0d 20 2a 09 65 72 72 | 6f 72 2e 63 0d 20 2a 0d |*. *.err|or.c. *.|
|000000e0| 20 2a 09 45 72 72 6f 72 | 20 48 61 6e 64 6c 69 6e | *.Error| Handlin|
|000000f0| 67 20 50 61 63 6b 61 67 | 65 0d 20 2a 0d 20 2a 09 |g Packag|e. *. *.|
|00000100| 57 72 69 74 74 65 6e 20 | 62 79 20 50 61 63 6f 20 |Written |by Paco |
|00000110| 58 61 6e 64 65 72 20 4e | 61 74 68 61 6e 0d 20 2a |Xander N|athan. *|
|00000120| 09 a9 31 39 39 30 2c 20 | 4d 6f 74 6f 72 6f 6c 61 |..1990, |Motorola|
|00000130| 20 49 6e 63 2e 20 20 50 | 75 62 6c 69 63 20 64 6f | Inc. P|ublic do|
|00000140| 6d 61 69 6e 20 73 6f 75 | 72 63 65 20 63 6f 64 65 |main sou|rce code|
|00000150| 2e 0d 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.. *****|********|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2f 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |***/..#i|nclude "|
|000001b0| 61 70 70 6c 69 63 2e 68 | 22 0d 23 69 6e 63 6c 75 |applic.h|".#inclu|
|000001c0| 64 65 20 22 64 69 61 6c | 6f 67 2e 68 22 0d 23 69 |de "dial|og.h".#i|
|000001d0| 6e 63 6c 75 64 65 20 22 | 65 72 72 6f 72 2e 68 22 |nclude "|error.h"|
|000001e0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 73 74 72 69 6e |.#includ|e "strin|
|000001f0| 67 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 3c 4d |g.h".#in|clude <M|
|00000200| 65 6d 6f 72 79 4d 67 72 | 2e 68 3e 0d 0d 0d 2f 2a |emoryMgr|.h>.../*|
|00000210| 20 45 78 74 65 72 6e 61 | 6c 20 44 61 74 61 20 53 | Externa|l Data S|
|00000220| 74 72 75 63 74 75 72 65 | 73 0d 20 2a 2f 0d 48 61 |tructure|s. */.Ha|
|00000230| 6e 64 6c 65 0d 09 65 72 | 72 41 76 61 74 61 72 48 |ndle..er|rAvatarH|
|00000240| 64 6c 20 3d 20 4e 55 4c | 4c 3b 0d 0d 0d 2f 2a 20 |dl = NUL|L;.../* |
|00000250| 50 72 65 73 65 6e 74 20 | 61 20 77 61 72 6e 69 6e |Present |a warnin|
|00000260| 67 20 65 72 72 6f 72 20 | 64 69 61 6c 6f 67 20 74 |g error |dialog t|
|00000270| 6f 20 74 68 65 20 75 73 | 65 72 2e 2e 2e 20 20 43 |o the us|er... C|
|00000280| 61 6e 20 61 73 6b 20 74 | 68 65 20 75 73 65 72 20 |an ask t|he user |
|00000290| 77 68 65 74 68 65 72 20 | 6f 72 20 6e 6f 74 0d 20 |whether |or not. |
|000002a0| 2a 20 74 6f 20 65 78 69 | 74 20 67 72 61 63 65 66 |* to exi|t gracef|
|000002b0| 75 6c 6c 79 20 61 6e 64 | 20 74 68 65 6e 20 63 61 |ully and| then ca|
|000002c0| 6c 6c 20 41 70 70 6c 51 | 75 69 74 2e 0d 20 2a 2f |ll ApplQ|uit.. */|
|000002d0| 0d 73 68 6f 72 74 0d 45 | 72 72 57 61 72 6e 69 6e |.short.E|rrWarnin|
|000002e0| 67 20 28 6e 42 75 74 74 | 6f 6e 73 2c 20 69 73 46 |g (nButt|ons, isF|
|000002f0| 61 74 61 6c 2c 20 70 31 | 2c 20 70 32 2c 20 70 33 |atal, p1|, p2, p3|
|00000300| 2c 20 70 34 29 0d 09 72 | 65 67 69 73 74 65 72 20 |, p4)..r|egister |
|00000310| 73 68 6f 72 74 20 6e 42 | 75 74 74 6f 6e 73 3b 0d |short nB|uttons;.|
|00000320| 09 72 65 67 69 73 74 65 | 72 20 42 6f 6f 6c 65 61 |.registe|r Boolea|
|00000330| 6e 20 69 73 46 61 74 61 | 6c 3b 0d 09 72 65 67 69 |n isFata|l;..regi|
|00000340| 73 74 65 72 20 53 74 72 | 69 6e 67 50 74 72 20 70 |ster Str|ingPtr p|
|00000350| 31 2c 20 70 32 2c 20 70 | 33 2c 20 70 34 3b 0d 7b |1, p2, p|3, p4;.{|
|00000360| 0d 09 72 65 67 69 73 74 | 65 72 20 73 68 6f 72 74 |..regist|er short|
|00000370| 20 72 65 73 75 6c 74 20 | 3d 20 30 3b 0d 0d 09 2f | result |= 0;.../|
|00000380| 2a 20 53 74 75 66 66 20 | 74 68 65 20 73 70 65 63 |* Stuff |the spec|
|00000390| 69 66 69 65 64 20 73 74 | 72 69 6e 67 73 20 69 6e |ified st|rings in|
|000003a0| 74 6f 20 74 68 65 20 61 | 6c 65 72 74 20 61 6e 64 |to the a|lert and|
|000003b0| 20 66 6f 72 63 65 20 74 | 68 65 20 63 75 72 73 6f | force t|he curso|
|000003c0| 72 20 74 6f 20 62 65 20 | 61 6e 20 61 72 72 6f 77 |r to be |an arrow|
|000003d0| 0d 09 20 2a 2f 0d 09 50 | 61 72 61 6d 54 65 78 74 |.. */..P|aramText|
|000003e0| 28 70 31 2c 20 70 32 2c | 20 70 33 2c 20 70 34 29 |(p1, p2,| p3, p4)|
|000003f0| 3b 0d 09 49 6e 69 74 43 | 75 72 73 6f 72 28 29 3b |;..InitC|ursor();|
|00000400| 0d 0d 09 2f 2a 20 43 61 | 6c 6c 20 74 68 65 20 61 |.../* Ca|ll the a|
|00000410| 70 70 72 6f 70 72 69 61 | 74 65 20 61 6c 65 72 74 |ppropria|te alert|
|00000420| 20 74 65 6d 70 6c 61 74 | 65 2c 20 62 61 73 65 64 | templat|e, based|
|00000430| 20 6f 6e 20 6e 42 75 74 | 74 6f 6e 73 0d 09 20 2a | on nBut|tons.. *|
|00000440| 2f 0d 09 73 77 69 74 63 | 68 20 28 6e 42 75 74 74 |/..switc|h (nButt|
|00000450| 6f 6e 73 29 20 7b 0d 09 | 63 61 73 65 20 77 61 72 |ons) {..|case war|
|00000460| 6e 59 65 73 3a 0d 09 09 | 72 65 73 75 6c 74 20 3d |nYes:...|result =|
|00000470| 20 41 6c 65 72 74 28 63 | 6f 6e 74 69 6e 75 65 41 | Alert(c|ontinueA|
|00000480| 6c 65 72 74 49 44 2c 20 | 28 50 74 72 29 20 44 6c |lertID, |(Ptr) Dl|
|00000490| 6f 67 4d 6f 64 61 6c 45 | 76 65 6e 74 29 3b 0d 09 |ogModalE|vent);..|
|000004a0| 09 62 72 65 61 6b 3b 0d | 0d 09 63 61 73 65 20 77 |.break;.|..case w|
|000004b0| 61 72 6e 4e 6f 3a 0d 09 | 09 72 65 73 75 6c 74 20 |arnNo:..|.result |
|000004c0| 3d 20 41 6c 65 72 74 28 | 79 65 73 6e 6f 41 6c 65 |= Alert(|yesnoAle|
|000004d0| 72 74 49 44 2c 20 28 50 | 74 72 29 20 44 6c 6f 67 |rtID, (P|tr) Dlog|
|000004e0| 4d 6f 64 61 6c 45 76 65 | 6e 74 29 3b 0d 09 09 62 |ModalEve|nt);...b|
|000004f0| 72 65 61 6b 3b 0d 0d 09 | 63 61 73 65 20 77 61 72 |reak;...|case war|
|00000500| 6e 43 61 6e 63 65 6c 3a | 0d 09 09 72 65 73 75 6c |nCancel:|...resul|
|00000510| 74 20 3d 20 41 6c 65 72 | 74 28 63 61 6e 63 65 6c |t = Aler|t(cancel|
|00000520| 41 6c 65 72 74 49 44 2c | 20 28 50 74 72 29 20 44 |AlertID,| (Ptr) D|
|00000530| 6c 6f 67 4d 6f 64 61 6c | 45 76 65 6e 74 29 3b 0d |logModal|Event);.|
|00000540| 09 09 62 72 65 61 6b 3b | 0d 0d 09 64 65 66 61 75 |..break;|...defau|
|00000550| 6c 74 3a 0d 09 09 62 72 | 65 61 6b 3b 0d 09 7d 0d |lt:...br|eak;..}.|
|00000560| 0d 09 2f 2a 20 49 66 20 | 77 65 20 6e 65 65 64 20 |../* If |we need |
|00000570| 74 6f 20 64 69 65 2c 20 | 67 6f 20 6d 65 72 63 69 |to die, |go merci|
|00000580| 66 75 6c 6c 79 2e 2e 2e | 20 20 4f 74 68 65 72 77 |fully...| Otherw|
|00000590| 69 73 65 20 72 65 74 75 | 72 6e 20 74 68 65 20 75 |ise retu|rn the u|
|000005a0| 73 65 72 27 73 20 63 68 | 6f 69 63 65 0d 09 20 2a |ser's ch|oice.. *|
|000005b0| 2f 0d 09 69 66 20 28 69 | 73 46 61 74 61 6c 20 26 |/..if (i|sFatal &|
|000005c0| 26 20 28 72 65 73 75 6c | 74 20 3d 3d 20 77 61 72 |& (resul|t == war|
|000005d0| 6e 59 65 73 29 29 0d 09 | 09 41 70 70 6c 51 75 69 |nYes))..|.ApplQui|
|000005e0| 74 28 29 3b 0d 0d 09 72 | 65 74 75 72 6e 20 72 65 |t();...r|eturn re|
|000005f0| 73 75 6c 74 3b 0d 7d 0d | 0d 0d 2f 2a 20 49 6e 20 |sult;.}.|../* In |
|00000600| 63 61 73 65 20 6f 75 72 | 20 61 70 70 6c 69 63 61 |case our| applica|
|00000610| 74 69 6f 6e 20 63 61 6e | 6e 6f 74 20 67 65 74 20 |tion can|not get |
|00000620| 65 6e 6f 75 67 68 20 6d | 65 6d 6f 72 79 2c 20 70 |enough m|emory, p|
|00000630| 6c 65 61 73 65 20 73 71 | 75 65 65 6b 20 61 62 6f |lease sq|ueek abo|
|00000640| 75 74 20 69 74 2e 0d 20 | 2a 2f 0d 70 61 73 63 61 |ut it.. |*/.pasca|
|00000650| 6c 20 6c 6f 6e 67 0d 45 | 72 72 47 72 6f 77 5a 6f |l long.E|rrGrowZo|
|00000660| 6e 65 20 28 6e 65 65 64 | 65 64 29 0d 09 72 65 67 |ne (need|ed)..reg|
|00000670| 69 73 74 65 72 20 6c 6f | 6e 67 20 6e 65 65 64 65 |ister lo|ng neede|
|00000680| 64 3b 0d 7b 0d 09 72 65 | 67 69 73 74 65 72 20 53 |d;.{..re|gister S|
|00000690| 69 7a 65 20 74 68 65 53 | 69 7a 65 20 3d 20 30 4c |ize theS|ize = 0L|
|000006a0| 3b 0d 09 73 74 61 74 69 | 63 20 53 74 72 32 35 35 |;..stati|c Str255|
|000006b0| 20 70 61 72 61 6d 31 2c | 20 70 61 72 61 6d 32 2c | param1,| param2,|
|000006c0| 20 70 61 72 61 6d 33 3b | 0d 0d 09 2f 2a 20 47 6f | param3;|.../* Go|
|000006d0| 69 6e 67 20 74 6f 20 66 | 69 72 73 74 20 67 65 74 |ing to f|irst get|
|000006e0| 20 72 69 64 20 6f 66 20 | 74 68 65 20 61 76 61 74 | rid of |the avat|
|000006f0| 61 72 20 68 61 6e 64 6c | 65 2e 2e 2e 20 20 49 6e |ar handl|e... In|
|00000700| 76 6f 6b 65 20 74 68 65 | 20 0d 09 20 2a 20 67 6f |voke the| .. * go|
|00000710| 64 64 65 73 73 20 6f 66 | 20 74 68 65 20 4d 65 6d |ddess of| the Mem|
|00000720| 6f 72 79 4d 67 72 20 74 | 6f 20 69 6e 74 65 72 76 |oryMgr t|o interv|
|00000730| 65 6e 65 20 6f 6e 20 62 | 65 68 61 6c 66 20 6f 66 |ene on b|ehalf of|
|00000740| 20 74 68 69 73 20 0d 09 | 20 2a 20 61 70 70 6c 69 | this ..| * appli|
|00000750| 63 61 74 69 6f 6e 0d 09 | 20 2a 2f 0d 09 69 66 20 |cation..| */..if |
|00000760| 28 65 72 72 41 76 61 74 | 61 72 48 64 6c 29 20 7b |(errAvat|arHdl) {|
|00000770| 0d 09 09 74 68 65 53 69 | 7a 65 20 3d 20 47 65 74 |...theSi|ze = Get|
|00000780| 48 61 6e 64 6c 65 53 69 | 7a 65 28 65 72 72 41 76 |HandleSi|ze(errAv|
|00000790| 61 74 61 72 48 64 6c 29 | 3b 0d 09 09 44 69 73 70 |atarHdl)|;...Disp|
|000007a0| 6f 73 48 61 6e 64 6c 65 | 28 65 72 72 41 76 61 74 |osHandle|(errAvat|
|000007b0| 61 72 48 64 6c 29 3b 0d | 09 09 65 72 72 41 76 61 |arHdl);.|..errAva|
|000007c0| 74 61 72 48 64 6c 20 3d | 20 4e 55 4c 4c 3b 0d 09 |tarHdl =| NULL;..|
|000007d0| 7d 0d 0d 09 2f 2a 20 50 | 75 6c 6c 20 69 6e 20 74 |}.../* P|ull in t|
|000007e0| 68 65 20 6e 65 65 64 65 | 64 20 73 74 72 69 6e 67 |he neede|d string|
|000007f0| 73 0d 09 20 2a 2f 0d 09 | 47 65 74 49 6e 64 53 74 |s.. */..|GetIndSt|
|00000800| 72 69 6e 67 28 70 61 72 | 61 6d 31 2c 20 73 74 72 |ring(par|am1, str|
|00000810| 73 43 6f 6e 76 65 72 73 | 65 2c 20 73 74 72 41 70 |sConvers|e, strAp|
|00000820| 70 6c 4e 61 6d 65 29 3b | 0d 09 47 65 74 49 6e 64 |plName);|..GetInd|
|00000830| 53 74 72 69 6e 67 28 70 | 61 72 61 6d 32 2c 20 73 |String(p|aram2, s|
|00000840| 74 72 73 43 6f 6e 76 65 | 72 73 65 2c 20 73 74 72 |trsConve|rse, str|
|00000850| 4e 6f 4d 65 6d 29 3b 0d | 09 47 65 74 49 6e 64 53 |NoMem);.|.GetIndS|
|00000860| 74 72 69 6e 67 28 70 61 | 72 61 6d 33 2c 20 73 74 |tring(pa|ram3, st|
|00000870| 72 73 43 6f 6e 76 65 72 | 73 65 2c 20 73 74 72 45 |rsConver|se, strE|
|00000880| 78 69 74 47 72 61 63 65 | 29 3b 0d 09 0d 09 2f 2a |xitGrace|);..../*|
|00000890| 20 4e 6f 77 2c 20 61 73 | 6b 20 77 68 65 74 68 65 | Now, as|k whethe|
|000008a0| 72 20 74 68 65 20 75 73 | 65 72 20 77 69 73 68 65 |r the us|er wishe|
|000008b0| 73 20 74 6f 20 64 69 65 | 20 6d 65 72 63 69 66 75 |s to die| mercifu|
|000008c0| 6c 6c 79 20 6f 72 20 62 | 79 20 74 65 6d 70 74 69 |lly or b|y tempti|
|000008d0| 6e 67 0d 09 20 2a 20 46 | 61 74 65 20 61 6e 64 20 |ng.. * F|ate and |
|000008e0| 63 6f 6e 74 69 6e 75 69 | 6e 67 20 77 69 74 68 20 |continui|ng with |
|000008f0| 61 20 6d 6f 72 74 61 6c | 6c 79 20 77 6f 75 6e 64 |a mortal|ly wound|
|00000900| 65 64 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2e 20 |ed appli|cation. |
|00000910| 20 49 66 20 74 68 65 0d | 09 20 2a 20 68 61 73 20 | If the.|. * has |
|00000920| 69 6e 64 75 73 74 72 69 | 61 6c 20 73 74 72 65 6e |industri|al stren|
|00000930| 67 74 68 20 63 6f 6d 70 | 75 74 69 6e 67 20 62 61 |gth comp|uting ba|
|00000940| 6c 6c 73 20 61 6e 64 20 | 63 6f 6e 74 69 6e 75 65 |lls and |continue|
|00000950| 73 2c 20 74 68 65 6e 20 | 77 65 0d 09 20 2a 20 64 |s, then |we.. * d|
|00000960| 6f 6e 27 74 20 6e 65 65 | 64 20 74 6f 20 62 65 20 |on't nee|d to be |
|00000970| 63 61 72 65 66 75 6c 20 | 61 6e 79 6d 6f 72 65 2c |careful |anymore,|
|00000980| 20 73 6f 20 66 72 65 65 | 20 74 68 65 20 6c 6f 63 | so free| the loc|
|00000990| 6b 65 64 20 6c 61 73 74 | 20 72 65 73 6f 72 74 0d |ked last| resort.|
|000009a0| 09 20 2a 20 77 61 72 6e | 69 6e 67 20 61 6c 65 72 |. * warn|ing aler|
|000009b0| 74 20 44 49 54 4c 2e 0d | 09 20 2a 2f 0d 09 28 76 |t DITL..|. */..(v|
|000009c0| 6f 69 64 29 20 45 72 72 | 57 61 72 6e 69 6e 67 28 |oid) Err|Warning(|
|000009d0| 77 61 72 6e 4e 6f 2c 20 | 54 52 55 45 2c 20 70 61 |warnNo, |TRUE, pa|
|000009e0| 72 61 6d 31 2c 20 70 61 | 72 61 6d 32 2c 20 70 61 |ram1, pa|ram2, pa|
|000009f0| 72 61 6d 33 2c 20 4e 75 | 6c 6c 53 74 72 29 3b 0d |ram3, Nu|llStr);.|
|00000a00| 09 46 72 65 65 41 6c 65 | 72 74 28 79 65 73 6e 6f |.FreeAle|rt(yesno|
|00000a10| 41 6c 65 72 74 49 44 29 | 3b 0d 09 0d 09 72 65 74 |AlertID)|;....ret|
|00000a20| 75 72 6e 20 74 68 65 53 | 69 7a 65 3b 0d 7d 0d 0d |urn theS|ize;.}..|
|00000a30| 0d 2f 2a 20 41 74 74 65 | 6d 70 74 20 74 6f 20 61 |./* Atte|mpt to a|
|00000a40| 6c 6c 6f 63 61 74 65 20 | 6d 65 6d 6f 72 79 2c 20 |llocate |memory, |
|00000a50| 65 72 72 6f 72 20 63 68 | 65 63 6b 20 74 68 65 20 |error ch|eck the |
|00000a60| 72 65 73 75 6c 74 20 61 | 6e 64 20 6e 6f 74 69 66 |result a|nd notif|
|00000a70| 79 20 74 68 65 20 75 73 | 65 72 20 69 6e 20 74 68 |y the us|er in th|
|00000a80| 65 0d 20 2a 20 65 76 65 | 6e 74 20 6f 66 20 61 20 |e. * eve|nt of a |
|00000a90| 66 61 69 6c 75 72 65 2c | 20 6f 74 68 65 72 77 69 |failure,| otherwi|
|00000aa0| 73 65 20 72 65 74 75 72 | 6e 20 61 20 70 6f 69 6e |se retur|n a poin|
|00000ab0| 74 65 72 20 74 6f 20 74 | 68 65 20 72 65 71 75 65 |ter to t|he reque|
|00000ac0| 73 74 65 64 20 6d 65 6d | 6f 72 79 20 62 6c 6f 63 |sted mem|ory bloc|
|00000ad0| 6b 2e 0d 20 2a 2f 0d 50 | 74 72 0d 45 72 72 4e 65 |k.. */.P|tr.ErrNe|
|00000ae0| 77 50 74 72 20 28 74 68 | 65 53 69 7a 65 29 0d 09 |wPtr (th|eSize)..|
|00000af0| 72 65 67 69 73 74 65 72 | 20 53 69 7a 65 20 74 68 |register| Size th|
|00000b00| 65 53 69 7a 65 3b 0d 7b | 0d 09 72 65 67 69 73 74 |eSize;.{|..regist|
|00000b10| 65 72 20 50 74 72 20 72 | 65 73 75 6c 74 20 3d 20 |er Ptr r|esult = |
|00000b20| 4e 55 4c 4c 3b 0d 09 53 | 74 72 32 35 35 20 70 61 |NULL;..S|tr255 pa|
|00000b30| 72 61 6d 31 2c 20 70 61 | 72 61 6d 32 2c 20 70 61 |ram1, pa|ram2, pa|
|00000b40| 72 61 6d 33 3b 0d 09 0d | 09 69 66 20 28 21 28 72 |ram3;...|.if (!(r|
|00000b50| 65 73 75 6c 74 20 3d 20 | 4e 65 77 50 74 72 28 74 |esult = |NewPtr(t|
|00000b60| 68 65 53 69 7a 65 29 29 | 29 20 7b 0d 09 09 2f 2a |heSize))|) {.../*|
|00000b70| 20 50 75 6c 6c 20 69 6e | 20 74 68 65 20 6e 65 65 | Pull in| the nee|
|00000b80| 64 65 64 20 73 74 72 69 | 6e 67 73 0d 09 09 20 2a |ded stri|ngs... *|
|00000b90| 2f 0d 09 09 47 65 74 49 | 6e 64 53 74 72 69 6e 67 |/...GetI|ndString|
|00000ba0| 28 70 61 72 61 6d 31 2c | 20 73 74 72 73 43 6f 6e |(param1,| strsCon|
|00000bb0| 76 65 72 73 65 2c 20 73 | 74 72 4d 65 6d 46 61 69 |verse, s|trMemFai|
|00000bc0| 6c 29 3b 0d 09 09 47 65 | 74 49 6e 64 53 74 72 69 |l);...Ge|tIndStri|
|00000bd0| 6e 67 28 70 61 72 61 6d | 32 2c 20 73 74 72 73 43 |ng(param|2, strsC|
|00000be0| 6f 6e 76 65 72 73 65 2c | 20 73 74 72 44 6f 6e 74 |onverse,| strDont|
|00000bf0| 50 61 6e 69 63 29 3b 0d | 09 09 47 65 74 49 6e 64 |Panic);.|..GetInd|
|00000c00| 53 74 72 69 6e 67 28 70 | 61 72 61 6d 33 2c 20 73 |String(p|aram3, s|
|00000c10| 74 72 73 43 6f 6e 76 65 | 72 73 65 2c 20 73 74 72 |trsConve|rse, str|
|00000c20| 45 78 69 74 47 72 61 63 | 65 29 3b 0d 09 09 0d 09 |ExitGrac|e);.....|
|00000c30| 09 28 76 6f 69 64 29 20 | 45 72 72 57 61 72 6e 69 |.(void) |ErrWarni|
|00000c40| 6e 67 28 77 61 72 6e 4e | 6f 2c 20 54 52 55 45 2c |ng(warnN|o, TRUE,|
|00000c50| 20 70 61 72 61 6d 31 2c | 20 70 61 72 61 6d 32 2c | param1,| param2,|
|00000c60| 20 70 61 72 61 6d 33 2c | 20 4e 75 6c 6c 53 74 72 | param3,| NullStr|
|00000c70| 29 3b 0d 09 7d 0d 0d 09 | 72 65 74 75 72 6e 20 72 |);..}...|return r|
|00000c80| 65 73 75 6c 74 3b 0d 7d | 0d 0d 0d 2f 2a 20 41 74 |esult;.}|.../* At|
|00000c90| 74 65 6d 70 74 20 74 6f | 20 61 6c 6c 6f 63 61 74 |tempt to| allocat|
|00000ca0| 65 20 61 20 6e 65 77 20 | 68 61 6e 64 6c 65 2c 20 |e a new |handle, |
|00000cb0| 65 72 72 6f 72 20 63 68 | 65 63 6b 20 74 68 65 20 |error ch|eck the |
|00000cc0| 72 65 73 75 6c 74 20 61 | 6e 64 20 6e 6f 74 69 66 |result a|nd notif|
|00000cd0| 79 20 74 68 65 20 75 73 | 65 72 20 69 6e 0d 20 2a |y the us|er in. *|
|00000ce0| 20 74 68 65 20 65 76 65 | 6e 74 20 6f 66 20 61 20 | the eve|nt of a |
|00000cf0| 66 61 69 6c 75 72 65 2c | 20 6f 74 68 65 72 77 69 |failure,| otherwi|
|00000d00| 73 65 20 72 65 74 75 72 | 6e 20 61 20 68 61 6e 64 |se retur|n a hand|
|00000d10| 6c 65 20 74 6f 20 74 68 | 65 20 72 65 71 75 65 73 |le to th|e reques|
|00000d20| 74 65 64 20 6d 65 6d 6f | 72 79 20 62 6c 6f 63 6b |ted memo|ry block|
|00000d30| 2e 0d 20 2a 2f 0d 48 61 | 6e 64 6c 65 0d 45 72 72 |.. */.Ha|ndle.Err|
|00000d40| 4e 65 77 48 61 6e 64 6c | 65 20 28 74 68 65 53 69 |NewHandl|e (theSi|
|00000d50| 7a 65 29 0d 09 72 65 67 | 69 73 74 65 72 20 53 69 |ze)..reg|ister Si|
|00000d60| 7a 65 20 74 68 65 53 69 | 7a 65 3b 0d 7b 0d 09 72 |ze theSi|ze;.{..r|
|00000d70| 65 67 69 73 74 65 72 20 | 48 61 6e 64 6c 65 20 72 |egister |Handle r|
|00000d80| 65 73 75 6c 74 20 3d 20 | 4e 55 4c 4c 3b 0d 09 53 |esult = |NULL;..S|
|00000d90| 74 72 32 35 35 20 70 61 | 72 61 6d 31 2c 20 70 61 |tr255 pa|ram1, pa|
|00000da0| 72 61 6d 32 2c 20 70 61 | 72 61 6d 33 3b 0d 09 0d |ram2, pa|ram3;...|
|00000db0| 09 69 66 20 28 21 28 72 | 65 73 75 6c 74 20 3d 20 |.if (!(r|esult = |
|00000dc0| 4e 65 77 48 61 6e 64 6c | 65 28 74 68 65 53 69 7a |NewHandl|e(theSiz|
|00000dd0| 65 29 29 20 7c 7c 20 21 | 28 2a 72 65 73 75 6c 74 |e)) || !|(*result|
|00000de0| 29 29 20 7b 0d 09 09 2f | 2a 20 50 75 6c 6c 20 69 |)) {.../|* Pull i|
|00000df0| 6e 20 74 68 65 20 6e 65 | 65 64 65 64 20 73 74 72 |n the ne|eded str|
|00000e00| 69 6e 67 73 0d 09 09 20 | 2a 2f 0d 09 09 47 65 74 |ings... |*/...Get|
|00000e10| 49 6e 64 53 74 72 69 6e | 67 28 70 61 72 61 6d 31 |IndStrin|g(param1|
|00000e20| 2c 20 73 74 72 73 43 6f | 6e 76 65 72 73 65 2c 20 |, strsCo|nverse, |
|00000e30| 73 74 72 4d 65 6d 46 61 | 69 6c 29 3b 0d 09 09 47 |strMemFa|il);...G|
|00000e40| 65 74 49 6e 64 53 74 72 | 69 6e 67 28 70 61 72 61 |etIndStr|ing(para|
|00000e50| 6d 32 2c 20 73 74 72 73 | 43 6f 6e 76 65 72 73 65 |m2, strs|Converse|
|00000e60| 2c 20 73 74 72 44 6f 6e | 74 50 61 6e 69 63 29 3b |, strDon|tPanic);|
|00000e70| 0d 09 09 47 65 74 49 6e | 64 53 74 72 69 6e 67 28 |...GetIn|dString(|
|00000e80| 70 61 72 61 6d 33 2c 20 | 73 74 72 73 43 6f 6e 76 |param3, |strsConv|
|00000e90| 65 72 73 65 2c 20 73 74 | 72 45 78 69 74 47 72 61 |erse, st|rExitGra|
|00000ea0| 63 65 29 3b 0d 09 09 0d | 09 09 28 76 6f 69 64 29 |ce);....|..(void)|
|00000eb0| 20 45 72 72 57 61 72 6e | 69 6e 67 28 77 61 72 6e | ErrWarn|ing(warn|
|00000ec0| 4e 6f 2c 20 54 52 55 45 | 2c 20 70 61 72 61 6d 31 |No, TRUE|, param1|
|00000ed0| 2c 20 70 61 72 61 6d 32 | 2c 20 70 61 72 61 6d 33 |, param2|, param3|
|00000ee0| 2c 20 4e 75 6c 6c 53 74 | 72 29 3b 0d 09 7d 0d 0d |, NullSt|r);..}..|
|00000ef0| 09 72 65 74 75 72 6e 20 | 72 65 73 75 6c 74 3b 0d |.return |result;.|
|00000f00| 7d 0d 0d 0d 2f 2a 20 53 | 69 67 6e 61 6c 20 61 20 |}.../* S|ignal a |
|00000f10| 66 69 6c 65 20 65 72 72 | 6f 72 20 74 6f 20 74 68 |file err|or to th|
|00000f20| 65 20 75 73 65 72 2e 0d | 20 2a 2f 0d 76 6f 69 64 |e user..| */.void|
|00000f30| 0d 45 72 72 46 69 6c 65 | 4d 67 72 20 28 65 72 72 |.ErrFile|Mgr (err|
|00000f40| 4e 75 6d 2c 20 66 69 6c | 65 4e 61 6d 65 29 0d 09 |Num, fil|eName)..|
|00000f50| 72 65 67 69 73 74 65 72 | 20 4f 53 45 72 72 20 65 |register| OSErr e|
|00000f60| 72 72 4e 75 6d 3b 0d 09 | 72 65 67 69 73 74 65 72 |rrNum;..|register|
|00000f70| 20 53 74 72 69 6e 67 50 | 74 72 20 66 69 6c 65 4e | StringP|tr fileN|
|00000f80| 61 6d 65 3b 0d 7b 0d 09 | 53 74 72 32 35 35 20 70 |ame;.{..|Str255 p|
|00000f90| 61 72 61 6d 31 2c 20 65 | 72 72 53 74 72 3b 0d 09 |aram1, e|rrStr;..|
|00000fa0| 0d 09 2f 2a 20 50 75 6c | 6c 20 69 6e 20 74 68 65 |../* Pul|l in the|
|00000fb0| 20 6e 65 65 64 65 64 20 | 73 74 72 69 6e 67 73 0d | needed |strings.|
|00000fc0| 09 20 2a 2f 0d 09 47 65 | 74 49 6e 64 53 74 72 69 |. */..Ge|tIndStri|
|00000fd0| 6e 67 28 70 61 72 61 6d | 31 2c 20 73 74 72 73 43 |ng(param|1, strsC|
|00000fe0| 6f 6e 76 65 72 73 65 2c | 20 73 74 72 46 69 6c 65 |onverse,| strFile|
|00000ff0| 45 72 72 29 3b 0d 09 4e | 75 6d 54 6f 53 74 72 69 |Err);..N|umToStri|
|00001000| 6e 67 28 65 72 72 4e 75 | 6d 2c 20 65 72 72 53 74 |ng(errNu|m, errSt|
|00001010| 72 29 3b 0d 0d 09 28 76 | 6f 69 64 29 20 45 72 72 |r);...(v|oid) Err|
|00001020| 57 61 72 6e 69 6e 67 28 | 77 61 72 6e 59 65 73 2c |Warning(|warnYes,|
|00001030| 20 46 41 4c 53 45 2c 20 | 70 61 72 61 6d 31 2c 20 | FALSE, |param1, |
|00001040| 66 69 6c 65 4e 61 6d 65 | 2c 20 65 72 72 53 74 72 |fileName|, errStr|
|00001050| 2c 20 4e 75 6c 6c 53 74 | 72 29 3b 0d 7d 0d 00 00 |, NullSt|r);.}...|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+