home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / luschsrc.sit / edit.c.bin < prev    next >
MacBinary  |  1990-05-23  |  2.0 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: edit.c.bin

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic 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, Fri Jan 27 09:32:16 1989, modified Fri Jan 26 14:29:17 1990, creator Think C, type ASCII, 1894 bytes "edit.c" default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
17% 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 06 65 64 69 74 2e 63 | 00 00 00 00 00 00 00 00 |..edit.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 07 66 00 | 00 00 00 a0 06 2d f0 a1 |......f.|.....-..|
|00000060| e6 55 8d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.U......|........|
|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 64 69 | 74 2e 63 0d 20 2a 0d 20 |*. *.edi|t.c. *. |
|000000e0| 2a 09 45 64 69 74 20 43 | 6f 6d 6d 61 6e 64 20 50 |*.Edit C|ommand P|
|000000f0| 61 63 6b 61 67 65 0d 20 | 2a 0d 20 2a 09 57 72 69 |ackage. |*. *.Wri|
|00000100| 74 74 65 6e 20 62 79 20 | 50 61 63 6f 20 58 61 6e |tten by |Paco Xan|
|00000110| 64 65 72 20 4e 61 74 68 | 61 6e 0d 20 2a 09 a9 31 |der Nath|an. *..1|
|00000120| 39 39 30 2c 20 4d 6f 74 | 6f 72 6f 6c 61 20 49 6e |990, Mot|orola In|
|00000130| 63 2e 20 20 50 75 62 6c | 69 63 20 64 6f 6d 61 69 |c. Publ|ic domai|
|00000140| 6e 20 73 6f 75 72 63 65 | 20 63 6f 64 65 2e 0d 20 |n source| code.. |
|00000150| 2a 2a 2a 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| 2f 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 61 70 70 |/..#incl|ude "app|
|000001b0| 6c 69 63 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |lic.h".#|include |
|000001c0| 22 77 69 6e 64 6f 77 2e | 68 22 0d 23 69 6e 63 6c |"window.|h".#incl|
|000001d0| 75 64 65 20 22 74 65 78 | 74 2e 68 22 0d 23 69 6e |ude "tex|t.h".#in|
|000001e0| 63 6c 75 64 65 20 22 65 | 64 69 74 2e 68 22 0d 0d |clude "e|dit.h"..|
|000001f0| 23 69 6e 63 6c 75 64 65 | 20 22 74 65 73 74 2e 68 |#include| "test.h|
|00000200| 22 0d 0d 0d 2f 2a 20 48 | 61 6e 64 6c 65 20 61 20 |".../* H|andle a |
|00000210| 6b 65 79 20 70 72 65 73 | 73 20 69 6e 20 61 20 77 |key pres|s in a w|
|00000220| 69 6e 64 6f 77 0d 20 2a | 2f 0d 76 6f 69 64 0d 45 |indow. *|/.void.E|
|00000230| 64 69 74 4b 65 79 53 74 | 72 6f 6b 65 20 28 74 68 |ditKeySt|roke (th|
|00000240| 65 57 69 6e 64 6f 77 2c | 20 74 68 65 43 68 61 72 |eWindow,| theChar|
|00000250| 29 0d 09 72 65 67 69 73 | 74 65 72 20 57 69 6e 64 |)..regis|ter Wind|
|00000260| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 3b |owPtr th|eWindow;|
|00000270| 0d 09 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 |..regist|er char |
|00000280| 74 68 65 43 68 61 72 3b | 0d 7b 0d 09 72 65 67 69 |theChar;|.{..regi|
|00000290| 73 74 65 72 20 49 6e 66 | 6f 50 74 72 20 69 6e 66 |ster Inf|oPtr inf|
|000002a0| 6f 50 74 72 20 3d 20 28 | 49 6e 66 6f 50 74 72 29 |oPtr = (|InfoPtr)|
|000002b0| 20 47 65 74 57 52 65 66 | 43 6f 6e 28 74 68 65 57 | GetWRef|Con(theW|
|000002c0| 69 6e 64 6f 77 29 3b 0d | 09 47 72 61 66 50 74 72 |indow);.|.GrafPtr|
|000002d0| 09 73 61 76 65 50 6f 72 | 74 3b 0d 0d 09 47 65 74 |.savePor|t;...Get|
|000002e0| 50 6f 72 74 28 26 73 61 | 76 65 50 6f 72 74 29 3b |Port(&sa|vePort);|
|000002f0| 0d 09 53 65 74 50 6f 72 | 74 28 74 68 65 57 69 6e |..SetPor|t(theWin|
|00000300| 64 6f 77 29 3b 0d 0d 09 | 54 45 4b 65 79 28 74 68 |dow);...|TEKey(th|
|00000310| 65 43 68 61 72 2c 20 69 | 6e 66 6f 50 74 72 2d 3e |eChar, i|nfoPtr->|
|00000320| 69 74 65 6d 2e 74 65 78 | 74 2e 74 65 48 64 6c 29 |item.tex|t.teHdl)|
|00000330| 3b 0d 09 54 65 78 74 53 | 65 6c 56 69 65 77 28 74 |;..TextS|elView(t|
|00000340| 68 65 57 69 6e 64 6f 77 | 29 3b 0d 09 0d 09 69 66 |heWindow|);....if|
|00000350| 20 28 21 74 65 73 74 55 | 73 65 72 29 0d 09 09 69 | (!testU|ser)...i|
|00000360| 6e 66 6f 50 74 72 2d 3e | 64 69 72 74 79 20 3d 20 |nfoPtr->|dirty = |
|00000370| 54 52 55 45 3b 0d 0d 09 | 53 65 74 50 6f 72 74 28 |TRUE;...|SetPort(|
|00000380| 73 61 76 65 50 6f 72 74 | 29 3b 0d 7d 0d 0d 0d 2f |savePort|);.}.../|
|00000390| 2a 20 44 6f 20 74 68 65 | 20 73 65 6c 65 63 74 65 |* Do the| selecte|
|000003a0| 64 20 69 74 65 6d 20 66 | 72 6f 6d 20 74 68 65 20 |d item f|rom the |
|000003b0| 65 64 69 74 20 6d 65 6e | 75 0d 20 2a 2f 0d 76 6f |edit men|u. */.vo|
|000003c0| 69 64 0d 45 64 69 74 4d | 65 6e 75 20 28 74 68 65 |id.EditM|enu (the|
|000003d0| 49 74 65 6d 29 0d 09 72 | 65 67 69 73 74 65 72 20 |Item)..r|egister |
|000003e0| 73 68 6f 72 74 20 74 68 | 65 49 74 65 6d 3b 0d 7b |short th|eItem;.{|
|000003f0| 0d 09 72 65 67 69 73 74 | 65 72 20 57 69 6e 64 6f |..regist|er Windo|
|00000400| 77 50 74 72 20 74 68 65 | 57 69 6e 64 6f 77 20 3d |wPtr the|Window =|
|00000410| 20 46 72 6f 6e 74 57 69 | 6e 64 6f 77 28 29 3b 0d | FrontWi|ndow();.|
|00000420| 09 72 65 67 69 73 74 65 | 72 20 49 6e 66 6f 50 74 |.registe|r InfoPt|
|00000430| 72 20 69 6e 66 6f 50 74 | 72 20 3d 20 28 49 6e 66 |r infoPt|r = (Inf|
|00000440| 6f 50 74 72 29 20 47 65 | 74 57 52 65 66 43 6f 6e |oPtr) Ge|tWRefCon|
|00000450| 28 74 68 65 57 69 6e 64 | 6f 77 29 3b 0d 09 72 65 |(theWind|ow);..re|
|00000460| 67 69 73 74 65 72 20 4f | 53 45 72 72 20 74 68 65 |gister O|SErr the|
|00000470| 45 72 72 6f 72 3b 0d 09 | 47 72 61 66 50 74 72 09 |Error;..|GrafPtr.|
|00000480| 73 61 76 65 50 6f 72 74 | 3b 0d 0d 09 47 65 74 50 |savePort|;...GetP|
|00000490| 6f 72 74 28 26 73 61 76 | 65 50 6f 72 74 29 3b 0d |ort(&sav|ePort);.|
|000004a0| 09 53 65 74 50 6f 72 74 | 28 74 68 65 57 69 6e 64 |.SetPort|(theWind|
|000004b0| 6f 77 29 3b 0d 0d 09 69 | 66 20 28 69 6e 66 6f 50 |ow);...i|f (infoP|
|000004c0| 74 72 2d 3e 6b 69 6e 64 | 20 3d 3d 20 77 6b 54 65 |tr->kind| == wkTe|
|000004d0| 78 74 29 20 7b 0d 09 09 | 72 65 67 69 73 74 65 72 |xt) {...|register|
|000004e0| 20 54 45 48 61 6e 64 6c | 65 20 74 65 48 64 6c 20 | TEHandl|e teHdl |
|000004f0| 3d 20 69 6e 66 6f 50 74 | 72 2d 3e 69 74 65 6d 2e |= infoPt|r->item.|
|00000500| 74 65 78 74 2e 74 65 48 | 64 6c 3b 0d 09 0d 09 09 |text.teH|dl;.....|
|00000510| 2f 2a 20 48 61 6e 64 6c | 65 20 69 6e 64 69 76 69 |/* Handl|e indivi|
|00000520| 64 75 61 6c 20 69 74 65 | 6d 73 0d 09 09 20 2a 2f |dual ite|ms... */|
|00000530| 0d 09 09 73 77 69 74 63 | 68 20 28 74 68 65 49 74 |...switc|h (theIt|
|00000540| 65 6d 29 20 7b 0d 09 09 | 63 61 73 65 20 65 6d 55 |em) {...|case emU|
|00000550| 6e 64 6f 3a 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |ndo:....|break;..|
|00000560| 0d 09 09 63 61 73 65 20 | 65 6d 43 75 74 3a 0d 09 |...case |emCut:..|
|00000570| 09 09 54 45 43 75 74 28 | 74 65 48 64 6c 29 3b 0d |..TECut(|teHdl);.|
|00000580| 09 09 09 54 65 78 74 53 | 65 6c 56 69 65 77 28 74 |...TextS|elView(t|
|00000590| 68 65 57 69 6e 64 6f 77 | 29 3b 0d 09 09 09 0d 09 |heWindow|);......|
|000005a0| 09 09 69 66 20 28 21 74 | 65 73 74 55 73 65 72 29 |..if (!t|estUser)|
|000005b0| 0d 09 09 09 09 69 6e 66 | 6f 50 74 72 2d 3e 64 69 |.....inf|oPtr->di|
|000005c0| 72 74 79 20 3d 20 54 52 | 55 45 3b 0d 09 09 09 0d |rty = TR|UE;.....|
|000005d0| 09 09 09 69 66 20 28 28 | 74 68 65 45 72 72 6f 72 |...if ((|theError|
|000005e0| 20 3d 20 5a 65 72 6f 53 | 63 72 61 70 28 29 29 20 | = ZeroS|crap()) |
|000005f0| 3d 3d 20 6e 6f 45 72 72 | 29 0d 09 09 09 09 54 45 |== noErr|).....TE|
|00000600| 54 6f 53 63 72 61 70 28 | 29 3b 0d 09 09 09 62 72 |ToScrap(|);....br|
|00000610| 65 61 6b 3b 0d 09 0d 09 | 09 63 61 73 65 20 65 6d |eak;....|.case em|
|00000620| 43 6f 70 79 3a 0d 09 09 | 09 54 45 43 6f 70 79 28 |Copy:...|.TECopy(|
|00000630| 74 65 48 64 6c 29 3b 0d | 09 09 09 0d 09 09 09 69 |teHdl);.|.......i|
|00000640| 66 20 28 28 74 68 65 45 | 72 72 6f 72 20 3d 20 5a |f ((theE|rror = Z|
|00000650| 65 72 6f 53 63 72 61 70 | 28 29 29 20 3d 3d 20 6e |eroScrap|()) == n|
|00000660| 6f 45 72 72 29 0d 09 09 | 09 09 54 45 54 6f 53 63 |oErr)...|..TEToSc|
|00000670| 72 61 70 28 29 3b 0d 0d | 09 09 09 62 72 65 61 6b |rap();..|...break|
|00000680| 3b 0d 09 0d 09 09 63 61 | 73 65 20 65 6d 50 61 73 |;.....ca|se emPas|
|00000690| 74 65 3a 0d 09 09 09 69 | 66 20 28 28 74 68 65 45 |te:....i|f ((theE|
|000006a0| 72 72 6f 72 20 3d 20 54 | 45 46 72 6f 6d 53 63 72 |rror = T|EFromScr|
|000006b0| 61 70 28 29 29 20 3d 3d | 20 6e 6f 45 72 72 29 20 |ap()) ==| noErr) |
|000006c0| 7b 0d 09 09 09 09 54 45 | 50 61 73 74 65 28 74 65 |{.....TE|Paste(te|
|000006d0| 48 64 6c 29 3b 0d 09 09 | 09 09 54 65 78 74 53 65 |Hdl);...|..TextSe|
|000006e0| 6c 56 69 65 77 28 74 68 | 65 57 69 6e 64 6f 77 29 |lView(th|eWindow)|
|000006f0| 3b 0d 09 09 09 09 0d 09 | 09 09 09 69 66 20 28 21 |;.......|...if (!|
|00000700| 74 65 73 74 55 73 65 72 | 29 0d 09 09 09 09 09 69 |testUser|)......i|
|00000710| 6e 66 6f 50 74 72 2d 3e | 64 69 72 74 79 20 3d 20 |nfoPtr->|dirty = |
|00000720| 54 52 55 45 3b 0d 09 09 | 09 7d 0d 09 09 09 62 72 |TRUE;...|.}....br|
|00000730| 65 61 6b 3b 0d 09 0d 09 | 09 63 61 73 65 20 65 6d |eak;....|.case em|
|00000740| 43 6c 65 61 72 3a 0d 09 | 09 09 54 45 44 65 6c 65 |Clear:..|..TEDele|
|00000750| 74 65 28 74 65 48 64 6c | 29 3b 0d 09 09 09 54 65 |te(teHdl|);....Te|
|00000760| 78 74 53 65 6c 56 69 65 | 77 28 74 68 65 57 69 6e |xtSelVie|w(theWin|
|00000770| 64 6f 77 29 3b 0d 09 09 | 09 0d 09 09 09 69 66 20 |dow);...|.....if |
|00000780| 28 21 74 65 73 74 55 73 | 65 72 29 0d 09 09 09 09 |(!testUs|er).....|
|00000790| 69 6e 66 6f 50 74 72 2d | 3e 64 69 72 74 79 20 3d |infoPtr-|>dirty =|
|000007a0| 20 54 52 55 45 3b 0d 0d | 09 09 09 62 72 65 61 6b | TRUE;..|...break|
|000007b0| 3b 0d 09 0d 09 09 64 65 | 66 61 75 6c 74 3a 0d 09 |;.....de|fault:..|
|000007c0| 09 09 62 72 65 61 6b 3b | 0d 09 09 7d 0d 09 7d 0d |..break;|...}..}.|
|000007d0| 0d 09 53 65 74 50 6f 72 | 74 28 73 61 76 65 50 6f |..SetPor|t(savePo|
|000007e0| 72 74 29 3b 0d 7d 00 00 | 00 00 00 00 00 00 00 00 |rt);.}..|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+