home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / appl / fixdsktp.sit / Source / process.c.bin < prev    next >
MacBinary  |  1989-09-13  |  4.9 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).

ConfidenceProgramDetectionMatch TypeSupport
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, Mon Aug 22 13:22:00 1988, modified Wed Sep 7 17:47:04 1988, creator Think C, type ASCII, 4782 bytes "process.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
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 70 72 6f 63 65 73 | 73 2e 63 00 00 00 00 00 |..proces|s.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 12 ae 00 | 00 00 00 9f 36 08 b8 9f |........|....6...|
|00000060| 4b 5e d8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K^......|........|
|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 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|000000a0| 52 65 73 6f 75 72 63 65 | 4d 67 72 2e 68 3e 0d 23 |Resource|Mgr.h>.#|
|000000b0| 69 6e 63 6c 75 64 65 20 | 3c 51 75 69 63 6b 44 72 |include |<QuickDr|
|000000c0| 61 77 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |aw.h>.#i|nclude <|
|000000d0| 57 69 6e 64 6f 77 4d 67 | 72 2e 68 3e 0d 23 69 6e |WindowMg|r.h>.#in|
|000000e0| 63 6c 75 64 65 20 3c 43 | 6f 6e 74 72 6f 6c 4d 67 |clude <C|ontrolMg|
|000000f0| 72 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 44 |r.h>.#in|clude <D|
|00000100| 69 61 6c 6f 67 4d 67 72 | 2e 68 3e 0d 23 69 6e 63 |ialogMgr|.h>.#inc|
|00000110| 6c 75 64 65 20 3c 46 69 | 6c 65 4d 67 72 2e 68 3e |lude <Fi|leMgr.h>|
|00000120| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 73 65 74 6a |..#inclu|de "setj|
|00000130| 6d 70 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |mp.h".#i|nclude "|
|00000140| 66 69 78 2e 68 22 0d 0d | 65 6e 75 6d 20 7b 0d 09 |fix.h"..|enum {..|
|00000150| 49 54 45 4d 5f 50 52 4f | 43 45 53 53 5f 53 54 45 |ITEM_PRO|CESS_STE|
|00000160| 50 20 3d 20 32 2c 0d 0d | 09 49 54 45 4d 5f 53 54 |P = 2,..|.ITEM_ST|
|00000170| 41 54 53 5f 4f 4b 20 3d | 20 31 2c 0d 09 49 54 45 |ATS_OK =| 1,..ITE|
|00000180| 4d 5f 53 54 41 54 53 5f | 49 4e 46 4f 20 3d 20 33 |M_STATS_|INFO = 3|
|00000190| 0d 7d 3b 0d 0d 73 74 61 | 74 69 63 20 48 61 6e 64 |.};..sta|tic Hand|
|000001a0| 6c 65 20 70 72 6f 63 65 | 73 73 5f 69 74 65 6d 3b |le proce|ss_item;|
|000001b0| 0d 73 74 61 74 69 63 20 | 6a 6d 70 5f 62 75 66 20 |.static |jmp_buf |
|000001c0| 61 62 6f 72 74 3b 09 09 | 2f 2a 20 45 6e 76 69 72 |abort;..|/* Envir|
|000001d0| 6f 6e 6d 65 6e 74 20 66 | 6f 72 20 73 65 74 6a 6d |onment f|or setjm|
|000001e0| 70 28 29 2e 20 2a 2f 0d | 73 74 61 74 69 63 20 69 |p(). */.|static i|
|000001f0| 6e 74 20 64 65 73 6b 74 | 6f 70 5f 72 65 66 6e 75 |nt deskt|op_refnu|
|00000200| 6d 3b 0d 0d 76 6f 69 64 | 20 73 68 6f 77 5f 73 74 |m;..void| show_st|
|00000210| 61 74 69 73 74 69 63 73 | 28 76 6f 69 64 29 3b 0d |atistics|(void);.|
|00000220| 76 6f 69 64 20 67 65 6e | 65 72 61 6c 5f 69 6e 69 |void gen|eral_ini|
|00000230| 74 28 76 6f 69 64 29 3b | 0d 76 6f 69 64 20 67 65 |t(void);|.void ge|
|00000240| 6e 65 72 61 6c 5f 66 69 | 6e 69 73 68 28 76 6f 69 |neral_fi|nish(voi|
|00000250| 64 29 3b 0d 76 6f 69 64 | 20 67 65 6e 65 72 61 6c |d);.void| general|
|00000260| 5f 63 6c 65 61 6e 75 70 | 28 76 6f 69 64 29 3b 0d |_cleanup|(void);.|
|00000270| 0d 09 2f 2a 20 50 72 6f | 63 65 73 73 69 6e 67 20 |../* Pro|cessing |
|00000280| 63 6f 6e 74 72 6f 6c 20 | 72 6f 75 74 69 6e 65 73 |control |routines|
|00000290| 2e 20 2a 2f 0d 0d 09 2f | 2a 20 48 61 6e 64 6c 65 |. */.../|* Handle|
|000002a0| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 6f 66 20 6f | process|ing of o|
|000002b0| 6e 65 20 76 6f 6c 75 6d | 65 2e 20 2a 2f 0d 0d 76 |ne volum|e. */..v|
|000002c0| 6f 69 64 20 6f 6e 65 5f | 70 61 73 73 28 29 0d 7b |oid one_|pass().{|
|000002d0| 0d 09 72 65 67 69 73 74 | 65 72 20 44 69 61 6c 6f |..regist|er Dialo|
|000002e0| 67 50 74 72 20 70 72 6f | 63 65 73 73 5f 64 69 61 |gPtr pro|cess_dia|
|000002f0| 6c 6f 67 3b 0d 09 72 65 | 67 69 73 74 65 72 20 69 |log;..re|gister i|
|00000300| 6e 74 20 72 65 61 73 6f | 6e 3b 0d 0d 09 43 6f 75 |nt reaso|n;...Cou|
|00000310| 6c 64 44 69 61 6c 6f 67 | 28 44 49 41 4c 4f 47 5f |ldDialog|(DIALOG_|
|00000320| 50 52 4f 43 45 53 53 29 | 3b 0d 09 43 6f 75 6c 64 |PROCESS)|;..Could|
|00000330| 44 69 61 6c 6f 67 28 44 | 49 41 4c 4f 47 5f 53 54 |Dialog(D|IALOG_ST|
|00000340| 41 54 53 29 3b 0d 09 43 | 6f 75 6c 64 41 6c 65 72 |ATS);..C|ouldAler|
|00000350| 74 28 41 4c 45 52 54 5f | 47 45 4e 45 52 41 4c 29 |t(ALERT_|GENERAL)|
|00000360| 3b 0d 09 69 66 20 28 73 | 65 6c 65 63 74 5f 76 6f |;..if (s|elect_vo|
|00000370| 6c 75 6d 65 5f 64 69 61 | 6c 6f 67 28 26 76 6f 6c |lume_dia|log(&vol|
|00000380| 75 6d 65 5f 72 65 66 6e | 75 6d 2c 20 26 69 73 5f |ume_refn|um, &is_|
|00000390| 68 66 73 29 29 20 7b 0d | 09 09 73 65 74 5f 77 61 |hfs)) {.|..set_wa|
|000003a0| 74 63 68 5f 63 75 72 73 | 6f 72 28 29 3b 0d 09 09 |tch_curs|or();...|
|000003b0| 70 72 6f 63 65 73 73 5f | 64 69 61 6c 6f 67 20 3d |process_|dialog =|
|000003c0| 20 4e 49 4c 3b 0d 09 09 | 72 65 61 73 6f 6e 20 3d | NIL;...|reason =|
|000003d0| 20 73 65 74 6a 6d 70 28 | 61 62 6f 72 74 29 3b 0d | setjmp(|abort);.|
|000003e0| 09 09 69 66 20 28 21 72 | 65 61 73 6f 6e 29 20 7b |..if (!r|eason) {|
|000003f0| 09 09 09 09 2f 2a 20 41 | 62 6f 72 74 20 74 6f 20 |..../* A|bort to |
|00000400| 68 65 72 65 2e 2e 2e 20 | 2a 2f 0d 09 09 09 67 65 |here... |*/....ge|
|00000410| 6e 65 72 61 6c 5f 69 6e | 69 74 28 29 3b 0d 0d 09 |neral_in|it();...|
|00000420| 09 09 70 72 6f 63 65 73 | 73 5f 64 69 61 6c 6f 67 |..proces|s_dialog|
|00000430| 20 3d 20 47 65 74 4e 65 | 77 44 69 61 6c 6f 67 28 | = GetNe|wDialog(|
|00000440| 44 49 41 4c 4f 47 5f 50 | 52 4f 43 45 53 53 2c 20 |DIALOG_P|ROCESS, |
|00000450| 4e 49 4c 2c 20 4d 49 4e | 55 53 5f 4f 4e 45 29 3b |NIL, MIN|US_ONE);|
|00000460| 0d 09 09 09 70 72 6f 63 | 65 73 73 5f 69 74 65 6d |....proc|ess_item|
|00000470| 20 3d 20 67 65 74 5f 69 | 74 65 6d 28 70 72 6f 63 | = get_i|tem(proc|
|00000480| 65 73 73 5f 64 69 61 6c | 6f 67 2c 20 49 54 45 4d |ess_dial|og, ITEM|
|00000490| 5f 50 52 4f 43 45 53 53 | 5f 53 54 45 50 29 3b 0d |_PROCESS|_STEP);.|
|000004a0| 09 09 09 44 72 61 77 44 | 69 61 6c 6f 67 28 70 72 |...DrawD|ialog(pr|
|000004b0| 6f 63 65 73 73 5f 64 69 | 61 6c 6f 67 29 3b 0d 0d |ocess_di|alog);..|
|000004c0| 09 09 09 09 2f 2a 20 50 | 72 65 2d 70 72 6f 63 65 |..../* P|re-proce|
|000004d0| 73 73 20 74 68 65 20 76 | 6f 6c 75 6d 65 2e 20 2a |ss the v|olume. *|
|000004e0| 2f 0d 0d 09 09 09 47 65 | 74 49 6e 64 53 74 72 69 |/.....Ge|tIndStri|
|000004f0| 6e 67 28 73 74 72 69 6e | 67 2c 20 53 54 52 5f 49 |ng(strin|g, STR_I|
|00000500| 44 2c 20 53 54 52 5f 52 | 45 41 44 44 45 53 4b 54 |D, STR_R|EADDESKT|
|00000510| 4f 50 29 3b 0d 09 09 09 | 53 65 74 49 54 65 78 74 |OP);....|SetIText|
|00000520| 28 70 72 6f 63 65 73 73 | 5f 69 74 65 6d 2c 20 73 |(process|_item, s|
|00000530| 74 72 69 6e 67 29 3b 0d | 0d 09 09 09 69 66 20 28 |tring);.|....if (|
|00000540| 70 72 6f 63 65 73 73 5f | 63 6f 6d 6d 65 6e 74 73 |process_|comments|
|00000550| 29 0d 09 09 09 09 70 72 | 65 5f 63 6f 6d 6d 65 6e |).....pr|e_commen|
|00000560| 74 5f 70 72 6f 63 65 73 | 73 69 6e 67 28 29 3b 0d |t_proces|sing();.|
|00000570| 09 09 09 69 66 20 28 70 | 72 6f 63 65 73 73 5f 62 |...if (p|rocess_b|
|00000580| 75 6e 64 6c 65 73 29 0d | 09 09 09 09 70 72 65 5f |undles).|....pre_|
|00000590| 62 75 6e 64 6c 65 5f 70 | 72 6f 63 65 73 73 69 6e |bundle_p|rocessin|
|000005a0| 67 28 29 3b 0d 09 09 09 | 69 66 20 28 70 72 6f 63 |g();....|if (proc|
|000005b0| 65 73 73 5f 61 70 70 6c | 73 29 0d 09 09 09 09 70 |ess_appl|s).....p|
|000005c0| 72 65 5f 61 70 70 6c 5f | 70 72 6f 63 65 73 73 69 |re_appl_|processi|
|000005d0| 6e 67 28 29 3b 0d 0d 09 | 09 09 09 2f 2a 20 50 72 |ng();...|.../* Pr|
|000005e0| 6f 63 65 73 73 20 74 68 | 65 20 66 69 6c 65 73 20 |ocess th|e files |
|000005f0| 6f 6e 20 74 68 65 20 76 | 6f 6c 75 6d 65 2e 20 2a |on the v|olume. *|
|00000600| 2f 0d 0d 09 09 09 47 65 | 74 49 6e 64 53 74 72 69 |/.....Ge|tIndStri|
|00000610| 6e 67 28 73 74 72 69 6e | 67 2c 20 53 54 52 5f 49 |ng(strin|g, STR_I|
|00000620| 44 2c 20 53 54 52 5f 52 | 45 41 44 44 49 53 4b 29 |D, STR_R|EADDISK)|
|00000630| 3b 0d 09 09 09 53 65 74 | 49 54 65 78 74 28 70 72 |;....Set|IText(pr|
|00000640| 6f 63 65 73 73 5f 69 74 | 65 6d 2c 20 73 74 72 69 |ocess_it|em, stri|
|00000650| 6e 67 29 3b 0d 09 09 09 | 69 66 20 28 69 73 5f 68 |ng);....|if (is_h|
|00000660| 66 73 29 0d 09 09 09 09 | 68 66 73 5f 73 63 61 6e |fs).....|hfs_scan|
|00000670| 5f 64 69 73 6b 28 29 3b | 0d 09 09 09 65 6c 73 65 |_disk();|....else|
|00000680| 0d 09 09 09 09 6d 66 73 | 5f 73 63 61 6e 5f 64 69 |.....mfs|_scan_di|
|00000690| 73 6b 28 29 3b 0d 0d 09 | 09 09 09 2f 2a 20 50 6f |sk();...|.../* Po|
|000006a0| 73 74 2d 70 72 6f 63 65 | 73 73 20 74 68 65 20 76 |st-proce|ss the v|
|000006b0| 6f 6c 75 6d 65 2e 20 2a | 2f 0d 0d 09 09 09 47 65 |olume. *|/.....Ge|
|000006c0| 74 49 6e 64 53 74 72 69 | 6e 67 28 73 74 72 69 6e |tIndStri|ng(strin|
|000006d0| 67 2c 20 53 54 52 5f 49 | 44 2c 20 53 54 52 5f 55 |g, STR_I|D, STR_U|
|000006e0| 50 44 41 54 45 44 45 53 | 4b 54 4f 50 29 3b 0d 09 |PDATEDES|KTOP);..|
|000006f0| 09 09 53 65 74 49 54 65 | 78 74 28 70 72 6f 63 65 |..SetITe|xt(proce|
|00000700| 73 73 5f 69 74 65 6d 2c | 20 73 74 72 69 6e 67 29 |ss_item,| string)|
|00000710| 3b 0d 0d 09 09 09 69 66 | 20 28 70 72 6f 63 65 73 |;.....if| (proces|
|00000720| 73 5f 63 6f 6d 6d 65 6e | 74 73 29 0d 09 09 09 09 |s_commen|ts).....|
|00000730| 70 6f 73 74 5f 63 6f 6d | 6d 65 6e 74 5f 70 72 6f |post_com|ment_pro|
|00000740| 63 65 73 73 69 6e 67 28 | 29 3b 0d 09 09 09 69 66 |cessing(|);....if|
|00000750| 20 28 70 72 6f 63 65 73 | 73 5f 62 75 6e 64 6c 65 | (proces|s_bundle|
|00000760| 73 29 0d 09 09 09 09 70 | 6f 73 74 5f 62 75 6e 64 |s).....p|ost_bund|
|00000770| 6c 65 5f 70 72 6f 63 65 | 73 73 69 6e 67 28 29 3b |le_proce|ssing();|
|00000780| 0d 09 09 09 69 66 20 28 | 70 72 6f 63 65 73 73 5f |....if (|process_|
|00000790| 61 70 70 6c 73 29 0d 09 | 09 09 09 70 6f 73 74 5f |appls)..|...post_|
|000007a0| 61 70 70 6c 5f 70 72 6f | 63 65 73 73 69 6e 67 28 |appl_pro|cessing(|
|000007b0| 29 3b 0d 0d 09 09 09 67 | 65 6e 65 72 61 6c 5f 66 |);.....g|eneral_f|
|000007c0| 69 6e 69 73 68 28 29 3b | 0d 09 09 09 53 79 73 74 |inish();|....Syst|
|000007d0| 65 6d 54 61 73 6b 28 29 | 3b 0d 09 09 09 44 69 73 |emTask()|;....Dis|
|000007e0| 70 6f 73 44 69 61 6c 6f | 67 28 70 72 6f 63 65 73 |posDialo|g(proces|
|000007f0| 73 5f 64 69 61 6c 6f 67 | 29 3b 0d 09 09 09 73 65 |s_dialog|);....se|
|00000800| 74 5f 6e 6f 72 6d 61 6c | 5f 63 75 72 73 6f 72 28 |t_normal|_cursor(|
|00000810| 29 3b 0d 09 09 09 73 68 | 6f 77 5f 73 74 61 74 69 |);....sh|ow_stati|
|00000820| 73 74 69 63 73 28 29 3b | 0d 09 09 7d 0d 09 09 65 |stics();|...}...e|
|00000830| 6c 73 65 20 7b 09 2f 2a | 20 41 62 6f 72 74 65 64 |lse {./*| Aborted|
|00000840| 20 73 6f 6d 65 77 68 65 | 72 65 2e 2e 2e 20 2a 2f | somewhe|re... */|
|00000850| 0d 09 09 09 69 66 20 28 | 70 72 6f 63 65 73 73 5f |....if (|process_|
|00000860| 64 69 61 6c 6f 67 29 0d | 09 09 09 09 44 69 73 70 |dialog).|....Disp|
|00000870| 6f 73 44 69 61 6c 6f 67 | 28 70 72 6f 63 65 73 73 |osDialog|(process|
|00000880| 5f 64 69 61 6c 6f 67 29 | 3b 0d 09 09 09 69 66 20 |_dialog)|;....if |
|00000890| 28 72 65 61 73 6f 6e 20 | 3e 20 30 29 0d 09 09 09 |(reason |> 0)....|
|000008a0| 09 67 65 6e 65 72 61 6c | 5f 63 6c 65 61 6e 75 70 |.general|_cleanup|
|000008b0| 28 29 3b 09 2f 2a 20 54 | 72 79 20 74 6f 20 63 6c |();./* T|ry to cl|
|000008c0| 65 61 6e 20 75 70 2e 2e | 2e 20 2a 2f 0d 09 09 09 |ean up..|. */....|
|000008d0| 73 65 74 5f 6e 6f 72 6d | 61 6c 5f 63 75 72 73 6f |set_norm|al_curso|
|000008e0| 72 28 29 3b 0d 09 09 7d | 0d 09 7d 0d 09 46 72 65 |r();...}|..}..Fre|
|000008f0| 65 44 69 61 6c 6f 67 28 | 44 49 41 4c 4f 47 5f 50 |eDialog(|DIALOG_P|
|00000900| 52 4f 43 45 53 53 29 3b | 0d 09 46 72 65 65 44 69 |ROCESS);|..FreeDi|
|00000910| 61 6c 6f 67 28 44 49 41 | 4c 4f 47 5f 53 54 41 54 |alog(DIA|LOG_STAT|
|00000920| 53 29 3b 0d 09 46 72 65 | 65 41 6c 65 72 74 28 41 |S);..Fre|eAlert(A|
|00000930| 4c 45 52 54 5f 47 45 4e | 45 52 41 4c 29 3b 0d 7d |LERT_GEN|ERAL);.}|
|00000940| 0d 0d 09 2f 2a 20 44 6f | 20 67 65 6e 65 72 61 6c |.../* Do| general|
|00000950| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00000960| 28 6f 70 65 6e 20 44 65 | 73 6b 54 6f 70 20 66 69 |(open De|skTop fi|
|00000970| 6c 65 29 2e 20 2a 2f 0d | 0d 73 74 61 74 69 63 20 |le). */.|.static |
|00000980| 76 6f 69 64 20 67 65 6e | 65 72 61 6c 5f 69 6e 69 |void gen|eral_ini|
|00000990| 74 28 29 0d 7b 0d 09 72 | 65 67 69 73 74 65 72 20 |t().{..r|egister |
|000009a0| 48 61 6e 64 6c 65 20 74 | 68 69 6e 67 3b 0d 0d 09 |Handle t|hing;...|
|000009b0| 47 65 74 49 6e 64 53 74 | 72 69 6e 67 28 73 74 72 |GetIndSt|ring(str|
|000009c0| 69 6e 67 2c 20 53 54 52 | 5f 49 44 2c 20 53 54 52 |ing, STR|_ID, STR|
|000009d0| 5f 44 45 53 4b 54 4f 50 | 29 3b 0d 09 64 65 73 6b |_DESKTOP|);..desk|
|000009e0| 74 6f 70 5f 72 65 66 6e | 75 6d 20 3d 20 4f 70 65 |top_refn|um = Ope|
|000009f0| 6e 52 46 50 65 72 6d 28 | 73 74 72 69 6e 67 2c 20 |nRFPerm(|string, |
|00000a00| 76 6f 6c 75 6d 65 5f 72 | 65 66 6e 75 6d 2c 20 66 |volume_r|efnum, f|
|00000a10| 73 52 64 57 72 50 65 72 | 6d 29 3b 0d 09 69 66 20 |sRdWrPer|m);..if |
|00000a20| 28 64 65 73 6b 74 6f 70 | 5f 72 65 66 6e 75 6d 20 |(desktop|_refnum |
|00000a30| 3c 3d 20 30 29 20 7b 0d | 09 09 47 65 74 49 6e 64 |<= 0) {.|..GetInd|
|00000a40| 53 74 72 69 6e 67 28 73 | 74 72 69 6e 67 2c 20 53 |String(s|tring, S|
|00000a50| 54 52 5f 49 44 2c 20 53 | 54 52 5f 4e 4f 44 45 53 |TR_ID, S|TR_NODES|
|00000a60| 4b 29 3b 0d 09 09 50 61 | 72 61 6d 54 65 78 74 28 |K);...Pa|ramText(|
|00000a70| 73 74 72 69 6e 67 2c 20 | 4e 49 4c 2c 20 4e 49 4c |string, |NIL, NIL|
|00000a80| 2c 20 4e 49 4c 29 3b 0d | 09 09 73 65 74 5f 6e 6f |, NIL);.|..set_no|
|00000a90| 72 6d 61 6c 5f 63 75 72 | 73 6f 72 28 29 3b 0d 09 |rmal_cur|sor();..|
|00000aa0| 09 41 6c 65 72 74 28 41 | 4c 45 52 54 5f 47 45 4e |.Alert(A|LERT_GEN|
|00000ab0| 45 52 41 4c 2c 20 4e 49 | 4c 29 3b 0d 09 09 6c 6f |ERAL, NI|L);...lo|
|00000ac0| 6e 67 6a 6d 70 28 61 62 | 6f 72 74 2c 20 2d 31 29 |ngjmp(ab|ort, -1)|
|00000ad0| 3b 09 09 2f 2a 20 44 65 | 73 6b 74 6f 70 20 69 73 |;../* De|sktop is|
|00000ae0| 20 6e 6f 74 20 6f 70 65 | 6e 2e 2e 2e 20 2a 2f 0d | not ope|n... */.|
|00000af0| 09 7d 0d 09 65 6c 73 65 | 20 7b 0d 09 09 74 68 69 |.}..else| {...thi|
|00000b00| 6e 67 20 3d 20 47 65 74 | 52 65 73 6f 75 72 63 65 |ng = Get|Resource|
|00000b10| 28 27 53 54 52 20 27 2c | 20 30 29 3b 0d 09 09 48 |('STR ',| 0);...H|
|00000b20| 4c 6f 63 6b 28 74 68 69 | 6e 67 29 3b 0d 09 09 47 |Lock(thi|ng);...G|
|00000b30| 65 74 49 6e 64 53 74 72 | 69 6e 67 28 73 74 72 69 |etIndStr|ing(stri|
|00000b40| 6e 67 2c 20 53 54 52 5f | 49 44 2c 20 53 54 52 5f |ng, STR_|ID, STR_|
|00000b50| 46 49 4e 44 45 52 49 44 | 29 3b 0d 09 09 69 66 20 |FINDERID|);...if |
|00000b60| 28 21 65 71 75 61 6c 73 | 74 72 28 28 53 74 72 69 |(!equals|tr((Stri|
|00000b70| 6e 67 50 74 72 29 20 2a | 74 68 69 6e 67 2c 20 73 |ngPtr) *|thing, s|
|00000b80| 74 72 69 6e 67 29 29 20 | 7b 0d 09 09 09 48 55 6e |tring)) |{....HUn|
|00000b90| 6c 6f 63 6b 28 74 68 69 | 6e 67 29 3b 0d 09 09 09 |lock(thi|ng);....|
|00000ba0| 52 65 6c 65 61 73 65 52 | 65 73 6f 75 72 63 65 28 |ReleaseR|esource(|
|00000bb0| 74 68 69 6e 67 29 3b 0d | 09 09 09 47 65 74 49 6e |thing);.|...GetIn|
|00000bc0| 64 53 74 72 69 6e 67 28 | 73 74 72 69 6e 67 2c 20 |dString(|string, |
|00000bd0| 53 54 52 5f 49 44 2c 20 | 53 54 52 5f 42 41 44 46 |STR_ID, |STR_BADF|
|00000be0| 49 4e 44 45 52 49 44 29 | 3b 0d 09 09 09 50 61 72 |INDERID)|;....Par|
|00000bf0| 61 6d 54 65 78 74 28 73 | 74 72 69 6e 67 2c 20 4e |amText(s|tring, N|
|00000c00| 49 4c 2c 20 4e 49 4c 2c | 20 4e 49 4c 29 3b 0d 09 |IL, NIL,| NIL);..|
|00000c10| 09 09 73 65 74 5f 6e 6f | 72 6d 61 6c 5f 63 75 72 |..set_no|rmal_cur|
|00000c20| 73 6f 72 28 29 3b 0d 09 | 09 09 41 6c 65 72 74 28 |sor();..|..Alert(|
|00000c30| 41 4c 45 52 54 5f 47 45 | 4e 45 52 41 4c 2c 20 4e |ALERT_GE|NERAL, N|
|00000c40| 49 4c 29 3b 0d 09 09 09 | 6c 6f 6e 67 6a 6d 70 28 |IL);....|longjmp(|
|00000c50| 61 62 6f 72 74 2c 20 31 | 29 3b 0d 09 09 7d 0d 09 |abort, 1|);...}..|
|00000c60| 09 65 6c 73 65 20 7b 0d | 09 09 09 48 55 6e 6c 6f |.else {.|...HUnlo|
|00000c70| 63 6b 28 74 68 69 6e 67 | 29 3b 0d 09 09 09 52 65 |ck(thing|);....Re|
|00000c80| 6c 65 61 73 65 52 65 73 | 6f 75 72 63 65 28 74 68 |leaseRes|ource(th|
|00000c90| 69 6e 67 29 3b 0d 09 09 | 7d 0d 09 7d 0d 7d 0d 0d |ing);...|}..}.}..|
|00000ca0| 09 2f 2a 20 46 69 6e 69 | 73 68 20 76 6f 6c 75 6d |./* Fini|sh volum|
|00000cb0| 65 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 20 2a 2f |e proces|sing. */|
|00000cc0| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 20 67 65 |..static| void ge|
|00000cd0| 6e 65 72 61 6c 5f 66 69 | 6e 69 73 68 28 29 0d 7b |neral_fi|nish().{|
|00000ce0| 0d 09 43 6c 6f 73 65 52 | 65 73 46 69 6c 65 28 64 |..CloseR|esFile(d|
|00000cf0| 65 73 6b 74 6f 70 5f 72 | 65 66 6e 75 6d 29 3b 0d |esktop_r|efnum);.|
|00000d00| 7d 0d 0d 09 2f 2a 20 43 | 6c 65 61 6e 20 75 70 20 |}.../* C|lean up |
|00000d10| 61 66 74 65 72 20 61 6e | 20 61 62 6f 72 74 20 28 |after an| abort (|
|00000d20| 69 66 20 64 65 73 6b 74 | 6f 70 20 77 61 73 20 6f |if deskt|op was o|
|00000d30| 70 65 6e 29 2e 20 2a 2f | 0d 0d 73 74 61 74 69 63 |pen). */|..static|
|00000d40| 20 76 6f 69 64 20 67 65 | 6e 65 72 61 6c 5f 63 6c | void ge|neral_cl|
|00000d50| 65 61 6e 75 70 28 29 0d | 7b 0d 09 53 65 74 52 65 |eanup().|{..SetRe|
|00000d60| 73 46 69 6c 65 41 74 74 | 72 73 28 64 65 73 6b 74 |sFileAtt|rs(deskt|
|00000d70| 6f 70 5f 72 65 66 6e 75 | 6d 2c 20 6d 61 70 52 65 |op_refnu|m, mapRe|
|00000d80| 61 64 4f 6e 6c 79 29 3b | 0d 09 43 6c 6f 73 65 52 |adOnly);|..CloseR|
|00000d90| 65 73 46 69 6c 65 28 64 | 65 73 6b 74 6f 70 5f 72 |esFile(d|esktop_r|
|00000da0| 65 66 6e 75 6d 29 3b 0d | 7d 0d 0d 09 2f 2a 20 44 |efnum);.|}.../* D|
|00000db0| 69 73 70 6c 61 79 20 76 | 6f 6c 75 6d 65 20 70 72 |isplay v|olume pr|
|00000dc0| 6f 63 65 73 73 69 6e 67 | 20 73 74 61 74 69 73 74 |ocessing| statist|
|00000dd0| 69 63 73 2e 20 2a 2f 0d | 0d 73 74 61 74 69 63 20 |ics. */.|.static |
|00000de0| 76 6f 69 64 20 73 68 6f | 77 5f 73 74 61 74 69 73 |void sho|w_statis|
|00000df0| 74 69 63 73 28 29 0d 7b | 0d 09 73 74 61 74 69 63 |tics().{|..static|
|00000e00| 20 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 63 | unsigne|d char c|
|00000e10| 72 5b 32 5d 20 3d 20 22 | 5c 70 5c 72 22 3b 0d 0d |r[2] = "|\p\r";..|
|00000e20| 09 72 65 67 69 73 74 65 | 72 20 44 69 61 6c 6f 67 |.registe|r Dialog|
|00000e30| 50 74 72 20 73 74 61 74 | 73 5f 64 69 61 6c 6f 67 |Ptr stat|s_dialog|
|00000e40| 3b 0d 09 72 65 67 69 73 | 74 65 72 20 75 6e 73 69 |;..regis|ter unsi|
|00000e50| 67 6e 65 64 20 63 68 61 | 72 20 2a 74 3b 0d 09 69 |gned cha|r *t;..i|
|00000e60| 6e 74 20 62 6c 6f 62 3b | 0d 09 75 6e 73 69 67 6e |nt blob;|..unsign|
|00000e70| 65 64 20 63 68 61 72 20 | 74 65 6d 70 5b 32 35 36 |ed char |temp[256|
|00000e80| 5d 2c 20 62 75 66 5b 31 | 36 5d 3b 0d 0d 09 73 74 |], buf[1|6];...st|
|00000e90| 61 74 73 5f 64 69 61 6c | 6f 67 20 3d 20 47 65 74 |ats_dial|og = Get|
|00000ea0| 4e 65 77 44 69 61 6c 6f | 67 28 44 49 41 4c 4f 47 |NewDialo|g(DIALOG|
|00000eb0| 5f 53 54 41 54 53 2c 20 | 4e 49 4c 2c 20 4d 49 4e |_STATS, |NIL, MIN|
|00000ec0| 55 53 5f 4f 4e 45 29 3b | 0d 09 74 20 3d 20 74 65 |US_ONE);|..t = te|
|00000ed0| 6d 70 3b 0d 0d 09 74 5b | 30 5d 20 3d 20 27 5c 30 |mp;...t[|0] = '\0|
|00000ee0| 27 3b 0d 09 69 66 20 28 | 70 72 6f 63 65 73 73 5f |';..if (|process_|
|00000ef0| 63 6f 6d 6d 65 6e 74 73 | 29 20 7b 0d 09 09 4e 75 |comments|) {...Nu|
|00000f00| 6d 54 6f 53 74 72 69 6e | 67 28 63 6f 6d 6d 65 6e |mToStrin|g(commen|
|00000f10| 74 5f 63 6f 75 6e 74 2c | 20 62 75 66 29 3b 0d 09 |t_count,| buf);..|
|00000f20| 09 63 6f 6e 63 61 74 73 | 74 72 28 74 2c 20 62 75 |.concats|tr(t, bu|
|00000f30| 66 2c 20 74 29 3b 0d 09 | 09 47 65 74 49 6e 64 53 |f, t);..|.GetIndS|
|00000f40| 74 72 69 6e 67 28 73 74 | 72 69 6e 67 2c 20 53 54 |tring(st|ring, ST|
|00000f50| 52 5f 49 44 2c 20 28 63 | 6f 6d 6d 65 6e 74 5f 63 |R_ID, (c|omment_c|
|00000f60| 6f 75 6e 74 20 3d 3d 20 | 31 29 20 3f 0d 09 09 09 |ount == |1) ?....|
|00000f70| 09 09 20 20 20 09 09 20 | 53 54 52 5f 43 4f 4d 4d |.. .. |STR_COMM|
|00000f80| 45 4e 54 20 3a 20 53 54 | 52 5f 43 4f 4d 4d 45 4e |ENT : ST|R_COMMEN|
|00000f90| 54 53 29 3b 0d 09 09 63 | 6f 6e 63 61 74 73 74 72 |TS);...c|oncatstr|
|00000fa0| 28 74 2c 20 73 74 72 69 | 6e 67 2c 20 74 29 3b 0d |(t, stri|ng, t);.|
|00000fb0| 09 09 63 6f 6e 63 61 74 | 73 74 72 28 74 2c 20 63 |..concat|str(t, c|
|00000fc0| 72 2c 20 74 29 3b 0d 09 | 7d 0d 09 69 66 20 28 70 |r, t);..|}..if (p|
|00000fd0| 72 6f 63 65 73 73 5f 62 | 75 6e 64 6c 65 73 29 20 |rocess_b|undles) |
|00000fe0| 7b 0d 09 09 4e 75 6d 54 | 6f 53 74 72 69 6e 67 28 |{...NumT|oString(|
|00000ff0| 62 6e 64 6c 5f 63 6f 75 | 6e 74 2c 62 75 66 29 3b |bndl_cou|nt,buf);|
|00001000| 0d 09 09 63 6f 6e 63 61 | 74 73 74 72 28 74 2c 20 |...conca|tstr(t, |
|00001010| 62 75 66 2c 20 74 29 3b | 0d 09 09 47 65 74 49 6e |buf, t);|...GetIn|
|00001020| 64 53 74 72 69 6e 67 28 | 73 74 72 69 6e 67 2c 20 |dString(|string, |
|00001030| 53 54 52 5f 49 44 2c 20 | 28 62 6e 64 6c 5f 63 6f |STR_ID, |(bndl_co|
|00001040| 75 6e 74 20 3d 3d 20 31 | 29 20 3f 0d 09 09 09 09 |unt == 1|) ?.....|
|00001050| 09 20 20 20 09 09 20 53 | 54 52 5f 42 55 4e 44 4c |. .. S|TR_BUNDL|
|00001060| 45 20 3a 20 53 54 52 5f | 42 55 4e 44 4c 45 53 29 |E : STR_|BUNDLES)|
|00001070| 3b 0d 09 09 63 6f 6e 63 | 61 74 73 74 72 28 74 2c |;...conc|atstr(t,|
|00001080| 20 73 74 72 69 6e 67 2c | 20 74 29 3b 0d 09 09 63 | string,| t);...c|
|00001090| 6f 6e 63 61 74 73 74 72 | 28 74 2c 20 63 72 2c 20 |oncatstr|(t, cr, |
|000010a0| 74 29 3b 0d 09 7d 0d 09 | 69 66 20 28 70 72 6f 63 |t);..}..|if (proc|
|000010b0| 65 73 73 5f 61 70 70 6c | 73 20 26 26 20 69 73 5f |ess_appl|s && is_|
|000010c0| 68 66 73 29 20 7b 0d 09 | 09 4e 75 6d 54 6f 53 74 |hfs) {..|.NumToSt|
|000010d0| 72 69 6e 67 28 61 70 70 | 6c 5f 63 6f 75 6e 74 2c |ring(app|l_count,|
|000010e0| 62 75 66 29 3b 0d 09 09 | 63 6f 6e 63 61 74 73 74 |buf);...|concatst|
|000010f0| 72 28 74 2c 20 62 75 66 | 2c 20 74 29 3b 20 0d 09 |r(t, buf|, t); ..|
|00001100| 09 47 65 74 49 6e 64 53 | 74 72 69 6e 67 28 73 74 |.GetIndS|tring(st|
|00001110| 72 69 6e 67 2c 20 53 54 | 52 5f 49 44 2c 20 28 61 |ring, ST|R_ID, (a|
|00001120| 70 70 6c 5f 63 6f 75 6e | 74 20 3d 3d 20 31 29 20 |ppl_coun|t == 1) |
|00001130| 3f 0d 09 09 09 09 09 20 | 20 20 09 09 20 53 54 52 |?...... | .. STR|
|00001140| 5f 41 50 50 4c 20 3a 20 | 53 54 52 5f 41 50 50 4c |_APPL : |STR_APPL|
|00001150| 53 29 3b 0d 09 09 63 6f | 6e 63 61 74 73 74 72 28 |S);...co|ncatstr(|
|00001160| 74 2c 20 73 74 72 69 6e | 67 2c 20 74 29 3b 0d 09 |t, strin|g, t);..|
|00001170| 7d 0d 09 53 65 74 49 54 | 65 78 74 28 67 65 74 5f |}..SetIT|ext(get_|
|00001180| 69 74 65 6d 28 73 74 61 | 74 73 5f 64 69 61 6c 6f |item(sta|ts_dialo|
|00001190| 67 2c 20 49 54 45 4d 5f | 53 54 41 54 53 5f 49 4e |g, ITEM_|STATS_IN|
|000011a0| 46 4f 29 2c 20 74 29 3b | 0d 09 53 68 6f 77 57 69 |FO), t);|..ShowWi|
|000011b0| 6e 64 6f 77 28 73 74 61 | 74 73 5f 64 69 61 6c 6f |ndow(sta|ts_dialo|
|000011c0| 67 29 3b 0d 09 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 |g);..Mod|alDialog|
|000011d0| 28 4e 49 4c 2c 20 26 62 | 6c 6f 62 29 3b 0d 09 44 |(NIL, &b|lob);..D|
|000011e0| 69 73 70 6f 73 44 69 61 | 6c 6f 67 28 73 74 61 74 |isposDia|log(stat|
|000011f0| 73 5f 64 69 61 6c 6f 67 | 29 3b 0d 7d 0d 0d 09 2f |s_dialog|);.}.../|
|00001200| 2a 20 44 69 73 70 6c 61 | 79 20 64 69 72 65 63 74 |* Displa|y direct|
|00001210| 6f 72 79 20 62 65 69 6e | 67 20 70 72 6f 63 65 73 |ory bein|g proces|
|00001220| 73 65 64 2e 20 2a 2f 0d | 0d 76 6f 69 64 20 73 65 |sed. */.|.void se|
|00001230| 74 5f 70 72 6f 63 65 73 | 73 69 6e 67 28 6e 61 6d |t_proces|sing(nam|
|00001240| 65 29 0d 09 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |e)..unsi|gned cha|
|00001250| 72 20 2a 6e 61 6d 65 3b | 0d 7b 0d 09 72 65 67 69 |r *name;|.{..regi|
|00001260| 73 74 65 72 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |ster uns|igned ch|
|00001270| 61 72 20 2a 73 3b 0d 0d | 09 73 20 3d 20 73 74 72 |ar *s;..|.s = str|
|00001280| 69 6e 67 3b 0d 0d 09 69 | 66 20 28 6e 61 6d 65 20 |ing;...i|f (name |
|00001290| 3d 3d 20 4e 49 4c 29 0d | 09 09 47 65 74 49 6e 64 |== NIL).|..GetInd|
|000012a0| 53 74 72 69 6e 67 28 73 | 2c 20 53 54 52 5f 49 44 |String(s|, STR_ID|
|000012b0| 2c 20 53 54 52 5f 52 45 | 41 44 44 49 53 4b 29 3b |, STR_RE|ADDISK);|
|000012c0| 0d 09 65 6c 73 65 20 7b | 0d 09 09 47 65 74 49 6e |..else {|...GetIn|
|000012d0| 64 53 74 72 69 6e 67 28 | 73 2c 20 53 54 52 5f 49 |dString(|s, STR_I|
|000012e0| 44 2c 20 53 54 52 5f 52 | 45 41 44 46 4f 4c 44 45 |D, STR_R|EADFOLDE|
|000012f0| 52 29 3b 0d 09 09 63 6f | 6e 63 61 74 73 74 72 28 |R);...co|ncatstr(|
|00001300| 73 2c 20 6e 61 6d 65 2c | 20 73 29 3b 0d 09 7d 0d |s, name,| s);..}.|
|00001310| 09 53 65 74 49 54 65 78 | 74 28 70 72 6f 63 65 73 |.SetITex|t(proces|
|00001320| 73 5f 69 74 65 6d 2c 20 | 73 29 3b 0d 7d 0d 00 00 |s_item, |s);.}...|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+