home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / trnsdspl.sit / MiniDisplay.c.bin < prev    next >
MacBinary  |  1989-09-14  |  2.4 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 Text File (text/txt) fallback Supported
100% file MacBinary, Sat Feb 18 13:24:48 1989, modified Sat Feb 18 14:02:18 1989, creator Think C, type ASCII, 2241 bytes "MiniDisplay.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 0d 4d 69 6e 69 44 69 | 73 70 6c 61 79 2e 63 00 |..MiniDi|splay.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 08 c1 00 | 00 00 00 a0 23 65 70 a0 |........|....#ep.|
|00000060| 23 6e 3a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |#n:.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 09 4d 69 6e 69 | 44 69 73 70 6c 61 79 20 |/*..Mini|Display |
|00000090| 2d 20 54 72 61 6e 73 44 | 69 73 70 6c 61 79 20 44 |- TransD|isplay D|
|000000a0| 65 6d 6f 6e 73 74 72 61 | 74 69 6f 6e 2e 20 20 56 |emonstra|tion. V|
|000000b0| 65 72 79 20 73 69 6d 70 | 6c 65 3a 20 20 6a 75 73 |ery simp|le: jus|
|000000c0| 74 0d 09 64 65 6d 6f 6e | 73 74 72 61 74 65 73 20 |t..demon|strates |
|000000d0| 74 68 65 20 76 61 72 69 | 6f 75 73 20 6f 75 74 70 |the vari|ous outp|
|000000e0| 75 74 20 63 61 6c 6c 73 | 2e 0d 0d 09 54 68 65 20 |ut calls|....The |
|000000f0| 70 72 6f 6a 65 63 74 20 | 73 68 6f 75 6c 64 20 69 |project |should i|
|00000100| 6e 63 6c 75 64 65 20 4d | 69 6e 69 44 69 73 70 6c |nclude M|iniDispl|
|00000110| 61 79 2e 63 20 28 74 68 | 69 73 20 66 69 6c 65 29 |ay.c (th|is file)|
|00000120| 2c 0d 09 54 72 61 6e 73 | 44 69 73 70 6c 61 79 2e |,..Trans|Display.|
|00000130| 63 20 28 6f 72 20 61 20 | 70 72 6f 6a 65 63 74 20 |c (or a |project |
|00000140| 6d 61 64 65 20 66 72 6f | 6d 20 54 72 61 6e 73 44 |made fro|m TransD|
|00000150| 69 73 70 6c 61 79 2e 63 | 29 2c 0d 09 54 72 61 6e |isplay.c|),..Tran|
|00000160| 73 53 6b 65 6c 2e 63 20 | 28 6f 72 20 61 20 70 72 |sSkel.c |(or a pr|
|00000170| 6f 6a 65 63 74 20 6d 61 | 64 65 20 66 72 6f 6d 20 |oject ma|de from |
|00000180| 54 72 61 6e 73 53 6b 65 | 6c 2e 63 29 2c 20 61 6e |TransSke|l.c), an|
|00000190| 64 20 4d 61 63 54 72 61 | 70 73 2e 0d 0d 09 30 34 |d MacTra|ps....04|
|000001a0| 20 4f 63 74 20 38 36 20 | 50 61 75 6c 20 44 75 42 | Oct 86 |Paul DuB|
|000001b0| 6f 69 73 0d 09 30 32 20 | 46 65 62 20 38 39 20 43 |ois..02 |Feb 89 C|
|000001c0| 68 61 6e 67 65 64 20 74 | 6f 20 77 6f 72 6b 20 77 |hanged t|o work w|
|000001d0| 69 74 68 20 54 72 61 6e | 73 53 6b 65 6c 32 2e 30 |ith Tran|sSkel2.0|
|000001e0| 20 61 6e 64 20 54 72 61 | 6e 73 44 69 73 70 6c 61 | and Tra|nsDispla|
|000001f0| 79 32 2e 30 2e 0d 09 09 | 09 20 20 32 2d 62 79 74 |y2.0....|. 2-byt|
|00000200| 65 20 61 6e 64 20 34 2d | 62 79 74 65 20 69 6e 74 |e and 4-|byte int|
|00000210| 65 67 65 72 20 74 79 70 | 65 73 20 61 72 65 20 74 |eger typ|es are t|
|00000220| 79 70 65 64 65 66 27 65 | 64 20 74 6f 20 49 6e 74 |ypedef'e|d to Int|
|00000230| 65 67 65 72 0d 09 09 09 | 20 20 61 6e 64 20 4c 6f |eger....| and Lo|
|00000240| 6e 67 69 6e 74 20 74 6f | 20 65 61 73 65 20 70 6f |ngint to| ease po|
|00000250| 72 74 69 6e 67 2e 0d 2a | 2f 0d 0d 23 20 69 6e 63 |rting..*|/..# inc|
|00000260| 6c 75 64 65 09 3c 4d 65 | 6e 75 4d 67 72 2e 68 3e |lude.<Me|nuMgr.h>|
|00000270| 0d 23 20 69 6e 63 6c 75 | 64 65 09 22 54 72 61 6e |.# inclu|de."Tran|
|00000280| 73 44 69 73 70 6c 61 79 | 2e 68 22 0d 0d 0d 74 79 |sDisplay|.h"...ty|
|00000290| 70 65 64 65 66 09 69 6e | 74 09 09 49 6e 74 65 67 |pedef.in|t..Integ|
|000002a0| 65 72 3b 09 2f 2a 20 63 | 6f 6d 70 69 6c 65 72 20 |er;./* c|ompiler |
|000002b0| 32 2d 62 79 74 65 20 69 | 6e 74 65 67 65 72 20 74 |2-byte i|nteger t|
|000002c0| 79 70 65 20 2a 2f 0d 74 | 79 70 65 64 65 66 09 6c |ype */.t|ypedef.l|
|000002d0| 6f 6e 67 09 4c 6f 6e 67 | 69 6e 74 3b 09 2f 2a 20 |ong.Long|int;./* |
|000002e0| 63 6f 6d 70 69 6c 65 72 | 20 34 2d 62 79 74 65 20 |compiler| 4-byte |
|000002f0| 69 6e 74 65 67 65 72 20 | 74 79 70 65 20 2a 2f 0d |integer |type */.|
|00000300| 0d 0d 0d 44 6f 46 69 6c | 65 4d 65 6e 75 20 28 69 |...DoFil|eMenu (i|
|00000310| 74 65 6d 29 0d 49 6e 74 | 65 67 65 72 09 69 74 65 |tem).Int|eger.ite|
|00000320| 6d 3b 09 09 09 09 09 2f | 2a 20 69 67 6e 6f 72 65 |m;...../|* ignore|
|00000330| 64 20 2d 20 74 68 65 72 | 65 27 73 20 6f 6e 6c 79 |d - ther|e's only|
|00000340| 20 51 75 69 74 20 2a 2f | 0d 7b 0d 09 53 6b 65 6c | Quit */|.{..Skel|
|00000350| 57 68 6f 61 20 28 29 3b | 09 09 09 09 2f 2a 20 74 |Whoa ();|..../* t|
|00000360| 65 6c 6c 20 53 6b 65 6c | 4d 61 69 6e 20 74 6f 20 |ell Skel|Main to |
|00000370| 71 75 69 74 20 2a 2f 0d | 7d 0d 0d 0d 6d 61 69 6e |quit */.|}...main|
|00000380| 20 28 29 0d 7b 0d 52 65 | 63 74 09 09 72 3b 0d 4d | ().{.Re|ct..r;.M|
|00000390| 65 6e 75 48 61 6e 64 6c | 65 09 6d 3b 0d 57 69 6e |enuHandl|e.m;.Win|
|000003a0| 64 6f 77 50 74 72 09 77 | 3b 0d 0d 09 53 6b 65 6c |dowPtr.w|;...Skel|
|000003b0| 49 6e 69 74 20 28 36 2c | 20 6e 69 6c 29 3b 09 09 |Init (6,| nil);..|
|000003c0| 09 09 2f 2a 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |../* ini|tialize |
|000003d0| 2a 2f 0d 09 53 6b 65 6c | 41 70 70 6c 65 20 28 6e |*/..Skel|Apple (n|
|000003e0| 69 6c 2c 20 6e 69 6c 29 | 3b 09 09 09 2f 2a 20 68 |il, nil)|;.../* h|
|000003f0| 61 6e 64 6c 65 20 64 65 | 73 6b 20 61 63 63 65 73 |andle de|sk acces|
|00000400| 73 6f 72 69 65 73 20 2a | 2f 0d 0d 09 6d 20 3d 20 |sories *|/...m = |
|00000410| 4e 65 77 4d 65 6e 75 20 | 28 32 2c 20 22 5c 70 46 |NewMenu |(2, "\pF|
|00000420| 69 6c 65 22 29 3b 09 09 | 2f 2a 20 63 72 65 61 74 |ile");..|/* creat|
|00000430| 65 20 6d 65 6e 75 20 61 | 6e 64 20 74 65 6c 6c 20 |e menu a|nd tell |
|00000440| 54 72 61 6e 73 53 6b 65 | 6c 20 2a 2f 0d 09 41 70 |TransSke|l */..Ap|
|00000450| 70 65 6e 64 4d 65 6e 75 | 20 28 6d 2c 20 22 5c 70 |pendMenu| (m, "\p|
|00000460| 51 75 69 74 2f 51 22 29 | 3b 09 09 2f 2a 20 74 6f |Quit/Q")|;../* to|
|00000470| 20 68 61 6e 64 6c 65 20 | 69 74 20 2a 2f 0d 09 28 | handle |it */..(|
|00000480| 76 6f 69 64 29 20 53 6b | 65 6c 4d 65 6e 75 20 28 |void) Sk|elMenu (|
|00000490| 6d 2c 20 44 6f 46 69 6c | 65 4d 65 6e 75 2c 20 6e |m, DoFil|eMenu, n|
|000004a0| 69 6c 2c 20 74 72 75 65 | 29 3b 0d 0d 09 53 65 74 |il, true|);...Set|
|000004b0| 52 65 63 74 20 28 26 72 | 2c 20 31 30 30 2c 20 37 |Rect (&r|, 100, 7|
|000004c0| 35 2c 20 34 30 30 2c 20 | 32 35 30 29 3b 0d 09 77 |5, 400, |250);..w|
|000004d0| 20 3d 20 4e 65 77 44 57 | 69 6e 64 6f 77 20 28 26 | = NewDW|indow (&|
|000004e0| 72 2c 20 22 5c 70 4d 69 | 6e 69 44 69 73 70 6c 61 |r, "\pMi|niDispla|
|000004f0| 79 22 2c 20 66 61 6c 73 | 65 2c 20 2d 31 4c 2c 20 |y", fals|e, -1L, |
|00000500| 66 61 6c 73 65 2c 20 30 | 4c 29 3b 0d 0d 09 44 69 |false, 0|L);...Di|
|00000510| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 28 22 5c 70 |splayStr|ing ("\p|
|00000520| 54 68 69 73 20 69 73 20 | 4d 69 6e 69 44 69 73 70 |This is |MiniDisp|
|00000530| 6c 61 79 2c 20 61 20 6d | 69 6e 69 6d 61 6c 20 64 |lay, a m|inimal d|
|00000540| 65 6d 6f 6e 73 74 72 61 | 74 69 6f 6e 20 6f 66 20 |emonstra|tion of |
|00000550| 22 29 3b 0d 09 44 69 73 | 70 6c 61 79 53 74 72 69 |");..Dis|playStri|
|00000560| 6e 67 20 28 22 5c 70 54 | 72 61 6e 73 44 69 73 70 |ng ("\pT|ransDisp|
|00000570| 6c 61 79 2e 20 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |lay. Th|e follow|
|00000580| 69 6e 67 20 74 79 70 65 | 73 20 6f 66 20 6f 75 74 |ing type|s of out|
|00000590| 70 75 74 20 6d 61 79 20 | 22 29 3b 0d 09 44 69 73 |put may |");..Dis|
|000005a0| 70 6c 61 79 53 74 72 69 | 6e 67 20 28 22 5c 70 62 |playStri|ng ("\pb|
|000005b0| 65 20 77 72 69 74 74 65 | 6e 20 77 69 74 68 20 74 |e writte|n with t|
|000005c0| 68 65 20 62 75 69 6c 74 | 2d 69 6e 20 6f 75 74 70 |he built|-in outp|
|000005d0| 75 74 20 63 61 6c 6c 73 | 3a 5c 72 22 29 3b 0d 0d |ut calls|:\r");..|
|000005e0| 09 44 69 73 70 6c 61 79 | 53 74 72 69 6e 67 20 28 |.Display|String (|
|000005f0| 22 5c 70 5c 72 41 72 62 | 69 74 72 61 72 79 20 6c |"\p\rArb|itrary l|
|00000600| 65 6e 67 74 68 20 74 65 | 78 74 3a 20 22 29 3b 0d |ength te|xt: ");.|
|00000610| 09 44 69 73 70 6c 61 79 | 54 65 78 74 20 28 22 53 |.Display|Text ("S|
|00000620| 6f 6d 65 20 74 65 78 74 | 22 2c 20 39 4c 29 3b 0d |ome text|", 9L);.|
|00000630| 09 44 69 73 70 6c 61 79 | 53 74 72 69 6e 67 20 28 |.Display|String (|
|00000640| 22 5c 70 5c 72 53 74 72 | 69 6e 67 3a 20 22 29 3b |"\p\rStr|ing: ");|
|00000650| 0d 09 44 69 73 70 6c 61 | 79 53 74 72 69 6e 67 20 |..Displa|yString |
|00000660| 28 22 5c 70 5c 22 5c 5c | 70 54 68 69 73 20 69 73 |("\p\"\\|pThis is|
|00000670| 20 61 20 73 74 72 69 6e | 67 2e 5c 22 22 29 3b 0d | a strin|g.\"");.|
|00000680| 09 44 69 73 70 6c 61 79 | 53 74 72 69 6e 67 20 28 |.Display|String (|
|00000690| 22 5c 70 5c 72 43 68 61 | 72 3a 20 27 22 29 3b 0d |"\p\rCha|r: '");.|
|000006a0| 09 44 69 73 70 6c 61 79 | 43 68 61 72 20 28 27 78 |.Display|Char ('x|
|000006b0| 27 29 3b 0d 09 44 69 73 | 70 6c 61 79 53 74 72 69 |');..Dis|playStri|
|000006c0| 6e 67 20 28 22 5c 70 27 | 20 20 20 20 48 65 78 20 |ng ("\p'| Hex |
|000006d0| 63 68 61 72 3a 20 22 29 | 3b 0d 09 44 69 73 70 6c |char: ")|;..Displ|
|000006e0| 61 79 48 65 78 43 68 61 | 72 20 28 27 78 27 29 3b |ayHexCha|r ('x');|
|000006f0| 0d 09 44 69 73 70 6c 61 | 79 53 74 72 69 6e 67 20 |..Displa|yString |
|00000700| 28 22 5c 70 5c 72 49 6e | 74 3a 20 22 29 3b 0d 09 |("\p\rIn|t: ");..|
|00000710| 44 69 73 70 6c 61 79 49 | 6e 74 20 28 31 30 32 33 |DisplayI|nt (1023|
|00000720| 29 3b 0d 09 44 69 73 70 | 6c 61 79 53 74 72 69 6e |);..Disp|layStrin|
|00000730| 67 20 28 22 5c 70 20 20 | 20 20 48 65 78 20 69 6e |g ("\p | Hex in|
|00000740| 74 3a 20 22 29 3b 0d 09 | 44 69 73 70 6c 61 79 48 |t: ");..|DisplayH|
|00000750| 65 78 49 6e 74 20 28 31 | 30 32 33 29 3b 0d 09 44 |exInt (1|023);..D|
|00000760| 69 73 70 6c 61 79 53 74 | 72 69 6e 67 20 28 22 5c |isplaySt|ring ("\|
|00000770| 70 5c 72 4c 6f 6e 67 3a | 20 22 29 3b 0d 09 44 69 |p\rLong:| ");..Di|
|00000780| 73 70 6c 61 79 4c 6f 6e | 67 20 28 33 32 37 36 38 |splayLon|g (32768|
|00000790| 4c 29 3b 0d 09 44 69 73 | 70 6c 61 79 53 74 72 69 |L);..Dis|playStri|
|000007a0| 6e 67 20 28 22 5c 70 20 | 20 48 65 78 20 6c 6f 6e |ng ("\p | Hex lon|
|000007b0| 67 3a 20 22 29 3b 0d 09 | 44 69 73 70 6c 61 79 48 |g: ");..|DisplayH|
|000007c0| 65 78 4c 6f 6e 67 20 28 | 33 32 37 36 38 4c 29 3b |exLong (|32768L);|
|000007d0| 0d 09 44 69 73 70 6c 61 | 79 53 74 72 69 6e 67 20 |..Displa|yString |
|000007e0| 28 22 5c 70 5c 72 42 6f | 6f 6c 65 61 6e 3a 20 22 |("\p\rBo|olean: "|
|000007f0| 29 3b 0d 09 44 69 73 70 | 6c 61 79 42 6f 6f 6c 65 |);..Disp|layBoole|
|00000800| 61 6e 20 28 74 72 75 65 | 29 3b 0d 09 44 69 73 70 |an (true|);..Disp|
|00000810| 6c 61 79 53 74 72 69 6e | 67 20 28 22 5c 70 2c 20 |layStrin|g ("\p, |
|00000820| 22 29 3b 0d 09 44 69 73 | 70 6c 61 79 42 6f 6f 6c |");..Dis|playBool|
|00000830| 65 61 6e 20 28 66 61 6c | 73 65 29 3b 0d 09 44 69 |ean (fal|se);..Di|
|00000840| 73 70 6c 61 79 53 74 72 | 69 6e 67 20 28 22 5c 70 |splayStr|ing ("\p|
|00000850| 5c 72 43 61 72 72 69 61 | 67 65 20 72 65 74 75 72 |\rCarria|ge retur|
|00000860| 6e 2e 20 22 29 3b 0d 09 | 44 69 73 70 6c 61 79 53 |n. ");..|DisplayS|
|00000870| 74 72 69 6e 67 20 28 22 | 5c 70 5c 72 5c 72 53 65 |tring ("|\p\r\rSe|
|00000880| 6c 65 63 74 20 51 75 69 | 74 20 66 72 6f 6d 20 74 |lect Qui|t from t|
|00000890| 68 65 20 46 69 6c 65 20 | 6d 65 6e 75 20 74 6f 20 |he File |menu to |
|000008a0| 65 78 69 74 2e 22 29 3b | 0d 09 53 65 74 44 57 69 |exit.");|..SetDWi|
|000008b0| 6e 64 6f 77 50 6f 73 20 | 28 77 2c 20 30 29 3b 09 |ndowPos |(w, 0);.|
|000008c0| 2f 2a 20 73 63 72 6f 6c | 6c 20 62 61 63 6b 20 74 |/* scrol|l back t|
|000008d0| 6f 20 74 6f 70 20 2a 2f | 0d 09 53 68 6f 77 57 69 |o top */|..ShowWi|
|000008e0| 6e 64 6f 77 20 28 77 29 | 3b 0d 0d 09 53 6b 65 6c |ndow (w)|;...Skel|
|000008f0| 4d 61 69 6e 20 28 29 3b | 09 09 09 09 09 2f 2a 20 |Main ();|...../* |
|00000900| 6c 6f 6f 70 20 27 74 69 | 6c 20 51 75 69 74 20 73 |loop 'ti|l Quit s|
|00000910| 65 6c 65 63 74 65 64 20 | 2a 2f 0d 09 53 6b 65 6c |elected |*/..Skel|
|00000920| 43 6c 6f 62 62 65 72 20 | 28 29 3b 09 09 09 09 09 |Clobber |();.....|
|00000930| 2f 2a 20 63 6c 65 61 6e | 20 75 70 20 2a 2f 0d 7d |/* clean| up */.}|
|00000940| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+