home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / H-K / HexEdit1.05.sit / HexEditSource / Source / HexEdit.h < prev    next >
MacBinary  |  1993-12-11  |  7.6 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
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Dec 11 11:28:47 1993, modified Sat Dec 11 11:28:47 1993, creator Think C, type ASCII, 7088 bytes "HexEdit.h" , at 0x1c30 402 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 48 65 78 45 64 69 | 74 2e 68 00 00 00 00 00 |..HexEdi|t.h.....|
|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 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 1b b0 00 | 00 01 92 a9 2f a5 bf a9 |........|..../...|
|00000060| 2f a5 bf 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 52 4a 00 00 |........|....RJ..|
|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 0d 20 | 2a 20 48 65 78 45 64 69 |******. |* HexEdi|
|000000d0| 74 2e 68 0d 20 2a 0d 20 | 2a 20 53 69 6d 70 6c 65 |t.h. *. |* Simple|
|000000e0| 20 48 65 78 20 45 64 69 | 74 6f 72 0d 20 2a 20 43 | Hex Edi|tor. * C|
|000000f0| 6f 70 79 72 69 67 68 74 | 20 31 39 39 33 2c 20 4a |opyright| 1993, J|
|00000100| 69 6d 20 42 75 6d 67 61 | 72 64 6e 65 72 0d 20 2a |im Bumga|rdner. *|
|00000110| 0d 20 2a 20 52 65 76 69 | 73 69 6f 6e 20 48 69 73 |. * Revi|sion His|
|00000120| 74 6f 72 79 20 69 73 20 | 69 6e 20 48 69 73 74 6f |tory is |in Histo|
|00000130| 72 79 2e 4e 6f 74 65 0d | 20 2a 2a 2a 2a 2a 2a 2a |ry.Note.| *******|
|00000140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|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 2f 0d |********|******/.|
|00000180| 0d 23 69 6e 63 6c 75 64 | 65 20 22 4f 62 6a 65 63 |.#includ|e "Objec|
|00000190| 74 57 69 6e 64 6f 77 2e | 68 22 0d 23 69 6e 63 6c |tWindow.|h".#incl|
|000001a0| 75 64 65 20 3c 50 72 69 | 6e 74 54 72 61 70 73 2e |ude <Pri|ntTraps.|
|000001b0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|000001c0| 61 72 67 2e 68 3e 0d 0d | 23 69 66 20 50 52 4f 46 |arg.h>..|#if PROF|
|000001d0| 49 4c 45 09 09 09 2f 2f | 20 36 2f 31 35 20 4f 70 |ILE...//| 6/15 Op|
|000001e0| 74 69 6f 6e 61 6c 20 70 | 72 6f 66 69 6c 69 6e 67 |tional p|rofiling|
|000001f0| 20 73 75 70 70 6f 72 74 | 0d 23 69 6e 63 6c 75 64 | support|.#includ|
|00000200| 65 20 3c 43 6f 6e 73 6f | 6c 65 2e 68 3e 0d 23 69 |e <Conso|le.h>.#i|
|00000210| 6e 63 6c 75 64 65 20 3c | 50 72 6f 66 69 6c 65 2e |nclude <|Profile.|
|00000220| 68 3e 0d 23 65 6e 64 69 | 66 0d 0d 23 64 65 66 69 |h>.#endi|f..#defi|
|00000230| 6e 65 20 43 52 45 41 54 | 4f 52 09 09 09 27 68 44 |ne CREAT|OR...'hD|
|00000240| 6d 70 27 0d 23 64 65 66 | 69 6e 65 20 44 45 46 46 |mp'.#def|ine DEFF|
|00000250| 49 4c 45 54 59 50 45 09 | 09 27 54 45 58 54 27 0d |ILETYPE.|.'TEXT'.|
|00000260| 23 64 65 66 69 6e 65 20 | 53 42 61 72 53 69 7a 65 |#define |SBarSize|
|00000270| 09 09 31 36 0d 23 64 65 | 66 69 6e 65 09 47 72 6f |..16.#de|fine.Gro|
|00000280| 77 49 63 6f 6e 53 69 7a | 65 09 31 34 0d 23 64 65 |wIconSiz|e.14.#de|
|00000290| 66 69 6e 65 09 4d 61 69 | 6e 57 49 4e 44 09 09 31 |fine.Mai|nWIND..1|
|000002a0| 32 38 0d 23 64 65 66 69 | 6e 65 20 4d 61 78 46 69 |28.#defi|ne MaxFi|
|000002b0| 6c 65 52 41 4d 09 09 33 | 32 30 30 30 4c 0d 23 64 |leRAM..3|2000L.#d|
|000002c0| 65 66 69 6e 65 20 53 6c | 75 73 68 52 41 4d 09 09 |efine Sl|ushRAM..|
|000002d0| 31 30 30 30 4c 0d 23 64 | 65 66 69 6e 65 20 41 6c |1000L.#d|efine Al|
|000002e0| 6c 6f 63 49 6e 63 72 09 | 09 36 34 4c 0d 23 64 65 |locIncr.|.64L.#de|
|000002f0| 66 69 6e 65 20 48 65 61 | 64 65 72 48 65 69 67 68 |fine Hea|derHeigh|
|00000300| 74 09 32 30 0d 23 64 65 | 66 69 6e 65 20 46 6f 6f |t.20.#de|fine Foo|
|00000310| 74 65 72 48 65 69 67 68 | 74 09 32 30 0d 23 64 65 |terHeigh|t.20.#de|
|00000320| 66 69 6e 65 20 54 6f 70 | 4d 61 72 67 69 6e 09 09 |fine Top|Margin..|
|00000330| 33 0d 23 64 65 66 69 6e | 65 20 42 6f 74 4d 61 72 |3.#defin|e BotMar|
|00000340| 67 69 6e 09 09 31 0d 23 | 64 65 66 69 6e 65 20 41 |gin..1.#|define A|
|00000350| 64 64 72 50 6f 73 09 09 | 09 31 32 0d 23 64 65 66 |ddrPos..|.12.#def|
|00000360| 69 6e 65 20 48 65 78 53 | 74 61 72 74 09 09 39 0d |ine HexS|tart..9.|
|00000370| 23 64 65 66 69 6e 65 20 | 41 73 63 69 69 53 74 61 |#define |AsciiSta|
|00000380| 72 74 09 09 35 39 0d 23 | 64 65 66 69 6e 65 20 41 |rt..59.#|define A|
|00000390| 73 63 69 69 53 70 61 63 | 69 6e 67 09 36 0d 23 64 |sciiSpac|ing.6.#d|
|000003a0| 65 66 69 6e 65 20 4c 69 | 6e 65 48 65 69 67 68 74 |efine Li|neHeight|
|000003b0| 09 09 31 31 0d 23 64 65 | 66 69 6e 65 20 44 65 73 |..11.#de|fine Des|
|000003c0| 63 65 6e 64 48 65 69 67 | 68 74 09 33 0d 23 64 65 |cendHeig|ht.3.#de|
|000003d0| 66 69 6e 65 20 43 68 61 | 72 57 69 64 74 68 09 09 |fine Cha|rWidth..|
|000003e0| 36 0d 23 64 65 66 69 6e | 65 20 48 65 78 57 69 64 |6.#defin|e HexWid|
|000003f0| 74 68 09 09 28 43 68 61 | 72 57 69 64 74 68 2a 33 |th..(Cha|rWidth*3|
|00000400| 29 0d 23 64 65 66 69 6e | 65 20 4c 69 6e 65 4e 62 |).#defin|e LineNb|
|00000410| 72 28 61 29 09 09 28 28 | 61 29 20 3e 3e 20 34 29 |r(a)..((|a) >> 4)|
|00000420| 0d 23 64 65 66 69 6e 65 | 20 43 6f 6c 4e 62 72 28 |.#define| ColNbr(|
|00000430| 61 29 09 09 28 28 61 29 | 20 26 20 30 78 30 46 29 |a)..((a)| & 0x0F)|
|00000440| 0d 23 64 65 66 69 6e 65 | 20 43 68 61 72 50 6f 73 |.#define| CharPos|
|00000450| 28 61 29 09 09 28 28 28 | 61 29 20 3c 3c 20 32 29 |(a)..(((|a) << 2)|
|00000460| 20 2b 20 28 28 61 29 20 | 3c 3c 20 31 29 29 09 2f | + ((a) |<< 1))./|
|00000470| 2f 20 4d 75 6c 74 69 70 | 6c 79 20 62 79 20 36 0d |/ Multip|ly by 6.|
|00000480| 23 64 65 66 69 6e 65 20 | 48 65 78 50 6f 73 28 61 |#define |HexPos(a|
|00000490| 29 09 09 28 28 28 61 29 | 20 3c 3c 20 34 29 20 2b |)..(((a)| << 4) +|
|000004a0| 20 28 28 61 29 20 3c 3c | 20 31 29 29 09 2f 2f 20 | ((a) <<| 1)).// |
|000004b0| 4d 75 6c 74 69 70 6c 79 | 20 62 79 20 31 38 0d 23 |Multiply| by 18.#|
|000004c0| 64 65 66 69 6e 65 20 53 | 61 76 65 43 68 61 6e 67 |define S|aveChang|
|000004d0| 65 73 41 4c 52 54 09 31 | 30 30 30 30 0d 23 64 65 |esALRT.1|0000.#de|
|000004e0| 66 69 6e 65 20 53 74 64 | 45 72 72 6f 72 41 4c 52 |fine Std|ErrorALR|
|000004f0| 54 09 31 30 30 30 31 0d | 23 64 65 66 69 6e 65 20 |T.10001.|#define |
|00000500| 4e 6f 46 6f 72 6b 41 4c | 52 54 09 09 31 30 30 30 |NoForkAL|RT..1000|
|00000510| 32 0d 23 64 65 66 69 6e | 65 20 53 74 64 4d 65 73 |2.#defin|e StdMes|
|00000520| 73 61 67 65 41 4c 52 54 | 09 31 30 30 30 33 0d 23 |sageALRT|.10003.#|
|00000530| 64 65 66 69 6e 65 20 53 | 65 61 72 63 68 44 4c 4f |define S|earchDLO|
|00000540| 47 09 09 31 32 38 0d 23 | 64 65 66 69 6e 65 20 47 |G..128.#|define G|
|00000550| 6f 74 6f 44 4c 4f 47 09 | 09 31 32 39 0d 23 64 65 |otoDLOG.|.129.#de|
|00000560| 66 69 6e 65 20 47 65 74 | 46 69 6c 65 44 4c 4f 47 |fine Get|FileDLOG|
|00000570| 09 09 31 34 30 31 0d 23 | 64 65 66 69 6e 65 20 4d |..1401.#|define M|
|00000580| 65 6e 75 42 61 73 65 49 | 44 09 09 31 32 38 0d 23 |enuBaseI|D..128.#|
|00000590| 64 65 66 69 6e 65 20 55 | 6e 64 6f 53 54 52 73 09 |define U|ndoSTRs.|
|000005a0| 09 31 32 38 0d 23 64 65 | 66 69 6e 65 20 4d 61 78 |.128.#de|fine Max|
|000005b0| 57 69 6e 64 6f 77 57 69 | 64 74 68 09 34 38 34 09 |WindowWi|dth.484.|
|000005c0| 2f 2f 20 4d 75 73 74 20 | 62 65 20 6d 75 6c 74 69 |// Must |be multi|
|000005d0| 70 6c 65 20 6f 66 20 32 | 0d 23 64 65 66 69 6e 65 |ple of 2|.#define|
|000005e0| 20 4d 61 78 57 69 6e 64 | 6f 77 48 65 69 67 68 74 | MaxWind|owHeight|
|000005f0| 09 35 31 32 09 2f 2f 20 | 4e 6f 74 65 20 2d 20 74 |.512.// |Note - t|
|00000600| 68 65 73 65 20 61 72 65 | 20 4e 4f 54 20 72 65 76 |hese are| NOT rev|
|00000610| 65 72 73 65 64 21 0d 23 | 64 65 66 69 6e 65 20 50 |ersed!.#|define P|
|00000620| 72 65 66 52 65 73 54 79 | 70 65 09 09 27 70 72 66 |refResTy|pe..'prf|
|00000630| 31 27 0d 23 64 65 66 69 | 6e 65 09 50 72 65 66 52 |1'.#defi|ne.PrefR|
|00000640| 65 73 49 44 09 09 31 32 | 38 0d 0d 65 6e 75 6d 20 |esID..12|8..enum |
|00000650| 43 68 75 6e 6b 54 79 70 | 65 73 09 09 7b 43 54 5f |ChunkTyp|es..{CT_|
|00000660| 4f 72 69 67 69 6e 61 6c | 2c 20 43 54 5f 57 6f 72 |Original|, CT_Wor|
|00000670| 6b 2c 20 43 54 5f 55 6e | 77 72 69 74 74 65 6e 20 |k, CT_Un|written |
|00000680| 7d 3b 0d 65 6e 75 6d 20 | 46 6f 72 6b 54 79 70 65 |};.enum |ForkType|
|00000690| 20 09 09 7b 46 54 5f 44 | 61 74 61 2c 20 46 54 5f | ..{FT_D|ata, FT_|
|000006a0| 52 65 73 6f 75 72 63 65 | 7d 3b 0d 65 6e 75 6d 20 |Resource|};.enum |
|000006b0| 46 6f 72 6b 4d 6f 64 65 | 73 09 09 7b 46 4d 5f 44 |ForkMode|s..{FM_D|
|000006c0| 61 74 61 2c 20 46 4d 5f | 52 73 72 63 2c 20 46 4d |ata, FM_|Rsrc, FM|
|000006d0| 5f 53 6d 61 72 74 7d 3b | 0d 65 6e 75 6d 20 41 73 |_Smart};|.enum As|
|000006e0| 63 69 69 4d 6f 64 65 73 | 09 09 7b 41 4d 5f 4c 6f |ciiModes|..{AM_Lo|
|000006f0| 2c 20 41 4d 5f 48 69 7d | 3b 0d 65 6e 75 6d 20 45 |, AM_Hi}|;.enum E|
|00000700| 64 69 74 4d 6f 64 65 20 | 09 09 7b 45 4d 5f 48 65 |ditMode |..{EM_He|
|00000710| 78 2c 20 45 4d 5f 41 73 | 63 69 69 7d 3b 0d 65 6e |x, EM_As|cii};.en|
|00000720| 75 6d 20 45 64 69 74 4f | 70 65 72 61 74 69 6f 6e |um EditO|peration|
|00000730| 09 7b 45 4f 5f 54 79 70 | 69 6e 67 3d 31 2c 20 45 |.{EO_Typ|ing=1, E|
|00000740| 4f 5f 50 61 73 74 65 2c | 20 45 4f 5f 49 6e 73 65 |O_Paste,| EO_Inse|
|00000750| 72 74 2c 20 45 4f 5f 43 | 75 74 2c 20 45 4f 5f 43 |rt, EO_C|ut, EO_C|
|00000760| 6c 65 61 72 2c 20 45 4f | 5f 44 65 6c 65 74 65 7d |lear, EO|_Delete}|
|00000770| 3b 0d 65 6e 75 6d 20 45 | 72 72 6f 72 53 65 76 65 |;.enum E|rrorSeve|
|00000780| 72 69 74 79 09 7b 45 53 | 5f 4d 65 73 73 61 67 65 |rity.{ES|_Message|
|00000790| 2c 20 45 53 5f 4e 6f 74 | 65 2c 20 45 53 5f 43 61 |, ES_Not|e, ES_Ca|
|000007a0| 75 74 69 6f 6e 2c 20 45 | 53 5f 53 74 6f 70 7d 3b |ution, E|S_Stop};|
|000007b0| 0d 65 6e 75 6d 20 43 75 | 72 73 6f 72 4e 75 6d 62 |.enum Cu|rsorNumb|
|000007c0| 65 72 73 09 7b 43 5f 41 | 72 72 6f 77 2c 20 43 5f |ers.{C_A|rrow, C_|
|000007d0| 57 61 74 63 68 2c 20 43 | 5f 49 42 65 61 6d 7d 3b |Watch, C|_IBeam};|
|000007e0| 0d 0d 2f 2f 20 4d 65 6e | 75 20 52 65 73 6f 75 72 |..// Men|u Resour|
|000007f0| 63 65 20 49 44 73 0d 65 | 6e 75 6d 09 7b 41 70 70 |ce IDs.e|num.{App|
|00000800| 6c 65 4d 45 4e 55 20 3d | 20 31 32 38 2c 20 46 69 |leMENU =| 128, Fi|
|00000810| 6c 65 4d 45 4e 55 2c 20 | 45 64 69 74 4d 45 4e 55 |leMENU, |EditMENU|
|00000820| 2c 20 46 69 6e 64 4d 45 | 4e 55 2c 20 4f 70 74 69 |, FindME|NU, Opti|
|00000830| 6f 6e 73 4d 45 4e 55 7d | 3b 0d 0d 2f 2f 20 4d 65 |onsMENU}|;..// Me|
|00000840| 6e 75 20 49 74 65 6d 20 | 4e 75 6d 62 65 72 73 0d |nu Item |Numbers.|
|00000850| 65 6e 75 6d 09 7b 41 4d | 5f 41 62 6f 75 74 3d 31 |enum.{AM|_About=1|
|00000860| 7d 3b 0d 0d 65 6e 75 6d | 09 7b 46 4d 5f 4e 65 77 |};..enum|.{FM_New|
|00000870| 3d 31 2c 46 4d 5f 4f 70 | 65 6e 2c 46 4d 5f 43 6c |=1,FM_Op|en,FM_Cl|
|00000880| 6f 73 65 2c 09 0d 09 09 | 20 46 4d 5f 53 61 76 65 |ose,....| FM_Save|
|00000890| 3d 35 2c 20 46 4d 5f 53 | 61 76 65 41 73 2c 20 46 |=5, FM_S|aveAs, F|
|000008a0| 4d 5f 52 65 76 65 72 74 | 2c 0d 09 09 20 46 4d 5f |M_Revert|,... FM_|
|000008b0| 50 61 67 65 53 65 74 75 | 70 3d 39 2c 20 46 4d 5f |PageSetu|p=9, FM_|
|000008c0| 50 72 69 6e 74 2c 0d 09 | 09 20 46 4d 5f 51 75 69 |Print,..|. FM_Qui|
|000008d0| 74 20 3d 20 31 32 7d 3b | 0d 0d 65 6e 75 6d 20 09 |t = 12};|..enum .|
|000008e0| 7b 45 4d 5f 55 6e 64 6f | 20 3d 20 31 2c 20 45 4d |{EM_Undo| = 1, EM|
|000008f0| 5f 43 75 74 20 3d 20 33 | 2c 20 45 4d 5f 43 6f 70 |_Cut = 3|, EM_Cop|
|00000900| 79 2c 0d 09 09 20 45 4d | 5f 50 61 73 74 65 2c 20 |y,... EM|_Paste, |
|00000910| 45 4d 5f 43 6c 65 61 72 | 2c 20 45 4d 5f 53 65 6c |EM_Clear|, EM_Sel|
|00000920| 65 63 74 41 6c 6c 3d 38 | 7d 3b 0d 09 09 20 0d 65 |ectAll=8|};... .e|
|00000930| 6e 75 6d 09 7b 53 4d 5f | 46 69 6e 64 20 3d 20 31 |num.{SM_|Find = 1|
|00000940| 2c 20 53 4d 5f 46 69 6e | 64 46 6f 72 77 61 72 64 |, SM_Fin|dForward|
|00000950| 2c 20 53 4d 5f 46 69 6e | 64 42 61 63 6b 77 61 72 |, SM_Fin|dBackwar|
|00000960| 64 2c 20 53 4d 5f 47 6f | 74 6f 41 64 64 72 65 73 |d, SM_Go|toAddres|
|00000970| 73 3d 35 7d 3b 0d 0d 65 | 6e 75 6d 09 7b 4f 4d 5f |s=5};..e|num.{OM_|
|00000980| 48 69 41 73 63 69 69 20 | 3d 20 31 2c 20 4f 4d 5f |HiAscii |= 1, OM_|
|00000990| 44 65 63 69 6d 61 6c 41 | 64 64 72 2c 20 4f 4d 5f |DecimalA|ddr, OM_|
|000009a0| 4f 76 65 72 77 72 69 74 | 65 2c 20 4f 4d 5f 42 61 |Overwrit|e, OM_Ba|
|000009b0| 63 6b 75 70 73 7d 3b 0d | 0d 0d 74 79 70 65 64 65 |ckups};.|..typede|
|000009c0| 66 20 73 74 72 75 63 74 | 20 45 64 69 74 43 68 75 |f struct| EditChu|
|000009d0| 6e 6b 20 7b 0d 09 73 74 | 72 75 63 74 20 45 64 69 |nk {..st|ruct Edi|
|000009e0| 74 43 68 75 6e 6b 09 2a | 2a 70 72 65 76 2c 2a 2a |tChunk.*|*prev,**|
|000009f0| 6e 65 78 74 3b 0d 09 42 | 6f 6f 6c 65 61 6e 09 09 |next;..B|oolean..|
|00000a00| 09 09 6c 6f 61 64 65 64 | 3b 09 09 09 2f 2f 20 46 |..loaded|;...// F|
|00000a10| 6c 61 67 20 69 66 20 63 | 68 75 6e 6b 20 69 73 20 |lag if c|hunk is |
|00000a20| 63 75 72 72 65 6e 74 6c | 79 20 6c 6f 61 64 65 64 |currentl|y loaded|
|00000a30| 0d 09 73 68 6f 72 74 09 | 09 09 09 74 79 70 65 3b |..short.|...type;|
|00000a40| 09 09 09 2f 2f 20 30 3d | 4f 72 69 67 20 46 69 6c |...// 0=|Orig Fil|
|00000a50| 65 2c 20 31 3d 57 6f 72 | 6b 20 46 69 6c 65 2c 20 |e, 1=Wor|k File, |
|00000a60| 32 3d 55 6e 77 72 69 74 | 74 65 6e 0d 09 48 61 6e |2=Unwrit|ten..Han|
|00000a70| 64 6c 65 09 09 09 09 64 | 61 74 61 3b 09 09 09 2f |dle....d|ata;.../|
|00000a80| 2f 20 48 61 6e 64 6c 65 | 20 74 6f 20 43 68 75 6e |/ Handle| to Chun|
|00000a90| 6b 20 44 61 74 61 0d 09 | 6c 6f 6e 67 09 09 09 09 |k Data..|long....|
|00000aa0| 73 69 7a 65 3b 09 09 09 | 2f 2f 20 53 69 7a 65 20 |size;...|// Size |
|00000ab0| 6f 66 20 43 68 75 6e 6b | 0d 09 6c 6f 6e 67 09 09 |of Chunk|..long..|
|00000ac0| 09 09 61 6c 6c 6f 63 53 | 69 7a 65 3b 09 09 2f 2f |..allocS|ize;..//|
|00000ad0| 20 53 69 7a 65 20 6f 66 | 20 61 6c 6c 6f 63 61 74 | Size of| allocat|
|00000ae0| 65 64 20 70 6f 69 6e 74 | 65 72 0d 09 6c 6f 6e 67 |ed point|er..long|
|00000af0| 09 09 09 09 61 64 64 72 | 3b 09 09 09 2f 2f 20 53 |....addr|;...// S|
|00000b00| 74 61 72 74 20 41 64 64 | 72 20 69 6e 20 75 70 64 |tart Add|r in upd|
|00000b10| 61 74 65 64 20 46 69 6c | 65 0d 09 6c 6f 6e 67 09 |ated Fil|e..long.|
|00000b20| 09 09 09 66 69 6c 65 50 | 6f 73 3b 09 09 2f 2f 20 |...fileP|os;..// |
|00000b30| 53 74 61 72 74 20 41 64 | 64 72 20 69 6e 20 61 63 |Start Ad|dr in ac|
|00000b40| 74 75 61 6c 20 46 69 6c | 65 0d 09 6c 6f 6e 67 09 |tual Fil|e..long.|
|00000b50| 09 09 09 6c 61 73 74 43 | 74 72 3b 09 09 2f 2f 20 |...lastC|tr;..// |
|00000b60| 55 73 65 20 43 6f 75 6e | 74 65 72 0d 7d 20 45 64 |Use Coun|ter.} Ed|
|00000b70| 69 74 43 68 75 6e 6b 3b | 0d 0d 74 79 70 65 64 65 |itChunk;|..typede|
|00000b80| 66 20 73 74 72 75 63 74 | 20 7b 0d 09 4f 62 6a 65 |f struct| {..Obje|
|00000b90| 63 74 57 69 6e 64 6f 77 | 52 65 63 6f 72 64 09 6f |ctWindow|Record.o|
|00000ba0| 57 69 6e 3b 09 09 09 2f | 2f 20 57 69 6e 64 6f 77 |Win;.../|/ Window|
|00000bb0| 20 52 65 63 6f 72 64 0d | 09 43 6f 6e 74 72 6f 6c | Record.|.Control|
|00000bc0| 48 61 6e 64 6c 65 09 09 | 76 53 63 72 6f 6c 6c 42 |Handle..|vScrollB|
|00000bd0| 61 72 3b 09 09 2f 2f 20 | 56 65 72 74 69 63 61 6c |ar;..// |Vertical|
|00000be0| 20 53 63 72 6f 6c 6c 20 | 42 61 72 0d 09 45 64 69 | Scroll |Bar..Edi|
|00000bf0| 74 43 68 75 6e 6b 09 09 | 09 2a 2a 66 69 72 73 74 |tChunk..|.**first|
|00000c00| 43 68 75 6e 6b 3b 09 2f | 2f 20 46 69 6c 65 27 73 |Chunk;./|/ File's|
|00000c10| 20 46 69 72 73 74 20 43 | 68 75 6e 6b 0d 09 45 64 | First C|hunk..Ed|
|00000c20| 69 74 43 68 75 6e 6b 09 | 09 09 2a 2a 63 75 72 43 |itChunk.|..**curC|
|00000c30| 68 75 6e 6b 3b 09 09 2f | 2f 20 46 69 6c 65 27 73 |hunk;../|/ File's|
|00000c40| 20 43 75 72 72 65 6e 74 | 20 43 68 75 6e 6b 0d 09 | Current| Chunk..|
|00000c50| 46 53 53 70 65 63 09 09 | 09 09 66 73 53 70 65 63 |FSSpec..|..fsSpec|
|00000c60| 2c 77 6f 72 6b 53 70 65 | 63 3b 2f 2f 20 46 69 6c |,workSpe|c;// Fil|
|00000c70| 65 20 53 70 65 63 73 20 | 66 6f 72 20 4f 72 69 67 |e Specs |for Orig|
|00000c80| 69 6e 61 6c 2c 20 57 6f | 72 6b 20 46 69 6c 65 0d |inal, Wo|rk File.|
|00000c90| 09 46 53 53 70 65 63 09 | 09 09 09 64 65 73 74 53 |.FSSpec.|...destS|
|00000ca0| 70 65 63 3b 09 09 2f 2f | 20 46 69 6c 65 20 53 70 |pec;..//| File Sp|
|00000cb0| 65 63 20 66 6f 72 20 53 | 61 76 65 2c 20 53 61 76 |ec for S|ave, Sav|
|00000cc0| 65 20 41 73 0d 09 6c 6f | 6e 67 09 09 09 09 66 69 |e As..lo|ng....fi|
|00000cd0| 6c 65 53 69 7a 65 3b 09 | 09 2f 2f 20 54 6f 74 61 |leSize;.|.// Tota|
|00000ce0| 6c 20 46 69 6c 65 20 53 | 69 7a 65 0d 09 6c 6f 6e |l File S|ize..lon|
|00000cf0| 67 09 09 09 09 66 69 6c | 65 54 79 70 65 3b 09 09 |g....fil|eType;..|
|00000d00| 2f 2f 20 46 69 6c 65 20 | 54 79 70 65 0d 09 6c 6f |// File |Type..lo|
|00000d10| 6e 67 09 09 09 09 63 72 | 65 61 74 6f 72 3b 09 09 |ng....cr|eator;..|
|00000d20| 2f 2f 20 46 69 6c 65 20 | 43 72 65 61 74 6f 72 0d |// File |Creator.|
|00000d30| 09 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 09 09 |.unsigne|d long..|
|00000d40| 63 72 65 61 74 69 6f 6e | 44 61 74 65 3b 09 2f 2f |creation|Date;.//|
|00000d50| 20 43 72 65 61 74 69 6f | 6e 20 44 61 74 65 0d 09 | Creatio|n Date..|
|00000d60| 6c 6f 6e 67 09 09 09 09 | 75 73 65 43 74 72 3b 09 |long....|useCtr;.|
|00000d70| 09 09 2f 2f 20 43 68 75 | 6e 6b 20 61 63 63 65 73 |..// Chu|nk acces|
|00000d80| 73 20 43 6f 75 6e 74 65 | 72 0d 09 09 09 09 09 09 |s Counte|r.......|
|00000d90| 09 09 09 09 2f 2f 20 43 | 68 75 6e 6b 73 20 61 72 |....// C|hunks ar|
|00000da0| 65 20 75 6e 6c 6f 61 64 | 65 64 20 66 72 6f 6d 20 |e unload|ed from |
|00000db0| 6d 65 6d 6f 72 79 20 62 | 61 73 65 64 20 6f 6e 20 |memory b|ased on |
|00000dc0| 75 73 61 67 65 0d 09 6c | 6f 6e 67 09 09 09 09 74 |usage..l|ong....t|
|00000dd0| 6f 74 4c 6f 61 64 65 64 | 3b 09 09 2f 2f 20 41 6d |otLoaded|;..// Am|
|00000de0| 6f 75 6e 74 20 6f 66 20 | 62 79 74 65 73 20 69 6e |ount of |bytes in|
|00000df0| 20 4d 65 6d 6f 72 79 0d | 09 6c 6f 6e 67 09 09 09 | Memory.|.long...|
|00000e00| 09 65 64 69 74 4f 66 66 | 73 65 74 3b 09 09 2f 2f |.editOff|set;..//|
|00000e10| 20 44 69 73 70 6c 61 79 | 20 4f 66 66 73 65 74 0d | Display| Offset.|
|00000e20| 09 6c 6f 6e 67 09 09 09 | 09 73 74 61 72 74 53 65 |.long...|.startSe|
|00000e30| 6c 3b 09 09 2f 2f 20 46 | 69 72 73 74 20 43 68 61 |l;..// F|irst Cha|
|00000e40| 72 61 63 74 65 72 20 6f | 66 20 53 65 6c 65 63 74 |racter o|f Select|
|00000e50| 69 6f 6e 0d 09 6c 6f 6e | 67 09 09 09 09 65 6e 64 |ion..lon|g....end|
|00000e60| 53 65 6c 3b 09 09 09 2f | 2f 20 46 69 72 73 74 20 |Sel;.../|/ First |
|00000e70| 43 68 61 72 61 63 74 65 | 72 20 41 46 54 45 52 20 |Characte|r AFTER |
|00000e80| 53 65 6c 65 63 74 69 6f | 6e 0d 09 6c 6f 6e 67 09 |Selectio|n..long.|
|00000e90| 09 09 09 6c 61 73 74 54 | 79 70 65 50 6f 73 3b 09 |...lastT|ypePos;.|
|00000ea0| 2f 2f 20 4c 61 73 74 20 | 54 79 70 69 6e 67 20 49 |// Last |Typing I|
|00000eb0| 6e 73 65 72 74 69 6f 6e | 20 50 6f 69 6e 74 0d 09 |nsertion| Point..|
|00000ec0| 73 68 6f 72 74 09 09 09 | 09 72 65 66 4e 75 6d 3b |short...|.refNum;|
|00000ed0| 09 09 09 2f 2f 20 46 69 | 6c 65 27 73 20 52 65 66 |...// Fi|le's Ref|
|00000ee0| 65 72 65 6e 63 65 20 4e | 75 6d 62 65 72 0d 09 73 |erence N|umber..s|
|00000ef0| 68 6f 72 74 09 09 09 09 | 77 6f 72 6b 52 65 66 4e |hort....|workRefN|
|00000f00| 75 6d 3b 09 09 2f 2f 20 | 57 6f 72 6b 20 46 69 6c |um;..// |Work Fil|
|00000f10| 65 27 73 20 52 65 66 65 | 72 65 6e 63 65 20 4e 75 |e's Refe|rence Nu|
|00000f20| 6d 62 65 72 0d 09 73 68 | 6f 72 74 09 09 09 09 77 |mber..sh|ort....w|
|00000f30| 6f 72 6b 42 79 74 65 73 | 57 72 69 74 74 65 6e 3b |orkBytes|Written;|
|00000f40| 09 2f 2f 20 53 69 7a 65 | 20 6f 66 20 57 6f 72 6b |.// Size| of Work|
|00000f50| 20 46 69 6c 65 0d 09 73 | 68 6f 72 74 09 09 09 09 | File..s|hort....|
|00000f60| 6c 69 6e 65 73 50 65 72 | 50 61 67 65 3b 09 2f 2f |linesPer|Page;.//|
|00000f70| 20 4c 69 6e 65 73 20 74 | 68 61 74 20 66 69 74 20 | Lines t|hat fit |
|00000f80| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 0d 09 73 |in the w|indow..s|
|00000f90| 68 6f 72 74 09 09 09 09 | 65 64 69 74 4d 6f 64 65 |hort....|editMode|
|00000fa0| 3b 09 09 2f 2f 20 30 3d | 48 65 78 2c 20 31 3d 41 |;..// 0=|Hex, 1=A|
|00000fb0| 73 63 69 69 0d 09 73 68 | 6f 72 74 09 09 09 09 66 |scii..sh|ort....f|
|00000fc0| 6f 72 6b 3b 09 09 09 2f | 2f 20 30 3d 64 61 74 61 |ork;.../|/ 0=data|
|00000fd0| 20 31 3d 72 65 73 6f 75 | 72 63 65 0d 09 73 68 6f | 1=resou|rce..sho|
|00000fe0| 72 74 09 09 09 09 6c 61 | 73 74 4e 79 62 62 6c 65 |rt....la|stNybble|
|00000ff0| 3b 09 09 2f 2f 20 4c 61 | 73 74 20 48 65 78 20 45 |;..// La|st Hex E|
|00001000| 64 69 74 20 4e 69 62 62 | 6c 65 0d 09 42 6f 6f 6c |dit Nibb|le..Bool|
|00001010| 65 61 6e 09 09 09 09 6c | 6f 42 79 74 65 46 6c 61 |ean....l|oByteFla|
|00001020| 67 3b 09 09 2f 2f 20 45 | 64 69 74 69 6e 67 20 4c |g;..// E|diting L|
|00001030| 6f 77 20 42 79 74 65 20 | 66 6f 72 20 48 65 78 20 |ow Byte |for Hex |
|00001040| 45 64 69 74 6f 72 0d 09 | 42 6f 6f 6c 65 61 6e 09 |Editor..|Boolean.|
|00001050| 09 09 09 64 69 72 74 79 | 46 6c 61 67 3b 09 09 2f |...dirty|Flag;../|
|00001060| 2f 20 46 69 6c 65 20 68 | 61 73 20 62 65 65 6e 20 |/ File h|as been |
|00001070| 6d 6f 64 69 66 69 65 64 | 0d 7d 20 45 64 69 74 57 |modified|.} EditW|
|00001080| 69 6e 64 6f 77 52 65 63 | 6f 72 64 2c 20 2a 45 64 |indowRec|ord, *Ed|
|00001090| 69 74 57 69 6e 64 6f 77 | 50 74 72 3b 0d 0d 74 79 |itWindow|Ptr;..ty|
|000010a0| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 7b 0d 09 |pedef st|ruct {..|
|000010b0| 73 68 6f 72 74 09 09 09 | 74 79 70 65 3b 09 09 09 |short...|type;...|
|000010c0| 09 2f 2f 20 54 79 70 65 | 20 6f 66 20 6f 70 65 72 |.// Type| of oper|
|000010d0| 61 74 69 6f 6e 0d 09 73 | 68 6f 72 74 09 09 09 72 |ation..s|hort...r|
|000010e0| 65 73 65 72 76 65 64 3b | 0d 09 6c 6f 6e 67 09 09 |eserved;|..long..|
|000010f0| 09 73 74 61 72 74 53 65 | 6c 3b 09 09 09 2f 2f 20 |.startSe|l;...// |
|00001100| 53 74 61 72 74 20 6f 66 | 20 53 65 6c 65 63 74 69 |Start of| Selecti|
|00001110| 6f 6e 0d 09 6c 6f 6e 67 | 09 09 09 65 6e 64 53 65 |on..long|...endSe|
|00001120| 6c 3b 09 09 09 09 2f 2f | 20 45 6e 64 20 6f 66 20 |l;....//| End of |
|00001130| 53 65 6c 65 63 74 69 6f | 6e 0d 09 6c 6f 6e 67 09 |Selectio|n..long.|
|00001140| 09 09 66 69 6c 65 53 69 | 7a 65 3b 09 09 09 2f 2f |..fileSi|ze;...//|
|00001150| 20 46 69 6c 65 20 53 69 | 7a 65 20 66 6f 72 20 55 | File Si|ze for U|
|00001160| 6e 64 6f 20 4f 70 0d 09 | 45 64 69 74 43 68 75 6e |ndo Op..|EditChun|
|00001170| 6b 09 09 2a 2a 75 6e 64 | 6f 53 63 72 61 70 3b 0d |k..**und|oScrap;.|
|00001180| 09 45 64 69 74 57 69 6e | 64 6f 77 50 74 72 09 77 |.EditWin|dowPtr.w|
|00001190| 69 6e 64 6f 77 3b 0d 7d | 20 55 6e 64 6f 52 65 63 |indow;.}| UndoRec|
|000011a0| 6f 72 64 3b 0d 0d 74 79 | 70 65 64 65 66 20 73 74 |ord;..ty|pedef st|
|000011b0| 72 75 63 74 20 7b 0d 09 | 73 68 6f 72 74 09 61 73 |ruct {..|short.as|
|000011c0| 63 69 69 4d 6f 64 65 3b | 0d 09 73 68 6f 72 74 09 |ciiMode;|..short.|
|000011d0| 64 65 63 69 6d 61 6c 41 | 64 64 72 3b 0d 09 73 68 |decimalA|ddr;..sh|
|000011e0| 6f 72 74 09 62 61 63 6b | 75 70 46 6c 61 67 3b 0d |ort.back|upFlag;.|
|000011f0| 09 73 68 6f 72 74 09 72 | 65 73 65 72 76 65 64 5b |.short.r|eserved[|
|00001200| 32 39 5d 3b 0d 7d 20 50 | 72 65 66 65 72 65 6e 63 |29];.} P|referenc|
|00001210| 65 73 3b 0d 0d 65 78 74 | 65 72 6e 20 50 72 65 66 |es;..ext|ern Pref|
|00001220| 65 72 65 6e 63 65 73 09 | 67 50 72 65 66 73 3b 0d |erences.|gPrefs;.|
|00001230| 65 78 74 65 72 6e 20 55 | 6e 64 6f 52 65 63 6f 72 |extern U|ndoRecor|
|00001240| 64 09 67 55 6e 64 6f 52 | 65 63 2c 67 52 65 64 6f |d.gUndoR|ec,gRedo|
|00001250| 52 65 63 3b 0d 65 78 74 | 65 72 6e 20 45 64 69 74 |Rec;.ext|ern Edit|
|00001260| 43 68 75 6e 6b 09 2a 2a | 67 53 63 72 61 70 43 68 |Chunk.**|gScrapCh|
|00001270| 75 6e 6b 2c 2a 2a 67 53 | 65 61 72 63 68 43 68 75 |unk,**gS|earchChu|
|00001280| 6e 6b 3b 0d 65 78 74 65 | 72 6e 20 42 6f 6f 6c 65 |nk;.exte|rn Boole|
|00001290| 61 6e 09 09 67 51 75 69 | 74 46 6c 61 67 2c 67 53 |an..gQui|tFlag,gS|
|000012a0| 79 73 37 46 6c 61 67 2c | 67 43 6f 6c 6f 72 51 44 |ys7Flag,|gColorQD|
|000012b0| 46 6c 61 67 3b 0d 65 78 | 74 65 72 6e 20 4d 65 6e |Flag;.ex|tern Men|
|000012c0| 75 48 61 6e 64 6c 65 09 | 67 41 70 70 6c 65 4d 65 |uHandle.|gAppleMe|
|000012d0| 6e 75 2c 20 67 46 69 6c | 65 4d 65 6e 75 2c 20 67 |nu, gFil|eMenu, g|
|000012e0| 45 64 69 74 4d 65 6e 75 | 3b 0d 65 78 74 65 72 6e |EditMenu|;.extern|
|000012f0| 20 73 68 6f 72 74 09 09 | 67 53 63 72 61 70 43 6f | short..|gScrapCo|
|00001300| 75 6e 74 3b 0d 65 78 74 | 65 72 6e 20 54 48 50 72 |unt;.ext|ern THPr|
|00001310| 69 6e 74 09 09 67 48 50 | 72 69 6e 74 3b 0d 65 78 |int..gHP|rint;.ex|
|00001320| 74 65 72 6e 20 73 68 6f | 72 74 09 09 67 48 69 67 |tern sho|rt..gHig|
|00001330| 68 43 68 61 72 2c 20 67 | 4f 76 65 72 77 72 69 74 |hChar, g|Overwrit|
|00001340| 65 3b 0d 65 78 74 65 72 | 6e 20 44 69 61 6c 6f 67 |e;.exter|n Dialog|
|00001350| 50 74 72 09 67 53 65 61 | 72 63 68 57 69 6e 3b 0d |Ptr.gSea|rchWin;.|
|00001360| 65 78 74 65 72 6e 20 73 | 68 6f 72 74 09 09 67 53 |extern s|hort..gS|
|00001370| 65 61 72 63 68 44 69 72 | 3b 0d 65 78 74 65 72 6e |earchDir|;.extern|
|00001380| 20 43 75 72 73 6f 72 09 | 09 67 57 61 74 63 68 43 | Cursor.|.gWatchC|
|00001390| 75 72 73 6f 72 2c 67 49 | 42 65 61 6d 43 75 72 73 |ursor,gI|BeamCurs|
|000013a0| 6f 72 3b 0d 65 78 74 65 | 72 6e 20 73 68 6f 72 74 |or;.exte|rn short|
|000013b0| 09 09 67 4d 61 78 48 65 | 69 67 68 74 3b 0d 0d 2f |..gMaxHe|ight;../|
|000013c0| 2f 20 48 69 67 68 20 4c | 65 76 65 6c 20 50 72 6f |/ High L|evel Pro|
|000013d0| 63 65 64 75 72 65 73 0d | 76 6f 69 64 20 41 73 6b |cedures.|void Ask|
|000013e0| 45 64 69 74 57 69 6e 64 | 6f 77 28 76 6f 69 64 29 |EditWind|ow(void)|
|000013f0| 3b 0d 76 6f 69 64 20 4f | 70 65 6e 45 64 69 74 57 |;.void O|penEditW|
|00001400| 69 6e 64 6f 77 28 46 53 | 53 70 65 63 20 2a 66 73 |indow(FS|Spec *fs|
|00001410| 53 70 65 63 29 3b 0d 76 | 6f 69 64 20 44 69 73 70 |Spec);.v|oid Disp|
|00001420| 6f 73 65 45 64 69 74 57 | 69 6e 64 6f 77 28 57 69 |oseEditW|indow(Wi|
|00001430| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo|
|00001440| 77 29 3b 0d 42 6f 6f 6c | 65 61 6e 20 43 6c 6f 73 |w);.Bool|ean Clos|
|00001450| 65 45 64 69 74 57 69 6e | 64 6f 77 28 57 69 6e 64 |eEditWin|dow(Wind|
|00001460| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 29 |owPtr th|eWindow)|
|00001470| 3b 0d 42 6f 6f 6c 65 61 | 6e 20 43 6c 6f 73 65 41 |;.Boolea|n CloseA|
|00001480| 6c 6c 45 64 69 74 57 69 | 6e 64 6f 77 28 57 69 6e |llEditWi|ndow(Win|
|00001490| 64 6f 77 50 74 72 20 74 | 68 65 57 69 6e 64 6f 77 |dowPtr t|heWindow|
|000014a0| 29 3b 0d 76 6f 69 64 20 | 4d 79 49 64 6c 65 28 57 |);.void |MyIdle(W|
|000014b0| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|000014c0| 6f 77 2c 20 45 76 65 6e | 74 52 65 63 6f 72 64 20 |ow, Even|tRecord |
|000014d0| 2a 65 72 29 3b 0d 76 6f | 69 64 20 4d 79 44 72 61 |*er);.vo|id MyDra|
|000014e0| 77 28 57 69 6e 64 6f 77 | 50 74 72 20 74 68 65 57 |w(Window|Ptr theW|
|000014f0| 69 6e 29 3b 0d 76 6f 69 | 64 20 4d 79 50 72 6f 63 |in);.voi|d MyProc|
|00001500| 65 73 73 4b 65 79 28 57 | 69 6e 64 6f 77 50 74 72 |essKey(W|indowPtr|
|00001510| 20 74 68 65 57 69 6e 2c | 20 45 76 65 6e 74 52 65 | theWin,| EventRe|
|00001520| 63 6f 72 64 20 2a 65 72 | 29 3b 0d 76 6f 69 64 20 |cord *er|);.void |
|00001530| 55 70 64 61 74 65 4f 6e | 73 63 72 65 65 6e 28 57 |UpdateOn|screen(W|
|00001540| 69 6e 64 6f 77 50 74 72 | 20 74 68 65 57 69 6e 64 |indowPtr| theWind|
|00001550| 6f 77 29 3b 0d 76 6f 69 | 64 20 4d 79 48 61 6e 64 |ow);.voi|d MyHand|
|00001560| 6c 65 43 6c 69 63 6b 28 | 57 69 6e 64 6f 77 50 74 |leClick(|WindowPt|
|00001570| 72 20 74 68 65 57 69 6e | 2c 20 50 6f 69 6e 74 20 |r theWin|, Point |
|00001580| 77 68 65 72 65 2c 20 45 | 76 65 6e 74 52 65 63 6f |where, E|ventReco|
|00001590| 72 64 20 2a 65 72 29 3b | 0d 76 6f 69 64 20 44 72 |rd *er);|.void Dr|
|000015a0| 61 77 50 61 67 65 28 45 | 64 69 74 57 69 6e 64 6f |awPage(E|ditWindo|
|000015b0| 77 50 74 72 20 64 57 69 | 6e 29 3b 0d 76 6f 69 64 |wPtr dWi|n);.void|
|000015c0| 20 49 6e 76 65 72 74 53 | 65 6c 65 63 74 69 6f 6e | InvertS|election|
|000015d0| 28 45 64 69 74 57 69 6e | 64 6f 77 50 74 72 20 64 |(EditWin|dowPtr d|
|000015e0| 57 69 6e 29 3b 0d 76 6f | 69 64 20 43 75 72 73 6f |Win);.vo|id Curso|
|000015f0| 72 4f 6e 28 57 69 6e 64 | 6f 77 50 74 72 20 74 68 |rOn(Wind|owPtr th|
|00001600| 65 57 69 6e 29 3b 0d 76 | 6f 69 64 20 43 75 72 73 |eWin);.v|oid Curs|
|00001610| 6f 72 4f 66 66 28 57 69 | 6e 64 6f 77 50 74 72 20 |orOff(Wi|ndowPtr |
|00001620| 74 68 65 57 69 6e 29 3b | 0d 0d 2f 2f 20 43 68 75 |theWin);|..// Chu|
|00001630| 6e 6b 20 4f 70 65 72 61 | 74 61 74 69 6f 6e 73 0d |nk Opera|tations.|
|00001640| 76 6f 69 64 20 4c 6f 61 | 64 46 69 6c 65 28 45 64 |void Loa|dFile(Ed|
|00001650| 69 74 57 69 6e 64 6f 77 | 50 74 72 20 64 57 69 6e |itWindow|Ptr dWin|
|00001660| 29 3b 0d 76 6f 69 64 20 | 55 6e 6c 6f 61 64 46 69 |);.void |UnloadFi|
|00001670| 6c 65 28 45 64 69 74 57 | 69 6e 64 6f 77 50 74 72 |le(EditW|indowPtr|
|00001680| 20 64 57 69 6e 29 3b 0d | 76 6f 69 64 20 44 69 73 | dWin);.|void Dis|
|00001690| 70 6f 73 65 43 68 75 6e | 6b 28 45 64 69 74 57 69 |poseChun|k(EditWi|
|000016a0| 6e 64 6f 77 50 74 72 20 | 64 57 69 6e 2c 20 45 64 |ndowPtr |dWin, Ed|
|000016b0| 69 74 43 68 75 6e 6b 20 | 2a 2a 63 63 29 3b 0d 45 |itChunk |**cc);.E|
|000016c0| 64 69 74 43 68 75 6e 6b | 20 2a 2a 4e 65 77 43 68 |ditChunk| **NewCh|
|000016d0| 75 6e 6b 28 6c 6f 6e 67 | 20 73 69 7a 65 2c 20 6c |unk(long| size, l|
|000016e0| 6f 6e 67 20 61 64 64 72 | 2c 20 6c 6f 6e 67 20 66 |ong addr|, long f|
|000016f0| 69 6c 65 50 6f 73 2c 20 | 73 68 6f 72 74 20 74 79 |ilePos, |short ty|
|00001700| 70 65 29 3b 0d 45 64 69 | 74 43 68 75 6e 6b 20 2a |pe);.Edi|tChunk *|
|00001710| 2a 41 70 70 65 6e 64 43 | 68 75 6e 6b 28 45 64 69 |*AppendC|hunk(Edi|
|00001720| 74 43 68 75 6e 6b 20 2a | 2a 6c 69 73 74 2c 20 45 |tChunk *|*list, E|
|00001730| 64 69 74 43 68 75 6e 6b | 20 2a 2a 63 68 75 6e 6b |ditChunk| **chunk|
|00001740| 29 3b 0d 45 64 69 74 43 | 68 75 6e 6b 20 2a 2a 47 |);.EditC|hunk **G|
|00001750| 65 74 43 68 75 6e 6b 42 | 79 41 64 64 72 28 45 64 |etChunkB|yAddr(Ed|
|00001760| 69 74 57 69 6e 64 6f 77 | 50 74 72 20 64 57 69 6e |itWindow|Ptr dWin|
|00001770| 2c 20 6c 6f 6e 67 20 61 | 64 64 72 29 3b 0d 73 68 |, long a|ddr);.sh|
|00001780| 6f 72 74 20 47 65 74 42 | 79 74 65 28 45 64 69 74 |ort GetB|yte(Edit|
|00001790| 57 69 6e 64 6f 77 50 74 | 72 20 64 57 69 6e 2c 20 |WindowPt|r dWin, |
|000017a0| 6c 6f 6e 67 20 61 64 64 | 72 29 3b 0d 76 6f 69 64 |long add|r);.void|
|000017b0| 20 4c 6f 61 64 43 68 75 | 6e 6b 28 45 64 69 74 57 | LoadChu|nk(EditW|
|000017c0| 69 6e 64 6f 77 50 74 72 | 20 64 57 69 6e 2c 20 45 |indowPtr| dWin, E|
|000017d0| 64 69 74 43 68 75 6e 6b | 20 2a 2a 63 63 29 3b 0d |ditChunk| **cc);.|
|000017e0| 76 6f 69 64 20 55 6e 6c | 6f 61 64 4c 65 61 73 74 |void Unl|oadLeast|
|000017f0| 55 73 65 64 43 68 75 6e | 6b 28 45 64 69 74 57 69 |UsedChun|k(EditWi|
|00001800| 6e 64 6f 77 50 74 72 20 | 64 57 69 6e 29 3b 0d 76 |ndowPtr |dWin);.v|
|00001810| 6f 69 64 20 55 6e 6c 6f | 61 64 43 68 75 6e 6b 28 |oid Unlo|adChunk(|
|00001820| 45 64 69 74 57 69 6e 64 | 6f 77 50 74 72 20 64 57 |EditWind|owPtr dW|
|00001830| 69 6e 2c 20 45 64 69 74 | 43 68 75 6e 6b 09 2a 2a |in, Edit|Chunk.**|
|00001840| 63 63 2c 20 42 6f 6f 6c | 65 61 6e 20 77 72 69 74 |cc, Bool|ean writ|
|00001850| 65 46 6c 61 67 29 3b 0d | 76 6f 69 64 20 52 65 77 |eFlag);.|void Rew|
|00001860| 72 69 74 65 41 64 64 72 | 65 73 73 43 68 61 69 6e |riteAddr|essChain|
|00001870| 28 45 64 69 74 43 68 75 | 6e 6b 20 2a 2a 66 63 29 |(EditChu|nk **fc)|
|00001880| 3b 0d 0d 2f 2f 20 44 69 | 73 70 6c 61 79 20 4f 70 |;..// Di|splay Op|
|00001890| 65 72 61 74 69 6f 6e 73 | 0d 76 6f 69 64 20 53 63 |erations|.void Sc|
|000018a0| 72 6f 6c 6c 54 6f 53 65 | 6c 65 63 74 69 6f 6e 28 |rollToSe|lection(|
|000018b0| 45 64 69 74 57 69 6e 64 | 6f 77 50 74 72 20 64 57 |EditWind|owPtr dW|
|000018c0| 69 6e 2c 20 6c 6f 6e 67 | 20 70 6f 73 2c 20 42 6f |in, long| pos, Bo|
|000018d0| 6f 6c 65 61 6e 20 66 6f | 72 63 65 55 70 64 61 74 |olean fo|rceUpdat|
|000018e0| 65 2c 20 42 6f 6f 6c 65 | 61 6e 20 63 65 6e 74 65 |e, Boole|an cente|
|000018f0| 72 46 6c 61 67 29 3b 0d | 0d 2f 2f 20 45 64 69 74 |rFlag);.|.// Edit|
|00001900| 20 4f 70 65 72 61 74 69 | 6f 6e 73 20 28 68 69 67 | Operati|ons (hig|
|00001910| 68 20 6c 65 76 65 6c 29 | 0d 76 6f 69 64 20 55 6e |h level)|.void Un|
|00001920| 64 6f 53 65 6c 65 63 74 | 69 6f 6e 28 45 64 69 74 |doSelect|ion(Edit|
|00001930| 57 69 6e 64 6f 77 50 74 | 72 20 64 57 69 6e 29 3b |WindowPt|r dWin);|
|00001940| 0d 76 6f 69 64 20 43 6f | 70 79 53 65 6c 65 63 74 |.void Co|pySelect|
|00001950| 69 6f 6e 28 45 64 69 74 | 57 69 6e 64 6f 77 50 74 |ion(Edit|WindowPt|
|00001960| 72 20 64 57 69 6e 29 3b | 0d 76 6f 69 64 20 43 75 |r dWin);|.void Cu|
|00001970| 74 53 65 6c 65 63 74 69 | 6f 6e 28 45 64 69 74 57 |tSelecti|on(EditW|
|00001980| 69 6e 64 6f 77 50 74 72 | 20 64 57 69 6e 29 3b 0d |indowPtr| dWin);.|
|00001990| 76 6f 69 64 20 50 61 73 | 74 65 53 65 6c 65 63 74 |void Pas|teSelect|
|000019a0| 69 6f 6e 28 45 64 69 74 | 57 69 6e 64 6f 77 50 74 |ion(Edit|WindowPt|
|000019b0| 72 20 64 57 69 6e 29 3b | 0d 76 6f 69 64 20 43 6c |r dWin);|.void Cl|
|000019c0| 65 61 72 53 65 6c 65 63 | 74 69 6f 6e 28 45 64 69 |earSelec|tion(Edi|
|000019d0| 74 57 69 6e 64 6f 77 50 | 74 72 20 64 57 69 6e 29 |tWindowP|tr dWin)|
|000019e0| 3b 0d 76 6f 69 64 20 43 | 6f 70 79 4f 70 65 72 61 |;.void C|opyOpera|
|000019f0| 74 69 6f 6e 28 45 64 69 | 74 57 69 6e 64 6f 77 50 |tion(Edi|tWindowP|
|00001a00| 74 72 20 64 57 69 6e 2c | 20 45 64 69 74 43 68 75 |tr dWin,| EditChu|
|00001a10| 6e 6b 20 2a 2a 2a 73 63 | 72 61 70 43 68 75 6e 6b |nk ***sc|rapChunk|
|00001a20| 29 3b 0d 0d 2f 2f 20 45 | 64 69 74 20 4f 70 65 72 |);..// E|dit Oper|
|00001a30| 61 74 69 6f 6e 73 20 28 | 6c 6f 77 20 6c 65 76 65 |ations (|low leve|
|00001a40| 6c 29 0d 76 6f 69 64 20 | 50 61 73 74 65 4f 70 65 |l).void |PasteOpe|
|00001a50| 72 61 74 69 6f 6e 28 45 | 64 69 74 57 69 6e 64 6f |ration(E|ditWindo|
|00001a60| 77 50 74 72 20 64 57 69 | 6e 2c 20 45 64 69 74 43 |wPtr dWi|n, EditC|
|00001a70| 68 75 6e 6b 20 2a 2a 73 | 63 72 61 70 43 68 75 6e |hunk **s|crapChun|
|00001a80| 6b 29 3b 0d 76 6f 69 64 | 20 52 65 6d 65 6d 62 65 |k);.void| Remembe|
|00001a90| 72 4f 70 65 72 61 74 69 | 6f 6e 28 45 64 69 74 57 |rOperati|on(EditW|
|00001aa0| 69 6e 64 6f 77 50 74 72 | 20 64 57 69 6e 2c 20 73 |indowPtr| dWin, s|
|00001ab0| 68 6f 72 74 20 6f 70 54 | 79 70 65 2c 20 55 6e 64 |hort opT|ype, Und|
|00001ac0| 6f 52 65 63 6f 72 64 20 | 2a 75 72 29 3b 0d 76 6f |oRecord |*ur);.vo|
|00001ad0| 69 64 20 44 65 6c 65 74 | 65 53 65 6c 65 63 74 69 |id Delet|eSelecti|
|00001ae0| 6f 6e 28 45 64 69 74 57 | 69 6e 64 6f 77 50 74 72 |on(EditW|indowPtr|
|00001af0| 20 64 57 69 6e 29 3b 0d | 0d 2f 2f 20 46 69 6c 65 | dWin);.|.// File|
|00001b00| 20 4f 70 65 72 61 74 69 | 6f 6e 73 0d 76 6f 69 64 | Operati|ons.void|
|00001b10| 20 53 61 76 65 43 6f 6e | 74 65 6e 74 73 28 57 69 | SaveCon|tents(Wi|
|00001b20| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 29 3b |ndowPtr |theWin);|
|00001b30| 0d 76 6f 69 64 20 53 61 | 76 65 41 73 43 6f 6e 74 |.void Sa|veAsCont|
|00001b40| 65 6e 74 73 28 57 69 6e | 64 6f 77 50 74 72 20 74 |ents(Win|dowPtr t|
|00001b50| 68 65 57 69 6e 29 3b 0d | 76 6f 69 64 20 52 65 76 |heWin);.|void Rev|
|00001b60| 65 72 74 43 6f 6e 74 65 | 6e 74 73 28 57 69 6e 64 |ertConte|nts(Wind|
|00001b70| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 29 3b 0d 76 |owPtr th|eWin);.v|
|00001b80| 6f 69 64 20 49 6e 73 75 | 72 65 4e 61 6d 65 49 73 |oid Insu|reNameIs|
|00001b90| 55 6e 69 71 75 65 28 46 | 53 53 70 65 63 20 2a 74 |Unique(F|SSpec *t|
|00001ba0| 53 70 65 63 29 3b 0d 73 | 68 6f 72 74 20 4d 79 52 |Spec);.s|hort MyR|
|00001bb0| 61 6e 64 6f 6d 28 73 68 | 6f 72 74 20 6c 69 6d 69 |andom(sh|ort limi|
|00001bc0| 74 29 3b 0d 0d 73 68 6f | 72 74 20 45 72 72 6f 72 |t);..sho|rt Error|
|00001bd0| 41 6c 65 72 74 28 73 68 | 6f 72 74 20 73 65 76 65 |Alert(sh|ort seve|
|00001be0| 72 69 74 79 2c 20 63 68 | 61 72 20 2a 73 74 72 2c |rity, ch|ar *str,|
|00001bf0| 2e 2e 2e 29 3b 0d 73 68 | 6f 72 74 20 4f 53 45 72 |...);.sh|ort OSEr|
|00001c00| 72 6f 72 41 6c 65 72 74 | 28 73 68 6f 72 74 20 73 |rorAlert|(short s|
|00001c10| 65 76 65 72 69 74 79 2c | 20 63 68 61 72 20 2a 73 |everity,| char *s|
|00001c20| 74 72 2c 20 73 68 6f 72 | 74 20 6f 65 29 3b 0d 0d |tr, shor|t oe);..|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00001c90| 00 40 00 00 00 20 00 00 | 00 20 00 00 00 20 00 00 |.@... ..|. ... ..|
|00001ca0| 00 00 00 00 16 00 05 20 | 00 00 00 40 00 00 00 20 |....... |...@... |
|00001cb0| 09 48 65 78 45 64 69 74 | 2e 68 02 00 00 00 54 45 |.HexEdit|.h....TE|
|00001cc0| 58 54 4b 41 48 4c 01 00 | 00 34 00 c0 00 00 00 00 |XTKAHL..|.4......|
|00001cd0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 34 00 c0 |..TEXTKA|HL...4..|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 a8 15 63 04 00 00 | 1b b0 00 00 01 92 26 00 |....c...|......&.|
|00001d00| 09 20 00 00 00 20 00 00 | 00 20 00 00 00 20 00 00 |. ... ..|. ... ..|
|00001d10| 00 20 00 00 00 40 00 00 | 00 20 00 00 00 20 00 00 |. ...@..|. ... ..|
|00001d20| 00 20 00 00 00 00 00 00 | 0e 00 03 20 00 00 00 40 |. ......|... ...@|
|00001d30| 00 00 00 20 00 00 00 00 | 00 00 06 00 01 20 00 00 |... ....|..... ..|
|00001d40| 00 00 00 00 2e 00 0b 20 | 00 00 00 20 00 00 00 20 |....... |... ... |
|00001d50| 00 00 00 20 00 00 00 20 | 00 00 00 20 00 00 00 20 |... ... |... ... |
|00001d60| 00 00 00 20 00 00 00 20 | 00 00 00 20 00 00 00 20 |... ... |... ... |
|00001d70| 00 00 00 00 00 00 12 00 | 04 20 00 00 00 20 00 00 |........|. ... ..|
|00001d80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 06 | 00 04 00 54 00 10 01 cf |........|...T....|
|00001db0| 02 55 00 54 00 10 01 cf | 02 55 a9 2f 5f 6f 00 00 |.U.T....|.U./_o..|
|00001dc0| 00 00 00 00 00 00 00 00 | 0a ca 01 00 00 00 01 00 |........|........|
|00001dd0| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 82 20 44 |...L...L|...F.. D|
|00001de0| 15 ac 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001df0| 00 0a 03 ed 00 00 00 00 | 00 00 00 82 1d f4 13 43 |........|.......C|
|00001e00| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00001e10| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+