/ Garbo
/ Garbo.cdr / mac / appl / fixdsktp.sit / Source / applications.c.bin ![]() | next > |
MacBinary | 1989-09-13 | 1.4 KB | [TEXT/KAHL] |
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 | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary, Wed Sep 7 17:12:31 1988, modified Wed Sep 7 18:05:22 1988, creator Think C, type ASCII, 1221 bytes "applications.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] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 63 |..applic|ations.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 04 c5 00 | 00 00 00 9f 4b 56 bf 9f |........|....KV..|
|00000060| 4b 63 22 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Kc".....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 61 63 54 79 70 |#include| <MacTyp|
|00000090| 65 73 2e 68 3e 0d 0d 23 | 69 6e 63 6c 75 64 65 20 |es.h>..#|include |
|000000a0| 22 66 69 78 2e 68 22 0d | 0d 74 79 70 65 64 65 66 |"fix.h".|.typedef|
|000000b0| 20 73 74 72 75 63 74 20 | 61 70 70 6c 5f 65 6e 74 | struct |appl_ent|
|000000c0| 72 79 20 7b 0d 09 6c 6f | 6e 67 20 61 70 70 6c 5f |ry {..lo|ng appl_|
|000000d0| 74 79 70 65 3b 0d 09 6c | 6f 6e 67 20 61 70 70 6c |type;..l|ong appl|
|000000e0| 5f 64 69 72 65 63 74 6f | 72 79 3b 0d 09 75 6e 73 |_directo|ry;..uns|
|000000f0| 69 67 6e 65 64 20 63 68 | 61 72 20 61 70 70 6c 5f |igned ch|ar appl_|
|00000100| 6e 61 6d 65 5b 4e 41 4d | 45 5f 53 49 5a 45 5d 3b |name[NAM|E_SIZE];|
|00000110| 0d 7d 20 61 70 70 6c 5f | 65 6e 74 72 79 2c 20 2a |.} appl_|entry, *|
|00000120| 61 70 70 6c 5f 70 74 72 | 3b 0d 0d 48 61 6e 64 6c |appl_ptr|;..Handl|
|00000130| 65 20 61 70 70 6c 5f 6c | 69 73 74 3b 0d 0d 09 2f |e appl_l|ist;.../|
|00000140| 2a 20 50 65 72 66 6f 72 | 6d 20 69 6e 69 74 69 61 |* Perfor|m initia|
|00000150| 6c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6c 69 |l applic|ation li|
|00000160| 73 74 20 70 72 6f 63 65 | 73 73 69 6e 67 2e 20 2a |st proce|ssing. *|
|00000170| 2f 0d 0d 76 6f 69 64 20 | 70 72 65 5f 61 70 70 6c |/..void |pre_appl|
|00000180| 5f 70 72 6f 63 65 73 73 | 69 6e 67 28 29 0d 7b 0d |_process|ing().{.|
|00000190| 09 69 66 20 28 69 73 5f | 68 66 73 29 20 7b 0d 09 |.if (is_|hfs) {..|
|000001a0| 09 61 70 70 6c 5f 63 6f | 75 6e 74 20 3d 20 30 3b |.appl_co|unt = 0;|
|000001b0| 0d 09 09 61 70 70 6c 5f | 6c 69 73 74 20 3d 20 4e |...appl_|list = N|
|000001c0| 65 77 48 61 6e 64 6c 65 | 28 30 4c 29 3b 09 2f 2a |ewHandle|(0L);./*|
|000001d0| 20 43 6c 65 61 72 20 61 | 70 70 6c 69 63 61 74 69 | Clear a|pplicati|
|000001e0| 6f 6e 20 6c 69 73 74 2e | 2e 2e 20 2a 2f 0d 09 7d |on list.|.. */..}|
|000001f0| 0d 7d 0d 0d 09 2f 2a 20 | 50 65 72 66 6f 72 6d 20 |.}.../* |Perform |
|00000200| 66 69 6e 61 6c 20 61 70 | 70 6c 69 63 61 74 69 6f |final ap|plicatio|
|00000210| 6e 20 6c 69 73 74 20 70 | 72 6f 63 65 73 73 69 6e |n list p|rocessin|
|00000220| 67 2e 20 2a 2f 0d 0d 76 | 6f 69 64 20 70 6f 73 74 |g. */..v|oid post|
|00000230| 5f 61 70 70 6c 5f 70 72 | 6f 63 65 73 73 69 6e 67 |_appl_pr|ocessing|
|00000240| 28 29 0d 7b 0d 23 69 66 | 6e 64 65 66 20 54 45 53 |().{.#if|ndef TES|
|00000250| 54 5f 4d 4f 44 45 0d 0d | 09 75 6e 73 69 67 6e 65 |T_MODE..|.unsigne|
|00000260| 64 20 63 68 61 72 20 74 | 65 6d 70 3b 0d 0d 09 69 |d char t|emp;...i|
|00000270| 66 20 28 69 73 5f 68 66 | 73 29 20 7b 0d 09 09 6b |f (is_hf|s) {...k|
|00000280| 69 6c 6c 5f 72 65 73 6f | 75 72 63 65 28 27 41 50 |ill_reso|urce('AP|
|00000290| 50 4c 27 2c 30 29 3b 09 | 2f 2a 20 4b 69 6c 6c 20 |PL',0);.|/* Kill |
|000002a0| 65 78 69 73 74 69 6e 67 | 20 61 70 70 6c 69 63 61 |existing| applica|
|000002b0| 74 69 6f 6e 20 6c 69 73 | 74 2e 20 2a 2f 0d 09 09 |tion lis|t. */...|
|000002c0| 74 65 6d 70 20 3d 20 27 | 5c 30 27 3b 0d 09 09 41 |temp = '|\0';...A|
|000002d0| 64 64 52 65 73 6f 75 72 | 63 65 28 61 70 70 6c 5f |ddResour|ce(appl_|
|000002e0| 6c 69 73 74 2c 20 27 41 | 50 50 4c 27 2c 20 30 2c |list, 'A|PPL', 0,|
|000002f0| 20 26 74 65 6d 70 29 3b | 0d 09 09 57 72 69 74 65 | &temp);|...Write|
|00000300| 52 65 73 6f 75 72 63 65 | 28 61 70 70 6c 5f 6c 69 |Resource|(appl_li|
|00000310| 73 74 29 3b 0d 09 09 52 | 65 6c 65 61 73 65 52 65 |st);...R|eleaseRe|
|00000320| 73 6f 75 72 63 65 28 61 | 70 70 6c 5f 6c 69 73 74 |source(a|ppl_list|
|00000330| 29 3b 0d 09 7d 0d 23 65 | 6c 73 65 20 54 45 53 54 |);..}.#e|lse TEST|
|00000340| 5f 4d 4f 44 45 0d 09 44 | 69 73 70 6f 73 48 61 6e |_MODE..D|isposHan|
|00000350| 64 6c 65 28 61 70 70 6c | 5f 6c 69 73 74 29 3b 0d |dle(appl|_list);.|
|00000360| 23 65 6e 64 69 66 20 54 | 45 53 54 5f 4d 4f 44 45 |#endif T|EST_MODE|
|00000370| 0d 7d 0d 0d 09 2f 2a 20 | 41 64 64 20 61 20 6e 65 |.}.../* |Add a ne|
|00000380| 77 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 65 6e |w applic|ation en|
|00000390| 74 72 79 2e 20 2a 2f 0d | 0d 76 6f 69 64 20 61 64 |try. */.|.void ad|
|000003a0| 64 5f 61 70 70 6c 69 63 | 61 74 69 6f 6e 28 74 79 |d_applic|ation(ty|
|000003b0| 70 65 2c 20 64 69 72 5f | 69 64 2c 20 6e 61 6d 65 |pe, dir_|id, name|
|000003c0| 29 0d 09 6c 6f 6e 67 20 | 74 79 70 65 3b 0d 09 69 |)..long |type;..i|
|000003d0| 6e 74 20 64 69 72 5f 69 | 64 3b 0d 09 75 6e 73 69 |nt dir_i|d;..unsi|
|000003e0| 67 6e 65 64 20 63 68 61 | 72 20 2a 6e 61 6d 65 3b |gned cha|r *name;|
|000003f0| 0d 7b 0d 09 72 65 67 69 | 73 74 65 72 20 61 70 70 |.{..regi|ster app|
|00000400| 6c 5f 70 74 72 20 62 6c | 6f 62 3b 0d 09 72 65 67 |l_ptr bl|ob;..reg|
|00000410| 69 73 74 65 72 20 6c 6f | 6e 67 20 73 69 7a 65 3b |ister lo|ng size;|
|00000420| 0d 0d 09 61 70 70 6c 5f | 63 6f 75 6e 74 2b 2b 3b |...appl_|count++;|
|00000430| 0d 09 62 6c 6f 62 20 3d | 20 28 61 70 70 6c 5f 70 |..blob =| (appl_p|
|00000440| 74 72 29 20 4e 65 77 50 | 74 72 28 28 6c 6f 6e 67 |tr) NewP|tr((long|
|00000450| 29 73 69 7a 65 6f 66 28 | 61 70 70 6c 5f 65 6e 74 |)sizeof(|appl_ent|
|00000460| 72 79 29 29 3b 0d 09 62 | 6c 6f 62 2d 3e 61 70 70 |ry));..b|lob->app|
|00000470| 6c 5f 74 79 70 65 20 3d | 20 74 79 70 65 3b 0d 09 |l_type =| type;..|
|00000480| 62 6c 6f 62 2d 3e 61 70 | 70 6c 5f 64 69 72 65 63 |blob->ap|pl_direc|
|00000490| 74 6f 72 79 20 3d 20 64 | 69 72 5f 69 64 3b 0d 09 |tory = d|ir_id;..|
|000004a0| 63 6f 70 79 73 74 72 28 | 62 6c 6f 62 2d 3e 61 70 |copystr(|blob->ap|
|000004b0| 70 6c 5f 6e 61 6d 65 2c | 20 6e 61 6d 65 29 3b 0d |pl_name,| name);.|
|000004c0| 09 73 69 7a 65 20 3d 20 | 39 20 2b 20 6e 61 6d 65 |.size = |9 + name|
|000004d0| 5b 30 5d 3b 0d 09 69 66 | 20 28 73 69 7a 65 20 26 |[0];..if| (size &|
|000004e0| 20 31 29 09 09 09 09 09 | 2f 2a 20 4b 65 65 70 20 | 1).....|/* Keep |
|000004f0| 77 6f 72 64 2d 61 6c 69 | 67 6e 65 64 2e 2e 2e 20 |word-ali|gned... |
|00000500| 2a 2f 0d 09 09 73 69 7a | 65 2b 2b 3b 0d 09 50 74 |*/...siz|e++;..Pt|
|00000510| 72 41 6e 64 48 61 6e 64 | 28 62 6c 6f 62 2c 20 61 |rAndHand|(blob, a|
|00000520| 70 70 6c 5f 6c 69 73 74 | 2c 20 73 69 7a 65 29 3b |ppl_list|, size);|
|00000530| 0d 09 44 69 73 70 6f 73 | 50 74 72 28 62 6c 6f 62 |..Dispos|Ptr(blob|
|00000540| 29 3b 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |);.}....|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+