home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / piemnsrc.sit / ParseMenuList.c.bin < prev    next >
MacBinary  |  1989-09-14  |  1.4 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: ParseMenuList.c.bin

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 Text File (text/txt) fallback Supported
100% file MacBinary, Sun Mar 19 14:13:51 1989, modified Sun Mar 19 14:15:04 1989, creator Think C, type ASCII, 1232 bytes "ParseMenuList.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 0f 50 61 72 73 65 4d | 65 6e 75 4c 69 73 74 2e |..ParseM|enuList.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|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 d0 00 | 00 00 00 a0 49 ac 6f a0 |........|....I.o.|
|00000060| 49 ac b8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |I.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 50 61 | 72 73 65 4d 65 6e 75 4c |/*. * Pa|rseMenuL|
|00000090| 69 73 74 2e 63 0d 20 2a | 2f 0d 0d 0d 23 64 65 66 |ist.c. *|/...#def|
|000000a0| 69 6e 65 09 4d 45 4e 55 | 5f 53 45 50 41 52 41 54 |ine.MENU|_SEPARAT|
|000000b0| 4f 52 09 09 27 3b 27 0d | 0d 0d 0d 2f 2a 0d 20 2a |OR..';'.|.../*. *|
|000000c0| 20 46 75 6e 63 74 69 6f | 6e 3a 09 50 61 72 73 65 | Functio|n:.Parse|
|000000d0| 4d 65 6e 75 4c 69 73 74 | 0d 20 2a 0d 20 2a 20 49 |MenuList|. *. * I|
|000000e0| 6e 70 75 74 73 3a 09 09 | 63 68 61 72 20 2a 6d 65 |nputs:..|char *me|
|000000f0| 6e 75 4c 69 73 74 20 2d | 20 73 74 72 69 6e 67 20 |nuList -| string |
|00000100| 72 65 70 72 65 73 65 6e | 74 69 6e 67 20 74 68 65 |represen|ting the|
|00000110| 20 6d 65 6e 75 20 74 6f | 20 64 69 73 70 6c 61 79 | menu to| display|
|00000120| 2e 0d 20 2a 0d 20 2a 20 | 4f 75 74 70 75 74 73 3a |.. *. * |Outputs:|
|00000130| 09 09 6d 65 6e 75 4c 69 | 73 74 20 77 69 6c 6c 20 |..menuLi|st will |
|00000140| 62 65 20 68 61 76 65 20 | 61 6c 6c 20 6f 66 20 74 |be have |all of t|
|00000150| 68 65 20 6d 61 63 20 6d | 65 6e 75 20 6d 61 6e 61 |he mac m|enu mana|
|00000160| 67 65 72 20 73 70 65 63 | 69 66 69 63 0d 20 2a 09 |ger spec|ific. *.|
|00000170| 09 09 09 73 74 72 69 6e | 67 73 20 72 65 6d 6f 76 |...strin|gs remov|
|00000180| 65 64 20 28 62 6f 6c 64 | 66 61 63 65 2c 20 63 69 |ed (bold|face, ci|
|00000190| 72 63 75 6d 66 6c 65 78 | 2c 20 6f 70 65 6e 20 70 |rcumflex|, open p|
|000001a0| 61 72 65 6e 2c 20 64 61 | 73 68 29 2e 0d 20 2a 0d |aren, da|sh).. *.|
|000001b0| 20 2a 20 52 65 74 75 72 | 6e 73 3a 09 09 74 68 65 | * Retur|ns:..the|
|000001c0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 74 65 6d 73 | number |of items|
|000001d0| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 20 6c 69 73 | in the |menu lis|
|000001e0| 74 0d 20 2a 2f 0d 69 6e | 74 09 0d 50 61 72 73 65 |t. */.in|t..Parse|
|000001f0| 4d 65 6e 75 4c 69 73 74 | 28 6d 65 6e 75 4c 69 73 |MenuList|(menuLis|
|00000200| 74 29 0d 09 63 68 61 72 | 20 2a 6d 65 6e 75 4c 69 |t)..char| *menuLi|
|00000210| 73 74 3b 0d 7b 0d 09 63 | 68 61 72 09 2a 63 70 31 |st;.{..c|har.*cp1|
|00000220| 3b 0d 09 63 68 61 72 09 | 2a 63 70 32 3b 0d 09 69 |;..char.|*cp2;..i|
|00000230| 6e 74 09 09 6e 75 6d 5f | 69 74 65 6d 73 3b 0d 09 |nt..num_|items;..|
|00000240| 69 6e 74 09 09 69 6e 5f | 69 74 65 6d 20 3d 20 46 |int..in_|item = F|
|00000250| 41 4c 53 45 3b 0d 09 0d | 0d 09 66 6f 72 20 28 63 |ALSE;...|..for (c|
|00000260| 70 31 20 3d 20 63 70 32 | 20 3d 20 6d 65 6e 75 4c |p1 = cp2| = menuL|
|00000270| 69 73 74 2c 20 6e 75 6d | 5f 69 74 65 6d 73 20 3d |ist, num|_items =|
|00000280| 20 30 3b 20 2a 63 70 32 | 20 21 3d 20 27 5c 30 27 | 0; *cp2| != '\0'|
|00000290| 3b 20 2b 2b 63 70 32 29 | 20 7b 0d 09 09 73 77 69 |; ++cp2)| {...swi|
|000002a0| 74 63 68 20 28 2a 63 70 | 32 29 20 7b 0d 09 09 09 |tch (*cp|2) {....|
|000002b0| 63 61 73 65 20 27 5e 27 | 3a 09 09 09 09 2f 2a 20 |case '^'|:..../* |
|000002c0| 49 74 65 6d 20 68 61 73 | 20 61 6e 20 69 63 6f 6e |Item has| an icon|
|000002d0| 20 2a 2f 0d 09 09 09 63 | 61 73 65 20 27 21 27 3a | */....c|ase '!':|
|000002e0| 09 09 09 09 2f 2a 20 49 | 74 65 6d 20 68 61 73 20 |..../* I|tem has |
|000002f0| 61 20 6d 61 72 6b 20 2a | 2f 0d 09 09 09 63 61 73 |a mark *|/....cas|
|00000300| 65 20 27 3c 27 3a 09 09 | 09 09 2f 2a 20 49 74 65 |e '<':..|../* Ite|
|00000310| 6d 20 68 61 73 20 61 20 | 73 70 65 63 69 61 6c 20 |m has a |special |
|00000320| 73 74 79 6c 65 20 2a 2f | 0d 09 09 09 63 61 73 65 |style */|....case|
|00000330| 20 27 2f 27 3a 09 09 09 | 09 2f 2a 20 49 74 65 6d | '/':...|./* Item|
|00000340| 20 68 61 73 20 6b 65 79 | 62 6f 61 72 64 20 65 71 | has key|board eq|
|00000350| 75 69 76 61 6c 65 6e 74 | 20 2a 2f 0d 09 09 09 09 |uivalent| */.....|
|00000360| 09 09 2b 2b 63 70 32 3b | 0d 09 09 09 09 09 09 62 |..++cp2;|.......b|
|00000370| 72 65 61 6b 3b 0d 09 09 | 09 09 09 09 0d 09 09 09 |reak;...|........|
|00000380| 63 61 73 65 20 27 28 27 | 3a 09 09 09 09 2f 2a 20 |case '('|:..../* |
|00000390| 49 74 65 6d 20 69 73 20 | 74 6f 20 62 65 20 64 69 |Item is |to be di|
|000003a0| 6d 6d 65 64 2c 20 69 67 | 6e 6f 72 65 20 72 65 71 |mmed, ig|nore req|
|000003b0| 75 65 73 74 20 2a 2f 0d | 09 09 09 09 09 09 62 72 |uest */.|......br|
|000003c0| 65 61 6b 3b 0d 09 09 09 | 0d 09 09 09 63 61 73 65 |eak;....|....case|
|000003d0| 20 4d 45 4e 55 5f 53 45 | 50 41 52 41 54 4f 52 3a | MENU_SE|PARATOR:|
|000003e0| 09 2f 2a 20 4d 65 6e 75 | 20 53 65 70 61 72 61 74 |./* Menu| Separat|
|000003f0| 6f 72 20 2a 2f 0d 09 09 | 09 09 09 09 2b 2b 6e 75 |or */...|....++nu|
|00000400| 6d 5f 69 74 65 6d 73 3b | 0d 09 09 09 09 09 09 2a |m_items;|.......*|
|00000410| 63 70 31 2b 2b 20 3d 20 | 2a 63 70 32 3b 0d 09 09 |cp1++ = |*cp2;...|
|00000420| 09 09 09 09 69 6e 5f 69 | 74 65 6d 20 3d 20 46 41 |....in_i|tem = FA|
|00000430| 4c 53 45 3b 0d 09 09 09 | 09 09 09 62 72 65 61 6b |LSE;....|...break|
|00000440| 3b 0d 09 09 09 09 09 09 | 0d 09 09 09 64 65 66 61 |;.......|....defa|
|00000450| 75 6c 74 3a 0d 09 09 09 | 09 09 2a 63 70 31 2b 2b |ult:....|..*cp1++|
|00000460| 20 3d 20 2a 63 70 32 3b | 0d 09 09 09 09 09 69 6e | = *cp2;|......in|
|00000470| 5f 69 74 65 6d 20 3d 20 | 54 52 55 45 3b 0d 09 09 |_item = |TRUE;...|
|00000480| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 7d 0d 09 7d |...break|;...}..}|
|00000490| 0d 09 0d 09 2f 2a 20 54 | 68 65 20 6c 61 73 74 20 |..../* T|he last |
|000004a0| 69 74 65 6d 20 69 73 6e | 27 74 20 72 65 71 75 69 |item isn|'t requi|
|000004b0| 72 65 64 20 74 6f 20 68 | 61 76 65 20 61 20 73 65 |red to h|ave a se|
|000004c0| 70 61 72 61 74 6f 72 20 | 2a 2f 0d 09 69 66 20 28 |parator |*/..if (|
|000004d0| 69 6e 5f 69 74 65 6d 29 | 0d 09 09 2b 2b 6e 75 6d |in_item)|...++num|
|000004e0| 5f 69 74 65 6d 73 3b 0d | 09 09 0d 09 2f 2a 20 54 |_items;.|..../* T|
|000004f0| 65 72 6d 69 6e 61 74 65 | 20 74 68 65 20 73 74 72 |erminate| the str|
|00000500| 69 6e 67 20 74 6f 20 64 | 65 6c 65 74 65 20 74 68 |ing to d|elete th|
|00000510| 65 20 6a 75 6e 6b 20 74 | 68 61 74 20 66 6f 6c 6c |e junk t|hat foll|
|00000520| 6f 77 73 20 2a 2f 0d 09 | 2a 63 70 31 20 3d 20 27 |ows */..|*cp1 = '|
|00000530| 5c 30 27 3b 0d 09 0d 09 | 72 65 74 75 72 6e 20 28 |\0';....|return (|
|00000540| 6e 75 6d 5f 69 74 65 6d | 73 29 3b 0d 7d 0d 0d 0d |num_item|s);.}...|
|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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+