home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-06-01 | 67.4 KB | [TEXT/KAHL] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: proFit_interface.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sat Jun 1 16:38:40 1996, modified Sat Jun 1 16:38:40 1996, creator Think C, type ASCII, 68260 bytes "proFit_interface.h" , at 0x10b24 456 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 70 72 6f 46 69 74 | 5f 69 6e 74 65 72 66 61 |..proFit|_interfa|
|00000010| 63 65 2e 68 00 00 00 00 | 00 00 00 00 00 00 00 00 |ce.h....|........|
|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 01 0a a4 00 | 00 01 c8 ad d6 5a d0 ad |........|.....Z..|
|00000060| d6 5a d0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Z......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0c d3 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 2a 2a 2a 2a 2a 2a 2a | 2f 0d 2f 2a 20 70 72 6f |********|/./* pro|
|000000e0| 46 69 74 5f 69 6e 74 65 | 72 66 61 63 65 2e 68 20 |Fit_inte|rface.h |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 2a 2f 0d 2f 2a 20 09 | 09 09 09 09 09 09 09 09 | */./* .|........|
|00000140| 09 09 09 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00000150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000160| 20 20 20 20 20 20 20 2a | 2f 0d 2f 2a 20 20 20 20 | *|/./* |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001c0| 20 2a 2f 0d 2f 2a 20 56 | 65 72 73 69 6f 6e 20 68 | */./* V|ersion h|
|000001d0| 69 73 74 6f 72 79 09 09 | 09 09 09 09 09 09 09 09 |istory..|........|
|000001e0| 09 09 09 09 09 09 09 20 | 20 20 2a 2f 0d 2f 2a 20 |....... | */./* |
|000001f0| 31 35 2e 31 32 2e 39 35 | 3a 20 6f 72 69 67 20 35 |15.12.95|: orig 5|
|00000200| 2e 30 41 39 20 72 65 6c | 65 61 73 65 20 20 20 20 |.0A9 rel|ease |
|00000210| 20 20 20 20 20 20 20 20 | 20 20 09 20 20 20 20 20 | | . |
|00000220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000240| 20 20 2a 2f 0d 2f 2a 20 | 32 30 2e 30 32 2e 39 36 | */./* |20.02.96|
|00000250| 3a 20 61 64 64 65 64 20 | 53 65 74 57 69 6e 64 6f |: added |SetWindo|
|00000260| 77 49 6e 66 6f 2c 20 53 | 65 74 42 6f 78 54 69 74 |wInfo, S|etBoxTit|
|00000270| 6c 65 2c 20 49 6e 70 75 | 74 42 6f 78 20 66 6f 72 |le, Inpu|tBox for|
|00000280| 20 73 74 72 69 6e 67 73 | 09 09 09 09 09 20 20 20 | strings|..... |
|00000290| 2a 2f 0d 2f 2a 20 31 30 | 2e 30 33 2e 39 36 3a 20 |*/./* 10|.03.96: |
|000002a0| 61 64 64 65 64 20 47 65 | 74 46 75 6e 63 74 69 6f |added Ge|tFunctio|
|000002b0| 6e 50 61 72 61 6d 4e 61 | 6d 65 2c 20 43 61 6e 63 |nParamNa|me, Canc|
|000002c0| 65 6c 45 76 65 6e 74 09 | 09 09 09 09 09 09 09 20 |elEvent.|....... |
|000002d0| 20 20 2a 2f 0d 2f 2a 20 | 31 35 2e 30 33 2e 39 36 | */./* |15.03.96|
|000002e0| 3a 20 61 64 64 65 64 20 | 4e 75 6d 62 65 72 54 6f |: added |NumberTo|
|000002f0| 53 74 72 32 35 35 2c 20 | 53 74 72 32 35 35 54 6f |Str255, |Str255To|
|00000300| 4e 75 6d 62 65 72 09 09 | 09 09 09 09 09 09 09 20 |Number..|....... |
|00000310| 20 20 2a 2f 0d 2f 2a 20 | 31 37 2e 30 33 2e 39 36 | */./* |17.03.96|
|00000320| 3a 20 61 64 64 65 64 20 | 47 65 74 41 6e 64 53 65 |: added |GetAndSe|
|00000330| 74 53 74 61 74 75 73 09 | 09 09 09 09 09 09 09 09 |tStatus.|........|
|00000340| 09 09 09 09 20 20 20 2a | 2f 0d 2f 2a 20 32 34 2e |.... *|/./* 24.|
|00000350| 30 33 2e 39 36 3a 20 61 | 64 64 65 64 20 53 65 74 |03.96: a|dded Set|
|00000360| 54 65 78 74 46 69 6c 65 | 46 6f 72 6d 61 74 2c 20 |TextFile|Format, |
|00000370| 63 68 61 6e 67 65 64 20 | 53 61 76 65 44 61 74 61 |changed |SaveData|
|00000380| 41 73 54 65 78 74 09 09 | 09 09 09 09 20 20 20 2a |AsText..|.... *|
|00000390| 2f 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/./*****|********|
|000003a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 23 69 66 |********|**/..#if|
|000003f0| 6e 64 65 66 20 5f 5f 50 | 52 4f 46 49 54 5f 49 4e |ndef __P|ROFIT_IN|
|00000400| 54 45 52 46 41 43 45 5f | 5f 0d 23 64 65 66 69 6e |TERFACE_|_.#defin|
|00000410| 65 20 5f 5f 50 52 4f 46 | 49 54 5f 49 4e 54 45 52 |e __PROF|IT_INTER|
|00000420| 46 41 43 45 5f 5f 0d 0d | 0d 2f 2a 2a 2a 2a 2a 2a |FACE__..|./******|
|00000430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000440| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000450| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000470| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000480| 2a 2a 0d 0d 57 65 6c 63 | 6f 6d 65 20 74 6f 20 74 |**..Welc|ome to t|
|00000490| 68 65 20 70 72 6f 20 46 | 69 74 20 65 78 74 65 72 |he pro F|it exter|
|000004a0| 6e 61 6c 20 6d 6f 64 75 | 6c 65 73 21 0d 2d 2d 2d |nal modu|les!.---|
|000004b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004d0| 2d 2d 2d 2d 0d 0d 45 78 | 74 65 72 6e 61 6c 20 6d |----..Ex|ternal m|
|000004e0| 6f 64 75 6c 65 73 20 61 | 72 65 20 70 69 65 63 65 |odules a|re piece|
|000004f0| 73 20 6f 66 20 63 6f 64 | 65 20 74 68 61 74 20 79 |s of cod|e that y|
|00000500| 6f 75 20 70 72 6f 64 75 | 63 65 20 77 69 74 68 20 |ou produ|ce with |
|00000510| 79 6f 75 72 20 66 61 76 | 6f 72 69 74 65 20 63 6f |your fav|orite co|
|00000520| 6d 70 69 6c 65 72 20 61 | 6e 64 20 74 68 61 74 0d |mpiler a|nd that.|
|00000530| 79 6f 75 20 63 61 6e 20 | 62 75 69 6c 64 20 69 6e |you can |build in|
|00000540| 74 6f 20 70 72 6f 20 46 | 69 74 20 61 73 20 66 75 |to pro F|it as fu|
|00000550| 6e 63 74 69 6f 6e 73 20 | 6f 72 20 22 75 73 65 72 |nctions |or "user|
|00000560| 22 20 70 72 6f 67 72 61 | 6d 73 2e 0d 0d 49 66 20 |" progra|ms...If |
|00000570| 69 74 20 69 73 20 74 68 | 65 20 66 69 72 73 74 20 |it is th|e first |
|00000580| 74 69 6d 65 20 79 6f 75 | 20 64 6f 20 73 6f 6d 65 |time you| do some|
|00000590| 74 68 69 6e 67 20 77 69 | 74 68 20 65 78 74 65 72 |thing wi|th exter|
|000005a0| 6e 61 6c 20 6d 6f 64 75 | 6c 65 73 20 61 6e 64 20 |nal modu|les and |
|000005b0| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 73 65 65 20 |you want| to see |
|000005c0| 77 68 61 74 20 69 73 0d | 6e 65 65 64 65 64 20 74 |what is.|needed t|
|000005d0| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 74 68 65 6d |o implem|ent them|
|000005e0| 2c 20 6a 75 73 74 20 74 | 61 6b 65 20 61 20 6c 6f |, just t|ake a lo|
|000005f0| 6f 6b 20 61 74 20 74 68 | 65 20 65 78 61 6d 70 6c |ok at th|e exampl|
|00000600| 65 20 66 69 6c 65 73 2e | 0d 0d 46 6f 72 20 65 78 |e files.|..For ex|
|00000610| 61 6d 70 6c 65 20 79 6f | 75 20 6d 69 67 68 74 20 |ample yo|u might |
|00000620| 77 61 6e 74 20 74 6f 20 | 73 74 75 64 79 20 66 69 |want to |study fi|
|00000630| 6c 65 20 45 72 72 6f 72 | 46 75 6e 63 2e 63 20 61 |le Error|Func.c a|
|00000640| 6e 64 20 6c 6f 6f 6b 20 | 61 74 20 74 68 65 20 66 |nd look |at the f|
|00000650| 75 6e 63 74 69 6f 6e 73 | 20 74 68 61 74 20 61 72 |unctions| that ar|
|00000660| 65 0d 64 65 66 69 6e 65 | 64 20 74 68 65 72 65 2e |e.define|d there.|
|00000670| 0d 0d 4d 6f 73 74 20 66 | 75 6e 63 74 69 6f 6e 20 |..Most f|unction |
|00000680| 6e 61 6d 65 73 20 61 72 | 65 20 74 68 65 20 73 61 |names ar|e the sa|
|00000690| 6d 65 20 6f 6e 65 73 20 | 75 73 65 64 20 66 6f 72 |me ones |used for|
|000006a0| 20 64 65 66 69 6e 69 6e | 67 20 66 75 6e 63 74 69 | definin|g functi|
|000006b0| 6f 6e 73 20 61 6e 64 20 | 70 72 6f 67 72 61 6d 73 |ons and |programs|
|000006c0| 0d 77 69 74 68 69 6e 20 | 70 72 6f 20 46 69 74 2e |.within |pro Fit.|
|000006d0| 0d 54 6f 20 64 65 66 69 | 6e 65 20 79 6f 75 72 20 |.To defi|ne your |
|000006e0| 6f 77 6e 20 65 78 74 65 | 72 6e 61 6c 20 6d 6f 64 |own exte|rnal mod|
|000006f0| 75 6c 65 2c 20 73 69 6d | 70 6c 79 20 66 69 6c 6c |ule, sim|ply fill|
|00000700| 20 69 6e 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 | in thes|e functi|
|00000710| 6f 6e 73 20 77 69 74 68 | 20 79 6f 75 72 20 63 6f |ons with| your co|
|00000720| 64 65 2e 0d 0d 48 61 76 | 65 20 61 20 6c 6f 6f 6b |de...Hav|e a look|
|00000730| 20 61 74 20 74 68 65 20 | 70 72 6f 20 46 69 74 20 | at the |pro Fit |
|00000740| 75 73 65 72 20 6d 61 6e | 75 61 6c 20 66 6f 72 20 |user man|ual for |
|00000750| 64 65 74 61 69 6c 73 20 | 6f 6e 20 74 68 65 20 70 |details |on the p|
|00000760| 61 72 61 6d 65 74 65 72 | 20 6c 69 73 74 73 20 6f |arameter| lists o|
|00000770| 66 20 74 68 65 73 65 0d | 66 75 6e 63 74 69 6f 6e |f these.|function|
|00000780| 73 2e 0d 0d 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |s...In o|rder to |
|00000790| 62 75 69 6c 64 20 61 6e | 20 65 78 74 65 72 6e 61 |build an| externa|
|000007a0| 6c 20 66 75 6e 63 74 69 | 6f 6e 20 6f 72 20 70 72 |l functi|on or pr|
|000007b0| 6f 67 72 61 6d 2c 20 79 | 6f 75 20 6d 75 73 74 20 |ogram, y|ou must |
|000007c0| 63 6f 6d 70 69 6c 65 20 | 61 6e 64 20 6c 69 6e 6b |compile |and link|
|000007d0| 20 74 68 65 0d 66 6f 6c | 6c 6f 77 69 6e 67 20 66 | the.fol|lowing f|
|000007e0| 69 6c 65 73 3a 0d 0d 20 | 09 70 72 6f 46 69 74 5f |iles:.. |.proFit_|
|000007f0| 69 6e 74 65 72 66 61 63 | 65 2e 63 09 09 09 28 22 |interfac|e.c...("|
|00000800| 67 6c 75 65 22 20 63 6f | 64 65 20 73 74 61 6e 64 |glue" co|de stand|
|00000810| 69 6e 67 20 62 65 74 77 | 65 65 6e 20 70 72 6f 20 |ing betw|een pro |
|00000820| 46 69 74 20 61 6e 64 20 | 79 6f 75 72 20 66 75 6e |Fit and |your fun|
|00000830| 63 74 69 6f 6e 73 29 0d | 20 09 58 58 58 58 58 58 |ctions).| .XXXXXX|
|00000840| 2e 63 09 09 09 09 09 28 | 79 6f 75 72 20 66 75 6e |.c.....(|your fun|
|00000850| 63 74 69 6f 6e 73 2c 20 | 77 68 65 72 65 20 58 58 |ctions, |where XX|
|00000860| 58 58 58 58 20 69 73 20 | 61 20 6e 61 6d 65 20 79 |XXXX is |a name y|
|00000870| 6f 75 20 64 65 66 69 6e | 65 29 0d 0d 4f 66 20 63 |ou defin|e)..Of c|
|00000880| 6f 75 72 73 65 20 79 6f | 75 20 63 61 6e 20 61 64 |ourse yo|u can ad|
|00000890| 64 20 6f 74 68 65 72 20 | 66 69 6c 65 73 20 69 66 |d other |files if|
|000008a0| 20 79 6f 75 20 6e 65 65 | 64 20 74 68 65 6d 20 28 | you nee|d them (|
|000008b0| 73 75 63 68 20 61 73 20 | 6d 61 74 68 2e 63 20 66 |such as |math.c f|
|000008c0| 72 6f 6d 20 74 68 65 20 | 41 4e 53 49 0d 6c 69 62 |rom the |ANSI.lib|
|000008d0| 72 61 72 69 65 73 29 2e | 20 41 6c 73 6f 2c 20 64 |raries).| Also, d|
|000008e0| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 74 68 65 20 |epending| on the |
|000008f0| 63 6f 6d 70 69 6c 65 72 | 20 79 6f 75 20 75 73 65 |compiler| you use|
|00000900| 2c 20 79 6f 75 20 6d 61 | 79 20 68 61 76 65 20 74 |, you ma|y have t|
|00000910| 6f 20 61 64 64 20 61 64 | 64 69 74 69 6f 6e 61 6c |o add ad|ditional|
|00000920| 0d 6d 6f 64 75 6c 65 73 | 20 63 6f 6e 74 61 69 6e |.modules| contain|
|00000930| 69 6e 67 20 63 61 6c 6c | 20 67 6c 75 65 73 20 66 |ing call| glues f|
|00000940| 6f 72 20 73 79 73 74 65 | 6d 20 74 72 61 70 73 20 |or syste|m traps |
|00000950| 28 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 6e |(for exa|mple, in|
|00000960| 20 54 68 69 6e 6b 43 20 | 79 6f 75 20 6d 75 73 74 | ThinkC |you must|
|00000970| 20 61 64 64 20 0d 22 4d | 61 63 54 72 61 70 73 22 | add ."M|acTraps"|
|00000980| 20 74 6f 20 79 6f 75 72 | 20 70 72 6f 6a 65 63 74 | to your| project|
|00000990| 29 2e 0d 0d 59 6f 75 20 | 6d 75 73 74 20 75 73 65 |)...You |must use|
|000009a0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 68 | the fol|lowing h|
|000009b0| 65 61 64 65 72 20 66 69 | 6c 65 73 3a 0d 0d 20 70 |eader fi|les:.. p|
|000009c0| 72 6f 46 69 74 5f 69 6e | 74 65 72 66 61 63 65 2e |roFit_in|terface.|
|000009d0| 68 09 09 09 28 54 68 69 | 73 20 66 69 6c 65 29 20 |h...(Thi|s file) |
|000009e0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 64 65 66 |contains| the def|
|000009f0| 69 6e 69 74 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |initions| of the |
|00000a00| 66 75 6e 63 74 69 6f 6e | 73 0d 20 09 09 09 09 09 |function|s. .....|
|00000a10| 09 09 79 6f 75 20 6d 75 | 73 74 20 64 65 66 69 6e |..you mu|st defin|
|00000a20| 65 20 61 6e 64 20 61 6c | 6c 20 74 68 65 20 72 6f |e and al|l the ro|
|00000a30| 75 74 69 6e 65 73 20 70 | 72 6f 76 69 64 65 64 20 |utines p|rovided |
|00000a40| 62 79 20 70 72 6f 20 46 | 69 74 2e 0d 20 09 09 09 |by pro F|it.. ...|
|00000a50| 09 09 09 09 54 68 65 73 | 65 20 72 6f 75 74 69 6e |....Thes|e routin|
|00000a60| 65 73 20 69 6d 70 6c 65 | 6d 65 6e 74 20 74 68 65 |es imple|ment the|
|00000a70| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 6f | functio|nality o|
|00000a80| 66 20 61 6c 6c 20 70 72 | 65 64 65 66 69 6e 65 64 |f all pr|edefined|
|00000a90| 20 72 6f 75 74 69 6e 65 | 73 0d 20 09 09 09 09 09 | routine|s. .....|
|00000aa0| 09 09 74 68 61 74 20 61 | 72 65 20 61 76 61 69 6c |..that a|re avail|
|00000ab0| 61 62 6c 65 20 77 68 65 | 6e 20 64 65 66 69 6e 69 |able whe|n defini|
|00000ac0| 6e 67 20 61 20 66 75 6e | 63 74 69 6f 6e 20 6f 72 |ng a fun|ction or|
|00000ad0| 20 61 20 70 72 6f 67 72 | 61 6d 0d 20 09 09 09 09 | a progr|am. ....|
|00000ae0| 09 09 09 77 69 74 68 69 | 6e 20 70 72 6f 20 46 69 |...withi|n pro Fi|
|00000af0| 74 2e 20 54 68 65 73 65 | 20 72 6f 75 74 69 6e 65 |t. These| routine|
|00000b00| 73 20 61 72 65 20 69 6d | 70 6c 65 6d 65 6e 74 65 |s are im|plemente|
|00000b10| 64 20 69 6e 0d 20 09 09 | 09 09 09 09 20 09 70 72 |d in. ..|.... .pr|
|00000b20| 6f 46 69 74 5f 69 6e 74 | 65 72 66 61 63 65 2e 63 |oFit_int|erface.c|
|00000b30| 0d 20 70 72 6f 46 69 74 | 5f 70 61 72 61 6d 42 6c |. proFit|_paramBl|
|00000b40| 6b 2e 68 09 09 09 43 6f | 6e 74 61 69 6e 73 20 74 |k.h...Co|ntains t|
|00000b50| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 |he defin|ition of|
|00000b60| 20 45 78 74 4d 6f 64 75 | 6c 65 73 50 61 72 61 6d | ExtModu|lesParam|
|00000b70| 42 6c 6f 63 6b 2c 20 61 | 20 73 74 72 75 63 74 0d |Block, a| struct.|
|00000b80| 20 09 09 09 09 09 09 09 | 75 73 65 64 20 74 6f 20 | .......|used to |
|00000b90| 69 6e 74 65 72 61 63 74 | 20 77 69 74 68 20 70 72 |interact| with pr|
|00000ba0| 6f 20 46 69 74 20 61 6e | 64 20 63 61 6c 6c 20 76 |o Fit an|d call v|
|00000bb0| 61 72 69 6f 75 73 20 70 | 72 6f 20 46 69 74 20 72 |arious p|ro Fit r|
|00000bc0| 6f 75 74 69 6e 65 73 2e | 20 0d 20 09 09 09 09 09 |outines.| . .....|
|00000bd0| 09 09 41 64 76 61 6e 63 | 65 64 20 70 72 6f 67 72 |..Advanc|ed progr|
|00000be0| 61 6d 6d 65 72 73 20 63 | 61 6e 20 75 73 65 20 74 |ammers c|an use t|
|00000bf0| 68 69 73 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 69 |his defi|nition i|
|00000c00| 66 20 74 68 65 79 20 66 | 65 65 6c 20 74 68 65 79 |f they f|eel they|
|00000c10| 0d 20 09 09 09 09 09 09 | 09 6e 65 65 64 20 74 6f |. ......|.need to|
|00000c20| 2e 20 55 73 69 6e 67 20 | 74 68 65 20 69 6e 66 6f |. Using |the info|
|00000c30| 72 6d 61 74 69 6f 6e 20 | 67 69 76 65 6e 20 69 6e |rmation |given in|
|00000c40| 20 74 68 69 73 20 66 69 | 6c 65 20 6d 61 79 2c 0d | this fi|le may,.|
|00000c50| 20 09 09 09 09 09 09 09 | 68 6f 77 65 76 65 72 2c | .......|however,|
|00000c60| 20 63 61 75 73 65 20 63 | 6f 6d 70 61 74 69 62 69 | cause c|ompatibi|
|00000c70| 6c 69 74 79 20 70 72 6f | 62 6c 65 6d 73 20 77 69 |lity pro|blems wi|
|00000c80| 74 68 20 66 75 74 75 72 | 65 20 76 65 72 73 69 6f |th futur|e versio|
|00000c90| 6e 73 0d 20 09 09 09 09 | 09 09 09 6f 66 20 70 72 |ns. ....|...of pr|
|00000ca0| 6f 20 46 69 74 2e 0d 20 | 0d 20 0d 20 0d 0d 43 6f |o Fit.. |. . ..Co|
|00000cb0| 6d 70 69 6c 69 6e 67 20 | 69 6e 73 74 72 75 63 74 |mpiling |instruct|
|00000cc0| 69 6f 6e 73 20 66 6f 72 | 20 50 6f 77 65 72 20 4d |ions for| Power M|
|00000cd0| 61 63 69 6e 74 6f 73 68 | 20 28 50 6f 77 65 72 50 |acintosh| (PowerP|
|00000ce0| 43 29 3a 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |C):.----|--------|
|00000cf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 0d 43 6f 6d 70 69 |--------|-..Compi|
|00000d20| 6c 65 20 79 6f 75 72 20 | 66 69 6c 65 73 20 61 73 |le your |files as|
|00000d30| 20 61 20 22 73 68 61 72 | 65 64 20 6c 69 62 61 72 | a "shar|ed libar|
|00000d40| 79 22 20 6f 72 2c 20 6d | 6f 72 65 20 61 63 63 75 |y" or, m|ore accu|
|00000d50| 72 61 74 65 6c 79 2c 20 | 61 73 20 61 6e 20 22 61 |rately, |as an "a|
|00000d60| 70 70 6c 69 63 61 74 69 | 6f 6e 0d 65 78 74 65 6e |pplicati|on.exten|
|00000d70| 73 69 6f 6e 22 2e 20 54 | 68 65 20 63 6f 64 65 20 |sion". T|he code |
|00000d80| 73 68 6f 75 6c 64 20 72 | 65 73 69 64 65 20 69 6e |should r|eside in|
|00000d90| 20 74 68 65 20 64 61 74 | 61 20 66 6f 72 6b 20 28 | the dat|a fork (|
|00000da0| 6e 6f 74 20 61 20 72 65 | 73 6f 75 72 63 65 29 20 |not a re|source) |
|00000db0| 61 6e 64 20 69 74 20 73 | 68 6f 75 6c 64 0d 65 78 |and it s|hould.ex|
|00000dc0| 70 6f 72 74 20 74 68 65 | 20 66 75 6e 63 74 69 6f |port the| functio|
|00000dd0| 6e 20 6d 61 69 6e 28 29 | 20 61 73 20 69 74 20 69 |n main()| as it i|
|00000de0| 73 20 64 65 66 69 6e 65 | 64 20 69 6e 20 70 72 6f |s define|d in pro|
|00000df0| 46 69 74 5f 69 6e 74 65 | 72 66 61 63 65 2e 63 2e |Fit_inte|rface.c.|
|00000e00| 0d 54 68 65 20 74 79 70 | 65 20 6f 66 20 74 68 65 |.The typ|e of the|
|00000e10| 20 66 69 6c 65 20 79 6f | 75 20 63 72 65 61 74 65 | file yo|u create|
|00000e20| 20 6d 75 73 74 20 62 65 | 20 27 66 74 43 44 27 2c | must be| 'ftCD',|
|00000e30| 20 69 74 73 20 63 72 65 | 61 74 6f 72 20 6d 75 73 | its cre|ator mus|
|00000e40| 74 20 62 65 20 27 4e 4c | 66 74 27 2e 0d 0d 0d 0d |t be 'NL|ft'.....|
|00000e50| 43 6f 6d 70 69 6c 69 6e | 67 20 69 6e 73 74 72 75 |Compilin|g instru|
|00000e60| 63 74 69 6f 6e 73 20 66 | 6f 72 20 36 38 58 58 58 |ctions f|or 68XXX|
|00000e70| 3a 0d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |:.------|--------|
|00000e80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000e90| 2d 2d 2d 0d 0d 43 6f 6d | 70 69 6c 65 20 79 6f 75 |---..Com|pile you|
|00000ea0| 72 20 66 69 6c 65 73 20 | 61 6e 64 20 6c 69 6e 6b |r files |and link|
|00000eb0| 20 74 68 65 6d 20 69 6e | 20 61 20 73 69 6e 67 6c | them in| a singl|
|00000ec0| 65 20 72 65 73 6f 75 72 | 63 65 20 6f 66 20 74 79 |e resour|ce of ty|
|00000ed0| 70 65 20 27 4e 4c 66 74 | 27 20 28 74 68 65 20 49 |pe 'NLft|' (the I|
|00000ee0| 44 20 6e 75 6d 62 65 72 | 0d 63 61 6e 20 62 65 20 |D number|.can be |
|00000ef0| 61 6e 79 20 6e 75 6d 62 | 65 72 20 3e 31 32 38 20 |any numb|er >128 |
|00000f00| 79 6f 75 20 6c 69 6b 65 | 29 2e 20 4d 61 6b 65 20 |you like|). Make |
|00000f10| 73 75 72 65 20 74 68 61 | 74 20 79 6f 75 72 20 63 |sure tha|t your c|
|00000f20| 6f 64 65 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |ode cons|ists of |
|00000f30| 61 20 73 69 6e 67 6c 65 | 20 73 65 67 6d 65 6e 74 |a single| segment|
|00000f40| 2e 0d 52 65 66 65 72 20 | 74 6f 20 79 6f 75 72 20 |..Refer |to your |
|00000f50| 63 6f 6d 70 69 6c 65 72 | 27 73 20 6d 61 6e 75 61 |compiler|'s manua|
|00000f60| 6c 20 69 66 20 79 6f 75 | 20 64 6f 6e 27 74 20 6b |l if you| don't k|
|00000f70| 6e 6f 77 20 68 6f 77 20 | 74 6f 20 63 6f 6d 70 69 |now how |to compi|
|00000f80| 6c 65 20 63 6f 64 65 20 | 66 6f 72 20 61 20 72 65 |le code |for a re|
|00000f90| 73 6f 75 72 63 65 2e 0d | 50 75 74 20 79 6f 75 72 |source..|Put your|
|00000fa0| 20 72 65 73 6f 75 72 63 | 65 20 69 6e 74 6f 20 61 | resourc|e into a|
|00000fb0| 20 66 69 6c 65 20 68 61 | 76 69 6e 67 20 74 68 65 | file ha|ving the|
|00000fc0| 20 74 79 70 65 20 27 66 | 74 43 44 27 20 61 6e 64 | type 'f|tCD' and|
|00000fd0| 20 74 68 65 20 63 72 65 | 61 74 6f 72 20 27 4e 4c | the cre|ator 'NL|
|00000fe0| 66 74 27 2e 0d 0d 0d 42 | 65 66 6f 72 65 20 63 6f |ft'....B|efore co|
|00000ff0| 6d 70 69 6c 69 6e 67 2c | 20 6d 61 6b 65 20 73 75 |mpiling,| make su|
|00001000| 72 65 20 74 68 61 74 20 | 79 6f 75 20 63 68 6f 6f |re that |you choo|
|00001010| 73 65 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |se the c|ompiler |
|00001020| 6f 70 74 69 6f 6e 73 20 | 74 68 61 74 20 61 72 65 |options |that are|
|00001030| 20 63 6f 6d 70 61 74 69 | 62 6c 65 0d 77 69 74 68 | compati|ble.with|
|00001040| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | the ver|sion of |
|00001050| 70 72 6f 20 46 69 74 20 | 79 6f 75 20 75 73 65 3a |pro Fit |you use:|
|00001060| 0d 0d 49 66 20 79 6f 75 | 20 75 73 65 20 74 68 65 |..If you| use the|
|00001070| 20 46 50 55 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | FPU ver|sion of |
|00001080| 70 72 6f 20 46 69 74 2c | 20 6d 61 6b 65 20 73 75 |pro Fit,| make su|
|00001090| 72 65 20 74 68 61 74 20 | 79 6f 75 72 20 64 6f 75 |re that |your dou|
|000010a0| 62 6c 65 20 76 61 72 69 | 61 62 6c 65 73 20 61 72 |ble vari|ables ar|
|000010b0| 65 20 31 32 0d 62 79 74 | 65 73 20 6c 6f 6e 67 2e |e 12.byt|es long.|
|000010c0| 20 55 6e 64 65 72 20 54 | 68 69 6e 6b 43 2c 20 63 | Under T|hinkC, c|
|000010d0| 68 65 63 6b 20 74 68 65 | 20 6f 70 74 69 6f 6e 73 |heck the| options|
|000010e0| 20 22 47 65 6e 65 72 61 | 74 65 20 36 38 38 38 31 | "Genera|te 68881|
|000010f0| 2f 38 38 32 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |/882 ins|truction|
|00001100| 73 22 20 61 6e 64 0d 22 | 4e 61 74 69 76 65 20 66 |s" and."|Native f|
|00001110| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 20 66 6f |loating |point fo|
|00001120| 72 6d 61 74 22 20 69 6e | 20 79 6f 75 72 20 63 6f |rmat" in| your co|
|00001130| 6d 70 69 6c 65 72 20 6f | 70 74 69 6f 6e 73 2e 0d |mpiler o|ptions..|
|00001140| 0d 49 66 20 79 6f 75 20 | 75 73 65 20 74 68 65 20 |.If you |use the |
|00001150| 6e 6f 6e 2d 46 50 55 20 | 76 65 72 73 69 6f 6e 20 |non-FPU |version |
|00001160| 6f 66 20 70 72 6f 20 46 | 69 74 2c 20 6d 61 6b 65 |of pro F|it, make|
|00001170| 20 73 75 72 65 20 74 68 | 61 74 20 79 6f 75 72 20 | sure th|at your |
|00001180| 64 6f 75 62 6c 65 20 76 | 61 72 69 61 62 6c 65 73 |double v|ariables|
|00001190| 20 61 72 65 0d 31 30 20 | 62 79 74 65 73 20 6c 6f | are.10 |bytes lo|
|000011a0| 6e 67 2e 20 55 6e 64 65 | 72 20 54 68 69 6e 6b 43 |ng. Unde|r ThinkC|
|000011b0| 2c 20 75 6e 63 68 65 63 | 6b 20 74 68 65 20 6f 70 |, unchec|k the op|
|000011c0| 74 69 6f 6e 20 22 47 65 | 6e 65 72 61 74 65 20 36 |tion "Ge|nerate 6|
|000011d0| 38 38 38 31 2f 38 38 32 | 20 69 6e 73 74 72 75 63 |8881/882| instruc|
|000011e0| 74 69 6f 6e 73 22 20 61 | 6e 64 0d 63 68 65 63 6b |tions" a|nd.check|
|000011f0| 20 22 4e 61 74 69 76 65 | 20 66 6c 6f 61 74 69 6e | "Native| floatin|
|00001200| 67 20 70 6f 69 6e 74 20 | 66 6f 72 6d 61 74 22 20 |g point |format" |
|00001210| 69 6e 20 79 6f 75 72 20 | 63 6f 6d 70 69 6c 65 72 |in your |compiler|
|00001220| 20 6f 70 74 69 6f 6e 73 | 2e 0d 0d 54 68 65 20 65 | options|...The e|
|00001230| 78 74 65 72 6e 61 6c 20 | 6d 6f 64 75 6c 65 20 69 |xternal |module i|
|00001240| 73 20 61 20 63 6f 6d 70 | 69 6c 65 64 20 63 6f 64 |s a comp|iled cod|
|00001250| 65 20 72 65 73 6f 75 72 | 63 65 20 74 68 61 74 20 |e resour|ce that |
|00001260| 70 72 6f 76 69 64 65 73 | 20 61 20 66 75 6e 63 74 |provides| a funct|
|00001270| 69 6f 6e 20 63 61 6c 6c | 65 64 20 27 6d 61 69 6e |ion call|ed 'main|
|00001280| 27 2e 0d 59 6f 75 20 6d | 75 73 74 20 6d 61 6b 65 |'..You m|ust make|
|00001290| 20 73 75 72 65 20 74 68 | 61 74 20 6d 61 69 6e 28 | sure th|at main(|
|000012a0| 29 20 69 73 20 61 74 20 | 74 68 65 20 62 65 67 69 |) is at |the begi|
|000012b0| 6e 6e 69 6e 67 20 6f 66 | 20 79 6f 75 72 20 63 6f |nning of| your co|
|000012c0| 64 65 2e 20 55 6e 64 65 | 72 20 53 79 6d 61 6e 74 |de. Unde|r Symant|
|000012d0| 65 63 27 73 0d 63 6f 6d | 70 69 6c 65 72 73 2c 20 |ec's.com|pilers, |
|000012e0| 74 68 69 73 20 69 73 20 | 64 6f 6e 65 20 61 75 74 |this is |done aut|
|000012f0| 6f 6d 61 74 69 63 61 6c | 6c 79 2e 20 55 6e 64 65 |omatical|ly. Unde|
|00001300| 72 20 4d 50 57 2c 20 79 | 6f 75 20 6d 75 73 74 20 |r MPW, y|ou must |
|00001310| 6d 61 6b 65 20 73 75 72 | 65 20 74 68 61 74 20 6d |make sur|e that m|
|00001320| 61 69 6e 28 29 0d 69 73 | 20 74 68 65 20 66 69 72 |ain().is| the fir|
|00001330| 73 74 20 72 6f 75 74 69 | 6e 65 20 74 68 61 74 20 |st routi|ne that |
|00001340| 69 73 20 63 6f 6d 70 69 | 6c 65 64 20 61 6e 64 20 |is compi|led and |
|00001350| 6c 69 6e 6b 65 64 2e 0d | 0d 2a 2a 2a 2a 2a 2a 2a |linked..|.*******|
|00001360| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013b0| 2a 2f 0d 0d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*/..../*|********|
|000013c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001400| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00001410| 09 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 61 |.The fol|lowing a|
|00001420| 72 65 20 74 68 65 20 74 | 79 70 65 20 64 65 66 69 |re the t|ype defi|
|00001430| 6e 69 74 69 6f 6e 73 20 | 74 68 61 74 20 73 65 72 |nitions |that ser|
|00001440| 76 65 20 61 73 20 61 6e | 20 69 6e 74 65 72 66 61 |ve as an| interfa|
|00001450| 63 65 20 62 65 74 77 65 | 65 6e 20 74 68 65 0d 09 |ce betwe|en the..|
|00001460| 65 78 74 65 72 6e 61 6c | 20 6d 6f 64 75 6c 65 20 |external| module |
|00001470| 61 6e 64 20 70 72 6f 20 | 46 69 74 2e 20 54 68 65 |and pro |Fit. The|
|00001480| 73 65 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 73 20 |se decla|rations |
|00001490| 64 65 73 63 72 69 62 65 | 20 65 78 61 63 74 6c 79 |describe| exactly|
|000014a0| 20 68 6f 77 20 70 72 6f | 20 46 69 74 0d 09 65 78 | how pro| Fit..ex|
|000014b0| 70 65 63 74 73 20 74 68 | 65 20 65 78 74 65 72 6e |pects th|e extern|
|000014c0| 61 6c 20 6d 6f 64 75 6c | 65 20 74 6f 20 61 72 72 |al modul|e to arr|
|000014d0| 61 6e 67 65 20 74 68 65 | 20 69 6e 66 6f 72 6d 61 |ange the| informa|
|000014e0| 74 69 6f 6e 20 69 74 20 | 70 72 6f 76 69 64 65 73 |tion it |provides|
|000014f0| 2c 20 61 6e 64 20 68 6f | 77 20 74 68 65 0d 09 69 |, and ho|w the..i|
|00001500| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 70 72 6f 76 69 |nformati|on provi|
|00001510| 64 65 64 20 62 79 20 70 | 72 6f 20 46 69 74 20 69 |ded by p|ro Fit i|
|00001520| 73 20 61 72 72 61 6e 67 | 65 64 2e 0d 09 44 6f 6e |s arrang|ed...Don|
|00001530| 27 74 20 65 76 65 6e 20 | 74 68 69 6e 6b 20 6f 66 |'t even |think of|
|00001540| 20 63 68 61 6e 67 69 6e | 67 20 73 6f 6d 65 74 68 | changin|g someth|
|00001550| 69 6e 67 20 69 6e 20 74 | 68 69 73 20 66 69 6c 65 |ing in t|his file|
|00001560| 2e 20 54 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |. The in|formatio|
|00001570| 6e 73 20 69 74 20 63 6f | 6e 74 61 69 6e 73 0d 09 |ns it co|ntains..|
|00001580| 61 72 65 20 76 69 74 61 | 6c 20 74 6f 20 74 68 65 |are vita|l to the|
|00001590| 20 65 78 74 65 72 6e 61 | 6c 20 6d 6f 64 75 6c 65 | externa|l module|
|000015a0| 20 69 6e 20 74 68 65 69 | 72 20 70 72 65 73 65 6e | in thei|r presen|
|000015b0| 74 2c 20 6f 72 69 67 69 | 6e 61 6c 20 66 6f 72 6d |t, origi|nal form|
|000015c0| 2e 20 54 68 65 79 20 61 | 72 65 20 64 65 61 64 6c |. They a|re deadl|
|000015d0| 79 20 69 66 0d 09 79 6f | 75 20 6d 6f 64 69 66 79 |y if..yo|u modify|
|000015e0| 20 74 68 65 6d 2e 0d 09 | 41 4e 59 20 63 68 61 6e | them...|ANY chan|
|000015f0| 67 65 20 69 6e 20 61 20 | 74 79 70 65 20 64 65 66 |ge in a |type def|
|00001600| 69 6e 69 74 69 6f 6e 20 | 28 65 2e 67 2e 20 63 68 |inition |(e.g. ch|
|00001610| 61 6e 67 69 6e 67 20 74 | 68 65 20 72 61 6e 67 65 |anging t|he range|
|00001620| 73 20 6f 66 20 61 6e 20 | 61 72 72 61 79 20 6f 72 |s of an |array or|
|00001630| 20 74 68 65 09 0d 09 6f | 72 64 65 72 20 6f 66 20 | the...o|rder of |
|00001640| 74 68 65 20 66 69 65 6c | 64 73 20 69 6e 20 61 20 |the fiel|ds in a |
|00001650| 72 65 63 6f 72 64 29 20 | 69 73 20 67 75 61 72 61 |record) |is guara|
|00001660| 6e 74 65 65 64 20 74 6f | 20 63 61 75 73 65 20 76 |nteed to| cause v|
|00001670| 65 72 79 20 75 67 6c 79 | 20 63 6f 6e 73 65 71 75 |ery ugly| consequ|
|00001680| 65 6e 63 65 73 2e 0d 09 | 0d 09 46 6f 72 20 61 20 |ences...|..For a |
|00001690| 64 65 74 61 69 6c 65 64 | 20 64 65 73 63 72 69 70 |detailed| descrip|
|000016a0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 73 65 20 64 65 |tion of |these de|
|000016b0| 63 6c 61 72 61 74 69 6f | 6e 73 20 61 6e 64 74 68 |claratio|ns andth|
|000016c0| 65 69 72 20 75 73 65 2c | 20 73 65 65 20 74 68 65 |eir use,| see the|
|000016d0| 0d 09 70 72 6f 20 46 69 | 74 20 75 73 65 72 20 6d |..pro Fi|t user m|
|000016e0| 61 6e 75 61 6c 2e 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |anual...|********|
|000016f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001740| 2f 0d 0d 09 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/..../**|********|
|00001750| 2a 2a 2a 2a 2a 2a 2a 20 | 20 67 65 6e 65 72 61 6c |******* | general|
|00001760| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 75 73 65 | definit|ions use|
|00001770| 64 20 62 79 20 65 78 74 | 65 72 6e 61 6c 20 6d 6f |d by ext|ernal mo|
|00001780| 64 75 6c 65 73 20 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |dules **|********|
|00001790| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 0d 23 69 66 6e 64 65 |*******/|..#ifnde|
|000017a0| 66 20 5f 5f 54 59 50 45 | 53 5f 5f 0d 09 23 69 6e |f __TYPE|S__..#in|
|000017b0| 63 6c 75 64 65 20 3c 74 | 79 70 65 73 2e 68 3e 0d |clude <t|ypes.h>.|
|000017c0| 23 65 6e 64 69 66 0d 0d | 09 65 6e 75 6d 20 7b 69 |#endif..|.enum {i|
|000017d0| 73 46 75 6e 63 74 69 6f | 6e 3d 31 2c 20 69 73 50 |sFunctio|n=1, isP|
|000017e0| 72 6f 67 72 61 6d 2c 20 | 69 73 4d 61 63 72 6f 7d |rogram, |isMacro}|
|000017f0| 3b 09 2f 2a 20 75 73 65 | 64 20 69 6e 20 53 65 74 |;./* use|d in Set|
|00001800| 75 70 20 74 6f 20 69 64 | 65 6e 74 69 66 79 20 74 |up to id|entify t|
|00001810| 68 65 20 65 78 74 65 72 | 6e 61 6c 20 6d 6f 64 75 |he exter|nal modu|
|00001820| 6c 65 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 64 |le */..#|define d|
|00001830| 72 61 77 69 6e 67 54 79 | 70 65 20 27 66 74 47 46 |rawingTy|pe 'ftGF|
|00001840| 27 20 20 20 20 20 09 2f | 2a 20 77 69 6e 64 6f 77 |' ./|* window|
|00001850| 20 74 79 70 65 73 2c 20 | 75 73 65 64 20 62 79 20 | types, |used by |
|00001860| 44 6f 4e 65 77 57 69 6e | 64 6f 77 2c 20 65 74 63 |DoNewWin|dow, etc|
|00001870| 2e 2a 2f 0d 23 64 65 66 | 69 6e 65 20 64 61 74 61 |.*/.#def|ine data|
|00001880| 54 79 70 65 20 27 66 74 | 4c 53 27 0d 23 64 65 66 |Type 'ft|LS'.#def|
|00001890| 69 6e 65 20 74 65 78 74 | 54 79 70 65 20 27 66 74 |ine text|Type 'ft|
|000018a0| 46 43 27 0d 23 64 65 66 | 69 6e 65 20 64 65 66 61 |FC'.#def|ine defa|
|000018b0| 75 6c 74 54 79 70 65 20 | 27 2a 2a 2a 2a 27 0d 0d |ultType |'****'..|
|000018c0| 09 65 6e 75 6d 20 7b 09 | 67 61 75 73 73 44 69 73 |.enum {.|gaussDis|
|000018d0| 74 72 20 3d 20 31 2c 09 | 09 2f 2a 20 65 72 72 6f |tr = 1,.|./* erro|
|000018e0| 72 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 73 2c |r distri|butions,|
|000018f0| 20 75 73 65 64 20 66 6f | 72 20 73 65 74 74 69 6e | used fo|r settin|
|00001900| 67 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |g the pa|rameters|
|00001910| 20 6f 66 20 74 68 65 20 | 53 65 74 46 69 74 44 65 | of the |SetFitDe|
|00001920| 66 61 75 6c 74 73 20 72 | 6f 75 74 69 6e 65 20 2a |faults r|outine *|
|00001930| 2f 0d 09 09 09 64 6f 75 | 62 6c 65 45 78 70 44 69 |/....dou|bleExpDi|
|00001940| 73 74 72 2c 0d 09 09 09 | 6c 6f 72 65 6e 74 7a 44 |str,....|lorentzD|
|00001950| 69 73 74 72 2c 0d 09 09 | 09 61 6e 64 72 65 77 44 |istr,...|.andrewD|
|00001960| 69 73 74 72 2c 0d 09 09 | 09 74 75 6b 65 79 44 69 |istr,...|.tukeyDi|
|00001970| 73 74 72 6e 6f 45 72 72 | 6f 72 73 0d 09 7d 3b 0d |strnoErr|ors..};.|
|00001980| 0d 09 65 6e 75 6d 20 7b | 09 64 65 66 61 75 6c 74 |..enum {|.default|
|00001990| 46 6f 72 6d 61 74 2c 09 | 09 2f 2a 20 44 72 61 77 |Format,.|./* Draw|
|000019a0| 69 6e 67 20 77 69 6e 64 | 6f 77 20 66 69 6c 65 20 |ing wind|ow file |
|000019b0| 66 6f 72 6d 61 74 73 20 | 2a 2f 0d 09 09 09 70 69 |formats |*/....pi|
|000019c0| 63 74 46 6f 72 6d 61 74 | 2c 20 0d 09 09 09 65 70 |ctFormat|, ....ep|
|000019d0| 73 46 6f 72 6d 61 74 2c | 0d 09 09 09 09 09 09 0d |sFormat,|........|
|000019e0| 09 09 09 66 6c 6f 61 74 | 43 6f 6c 75 6d 6e 3d 30 |...float|Column=0|
|000019f0| 2c 09 09 2f 2a 20 64 61 | 74 61 20 63 6f 6c 75 6d |,../* da|ta colum|
|00001a00| 6e 20 74 79 70 65 73 20 | 2a 2f 0d 09 09 09 64 6f |n types |*/....do|
|00001a10| 75 62 6c 65 43 6f 6c 75 | 6d 6e 3d 31 2c 0d 09 09 |ubleColu|mn=1,...|
|00001a20| 09 74 65 78 74 43 6f 6c | 75 6d 6e 20 3d 20 31 32 |.textCol|umn = 12|
|00001a30| 38 0d 09 09 7d 3b 0d 0d | 09 23 64 65 66 69 6e 65 |8...};..|.#define|
|00001a40| 20 6e 6f 45 72 72 6f 72 | 73 20 09 30 09 2f 2a 09 | noError|s .0./*.|
|00001a50| 65 72 72 6f 72 20 62 61 | 72 20 74 79 70 65 73 2c |error ba|r types,|
|00001a60| 20 75 73 65 64 20 66 6f | 72 20 73 65 74 74 69 6e | used fo|r settin|
|00001a70| 67 20 74 68 65 20 22 65 | 72 72 6f 72 73 22 20 70 |g the "e|rrors" p|
|00001a80| 61 72 61 6d 65 74 65 72 | 20 69 6e 20 74 68 65 20 |arameter| in the |
|00001a90| 22 65 72 72 6f 72 73 22 | 20 70 61 72 61 6d 65 74 |"errors"| paramet|
|00001aa0| 65 72 20 69 6e 20 74 68 | 65 20 4f 70 65 6e 44 61 |er in th|e OpenDa|
|00001ab0| 74 61 53 65 74 20 72 6f | 75 74 69 6e 65 2a 2f 0d |taSet ro|utine*/.|
|00001ac0| 09 23 64 65 66 69 6e 65 | 20 65 42 61 72 59 20 09 |.#define| eBarY .|
|00001ad0| 09 31 0d 09 23 64 65 66 | 69 6e 65 20 65 42 61 72 |.1..#def|ine eBar|
|00001ae0| 58 09 09 32 0d 09 23 64 | 65 66 69 6e 65 20 61 73 |X..2..#d|efine as|
|00001af0| 79 6d 6d 45 42 61 72 59 | 09 34 0d 09 23 64 65 66 |ymmEBarY|.4..#def|
|00001b00| 69 6e 65 20 61 73 79 6d | 6d 45 42 61 72 58 09 38 |ine asym|mEBarX.8|
|00001b10| 0d 0d 09 23 64 65 66 69 | 6e 65 20 78 41 78 69 73 |...#defi|ne xAxis|
|00001b20| 09 30 09 2f 2a 20 75 73 | 65 64 20 66 6f 72 20 74 |.0./* us|ed for t|
|00001b30| 68 65 20 72 6f 75 74 69 | 6e 65 73 20 61 63 63 65 |he routi|nes acce|
|00001b40| 73 73 69 6e 67 20 74 68 | 65 20 63 75 72 72 65 6e |ssing th|e curren|
|00001b50| 74 20 78 20 6f 72 20 79 | 20 61 78 69 73 2c 20 73 |t x or y| axis, s|
|00001b60| 75 63 68 20 61 73 20 22 | 53 65 74 52 61 6e 67 65 |uch as "|SetRange|
|00001b70| 22 20 2a 2f 0d 09 23 64 | 65 66 69 6e 65 20 79 41 |" */..#d|efine yA|
|00001b80| 78 69 73 09 31 09 2f 2a | 20 75 73 65 64 20 74 6f |xis.1./*| used to|
|00001b90| 20 64 69 73 74 69 6e 67 | 75 69 73 68 20 62 65 74 | disting|uish bet|
|00001ba0| 77 65 65 6e 20 59 20 61 | 6e 64 20 58 20 61 78 65 |ween Y a|nd X axe|
|00001bb0| 73 2e 09 09 09 09 09 2a | 2f 0d 0d 09 0d 09 23 64 |s......*|/.....#d|
|00001bc0| 65 66 69 6e 65 09 65 71 | 75 61 6c 54 6f 4d 61 69 |efine.eq|ualToMai|
|00001bd0| 6e 09 09 09 31 09 2f 2a | 09 64 65 66 69 6e 65 73 |n...1./*|.defines|
|00001be0| 20 75 73 65 64 20 66 6f | 72 20 73 65 74 74 69 6e | used fo|r settin|
|00001bf0| 67 20 74 68 65 20 22 66 | 6c 61 67 73 22 20 66 69 |g the "f|lags" fi|
|00001c00| 65 6c 64 20 69 6e 20 63 | 61 6c 6c 73 20 74 6f 20 |eld in c|alls to |
|00001c10| 74 68 65 20 53 65 74 41 | 78 69 73 41 74 74 72 69 |the SetA|xisAttri|
|00001c20| 62 75 74 65 73 20 72 6f | 75 74 69 6e 65 20 2a 2f |butes ro|utine */|
|00001c30| 0d 09 23 64 65 66 69 6e | 65 09 64 72 61 77 41 78 |..#defin|e.drawAx|
|00001c40| 69 73 4c 69 6e 65 09 09 | 32 0d 09 23 64 65 66 69 |isLine..|2..#defi|
|00001c50| 6e 65 09 64 72 61 77 54 | 69 63 6b 73 09 09 09 34 |ne.drawT|icks...4|
|00001c60| 0d 09 23 64 65 66 69 6e | 65 09 64 72 61 77 4d 61 |..#defin|e.drawMa|
|00001c70| 6a 6f 72 54 69 63 6b 4c | 61 62 65 6c 73 09 38 0d |jorTickL|abels.8.|
|00001c80| 09 23 64 65 66 69 6e 65 | 09 64 72 61 77 4d 69 6e |.#define|.drawMin|
|00001c90| 6f 72 54 69 63 6b 4c 61 | 62 65 6c 73 09 30 78 31 |orTickLa|bels.0x1|
|00001ca0| 30 0d 09 23 64 65 66 69 | 6e 65 09 70 6c 75 73 53 |0..#defi|ne.plusS|
|00001cb0| 69 64 65 54 69 63 6b 73 | 09 09 30 78 32 30 0d 09 |ideTicks|..0x20..|
|00001cc0| 23 64 65 66 69 6e 65 09 | 6d 69 6e 75 73 53 69 64 |#define.|minusSid|
|00001cd0| 65 54 69 63 6b 73 09 09 | 30 78 34 30 0d 09 23 64 |eTicks..|0x40..#d|
|00001ce0| 65 66 69 6e 65 09 70 6c | 75 73 53 69 64 65 4c 61 |efine.pl|usSideLa|
|00001cf0| 62 65 6c 73 09 09 30 78 | 38 30 0d 09 23 64 65 66 |bels..0x|80..#def|
|00001d00| 69 6e 65 09 6c 61 62 65 | 6c 73 4f 75 74 73 69 64 |ine.labe|lsOutsid|
|00001d10| 65 46 72 61 6d 65 09 30 | 78 30 31 30 30 0d 0d 09 |eFrame.0|x0100...|
|00001d20| 0d 09 23 64 65 66 69 6e | 65 09 64 72 61 77 46 72 |..#defin|e.drawFr|
|00001d30| 61 6d 65 09 09 09 32 09 | 2f 2a 09 64 65 66 69 6e |ame...2.|/*.defin|
|00001d40| 65 73 20 75 73 65 64 20 | 66 6f 72 20 73 65 74 74 |es used |for sett|
|00001d50| 69 6e 67 20 74 68 65 20 | 22 66 6c 61 67 73 22 20 |ing the |"flags" |
|00001d60| 66 69 65 6c 64 20 69 6e | 20 63 61 6c 6c 73 20 74 |field in| calls t|
|00001d70| 6f 20 74 68 65 20 53 65 | 74 47 72 61 70 68 41 74 |o the Se|tGraphAt|
|00001d80| 74 72 69 62 75 74 65 73 | 20 72 6f 75 74 69 6e 65 |tributes| routine|
|00001d90| 20 2a 2f 0d 09 23 64 65 | 66 69 6e 65 09 64 72 61 | */..#de|fine.dra|
|00001da0| 77 4d 61 6a 6f 72 47 72 | 69 64 58 09 09 34 0d 09 |wMajorGr|idX..4..|
|00001db0| 23 64 65 66 69 6e 65 09 | 64 72 61 77 4d 69 6e 6f |#define.|drawMino|
|00001dc0| 72 47 72 69 64 58 09 09 | 38 0d 09 23 64 65 66 69 |rGridX..|8..#defi|
|00001dd0| 6e 65 09 64 72 61 77 4d | 61 6a 6f 72 47 72 69 64 |ne.drawM|ajorGrid|
|00001de0| 59 09 09 30 78 31 30 0d | 09 23 64 65 66 69 6e 65 |Y..0x10.|.#define|
|00001df0| 09 64 72 61 77 4d 69 6e | 6f 72 47 72 69 64 59 09 |.drawMin|orGridY.|
|00001e00| 09 30 78 32 30 0d 09 23 | 64 65 66 69 6e 65 09 70 |.0x20..#|define.p|
|00001e10| 6c 6f 74 42 65 68 69 6e | 64 41 78 65 73 09 09 30 |lotBehin|dAxes..0|
|00001e20| 78 34 30 0d 09 23 64 65 | 66 69 6e 65 09 67 72 69 |x40..#de|fine.gri|
|00001e30| 64 49 6e 46 72 6f 6e 74 | 09 09 09 30 78 38 30 0d |dInFront|...0x80.|
|00001e40| 09 23 64 65 66 69 6e 65 | 09 67 72 69 64 49 6e 4d |.#define|.gridInM|
|00001e50| 69 64 64 6c 65 09 09 30 | 78 30 31 30 30 0d 0d 09 |iddle..0|x0100...|
|00001e60| 23 64 65 66 69 6e 65 20 | 6d 61 78 4e 72 50 61 72 |#define |maxNrPar|
|00001e70| 61 6d 73 20 20 36 34 09 | 09 09 2f 2a 20 74 68 65 |ams 64.|../* the|
|00001e80| 20 6d 61 78 69 6d 75 6d | 20 6e 75 6d 62 65 72 20 | maximum| number |
|00001e90| 6f 66 20 70 61 72 61 6d | 65 74 65 72 73 20 6f 66 |of param|eters of|
|00001ea0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 2a 2f 0d 09 | a funct|ion */..|
|00001eb0| 23 64 65 66 69 6e 65 09 | 6d 61 78 50 61 72 61 6d |#define.|maxParam|
|00001ec0| 4e 61 6d 65 4c 65 6e 67 | 74 68 20 20 33 31 09 2f |NameLeng|th 31./|
|00001ed0| 2a 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 6c 65 |* the ma|ximum le|
|00001ee0| 6e 67 74 68 20 6f 66 20 | 61 20 70 61 72 61 6d 65 |ngth of |a parame|
|00001ef0| 74 65 72 20 6e 61 6d 65 | 20 20 2a 2f 0d 0d 0d 09 |ter name| */....|
|00001f00| 23 64 65 66 69 6e 65 09 | 6d 61 78 4e 72 49 6e 70 |#define.|maxNrInp|
|00001f10| 75 74 56 61 6c 75 65 73 | 20 20 20 36 09 2f 2a 20 |utValues| 6./* |
|00001f20| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |the maxi|mum numb|
|00001f30| 65 72 20 6f 66 20 69 6e | 70 75 74 20 76 61 6c 75 |er of in|put valu|
|00001f40| 65 73 20 69 6e 20 74 68 | 65 20 69 6e 70 75 74 20 |es in th|e input |
|00001f50| 64 69 61 6c 6f 67 20 62 | 6f 78 20 2a 2f 0d 0d 23 |dialog b|ox */..#|
|00001f60| 69 66 20 64 65 66 69 6e | 65 64 28 70 6f 77 65 72 |if defin|ed(power|
|00001f70| 63 29 20 7c 7c 20 64 65 | 66 69 6e 65 64 20 28 5f |c) || de|fined (_|
|00001f80| 5f 70 6f 77 65 72 63 29 | 0d 23 70 72 61 67 6d 61 |_powerc)|.#pragma|
|00001f90| 20 6f 70 74 69 6f 6e 73 | 20 61 6c 69 67 6e 3d 6d | options| align=m|
|00001fa0| 61 63 36 38 6b 0d 23 65 | 6e 64 69 66 0d 20 20 20 |ac68k.#e|ndif. |
|00001fb0| 20 20 20 20 20 74 79 70 | 65 64 65 66 20 73 74 72 | typ|edef str|
|00001fc0| 75 63 74 09 09 09 09 09 | 2f 2a 20 64 65 66 69 6e |uct.....|/* defin|
|00001fd0| 69 74 69 6f 6e 20 75 73 | 65 64 20 62 79 20 74 68 |ition us|ed by th|
|00001fe0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 22 49 6e 70 75 |e functi|on "Inpu|
|00001ff0| 74 42 6f 78 22 2a 2f 0d | 20 20 20 20 20 20 20 20 |tBox"*/.| |
|00002000| 7b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{ | |
|00002010| 64 6f 75 62 6c 65 2a 20 | 78 3b 09 09 09 2f 2a 20 |double* |x;.../* |
|00002020| 70 6f 69 6e 74 65 72 20 | 74 6f 20 76 61 6c 75 65 |pointer |to value|
|00002030| 20 6f 72 20 73 74 72 69 | 6e 67 20 28 69 66 20 73 | or stri|ng (if s|
|00002040| 20 73 74 61 72 74 73 20 | 77 69 74 68 20 24 53 20 | starts |with $S |
|00002050| 2a 2f 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/. | |
|00002060| 20 20 20 20 20 20 20 20 | 20 20 20 75 6e 73 69 67 | | unsig|
|00002070| 6e 65 64 20 63 68 61 72 | 2a 20 73 3b 0d 20 20 20 |ned char|* s;. |
|00002080| 20 20 20 20 20 7d 20 49 | 6e 70 75 74 52 65 63 5b | } I|nputRec[|
|00002090| 6d 61 78 4e 72 49 6e 70 | 75 74 56 61 6c 75 65 73 |maxNrInp|utValues|
|000020a0| 5d 3b 20 20 20 0d 0d 23 | 69 66 20 64 65 66 69 6e |]; ..#|if defin|
|000020b0| 65 64 28 70 6f 77 65 72 | 63 29 20 7c 7c 20 64 65 |ed(power|c) || de|
|000020c0| 66 69 6e 65 64 20 28 5f | 5f 70 6f 77 65 72 63 29 |fined (_|_powerc)|
|000020d0| 0d 23 70 72 61 67 6d 61 | 20 6f 70 74 69 6f 6e 73 |.#pragma| options|
|000020e0| 20 61 6c 69 67 6e 3d 72 | 65 73 65 74 0d 23 65 6e | align=r|eset.#en|
|000020f0| 64 69 66 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |dif../**|********|
|00002100| 2a 2a 2a 20 74 79 70 65 | 20 64 65 66 69 6e 69 74 |*** type| definit|
|00002110| 69 6f 6e 73 20 66 6f 72 | 20 22 47 65 74 44 65 66 |ions for| "GetDef|
|00002120| 61 75 6c 74 44 61 74 61 | 22 20 2a 2a 2a 2a 2a 2a |aultData|" ******|
|00002130| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 09 74 79 70 65 |********|/...type|
|00002140| 64 65 66 20 73 74 72 75 | 63 74 20 09 09 2f 2a 20 |def stru|ct ../* |
|00002150| 74 68 69 73 20 64 61 74 | 61 20 73 74 72 75 63 74 |this dat|a struct|
|00002160| 75 72 65 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |ure can |be used |
|00002170| 77 68 65 6e 20 63 61 6c | 6c 69 6e 67 20 47 65 74 |when cal|ling Get|
|00002180| 44 65 66 61 75 6c 74 44 | 61 74 61 2e 09 2a 2f 0d |DefaultD|ata..*/.|
|00002190| 09 7b 0d 09 09 64 6f 75 | 62 6c 65 09 78 4d 69 6e |.{...dou|ble.xMin|
|000021a0| 2c 78 4d 61 78 2c 78 50 | 6f 73 4d 69 6e 2c 78 4e |,xMax,xP|osMin,xN|
|000021b0| 65 67 4d 61 78 3b 09 2f | 2a 20 73 65 74 20 69 66 |egMax;./|* set if|
|000021c0| 20 74 68 65 20 22 78 22 | 20 61 72 72 61 79 20 77 | the "x"| array w|
|000021d0| 61 73 20 63 61 6c 63 75 | 6c 61 74 65 64 09 09 2a |as calcu|lated..*|
|000021e0| 2f 0d 09 09 64 6f 75 62 | 6c 65 09 79 4d 69 6e 2c |/...doub|le.yMin,|
|000021f0| 79 4d 61 78 2c 79 50 6f | 73 4d 69 6e 2c 79 4e 65 |yMax,yPo|sMin,yNe|
|00002200| 67 4d 61 78 3b 09 2f 2a | 20 73 65 74 20 69 66 20 |gMax;./*| set if |
|00002210| 74 68 65 20 22 79 22 20 | 61 72 72 61 79 20 77 61 |the "y" |array wa|
|00002220| 73 20 63 61 6c 63 75 6c | 61 74 65 64 09 09 2a 2f |s calcul|ated..*/|
|00002230| 0d 09 0d 09 09 42 6f 6f | 6c 65 61 6e 20 6f 72 64 |.....Boo|lean ord|
|00002240| 65 72 65 64 3b 09 09 09 | 09 2f 2a 20 74 72 75 65 |ered;...|./* true|
|00002250| 20 69 66 20 74 68 65 20 | 78 2d 61 72 72 61 79 20 | if the |x-array |
|00002260| 69 73 20 6f 72 64 65 72 | 65 64 20 73 75 63 68 20 |is order|ed such |
|00002270| 74 68 61 74 20 78 5b 69 | 2b 31 5d 3e 3d 78 5b 69 |that x[i|+1]>=x[i|
|00002280| 5d 2c 20 66 6f 72 20 61 | 6c 6c 20 69 2e 09 09 2a |], for a|ll i...*|
|00002290| 2f 0d 09 0d 09 09 42 6f | 6f 6c 65 61 6e 20 7a 65 |/.....Bo|olean ze|
|000022a0| 72 6f 59 45 72 72 6f 72 | 73 3b 09 09 09 2f 2a 20 |roYError|s;.../* |
|000022b0| 74 72 75 65 20 69 66 20 | 61 74 20 6c 65 61 73 74 |true if |at least|
|000022c0| 20 6f 6e 65 20 79 2d 65 | 72 72 6f 72 20 69 73 20 | one y-e|rror is |
|000022d0| 30 09 09 2a 2f 0d 09 09 | 42 6f 6f 6c 65 61 6e 20 |0..*/...|Boolean |
|000022e0| 69 6e 76 61 6c 69 64 59 | 45 72 72 6f 72 73 3b 09 |invalidY|Errors;.|
|000022f0| 09 09 2f 2a 20 74 72 75 | 65 20 69 66 20 61 74 20 |../* tru|e if at |
|00002300| 6c 65 61 73 74 20 6f 6e | 65 20 79 2d 65 72 72 6f |least on|e y-erro|
|00002310| 72 20 69 73 20 69 6e 76 | 61 6c 69 64 20 6f 72 20 |r is inv|alid or |
|00002320| 30 09 09 2a 2f 0d 09 09 | 42 6f 6f 6c 65 61 6e 20 |0..*/...|Boolean |
|00002330| 7a 65 72 6f 58 45 72 72 | 6f 72 73 3b 09 09 09 2f |zeroXErr|ors;.../|
|00002340| 2a 20 74 72 75 65 20 69 | 66 20 61 74 20 6c 65 61 |* true i|f at lea|
|00002350| 73 74 20 6f 6e 65 20 78 | 2d 65 72 72 6f 72 20 69 |st one x|-error i|
|00002360| 73 20 30 09 09 2a 2f 0d | 09 09 42 6f 6f 6c 65 61 |s 0..*/.|..Boolea|
|00002370| 6e 20 69 6e 76 61 6c 69 | 64 58 45 72 72 6f 72 73 |n invali|dXErrors|
|00002380| 3b 09 09 09 2f 2a 20 74 | 72 75 65 20 69 66 20 61 |;.../* t|rue if a|
|00002390| 74 20 6c 65 61 73 74 20 | 6f 6e 65 20 78 2d 65 72 |t least |one x-er|
|000023a0| 72 6f 72 20 69 73 20 69 | 6e 76 61 6c 69 64 20 6f |ror is i|nvalid o|
|000023b0| 72 20 30 09 09 2a 2f 0d | 09 7d 09 44 61 74 61 49 |r 0..*/.|.}.DataI|
|000023c0| 6e 66 6f 3b 0d 0d 09 74 | 79 70 65 64 65 66 20 64 |nfo;...t|ypedef d|
|000023d0| 6f 75 62 6c 65 20 09 09 | 09 09 44 6f 75 62 6c 65 |ouble ..|..Double|
|000023e0| 41 72 72 61 79 5b 31 5d | 3b 09 09 09 2f 2a 20 76 |Array[1]|;.../* v|
|000023f0| 61 72 69 61 62 6c 65 20 | 73 69 7a 65 20 61 72 72 |ariable |size arr|
|00002400| 61 79 20 6f 66 20 6e 61 | 74 69 76 65 20 64 6f 75 |ay of na|tive dou|
|00002410| 62 6c 65 20 6e 75 6d 62 | 65 72 73 20 2a 2f 0d 09 |ble numb|ers */..|
|00002420| 74 79 70 65 64 65 66 20 | 6c 6f 6e 67 20 09 09 09 |typedef |long ...|
|00002430| 09 4c 6f 6e 67 41 72 72 | 61 79 5b 31 5d 3b 09 09 |.LongArr|ay[1];..|
|00002440| 09 2f 2a 20 76 61 72 69 | 61 62 6c 65 20 73 69 7a |./* vari|able siz|
|00002450| 65 20 61 72 72 61 79 20 | 6f 66 20 6c 6f 6e 67 20 |e array |of long |
|00002460| 6e 75 6d 62 65 72 73 20 | 2a 2f 0d 09 74 79 70 65 |numbers |*/..type|
|00002470| 64 65 66 20 44 6f 75 62 | 6c 65 41 72 72 61 79 2a |def Doub|leArray*|
|00002480| 2a 20 09 09 44 6f 75 62 | 6c 65 41 72 72 61 79 48 |* ..Doub|leArrayH|
|00002490| 61 6e 64 6c 65 3b 09 09 | 2f 2a 20 48 61 6e 64 6c |andle;..|/* Handl|
|000024a0| 65 20 74 6f 20 61 6e 20 | 61 72 72 61 79 20 6f 66 |e to an |array of|
|000024b0| 20 64 6f 75 62 6c 65 20 | 2a 2f 09 0d 09 74 79 70 | double |*/...typ|
|000024c0| 65 64 65 66 20 4c 6f 6e | 67 41 72 72 61 79 2a 2a |edef Lon|gArray**|
|000024d0| 20 09 09 4c 6f 6e 67 41 | 72 72 61 79 48 61 6e 64 | ..LongA|rrayHand|
|000024e0| 6c 65 3b 09 09 2f 2a 20 | 48 61 6e 64 6c 65 20 74 |le;../* |Handle t|
|000024f0| 6f 20 61 6e 20 61 72 72 | 61 79 20 6f 66 20 6c 6f |o an arr|ay of lo|
|00002500| 6e 67 09 2a 2f 0d 0d 0d | 2f 2a 2a 2a 2a 2a 2a 2a |ng.*/...|/*******|
|00002510| 2a 2a 2a 2a 2a 2a 20 74 | 79 70 65 20 64 65 66 69 |****** t|ype defi|
|00002520| 6e 69 74 69 6f 6e 73 20 | 66 6f 72 20 22 47 65 74 |nitions |for "Get|
|00002530| 43 6f 6c 48 61 6e 64 6c | 65 2f 53 65 74 43 6f 6c |ColHandl|e/SetCol|
|00002540| 48 61 6e 64 6c 65 22 20 | 2a 2a 2a 2a 2a 2a 2a 2a |Handle" |********|
|00002550| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 0d 23 69 66 20 64 65 |*******/|..#if de|
|00002560| 66 69 6e 65 64 28 70 6f | 77 65 72 63 29 20 7c 7c |fined(po|werc) |||
|00002570| 20 64 65 66 69 6e 65 64 | 20 28 5f 5f 70 6f 77 65 | defined| (__powe|
|00002580| 72 63 29 0d 23 70 72 61 | 67 6d 61 20 6f 70 74 69 |rc).#pra|gma opti|
|00002590| 6f 6e 73 20 61 6c 69 67 | 6e 3d 6d 61 63 36 38 6b |ons alig|n=mac68k|
|000025a0| 0d 23 65 6e 64 69 66 0d | 09 74 79 70 65 64 65 66 |.#endif.|.typedef|
|000025b0| 20 73 74 72 75 63 74 09 | 09 09 09 09 09 09 2f 2a | struct.|....../*|
|000025c0| 20 74 68 65 20 64 61 74 | 61 20 73 74 72 75 63 74 | the dat|a struct|
|000025d0| 75 72 65 20 6f 66 20 61 | 20 63 6f 6c 75 6d 6e 20 |ure of a| column |
|000025e0| 6f 66 20 73 74 72 69 6e | 67 73 2e 20 57 61 72 6e |of strin|gs. Warn|
|000025f0| 69 6e 67 3a 20 74 68 69 | 73 20 64 61 74 61 20 73 |ing: thi|s data s|
|00002600| 74 72 75 63 74 75 72 65 | 20 6d 61 79 20 63 68 61 |tructure| may cha|
|00002610| 6e 67 65 20 69 6e 20 66 | 75 74 75 72 65 20 72 65 |nge in f|uture re|
|00002620| 6c 65 61 73 65 73 20 6f | 66 20 70 72 6f 20 46 69 |leases o|f pro Fi|
|00002630| 74 09 09 2a 2f 0d 09 7b | 09 6c 6f 6e 67 09 09 73 |t..*/..{|.long..s|
|00002640| 69 7a 65 3b 09 09 09 09 | 09 2f 2a 20 74 68 65 20 |ize;....|./* the |
|00002650| 73 69 7a 65 20 6f 66 20 | 76 61 6c 69 64 20 64 61 |size of |valid da|
|00002660| 74 61 20 69 6e 20 74 68 | 69 73 20 68 61 6e 64 6c |ta in th|is handl|
|00002670| 65 20 09 09 09 2a 2f 0d | 09 09 6c 6f 6e 67 09 09 |e ...*/.|..long..|
|00002680| 6e 72 52 6f 77 73 3b 09 | 09 09 09 09 2f 2a 20 74 |nrRows;.|..../* t|
|00002690| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 72 6f 77 |he numbe|r of row|
|000026a0| 73 20 69 6e 20 74 68 69 | 73 20 68 61 6e 64 6c 65 |s in thi|s handle|
|000026b0| 20 09 09 2a 2f 0d 09 09 | 6c 6f 6e 67 09 09 66 69 | ..*/...|long..fi|
|000026c0| 72 73 74 4f 66 66 73 65 | 74 3b 09 09 09 2f 2a 20 |rstOffse|t;.../* |
|000026d0| 72 65 73 65 72 76 65 64 | 20 09 09 2a 2f 0d 09 09 |reserved| ..*/...|
|000026e0| 73 68 6f 72 74 09 09 66 | 69 72 73 74 52 6f 77 3b |short..f|irstRow;|
|000026f0| 09 09 09 09 2f 2a 20 72 | 65 73 65 72 76 65 64 20 |..../* r|eserved |
|00002700| 09 09 2a 2f 0d 09 09 53 | 74 72 32 35 35 09 09 64 |..*/...S|tr255..d|
|00002710| 61 74 61 3b 09 09 09 09 | 09 2f 2a 20 68 65 72 65 |ata;....|./* here|
|00002720| 20 66 6f 6c 6c 6f 77 20 | 74 68 65 20 73 74 72 69 | follow |the stri|
|00002730| 6e 67 73 2c 20 70 61 63 | 6b 65 64 2c 20 6f 6e 65 |ngs, pac|ked, one|
|00002740| 20 61 66 74 65 72 20 61 | 6e 6f 74 68 65 72 20 09 | after a|nother .|
|00002750| 09 2a 2f 0d 09 7d 20 53 | 74 72 69 6e 67 44 61 74 |.*/..} S|tringDat|
|00002760| 61 3b 0d 23 69 66 20 64 | 65 66 69 6e 65 64 28 70 |a;.#if d|efined(p|
|00002770| 6f 77 65 72 63 29 20 7c | 7c 20 64 65 66 69 6e 65 |owerc) ||| define|
|00002780| 64 20 28 5f 5f 70 6f 77 | 65 72 63 29 0d 23 70 72 |d (__pow|erc).#pr|
|00002790| 61 67 6d 61 20 6f 70 74 | 69 6f 6e 73 20 61 6c 69 |agma opt|ions ali|
|000027a0| 67 6e 3d 72 65 73 65 74 | 0d 23 65 6e 64 69 66 0d |gn=reset|.#endif.|
|000027b0| 0d 23 69 66 20 64 65 66 | 69 6e 65 64 28 70 6f 77 |.#if def|ined(pow|
|000027c0| 65 72 63 29 20 7c 7c 20 | 64 65 66 69 6e 65 64 20 |erc) || |defined |
|000027d0| 28 5f 5f 70 6f 77 65 72 | 63 29 0d 09 74 79 70 65 |(__power|c)..type|
|000027e0| 64 65 66 20 64 6f 75 62 | 6c 65 20 64 6f 75 62 6c |def doub|le doubl|
|000027f0| 65 5f 38 3b 09 09 09 09 | 2f 2a 20 61 20 38 20 62 |e_8;....|/* a 8 b|
|00002800| 79 74 65 20 66 6c 6f 61 | 74 69 6e 67 20 70 6f 69 |yte floa|ting poi|
|00002810| 6e 74 20 6e 75 6d 62 65 | 72 20 2a 2f 0d 23 65 6c |nt numbe|r */.#el|
|00002820| 73 65 0d 09 74 79 70 65 | 64 65 66 20 73 68 6f 72 |se..type|def shor|
|00002830| 74 20 64 6f 75 62 6c 65 | 20 64 6f 75 62 6c 65 5f |t double| double_|
|00002840| 38 3b 09 09 09 2f 2a 20 | 61 20 38 20 62 79 74 65 |8;.../* |a 8 byte|
|00002850| 20 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 | floatin|g point |
|00002860| 6e 75 6d 62 65 72 20 2a | 2f 0d 23 65 6e 64 69 66 |number *|/.#endif|
|00002870| 0d 0d 09 74 79 70 65 64 | 65 66 20 66 6c 6f 61 74 |...typed|ef float|
|00002880| 20 09 09 09 09 46 6c 6f | 61 74 43 6f 6c 75 6d 6e | ....Flo|atColumn|
|00002890| 41 72 72 61 79 5b 31 5d | 3b 09 2f 2a 20 61 20 76 |Array[1]|;./* a v|
|000028a0| 61 72 69 61 62 6c 65 20 | 73 69 7a 65 20 61 72 72 |ariable |size arr|
|000028b0| 61 79 20 6f 66 20 34 20 | 62 79 74 65 20 64 6f 75 |ay of 4 |byte dou|
|000028c0| 62 6c 65 73 20 2a 2f 0d | 09 74 79 70 65 64 65 66 |bles */.|.typedef|
|000028d0| 20 64 6f 75 62 6c 65 5f | 38 20 09 09 09 44 6f 75 | double_|8 ...Dou|
|000028e0| 62 6c 65 43 6f 6c 75 6d | 6e 41 72 72 61 79 5b 31 |bleColum|nArray[1|
|000028f0| 5d 3b 09 2f 2a 20 61 20 | 76 61 72 69 61 62 6c 65 |];./* a |variable|
|00002900| 20 73 69 7a 65 20 61 72 | 72 61 79 20 6f 66 20 38 | size ar|ray of 8|
|00002910| 20 62 79 74 65 20 64 6f | 75 62 6c 65 73 20 2a 2f | byte do|ubles */|
|00002920| 0d 09 74 79 70 65 64 65 | 66 20 46 6c 6f 61 74 43 |..typede|f FloatC|
|00002930| 6f 6c 75 6d 6e 41 72 72 | 61 79 2a 2a 20 09 46 6c |olumnArr|ay** .Fl|
|00002940| 6f 61 74 43 6f 6c 75 6d | 6e 48 61 6e 64 6c 65 3b |oatColum|nHandle;|
|00002950| 09 09 2f 2a 20 63 6f 6c | 75 6d 6e 20 68 61 6e 64 |../* col|umn hand|
|00002960| 6c 65 20 66 6f 72 20 63 | 6f 6c 75 6d 6e 73 20 6f |le for c|olumns o|
|00002970| 66 20 74 79 70 65 20 66 | 6c 6f 61 74 43 6f 6c 75 |f type f|loatColu|
|00002980| 6d 6e 20 2a 2f 0d 09 74 | 79 70 65 64 65 66 20 44 |mn */..t|ypedef D|
|00002990| 6f 75 62 6c 65 43 6f 6c | 75 6d 6e 41 72 72 61 79 |oubleCol|umnArray|
|000029a0| 2a 2a 20 44 6f 75 62 6c | 65 43 6f 6c 75 6d 6e 48 |** Doubl|eColumnH|
|000029b0| 61 6e 64 6c 65 3b 09 09 | 2f 2a 20 63 6f 6c 75 6d |andle;..|/* colum|
|000029c0| 6e 20 68 61 6e 64 6c 65 | 20 66 6f 72 20 63 6f 6c |n handle| for col|
|000029d0| 75 6d 6e 73 20 6f 66 20 | 74 79 70 65 20 64 6f 75 |umns of |type dou|
|000029e0| 62 6c 65 43 6f 6c 75 6d | 6e 20 2a 2f 0d 09 74 79 |bleColum|n */..ty|
|000029f0| 70 65 64 65 66 20 53 74 | 72 69 6e 67 44 61 74 61 |pedef St|ringData|
|00002a00| 2a 2a 20 09 09 54 65 78 | 74 43 6f 6c 75 6d 6e 48 |** ..Tex|tColumnH|
|00002a10| 61 6e 64 6c 65 3b 09 09 | 2f 2a 20 63 6f 6c 75 6d |andle;..|/* colum|
|00002a20| 6e 20 68 61 6e 64 6c 65 | 20 66 6f 72 20 63 6f 6c |n handle| for col|
|00002a30| 75 6d 6e 73 20 6f 66 20 | 74 79 70 65 20 74 65 78 |umns of |type tex|
|00002a40| 74 43 6f 6c 75 6d 6e 20 | 2a 2f 0d 0d 0d 09 74 79 |tColumn |*/....ty|
|00002a50| 70 65 64 65 66 20 65 6e | 75 6d 20 7b 75 70 64 61 |pedef en|um {upda|
|00002a60| 74 65 2c 20 67 6f 6f 64 | 2c 20 62 61 64 7d 20 43 |te, good|, bad} C|
|00002a70| 68 65 63 6b 50 41 6e 73 | 77 65 72 3b 09 09 09 2f |heckPAns|wer;.../|
|00002a80| 2a 74 68 65 20 70 6f 73 | 73 69 62 6c 65 20 72 65 |*the pos|sible re|
|00002a90| 74 75 72 6e 20 76 61 6c | 75 65 73 20 6f 66 20 74 |turn val|ues of t|
|00002aa0| 68 65 20 27 63 68 65 63 | 6b 27 20 66 75 6e 63 74 |he 'chec|k' funct|
|00002ab0| 69 6f 6e 2c 20 6f 6e 6c | 79 20 75 73 65 64 20 77 |ion, onl|y used w|
|00002ac0| 68 65 6e 20 74 68 65 20 | 65 78 74 65 72 6e 61 6c |hen the |external|
|00002ad0| 20 6d 6f 64 75 6c 65 20 | 69 73 20 61 20 66 75 6e | module |is a fun|
|00002ae0| 63 74 69 6f 6e 20 20 2a | 2f 09 0d 0d 09 74 79 70 |ction *|/....typ|
|00002af0| 65 64 65 66 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |edef uns|igned ch|
|00002b00| 61 72 20 50 61 72 61 6d | 4e 61 6d 65 5b 6d 61 78 |ar Param|Name[max|
|00002b10| 50 61 72 61 6d 4e 61 6d | 65 4c 65 6e 67 74 68 2b |ParamNam|eLength+|
|00002b20| 31 5d 3b 09 2f 2a 20 74 | 68 65 20 6e 61 6d 65 73 |1];./* t|he names|
|00002b30| 20 6f 66 20 74 68 65 20 | 70 72 61 6d 65 74 65 72 | of the |prameter|
|00002b40| 73 20 2a 2f 0d 09 65 6e | 75 6d 20 7b 61 63 74 69 |s */..en|um {acti|
|00002b50| 76 65 2c 20 69 6e 61 63 | 74 69 76 65 2c 20 63 6f |ve, inac|tive, co|
|00002b60| 6e 73 74 61 6e 74 7d 3b | 09 09 09 09 09 09 2f 2a |nstant};|....../*|
|00002b70| 20 74 68 65 20 66 69 74 | 74 69 6e 67 20 73 74 61 | the fit|ting sta|
|00002b80| 74 65 20 6f 66 20 61 20 | 70 61 72 61 6d 65 74 65 |te of a |paramete|
|00002b90| 72 2c 20 75 73 65 64 20 | 74 6f 20 73 65 74 20 76 |r, used |to set v|
|00002ba0| 61 72 69 61 62 6c 65 73 | 20 6f 66 20 74 79 70 65 |ariables| of type|
|00002bb0| 20 50 61 72 61 6d 4d 6f | 64 65 20 20 2a 2f 0d 09 | ParamMo|de */..|
|00002bc0| 74 79 70 65 64 65 66 20 | 63 68 61 72 20 50 61 72 |typedef |char Par|
|00002bd0| 61 6d 4d 6f 64 65 3b 09 | 09 09 09 09 09 09 09 09 |amMode;.|........|
|00002be0| 2f 2a 20 74 68 65 20 66 | 69 74 74 69 6e 67 20 6d |/* the f|itting m|
|00002bf0| 6f 64 65 20 6f 66 20 61 | 20 70 61 72 61 6d 65 74 |ode of a| paramet|
|00002c00| 65 72 20 28 61 63 74 69 | 76 65 2c 20 69 6e 61 63 |er (acti|ve, inac|
|00002c10| 74 69 76 65 2c 20 63 6f | 6e 73 74 61 6e 74 29 20 |tive, co|nstant) |
|00002c20| 2a 2f 0d 0d 09 74 79 70 | 65 64 65 66 20 64 6f 75 |*/...typ|edef dou|
|00002c30| 62 6c 65 20 50 61 72 61 | 6d 41 72 72 61 79 5b 6d |ble Para|mArray[m|
|00002c40| 61 78 4e 72 50 61 72 61 | 6d 73 5d 3b 09 09 09 09 |axNrPara|ms];....|
|00002c50| 09 2f 2a 20 61 6e 20 61 | 72 72 61 79 20 74 6f 20 |./* an a|rray to |
|00002c60| 68 6f 6c 64 20 74 68 65 | 20 70 61 72 61 6d 65 74 |hold the| paramet|
|00002c70| 65 72 73 20 2a 2f 0d 09 | 74 79 70 65 64 65 66 20 |ers */..|typedef |
|00002c80| 50 61 72 61 6d 4d 6f 64 | 65 20 50 61 72 61 6d 4d |ParamMod|e ParamM|
|00002c90| 6f 64 65 41 72 72 61 79 | 5b 6d 61 78 4e 72 50 61 |odeArray|[maxNrPa|
|00002ca0| 72 61 6d 73 5d 3b 09 09 | 09 2f 2a 20 74 68 65 20 |rams];..|./* the |
|00002cb0| 66 69 74 74 69 6e 67 20 | 6d 6f 64 65 73 20 6f 66 |fitting |modes of|
|00002cc0| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 2c | the par|ameters,|
|00002cd0| 20 7b 61 63 74 69 76 65 | 2c 20 69 6e 61 63 74 69 | {active|, inacti|
|00002ce0| 76 65 2c 20 63 6f 6e 73 | 74 61 6e 74 7d 20 2a 2f |ve, cons|tant} */|
|00002cf0| 0d 09 74 79 70 65 64 65 | 66 20 50 61 72 61 6d 4e |..typede|f ParamN|
|00002d00| 61 6d 65 20 50 61 72 61 | 6d 4e 61 6d 65 41 72 72 |ame Para|mNameArr|
|00002d10| 61 79 5b 6d 61 78 4e 72 | 50 61 72 61 6d 73 5d 3b |ay[maxNr|Params];|
|00002d20| 09 09 09 2f 2a 20 74 68 | 65 20 6e 61 6d 65 73 20 |.../* th|e names |
|00002d30| 6f 66 20 74 68 65 20 70 | 61 72 61 6d 65 74 65 72 |of the p|arameter|
|00002d40| 73 20 2a 2f 0d 0d 23 69 | 66 20 64 65 66 69 6e 65 |s */..#i|f define|
|00002d50| 64 28 70 6f 77 65 72 63 | 29 20 7c 7c 20 64 65 66 |d(powerc|) || def|
|00002d60| 69 6e 65 64 20 28 5f 5f | 70 6f 77 65 72 63 29 0d |ined (__|powerc).|
|00002d70| 23 70 72 61 67 6d 61 20 | 6f 70 74 69 6f 6e 73 20 |#pragma |options |
|00002d80| 61 6c 69 67 6e 3d 6d 61 | 63 36 38 6b 0d 23 65 6e |align=ma|c68k.#en|
|00002d90| 64 69 66 0d 09 74 79 70 | 65 64 65 66 20 73 74 72 |dif..typ|edef str|
|00002da0| 75 63 74 0d 09 7b 0d 09 | 09 50 61 72 61 6d 41 72 |uct..{..|.ParamAr|
|00002db0| 72 61 79 2a 09 09 76 61 | 6c 75 65 3b 09 09 2f 2a |ray*..va|lue;../*|
|00002dc0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 76 61 6c | the def|ault val|
|00002dd0| 75 65 20 6f 66 20 74 68 | 65 20 70 61 72 61 6d 65 |ue of th|e parame|
|00002de0| 74 65 72 73 20 61 73 20 | 74 68 65 79 20 61 70 70 |ters as |they app|
|00002df0| 65 61 72 20 69 6e 20 70 | 61 72 61 6d 73 20 77 69 |ear in p|arams wi|
|00002e00| 6e 64 6f 77 20 2a 2f 20 | 20 20 20 20 0d 09 09 50 |ndow */ | ...P|
|00002e10| 61 72 61 6d 41 72 72 61 | 79 2a 09 09 6c 6f 77 65 |aramArra|y*..lowe|
|00002e20| 73 74 3b 09 09 2f 2a 20 | 74 68 65 20 6c 6f 77 65 |st;../* |the lowe|
|00002e30| 73 74 20 61 6c 6c 6f 77 | 65 64 20 76 61 6c 75 65 |st allow|ed value|
|00002e40| 20 28 66 6f 72 20 66 69 | 74 74 69 6e 67 29 20 09 | (for fi|tting) .|
|00002e50| 09 09 20 2a 2f 0d 09 09 | 50 61 72 61 6d 41 72 72 |.. */...|ParamArr|
|00002e60| 61 79 2a 09 09 68 69 67 | 68 65 73 74 3b 09 2f 2a |ay*..hig|hest;./*|
|00002e70| 20 74 68 65 20 68 69 67 | 68 65 73 74 20 61 6c 6c | the hig|hest all|
|00002e80| 6f 77 65 64 20 76 61 6c | 75 65 20 28 66 6f 72 20 |owed val|ue (for |
|00002e90| 66 69 74 74 69 6e 67 29 | 20 09 09 09 20 2a 2f 0d |fitting)| ... */.|
|00002ea0| 09 09 50 61 72 61 6d 4d | 6f 64 65 41 72 72 61 79 |..ParamM|odeArray|
|00002eb0| 2a 09 6d 6f 64 65 3b 09 | 09 2f 2a 20 74 68 65 20 |*.mode;.|./* the |
|00002ec0| 66 69 74 74 69 6e 67 20 | 6d 6f 64 65 20 6f 66 20 |fitting |mode of |
|00002ed0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 20 |the para|meters |
|00002ee0| 20 09 09 09 20 2a 2f 0d | 09 09 50 61 72 61 6d 4e | ... */.|..ParamN|
|00002ef0| 61 6d 65 41 72 72 61 79 | 2a 09 6e 61 6d 65 3b 09 |ameArray|*.name;.|
|00002f00| 09 2f 2a 20 74 68 65 69 | 72 20 6e 61 6d 65 73 20 |./* thei|r names |
|00002f10| 2a 2f 0d 09 7d 20 44 65 | 66 61 75 6c 74 50 61 72 |*/..} De|faultPar|
|00002f20| 61 6d 49 6e 66 6f 3b 0d | 09 0d 09 74 79 70 65 64 |amInfo;.|...typed|
|00002f30| 65 66 20 64 6f 75 62 6c | 65 20 47 6c 6f 62 61 6c |ef doubl|e Global|
|00002f40| 41 72 72 61 79 54 79 70 | 65 5b 31 30 30 5d 3b 0d |ArrayTyp|e[100];.|
|00002f50| 09 0d 09 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |...typed|ef struc|
|00002f60| 74 0d 09 7b 09 6c 6f 6e | 67 09 09 09 09 67 6c 6f |t..{.lon|g....glo|
|00002f70| 62 61 6c 53 63 72 61 74 | 63 68 31 3b 09 09 2f 2a |balScrat|ch1;../*|
|00002f80| 20 66 72 65 65 65 20 66 | 6f 72 20 75 73 65 20 69 | freee f|or use i|
|00002f90| 6e 20 65 78 74 65 72 6e | 61 6c 20 6d 6f 64 75 6c |n extern|al modul|
|00002fa0| 65 73 20 2a 2f 0d 09 09 | 6c 6f 6e 67 09 09 09 09 |es */...|long....|
|00002fb0| 67 6c 6f 62 61 6c 53 63 | 72 61 74 63 68 32 3b 09 |globalSc|ratch2;.|
|00002fc0| 09 2f 2a 20 66 72 65 65 | 65 20 66 6f 72 20 75 73 |./* free|e for us|
|00002fd0| 65 20 69 6e 20 65 78 74 | 65 72 6e 61 6c 20 6d 6f |e in ext|ernal mo|
|00002fe0| 64 75 6c 65 73 20 2a 2f | 0d 09 09 6c 6f 6e 67 09 |dules */|...long.|
|00002ff0| 09 09 09 67 6c 6f 62 61 | 6c 44 61 74 61 53 69 7a |...globa|lDataSiz|
|00003000| 65 3b 09 09 2f 2a 20 74 | 68 65 20 6e 75 6d 62 65 |e;../* t|he numbe|
|00003010| 72 20 6f 66 20 65 6e 74 | 72 69 65 73 20 69 6e 20 |r of ent|ries in |
|00003020| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 61 72 |the foll|owing ar|
|00003030| 72 61 79 20 2a 2f 0d 09 | 09 47 6c 6f 62 61 6c 41 |ray */..|.GlobalA|
|00003040| 72 72 61 79 54 79 70 65 | 2a 2a 09 67 6c 6f 62 61 |rrayType|**.globa|
|00003050| 6c 44 61 74 61 3b 09 09 | 09 2f 2a 20 61 72 72 61 |lData;..|./* arra|
|00003060| 79 20 6f 66 20 64 6f 75 | 62 6c 65 73 20 74 6f 20 |y of dou|bles to |
|00003070| 62 65 20 61 63 63 65 73 | 73 65 64 20 62 79 20 65 |be acces|sed by e|
|00003080| 78 74 65 72 6e 61 6c 20 | 61 6e 64 20 69 6e 74 65 |xternal |and inte|
|00003090| 72 61 6c 20 70 72 6f 67 | 72 61 6d 73 20 2a 2f 0d |ral prog|rams */.|
|000030a0| 09 7d 47 6c 6f 62 61 6c | 53 63 72 61 74 63 68 3b |.}Global|Scratch;|
|000030b0| 0d 0d 23 69 66 20 64 65 | 66 69 6e 65 64 28 70 6f |..#if de|fined(po|
|000030c0| 77 65 72 63 29 20 7c 7c | 20 64 65 66 69 6e 65 64 |werc) ||| defined|
|000030d0| 20 28 5f 5f 70 6f 77 65 | 72 63 29 0d 23 70 72 61 | (__powe|rc).#pra|
|000030e0| 67 6d 61 20 6f 70 74 69 | 6f 6e 73 20 61 6c 69 67 |gma opti|ons alig|
|000030f0| 6e 3d 72 65 73 65 74 0d | 23 65 6e 64 69 66 0d 0d |n=reset.|#endif..|
|00003100| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 70 72 6f 46 |..#inclu|de "proF|
|00003110| 69 74 5f 70 61 72 61 6d | 42 6c 6b 2e 68 22 0d 0d |it_param|Blk.h"..|
|00003120| 0d 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|00003130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003180| 2a 2a 2a 2f 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |***/./**|********|
|00003190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 66 75 6e 63 74 69 |********|* functi|
|000031a0| 6f 6e 73 20 74 68 61 74 | 20 6d 75 73 74 20 62 65 |ons that| must be|
|000031b0| 20 73 75 70 70 6c 69 65 | 64 20 62 79 20 74 68 65 | supplie|d by the|
|000031c0| 20 65 78 74 65 72 6e 61 | 6c 20 6d 6f 64 75 6c 65 | externa|l module|
|000031d0| 20 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *******|********|
|000031e0| 2a 2a 2a 2a 2a 2a 0d 0d | 20 09 74 68 65 20 66 6f |******..| .the fo|
|000031f0| 6c 6c 6f 77 69 6e 67 20 | 61 72 65 20 61 6c 6c 20 |llowing |are all |
|00003200| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |the func|tions th|
|00003210| 61 74 20 74 68 65 20 65 | 78 74 65 72 6e 61 6c 20 |at the e|xternal |
|00003220| 6d 6f 64 75 6c 65 20 6d | 75 73 74 2c 20 6f 72 20 |module m|ust, or |
|00003230| 63 61 6e 2c 20 73 75 70 | 70 6c 79 2e 0d 09 54 68 |can, sup|ply...Th|
|00003240| 65 79 20 61 72 65 20 75 | 73 65 64 20 69 6e 20 74 |ey are u|sed in t|
|00003250| 68 65 20 70 72 6f 63 65 | 64 75 72 65 20 6d 61 69 |he proce|dure mai|
|00003260| 6e 2c 20 64 65 66 69 6e | 65 64 20 69 6e 20 70 72 |n, defin|ed in pr|
|00003270| 6f 66 69 74 5f 69 6e 74 | 65 72 66 61 63 65 2e 63 |ofit_int|erface.c|
|00003280| 2e 0d 09 0d 09 41 6c 6c | 20 79 6f 75 20 6e 65 65 |.....All| you nee|
|00003290| 64 20 74 6f 20 6b 6e 6f | 77 20 74 6f 20 70 72 6f |d to kno|w to pro|
|000032a0| 67 72 61 6d 20 61 6e 20 | 65 78 74 65 72 6e 61 6c |gram an |external|
|000032b0| 20 6d 6f 64 75 6c 65 20 | 66 6f 72 20 70 72 6f 20 | module |for pro |
|000032c0| 46 69 74 20 61 72 65 20 | 74 68 65 73 65 0d 09 70 |Fit are |these..p|
|000032d0| 72 6f 74 6f 74 79 70 65 | 73 2e 0d 09 0d 09 4a 75 |rototype|s.....Ju|
|000032e0| 73 74 20 66 69 6c 6c 2d | 69 6e 20 79 6f 75 72 20 |st fill-|in your |
|000032f0| 63 6f 64 65 20 69 6e 20 | 74 68 65 20 74 65 6d 70 |code in |the temp|
|00003300| 6c 61 74 65 20 66 69 6c | 65 73 20 70 72 6f 76 69 |late fil|es provi|
|00003310| 64 65 64 20 28 46 75 6e | 63 74 69 6f 6e 54 65 6d |ded (Fun|ctionTem|
|00003320| 70 6c 61 74 65 2e 63 20 | 61 6e 64 20 50 72 6f 67 |plate.c |and Prog|
|00003330| 72 61 6d 54 65 6d 70 6c | 61 74 65 2e 63 29 0d 0d |ramTempl|ate.c)..|
|00003340| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003350| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003360| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000033a0| 2f 0d 0d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 20 |/..../**|******* |
|000033b0| 52 4f 55 54 49 4e 45 53 | 20 55 53 45 44 20 42 59 |ROUTINES| USED BY|
|000033c0| 20 41 4c 4c 20 45 58 54 | 45 52 4e 41 4c 20 4d 4f | ALL EXT|ERNAL MO|
|000033d0| 44 55 4c 45 53 20 28 62 | 6f 74 68 20 66 75 6e 63 |DULES (b|oth func|
|000033e0| 74 69 6f 6e 73 20 61 6e | 64 20 70 72 6f 67 72 61 |tions an|d progra|
|000033f0| 6d 73 29 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ms) ****|********|
|00003400| 2a 2a 2a 2f 0d 0d 76 6f | 69 64 20 53 65 74 55 70 |***/..vo|id SetUp|
|00003410| 20 28 09 73 68 6f 72 74 | 2a 20 63 6f 6e 73 74 20 | (.short|* const |
|00003420| 6d 6f 64 75 6c 65 4b 69 | 6e 64 2c 09 09 2f 2a 20 |moduleKi|nd,../* |
|00003430| 73 65 74 20 6d 6f 64 75 | 6c 65 4b 69 6e 64 20 74 |set modu|leKind t|
|00003440| 6f 20 69 73 46 75 6e 63 | 74 69 6f 6e 20 6f 72 20 |o isFunc|tion or |
|00003450| 69 73 50 72 6f 67 72 61 | 6d 20 2a 2f 0d 09 09 09 |isProgra|m */....|
|00003460| 09 53 74 72 32 35 35 20 | 6e 61 6d 65 2c 09 09 09 |.Str255 |name,...|
|00003470| 09 09 2f 2a 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |../* the| name of|
|00003480| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 6f 72 20 | the pro|gram or |
|00003490| 66 75 6e 63 74 69 6f 6e | 20 28 70 61 73 63 61 6c |function| (pascal|
|000034a0| 20 73 74 72 69 6e 67 29 | 20 2a 2f 0d 09 09 09 09 | string)| */.....|
|000034b0| 6c 6f 6e 67 2a 20 63 6f | 6e 73 74 20 72 65 71 75 |long* co|nst requ|
|000034c0| 69 72 65 64 47 6c 6f 62 | 61 6c 73 2c 09 2f 2a 20 |iredGlob|als,./* |
|000034d0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 62 79 |the numb|er of by|
|000034e0| 74 65 73 20 74 6f 20 62 | 65 20 61 6c 6c 6f 63 61 |tes to b|e alloca|
|000034f0| 74 65 64 20 69 6e 20 45 | 78 74 4d 6f 64 75 6c 65 |ted in E|xtModule|
|00003500| 73 50 61 72 61 6d 42 6c | 6f 63 6b 2e 67 6c 6f 62 |sParamBl|ock.glob|
|00003510| 61 6c 73 20 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |als */..|........|
|00003520| 09 09 09 2f 2a 20 73 65 | 74 20 72 65 71 75 69 72 |.../* se|t requir|
|00003530| 65 64 47 6c 6f 62 61 6c | 73 20 74 6f 20 30 20 69 |edGlobal|s to 0 i|
|00003540| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 75 73 65 20 |f you do|n't use |
|00003550| 74 68 69 73 20 66 65 61 | 74 75 72 65 20 2a 2f 0d |this fea|ture */.|
|00003560| 09 09 09 09 45 78 74 4d | 6f 64 75 6c 65 73 50 61 |....ExtM|odulesPa|
|00003570| 72 61 6d 42 6c 6f 63 6b | 2a 20 70 62 29 3b 09 09 |ramBlock|* pb);..|
|00003580| 2f 2a 20 74 68 65 20 63 | 6f 6d 70 6c 65 74 65 20 |/* the c|omplete |
|00003590| 70 61 72 61 6d 65 74 65 | 72 20 62 6c 6f 63 6b 20 |paramete|r block |
|000035a0| 70 61 73 73 65 64 20 62 | 79 20 70 72 6f 20 46 69 |passed b|y pro Fi|
|000035b0| 74 20 74 6f 20 74 68 65 | 20 2a 2f 0d 09 09 09 09 |t to the| */.....|
|000035c0| 09 09 09 09 09 09 09 09 | 2f 2a 20 72 6f 75 74 69 |........|/* routi|
|000035d0| 6e 65 73 20 64 65 66 69 | 6e 65 64 20 69 6e 20 74 |nes defi|ned in t|
|000035e0| 68 69 73 20 66 69 6c 65 | 2e 20 49 6e 20 6d 6f 73 |his file|. In mos|
|000035f0| 74 20 63 61 73 65 73 20 | 69 74 20 63 61 6e 20 62 |t cases |it can b|
|00003600| 65 20 69 67 6e 6f 72 65 | 64 20 2a 2f 0d 2f 2a 20 |e ignore|d */./* |
|00003610| 53 65 74 55 70 20 69 73 | 20 63 61 6c 6c 65 64 20 |SetUp is| called |
|00003620| 6f 6e 63 65 20 77 68 65 | 6e 20 74 68 65 20 65 78 |once whe|n the ex|
|00003630| 74 65 72 6e 61 6c 20 6d | 6f 64 75 6c 65 20 69 73 |ternal m|odule is|
|00003640| 20 6c 69 6e 6b 65 64 20 | 74 6f 20 70 72 6f 46 69 | linked |to proFi|
|00003650| 74 20 2a 2f 0d 0d 0d 76 | 6f 69 64 20 43 6c 65 61 |t */...v|oid Clea|
|00003660| 6e 55 70 20 28 45 78 74 | 4d 6f 64 75 6c 65 73 50 |nUp (Ext|ModulesP|
|00003670| 61 72 61 6d 42 6c 6f 63 | 6b 2a 20 70 62 29 3b 0d |aramBloc|k* pb);.|
|00003680| 09 2f 2a 20 63 61 6c 6c | 65 64 20 77 68 65 6e 20 |./* call|ed when |
|00003690| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 6f 72 20 |the func|tion or |
|000036a0| 70 72 6f 67 72 61 6d 20 | 69 73 20 72 65 6d 6f 76 |program |is remov|
|000036b0| 65 64 20 66 72 6f 6d 20 | 70 72 6f 20 46 69 74 27 |ed from |pro Fit'|
|000036c0| 73 20 6d 65 6e 75 73 20 | 2a 2f 0d 09 2f 2a 20 69 |s menus |*/../* i|
|000036d0| 6e 20 6d 6f 73 74 20 63 | 61 73 65 73 2c 20 74 68 |n most c|ases, th|
|000036e0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 63 61 6e 20 |is funct|ion can |
|000036f0| 62 65 20 65 6d 70 74 79 | 20 2a 2f 0d 0d 0d 0d 2f |be empty| */..../|
|00003700| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 20 20 52 |********|**** R|
|00003710| 4f 55 54 49 4e 45 53 20 | 55 53 45 44 20 57 48 45 |OUTINES |USED WHE|
|00003720| 4e 20 54 48 45 20 45 58 | 54 45 52 4e 41 4c 20 4d |N THE EX|TERNAL M|
|00003730| 4f 44 55 4c 45 20 49 53 | 20 41 20 46 55 4e 43 54 |ODULE IS| A FUNCT|
|00003740| 49 4f 4e 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ION ****|********|
|00003750| 2a 2a 2a 2a 2a 2a 2f 0d | 76 6f 69 64 20 49 6e 69 |******/.|void Ini|
|00003760| 74 69 61 6c 69 7a 65 46 | 75 6e 63 20 28 0d 09 09 |tializeF|unc (...|
|00003770| 09 09 42 6f 6f 6c 65 61 | 6e 2a 20 63 6f 6e 73 74 |..Boolea|n* const|
|00003780| 20 68 61 73 44 65 72 69 | 76 61 74 69 76 65 73 2c | hasDeri|vatives,|
|00003790| 09 2f 2a 20 73 65 74 20 | 74 68 69 73 20 74 6f 20 |./* set |this to |
|000037a0| 74 72 75 65 20 69 66 20 | 79 6f 75 20 64 6f 20 63 |true if |you do c|
|000037b0| 61 6c 63 75 6c 61 74 65 | 20 73 6f 6d 65 20 64 65 |alculate| some de|
|000037c0| 72 69 76 61 74 69 76 65 | 73 20 28 64 79 64 61 5b |rivative|s (dyda[|
|000037d0| 5d 29 20 69 6e 20 74 68 | 65 20 2a 2f 0d 09 09 09 |]) in th|e */....|
|000037e0| 09 09 09 09 09 09 09 09 | 09 2f 2a 20 22 44 65 72 |........|./* "Der|
|000037f0| 69 76 61 74 69 76 65 73 | 22 20 66 75 6e 63 74 69 |ivatives|" functi|
|00003800| 6f 6e 20 79 6f 75 20 64 | 65 66 69 6e 65 2e 20 41 |on you d|efine. A|
|00003810| 6e 79 20 64 65 72 69 76 | 61 74 69 76 65 73 20 79 |ny deriv|atives y|
|00003820| 6f 75 20 64 6f 6e 27 74 | 20 63 61 6c 63 75 6c 61 |ou don't| calcula|
|00003830| 74 65 20 77 69 6c 6c 20 | 62 65 20 63 61 6c 63 75 |te will |be calcu|
|00003840| 6c 61 74 65 64 20 6e 75 | 6d 65 72 69 63 61 6c 6c |lated nu|mericall|
|00003850| 79 20 62 79 20 70 72 6f | 20 46 69 74 20 2a 2f 0d |y by pro| Fit */.|
|00003860| 09 09 09 09 53 74 72 32 | 35 35 20 64 65 73 63 72 |....Str2|55 descr|
|00003870| 31 73 74 4c 69 6e 65 2c | 09 09 09 2f 2a 20 66 69 |1stLine,|.../* fi|
|00003880| 72 73 74 20 6c 69 6e 65 | 20 6f 66 20 74 68 65 20 |rst line| of the |
|00003890| 74 65 78 74 20 69 6e 20 | 74 68 65 20 70 61 72 61 |text in |the para|
|000038a0| 6d 65 74 65 72 20 77 69 | 6e 64 6f 77 20 2a 2f 0d |meter wi|ndow */.|
|000038b0| 09 09 09 09 53 74 72 32 | 35 35 20 64 65 73 63 72 |....Str2|55 descr|
|000038c0| 32 6e 64 4c 69 6e 65 2c | 09 09 09 2f 2a 20 73 65 |2ndLine,|.../* se|
|000038d0| 63 6f 6e 64 20 6c 69 6e | 65 20 6f 66 20 74 68 65 |cond lin|e of the|
|000038e0| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 70 61 72 | text in| the par|
|000038f0| 61 6d 65 74 65 72 20 77 | 69 6e 64 6f 77 20 2a 2f |ameter w|indow */|
|00003900| 0d 09 09 09 09 73 68 6f | 72 74 2a 20 63 6f 6e 73 |.....sho|rt* cons|
|00003910| 74 20 6e 75 6d 62 65 72 | 4f 66 50 61 72 61 6d 73 |t number|OfParams|
|00003920| 2c 09 2f 2a 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |,./* the| number |
|00003930| 6f 66 20 70 61 72 61 6d | 65 74 65 72 73 20 6f 66 |of param|eters of|
|00003940| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 2a 2f | the fun|ction */|
|00003950| 0d 09 09 09 09 44 65 66 | 61 75 6c 74 50 61 72 61 |.....Def|aultPara|
|00003960| 6d 49 6e 66 6f 2a 20 63 | 6f 6e 73 74 20 61 30 2c |mInfo* c|onst a0,|
|00003970| 09 09 2f 2a 20 74 68 65 | 20 64 65 66 61 75 6c 74 |../* the| default|
|00003980| 20 6e 61 6d 65 73 2c 20 | 76 61 6c 75 65 73 20 65 | names, |values e|
|00003990| 74 63 2e 20 6f 66 20 74 | 68 65 20 70 61 72 61 6d |tc. of t|he param|
|000039a0| 65 74 65 72 73 20 2a 2f | 0d 09 09 09 09 45 78 74 |eters */|.....Ext|
|000039b0| 4d 6f 64 75 6c 65 73 50 | 61 72 61 6d 42 6c 6f 63 |ModulesP|aramBloc|
|000039c0| 6b 2a 20 70 62 29 3b 09 | 09 2f 2a 20 74 68 65 20 |k* pb);.|./* the |
|000039d0| 63 6f 6d 70 6c 65 74 65 | 20 70 61 72 61 6d 65 74 |complete| paramet|
|000039e0| 65 72 20 62 6c 6f 63 6b | 20 70 61 73 73 65 64 20 |er block| passed |
|000039f0| 62 79 20 70 72 6f 20 46 | 69 74 20 74 6f 20 74 68 |by pro F|it to th|
|00003a00| 65 20 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 09 09 |e */....|........|
|00003a10| 09 2f 2a 20 72 6f 75 74 | 69 6e 65 73 20 64 65 66 |./* rout|ines def|
|00003a20| 69 6e 65 64 20 69 6e 20 | 74 68 69 73 20 66 69 6c |ined in |this fil|
|00003a30| 65 2e 20 49 6e 20 6d 6f | 73 74 20 63 61 73 65 73 |e. In mo|st cases|
|00003a40| 20 69 74 20 63 61 6e 20 | 62 65 20 69 67 6e 6f 72 | it can |be ignor|
|00003a50| 65 64 20 2a 2f 0d 2f 2a | 20 49 6e 69 74 69 61 6c |ed */./*| Initial|
|00003a60| 69 7a 65 46 75 6e 63 20 | 69 73 20 63 61 6c 6c 65 |izeFunc |is calle|
|00003a70| 64 20 6f 6e 63 65 20 28 | 61 66 74 65 72 20 53 65 |d once (|after Se|
|00003a80| 74 55 70 20 68 61 73 20 | 62 65 65 6e 20 63 61 6c |tUp has |been cal|
|00003a90| 6c 65 64 29 20 77 68 65 | 6e 20 74 68 65 20 65 78 |led) whe|n the ex|
|00003aa0| 74 65 72 6e 61 6c 20 6d | 6f 64 75 6c 65 20 69 73 |ternal m|odule is|
|00003ab0| 20 6c 69 6e 6b 65 64 20 | 74 6f 20 70 72 6f 46 69 | linked |to proFi|
|00003ac0| 74 20 2a 2f 0d 2f 2a 20 | 55 73 65 64 20 74 6f 20 |t */./* |Used to |
|00003ad0| 73 65 74 20 61 6c 6c 20 | 74 68 65 20 69 6e 66 6f |set all |the info|
|00003ae0| 72 6d 61 74 69 6f 6e 20 | 6e 65 65 64 65 64 20 74 |rmation |needed t|
|00003af0| 6f 20 64 65 73 63 72 69 | 62 65 20 61 20 66 75 6e |o descri|be a fun|
|00003b00| 63 74 69 6f 6e 20 2a 2f | 0d 0d 73 68 6f 72 74 20 |ction */|..short |
|00003b10| 43 68 65 63 6b 28 73 68 | 6f 72 74 20 70 61 72 61 |Check(sh|ort para|
|00003b20| 6d 4e 6f 2c 09 09 09 09 | 09 09 2f 2a 20 74 68 65 |mNo,....|../* the|
|00003b30| 20 70 61 72 61 6d 65 74 | 65 72 20 74 68 61 74 20 | paramet|er that |
|00003b40| 77 61 73 20 63 68 61 6e | 67 65 64 20 2a 2f 0d 09 |was chan|ged */..|
|00003b50| 09 09 09 44 65 66 61 75 | 6c 74 50 61 72 61 6d 49 |...Defau|ltParamI|
|00003b60| 6e 66 6f 2a 20 63 6f 6e | 73 74 20 61 30 2c 09 09 |nfo* con|st a0,..|
|00003b70| 2f 2a 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 6e |/* the d|efault n|
|00003b80| 61 6d 65 73 2c 20 76 61 | 6c 75 65 73 20 65 74 63 |ames, va|lues etc|
|00003b90| 20 6f 66 20 74 68 65 20 | 70 61 72 61 6d 74 65 72 | of the |paramter|
|00003ba0| 73 20 2a 2f 0d 09 09 09 | 09 45 78 74 4d 6f 64 75 |s */....|.ExtModu|
|00003bb0| 6c 65 73 50 61 72 61 6d | 42 6c 6f 63 6b 2a 20 70 |lesParam|Block* p|
|00003bc0| 62 29 3b 09 09 2f 2a 20 | 74 68 65 20 63 6f 6d 70 |b);../* |the comp|
|00003bd0| 6c 65 74 65 20 70 61 72 | 61 6d 65 74 65 72 20 62 |lete par|ameter b|
|00003be0| 6c 6f 63 6b 20 70 61 73 | 73 65 64 20 62 79 20 70 |lock pas|sed by p|
|00003bf0| 72 6f 20 46 69 74 20 74 | 6f 20 74 68 65 20 2a 2f |ro Fit t|o the */|
|00003c00| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 2f 2a 20 |........|...../* |
|00003c10| 72 6f 75 74 69 6e 65 73 | 20 64 65 66 69 6e 65 64 |routines| defined|
|00003c20| 20 69 6e 20 74 68 69 73 | 20 66 69 6c 65 2e 20 49 | in this| file. I|
|00003c30| 6e 20 6d 6f 73 74 20 63 | 61 73 65 73 20 69 74 20 |n most c|ases it |
|00003c40| 63 61 6e 20 62 65 20 69 | 67 6e 6f 72 65 64 20 2a |can be i|gnored *|
|00003c50| 2f 0d 09 2f 2a 20 43 61 | 6e 20 62 65 20 6c 65 66 |/../* Ca|n be lef|
|00003c60| 74 20 65 6d 74 70 79 20 | 28 72 65 74 75 72 6e 69 |t emtpy |(returni|
|00003c70| 6e 67 20 67 6f 6f 64 29 | 20 69 66 20 6e 6f 74 20 |ng good)| if not |
|00003c80| 6e 65 65 64 65 64 2e 20 | 2a 2f 0d 09 2f 2a 20 63 |needed. |*/../* c|
|00003c90| 61 6c 6c 65 64 20 77 68 | 65 6e 20 74 68 65 20 75 |alled wh|en the u|
|00003ca0| 73 65 72 20 68 61 73 20 | 63 68 61 6e 67 65 64 20 |ser has |changed |
|00003cb0| 61 20 76 61 6c 75 65 20 | 69 6e 20 74 68 65 20 70 |a value |in the p|
|00003cc0| 61 72 61 6d 65 74 65 72 | 73 20 77 69 6e 64 6f 77 |arameter|s window|
|00003cd0| 2e 20 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 2a |. This r|outine *|
|00003ce0| 2f 0d 09 2f 2a 20 63 61 | 6e 20 74 68 65 6e 20 63 |/../* ca|n then c|
|00003cf0| 68 65 63 6b 20 69 66 20 | 74 68 69 73 20 70 61 72 |heck if |this par|
|00003d00| 61 6d 65 74 65 72 73 20 | 69 73 20 66 69 6e 65 2e |ameters |is fine.|
|00003d10| 20 49 74 20 63 61 6e 20 | 61 6c 73 6f 20 63 68 61 | It can |also cha|
|00003d20| 6e 67 65 20 73 6f 6d 65 | 20 6f 66 20 74 68 65 20 |nge some| of the |
|00003d30| 2a 2f 0d 09 2f 2a 20 6f | 74 68 65 72 20 65 6e 74 |*/../* o|ther ent|
|00003d40| 72 69 65 73 20 69 6e 20 | 61 30 2e 20 54 68 65 20 |ries in |a0. The |
|00003d50| 72 65 74 75 72 6e 65 64 | 20 76 61 6c 75 65 73 20 |returned| values |
|00003d60| 63 61 6e 20 62 65 3a 20 | 2a 2f 0d 09 2f 2a 09 67 |can be: |*/../*.g|
|00003d70| 6f 6f 64 3a 09 09 72 65 | 74 75 72 6e 20 74 68 69 |ood:..re|turn thi|
|00003d80| 73 20 76 61 6c 75 65 20 | 69 66 20 79 6f 75 20 61 |s value |if you a|
|00003d90| 67 72 65 65 20 77 69 74 | 68 20 74 68 65 20 6e 65 |gree wit|h the ne|
|00003da0| 77 20 70 61 72 61 6d 65 | 74 65 72 20 76 61 6c 75 |w parame|ter valu|
|00003db0| 65 20 2a 2f 0d 09 2f 2a | 09 75 70 64 61 74 65 3a |e */../*|.update:|
|00003dc0| 09 09 72 65 74 75 72 6e | 20 74 68 69 73 20 76 61 |..return| this va|
|00003dd0| 6c 75 65 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |lue if y|ou want |
|00003de0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 77 |the para|meters w|
|00003df0| 69 6e 64 6f 77 20 2a 2f | 0d 09 2f 2a 09 09 09 09 |indow */|../*....|
|00003e00| 74 6f 20 62 65 20 75 70 | 64 61 74 65 64 20 62 65 |to be up|dated be|
|00003e10| 63 61 75 73 65 20 79 6f | 75 20 63 68 61 6e 67 65 |cause yo|u change|
|00003e20| 64 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 76 61 |d some o|f the va|
|00003e30| 6c 75 65 73 20 69 6e 20 | 61 30 20 2a 2f 0d 09 2f |lues in |a0 */../|
|00003e40| 2a 09 62 61 64 3a 09 09 | 72 65 74 75 72 6e 20 74 |*.bad:..|return t|
|00003e50| 68 69 73 20 76 61 6c 75 | 65 20 69 66 20 79 6f 75 |his valu|e if you|
|00003e60| 20 77 61 6e 74 20 74 68 | 65 20 6e 65 77 20 70 61 | want th|e new pa|
|00003e70| 72 61 6d 65 74 65 72 20 | 76 61 6c 75 65 20 74 6f |rameter |value to|
|00003e80| 20 62 65 20 72 65 66 75 | 73 65 64 20 2a 2f 0d 0d | be refu|sed */..|
|00003e90| 76 6f 69 64 20 46 69 72 | 73 74 20 28 09 50 61 72 |void Fir|st (.Par|
|00003ea0| 61 6d 41 72 72 61 79 20 | 61 2c 09 09 09 09 2f 2a |amArray |a,..../*|
|00003eb0| 20 74 68 65 20 6e 65 77 | 20 70 61 72 61 6d 65 74 | the new| paramet|
|00003ec0| 65 72 73 20 2a 2f 0d 09 | 09 09 09 45 78 74 4d 6f |ers */..|...ExtMo|
|00003ed0| 64 75 6c 65 73 50 61 72 | 61 6d 42 6c 6f 63 6b 2a |dulesPar|amBlock*|
|00003ee0| 20 70 62 29 3b 09 2f 2a | 20 74 68 65 20 63 6f 6d | pb);./*| the com|
|00003ef0| 70 6c 65 74 65 20 70 61 | 72 61 6d 65 74 65 72 20 |plete pa|rameter |
|00003f00| 62 6c 6f 63 6b 20 70 61 | 73 73 65 64 20 62 79 20 |block pa|ssed by |
|00003f10| 70 72 6f 20 46 69 74 20 | 74 6f 20 74 68 65 20 2a |pro Fit |to the *|
|00003f20| 2f 0d 09 09 09 09 09 09 | 09 09 09 09 09 2f 2a 20 |/.......|...../* |
|00003f30| 72 6f 75 74 69 6e 65 73 | 20 64 65 66 69 6e 65 64 |routines| defined|
|00003f40| 20 69 6e 20 74 68 69 73 | 20 66 69 6c 65 2e 20 49 | in this| file. I|
|00003f50| 6e 20 6d 6f 73 74 20 63 | 61 73 65 73 20 69 74 20 |n most c|ases it |
|00003f60| 63 61 6e 20 62 65 20 69 | 67 6e 6f 72 65 64 20 2a |can be i|gnored *|
|00003f70| 2f 0d 09 2f 2a 20 43 61 | 6e 20 62 65 20 6c 65 66 |/../* Ca|n be lef|
|00003f80| 74 20 65 6d 74 70 79 20 | 69 66 20 6e 6f 74 20 6e |t emtpy |if not n|
|00003f90| 65 65 64 65 64 2e 20 2a | 2f 0d 09 2f 2a 20 43 61 |eeded. *|/../* Ca|
|00003fa0| 6c 6c 65 64 20 77 68 65 | 6e 65 76 65 72 20 74 68 |lled whe|never th|
|00003fb0| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 61 72 65 |e parame|ters are|
|00003fc0| 20 63 68 61 6e 67 65 64 | 2e 20 43 61 6e 20 62 65 | changed|. Can be|
|00003fd0| 20 75 73 65 64 20 74 6f | 20 61 63 63 65 6c 65 72 | used to| acceler|
|00003fe0| 61 74 65 20 2a 2f 0d 09 | 2f 2a 20 73 6f 6d 65 20 |ate */..|/* some |
|00003ff0| 63 61 6c 63 75 6c 61 74 | 69 6f 6e 73 2e 20 53 65 |calculat|ions. Se|
|00004000| 65 20 6d 61 6e 75 61 6c | 20 66 6f 72 20 6d 6f 72 |e manual| for mor|
|00004010| 65 20 69 6e 66 6f 20 2a | 2f 0d 0d 76 6f 69 64 20 |e info *|/..void |
|00004020| 46 75 6e 63 20 28 09 09 | 64 6f 75 62 6c 65 20 78 |Func (..|double x|
|00004030| 2c 09 09 09 09 09 09 2f | 2a 20 74 68 65 20 78 2d |,....../|* the x-|
|00004040| 76 61 6c 75 65 20 2a 2f | 0d 09 09 09 09 50 61 72 |value */|.....Par|
|00004050| 61 6d 41 72 72 61 79 20 | 61 2c 09 09 09 09 09 2f |amArray |a,...../|
|00004060| 2a 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |* the pa|rameters|
|00004070| 20 2a 2f 0d 09 09 09 09 | 64 6f 75 62 6c 65 2a 20 | */.....|double* |
|00004080| 63 6f 6e 73 74 20 79 2c | 09 09 09 09 2f 2a 20 74 |const y,|..../* t|
|00004090| 68 65 20 79 2d 76 61 6c | 75 65 20 74 6f 20 62 65 |he y-val|ue to be|
|000040a0| 20 72 65 74 75 72 6e 65 | 64 20 2a 2f 0d 09 09 09 | returne|d */....|
|000040b0| 09 45 78 74 4d 6f 64 75 | 6c 65 73 50 61 72 61 6d |.ExtModu|lesParam|
|000040c0| 42 6c 6f 63 6b 2a 20 70 | 62 29 3b 09 09 2f 2a 20 |Block* p|b);../* |
|000040d0| 74 68 65 20 63 6f 6d 70 | 6c 65 74 65 20 70 61 72 |the comp|lete par|
|000040e0| 61 6d 65 74 65 72 20 62 | 6c 6f 63 6b 20 70 61 73 |ameter b|lock pas|
|000040f0| 73 65 64 20 62 79 20 70 | 72 6f 20 46 69 74 20 74 |sed by p|ro Fit t|
|00004100| 6f 20 74 68 65 20 2a 2f | 0d 09 09 09 09 09 09 09 |o the */|........|
|00004110| 09 09 09 09 09 2f 2a 20 | 72 6f 75 74 69 6e 65 73 |...../* |routines|
|00004120| 20 64 65 66 69 6e 65 64 | 20 69 6e 20 74 68 69 73 | defined| in this|
|00004130| 20 66 69 6c 65 2e 20 49 | 6e 20 6d 6f 73 74 20 63 | file. I|n most c|
|00004140| 61 73 65 73 20 69 74 20 | 63 61 6e 20 62 65 20 69 |ases it |can be i|
|00004150| 67 6e 6f 72 65 64 20 2a | 2f 0d 09 2f 2a 20 63 61 |gnored *|/../* ca|
|00004160| 6c 6c 65 64 20 74 6f 20 | 63 61 6c 63 75 6c 61 74 |lled to |calculat|
|00004170| 65 20 74 68 65 20 79 2d | 76 61 6c 75 65 20 6f 66 |e the y-|value of|
|00004180| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 66 6f | the fun|ction fo|
|00004190| 72 20 61 20 67 69 76 65 | 6e 20 78 20 61 6e 64 20 |r a give|n x and |
|000041a0| 61 20 67 69 76 65 6e 20 | 2a 2f 0d 09 2f 2a 20 73 |a given |*/../* s|
|000041b0| 65 74 20 6f 66 20 70 61 | 72 61 6d 65 74 65 72 73 |et of pa|rameters|
|000041c0| 20 2a 2f 0d 0d 76 6f 69 | 64 20 44 65 72 69 76 61 | */..voi|d Deriva|
|000041d0| 74 69 76 65 73 28 64 6f | 75 62 6c 65 20 78 2c 09 |tives(do|uble x,.|
|000041e0| 09 09 09 09 09 2f 2a 20 | 74 68 65 20 78 2d 76 61 |...../* |the x-va|
|000041f0| 6c 75 65 20 2a 2f 0d 09 | 09 09 09 50 61 72 61 6d |lue */..|...Param|
|00004200| 41 72 72 61 79 20 61 2c | 09 09 09 09 09 2f 2a 20 |Array a,|...../* |
|00004210| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 2a |the para|meters *|
|00004220| 2f 0d 09 09 09 09 50 61 | 72 61 6d 41 72 72 61 79 |/.....Pa|ramArray|
|00004230| 20 64 79 64 61 2c 09 09 | 09 09 2f 2a 20 74 68 65 | dyda,..|../* the|
|00004240| 20 64 65 72 69 76 61 74 | 69 76 65 73 20 74 6f 20 | derivat|ives to |
|00004250| 62 65 20 72 65 74 75 72 | 6e 65 64 20 2a 2f 0d 09 |be retur|ned */..|
|00004260| 09 09 09 45 78 74 4d 6f | 64 75 6c 65 73 50 61 72 |...ExtMo|dulesPar|
|00004270| 61 6d 42 6c 6f 63 6b 2a | 20 70 62 29 3b 09 09 2f |amBlock*| pb);../|
|00004280| 2a 20 74 68 65 20 63 6f | 6d 70 6c 65 74 65 20 70 |* the co|mplete p|
|00004290| 61 72 61 6d 65 74 65 72 | 20 62 6c 6f 63 6b 20 70 |arameter| block p|
|000042a0| 61 73 73 65 64 20 62 79 | 20 70 72 6f 20 46 69 74 |assed by| pro Fit|
|000042b0| 20 74 6f 20 74 68 65 20 | 2a 2f 0d 09 09 09 09 09 | to the |*/......|
|000042c0| 09 09 09 09 09 09 09 2f | 2a 20 72 6f 75 74 69 6e |......./|* routin|
|000042d0| 65 73 20 64 65 66 69 6e | 65 64 20 69 6e 20 74 68 |es defin|ed in th|
|000042e0| 69 73 20 66 69 6c 65 2e | 20 49 6e 20 6d 6f 73 74 |is file.| In most|
|000042f0| 20 63 61 73 65 73 20 69 | 74 20 63 61 6e 20 62 65 | cases i|t can be|
|00004300| 20 69 67 6e 6f 72 65 64 | 20 2a 2f 0d 09 2f 2a 20 | ignored| */../* |
|00004310| 63 61 6c 6c 65 64 20 74 | 6f 20 63 61 6c 63 75 6c |called t|o calcul|
|00004320| 61 74 65 20 74 68 65 20 | 70 61 72 74 69 61 6c 20 |ate the |partial |
|00004330| 64 65 72 69 76 61 74 69 | 76 65 73 20 6f 66 20 74 |derivati|ves of t|
|00004340| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 77 69 74 68 |he funct|ion with|
|00004350| 20 72 65 73 70 65 63 74 | 20 74 6f 20 2a 2f 0d 09 | respect| to */..|
|00004360| 2f 2a 20 69 74 73 20 70 | 61 72 61 6d 65 74 65 72 |/* its p|arameter|
|00004370| 73 2e 20 54 68 65 20 65 | 6c 65 6d 65 6e 74 73 20 |s. The e|lements |
|00004380| 6f 66 20 74 68 65 20 61 | 72 72 61 79 20 22 64 79 |of the a|rray "dy|
|00004390| 64 61 5b 69 5d 22 20 6d | 75 73 74 20 62 65 20 73 |da[i]" m|ust be s|
|000043a0| 65 74 20 74 6f 20 74 68 | 65 20 64 65 72 69 76 61 |et to th|e deriva|
|000043b0| 74 69 76 65 73 20 6f 66 | 09 2a 2f 0d 09 2f 2a 20 |tives of|.*/../* |
|000043c0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 74 |the func|tion wit|
|000043d0| 68 20 72 65 73 70 65 63 | 74 20 74 6f 20 70 61 72 |h respec|t to par|
|000043e0| 61 6d 65 74 65 72 20 6e | 75 6d 62 65 72 20 22 69 |ameter n|umber "i|
|000043f0| 22 2e 20 49 66 20 61 6e | 79 20 64 79 64 61 5b 69 |". If an|y dyda[i|
|00004400| 5d 20 69 73 20 6e 6f 74 | 20 73 65 74 20 62 79 20 |] is not| set by |
|00004410| 09 2a 2f 0d 09 2f 2a 20 | 74 68 69 73 20 66 75 6e |.*/../* |this fun|
|00004420| 63 74 69 6f 6e 2c 20 74 | 68 65 6e 20 74 68 65 20 |ction, t|hen the |
|00004430| 64 65 72 69 76 61 74 69 | 76 65 73 20 77 69 6c 6c |derivati|ves will|
|00004440| 20 62 65 20 63 61 6c 63 | 75 6c 61 74 65 64 20 6e | be calc|ulated n|
|00004450| 75 6d 65 72 69 63 61 6c | 6c 79 20 62 79 20 70 72 |umerical|ly by pr|
|00004460| 6f 20 46 69 74 2e 20 2a | 2f 0d 09 2f 2a 20 49 66 |o Fit. *|/../* If|
|00004470| 20 79 6f 75 20 73 65 74 | 20 68 61 73 44 65 72 69 | you set| hasDeri|
|00004480| 76 61 74 69 76 65 73 20 | 74 6f 20 66 61 6c 73 65 |vatives |to false|
|00004490| 20 69 6e 20 46 75 6e 63 | 49 6e 69 74 69 61 6c 69 | in Func|Initiali|
|000044a0| 7a 65 2c 20 74 68 65 6e | 20 41 4c 4c 20 64 65 72 |ze, then| ALL der|
|000044b0| 69 76 61 74 69 76 65 73 | 20 77 69 6c 6c 20 61 6c |ivatives| will al|
|000044c0| 77 61 79 73 20 2a 2f 0d | 09 2f 2a 20 62 65 20 63 |ways */.|./* be c|
|000044d0| 61 6c 63 75 61 74 65 64 | 20 6e 75 6d 65 72 69 63 |alcuated| numeric|
|000044e0| 61 6c 6c 79 20 62 79 20 | 70 72 6f 20 46 69 74 2c |ally by |pro Fit,|
|000044f0| 20 6e 6f 20 6d 61 74 74 | 65 72 20 77 68 61 74 20 | no matt|er what |
|00004500| 79 6f 75 20 64 6f 20 69 | 6e 20 74 68 65 20 66 75 |you do i|n the fu|
|00004510| 6e 63 74 69 6f 6e 20 22 | 44 65 72 69 76 61 74 69 |nction "|Derivati|
|00004520| 76 65 73 22 20 2a 2f 0d | 09 2f 2a 20 49 66 20 61 |ves" */.|./* If a|
|00004530| 20 64 65 72 69 76 61 74 | 69 76 65 20 69 73 20 74 | derivat|ive is t|
|00004540| 6f 6f 20 63 6f 6d 70 6c | 69 63 61 74 65 64 20 74 |oo compl|icated t|
|00004550| 6f 20 62 65 20 63 61 6c | 63 75 6c 61 74 65 64 20 |o be cal|culated |
|00004560| 61 6e 61 6c 79 74 69 63 | 61 6c 6c 79 2c 20 74 68 |analytic|ally, th|
|00004570| 65 6e 20 64 6f 6e 27 74 | 20 73 65 74 20 74 68 65 |en don't| set the|
|00004580| 20 2a 2f 0d 09 2f 2a 20 | 63 6f 72 72 65 73 70 6f | */../* |correspo|
|00004590| 6e 64 69 6e 67 20 22 64 | 79 64 61 22 2e 20 70 72 |nding "d|yda". pr|
|000045a0| 6f 20 46 69 74 20 77 69 | 6c 6c 20 6e 6f 74 69 63 |o Fit wi|ll notic|
|000045b0| 65 20 74 68 69 73 20 61 | 6e 64 20 63 61 6c 63 75 |e this a|nd calcu|
|000045c0| 6c 61 74 65 20 74 68 61 | 74 20 64 65 72 69 76 61 |late tha|t deriva|
|000045d0| 74 69 76 65 20 6e 75 6d | 65 72 69 63 61 6c 6c 79 |tive num|erically|
|000045e0| 2e 20 2a 2f 0d 09 2f 2a | 20 49 66 20 79 6f 75 20 |. */../*| If you |
|000045f0| 61 72 65 20 61 62 6c 65 | 20 74 6f 20 63 61 6c 63 |are able| to calc|
|00004600| 75 6c 61 74 65 20 74 68 | 65 20 64 79 64 61 20 61 |ulate th|e dyda a|
|00004610| 6e 61 6c 79 74 69 63 61 | 6c 6c 79 2c 20 64 6f 20 |nalytica|lly, do |
|00004620| 73 6f 21 20 42 79 20 64 | 6f 69 6e 67 20 74 68 69 |so! By d|oing thi|
|00004630| 73 20 79 6f 75 20 77 69 | 6c 6c 20 6d 61 6b 65 20 |s you wi|ll make |
|00004640| 2a 2f 0d 09 2f 2a 20 66 | 69 74 74 69 6e 67 20 6d |*/../* f|itting m|
|00004650| 75 63 68 2c 20 6d 75 63 | 68 20 66 61 73 74 65 72 |uch, muc|h faster|
|00004660| 2e 20 2a 2f 0d 09 0d 76 | 6f 69 64 20 4c 61 73 74 |. */...v|oid Last|
|00004670| 20 28 45 78 74 4d 6f 64 | 75 6c 65 73 50 61 72 61 | (ExtMod|ulesPara|
|00004680| 6d 42 6c 6f 63 6b 2a 20 | 70 62 29 3b 0d 09 2f 2a |mBlock* |pb);../*|
|00004690| 20 43 61 6e 20 62 65 20 | 6c 65 66 74 20 65 6d 74 | Can be |left emt|
|000046a0| 70 79 20 69 66 20 6e 6f | 74 20 6e 65 65 64 65 64 |py if no|t needed|
|000046b0| 2e 20 2a 2f 0d 09 2f 2a | 20 43 61 6c 6c 65 64 20 |. */../*| Called |
|000046c0| 77 68 65 6e 20 63 61 6c | 63 75 6c 61 74 69 6e 67 |when cal|culating|
|000046d0| 20 69 73 20 74 68 72 6f | 75 67 68 2e 20 53 65 65 | is thro|ugh. See|
|000046e0| 20 6d 61 6e 75 61 6c 20 | 66 6f 72 20 6d 6f 72 65 | manual |for more|
|000046f0| 20 69 6e 66 6f 20 2a 2f | 0d 0d 0d 2f 2a 2a 2a 2a | info */|.../****|
|00004700| 2a 2a 2a 2a 2a 2a 2a 2a | 20 20 20 52 4f 55 54 49 |********| ROUTI|
|00004710| 4e 45 53 20 55 53 45 44 | 20 57 48 45 4e 20 54 48 |NES USED| WHEN TH|
|00004720| 45 20 45 58 54 45 52 4e | 41 4c 20 4d 4f 44 55 4c |E EXTERN|AL MODUL|
|00004730| 45 20 49 53 20 41 20 50 | 52 4f 47 52 41 4d 20 2a |E IS A P|ROGRAM *|
|00004740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004750| 2a 2f 0d 0d 76 6f 69 64 | 20 49 6e 69 74 69 61 6c |*/..void| Initial|
|00004760| 69 7a 65 50 72 6f 67 20 | 28 45 78 74 4d 6f 64 75 |izeProg |(ExtModu|
|00004770| 6c 65 73 50 61 72 61 6d | 42 6c 6f 63 6b 2a 20 70 |lesParam|Block* p|
|00004780| 62 29 3b 0d 09 2f 2a 20 | 43 61 6e 20 62 65 20 6c |b);../* |Can be l|
|00004790| 65 66 74 20 65 6d 74 70 | 79 20 69 66 20 6e 6f 74 |eft emtp|y if not|
|000047a0| 20 6e 65 65 64 65 64 2e | 20 2a 2f 0d 09 2f 2a 20 | needed.| */../* |
|000047b0| 63 61 6c 6c 65 64 20 77 | 68 65 6e 20 74 68 65 20 |called w|hen the |
|000047c0| 72 65 73 6f 75 72 63 65 | 20 69 73 20 6c 69 6e 6b |resource| is link|
|000047d0| 65 64 20 74 6f 20 70 72 | 6f 46 69 74 20 61 66 74 |ed to pr|oFit aft|
|000047e0| 65 72 20 53 65 74 55 70 | 20 77 61 73 20 63 61 6c |er SetUp| was cal|
|000047f0| 6c 65 64 20 2a 2f 0d 09 | 2f 2a 20 63 61 6e 20 62 |led */..|/* can b|
|00004800| 65 20 75 73 65 64 20 74 | 6f 20 69 6e 69 74 69 74 |e used t|o initit|
|00004810| 69 61 6c 69 7a 65 20 67 | 6c 6f 62 61 6c 20 76 61 |ialize g|lobal va|
|00004820| 72 69 61 62 6c 65 73 2c | 20 65 74 63 2e 20 2a 2f |riables,| etc. */|
|00004830| 0d 0d 0d 76 6f 69 64 20 | 52 75 6e 28 45 78 74 4d |...void |Run(ExtM|
|00004840| 6f 64 75 6c 65 73 50 61 | 72 61 6d 42 6c 6f 63 6b |odulesPa|ramBlock|
|00004850| 2a 20 70 62 29 3b 0d 2f | 2a 20 70 72 6f 20 46 69 |* pb);./|* pro Fi|
|00004860| 74 20 63 61 6c 6c 73 20 | 74 68 69 73 20 66 75 6e |t calls |this fun|
|00004870| 63 74 69 6f 6e 20 77 68 | 65 6e 20 74 68 65 20 6e |ction wh|en the n|
|00004880| 61 6d 65 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |ame of t|he progr|
|00004890| 61 6d 20 69 73 20 63 68 | 6f 73 65 6e 20 66 72 6f |am is ch|osen fro|
|000048a0| 6d 20 74 68 65 20 4d 69 | 73 63 20 4d 65 6e 75 2a |m the Mi|sc Menu*|
|000048b0| 2f 0d 0d 0d 0d 0d 2f 2a | 20 75 74 69 6c 69 74 79 |/...../*| utility|
|000048c0| 20 66 75 6e 63 74 69 6f | 6e 2c 20 79 6f 75 20 63 | functio|n, you c|
|000048d0| 61 6e 20 75 73 65 20 69 | 74 20 69 66 20 79 6f 75 |an use i|t if you|
|000048e0| 20 6e 65 65 64 20 69 74 | 2e 2e 2e 20 2a 2f 0d 76 | need it|... */.v|
|000048f0| 6f 69 64 20 53 65 74 50 | 61 73 63 61 6c 53 74 72 |oid SetP|ascalStr|
|00004900| 28 53 74 72 32 35 35 20 | 73 31 2c 20 63 6f 6e 73 |(Str255 |s1, cons|
|00004910| 74 20 53 74 72 32 35 35 | 20 73 32 2c 20 73 68 6f |t Str255| s2, sho|
|00004920| 72 74 20 6c 69 6d 69 74 | 29 3b 0d 09 2f 2a 20 63 |rt limit|);../* c|
|00004930| 6f 70 69 65 73 20 73 32 | 20 74 6f 20 73 31 2c 20 |opies s2| to s1, |
|00004940| 6d 61 6b 65 73 20 73 75 | 72 65 20 74 68 61 74 20 |makes su|re that |
|00004950| 73 31 20 69 73 20 73 68 | 6f 72 74 65 72 20 74 68 |s1 is sh|orter th|
|00004960| 61 6e 20 6c 69 6d 69 74 | 20 2a 2f 0d 0d 2f 2a 20 |an limit| */../* |
|00004970| 66 75 6e 63 74 69 6f 6e | 20 75 73 65 64 20 69 6e |function| used in|
|00004980| 74 65 72 6e 61 6c 6c 79 | 20 69 6e 20 70 72 6f 46 |ternally| in proF|
|00004990| 69 74 5f 49 6e 74 65 72 | 66 61 63 65 2e 63 20 20 |it_Inter|face.c |
|000049a0| 2a 2f 0d 45 78 74 4d 6f | 64 75 6c 65 73 50 61 72 |*/.ExtMo|dulesPar|
|000049b0| 61 6d 42 6c 6f 63 6b 2a | 20 47 65 74 50 62 28 76 |amBlock*| GetPb(v|
|000049c0| 6f 69 64 29 3b 0d 09 2f | 2a 20 52 65 74 75 72 6e |oid);../|* Return|
|000049d0| 73 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |s the pa|rameter |
|000049e0| 62 6c 6f 63 6b 20 61 73 | 20 70 61 73 73 65 64 20 |block as| passed |
|000049f0| 74 6f 20 6d 61 69 6e 28 | 29 2e 20 4f 6e 6c 79 20 |to main(|). Only |
|00004a00| 61 64 76 61 6e 63 65 64 | 20 2a 2f 0d 09 2f 2a 20 |advanced| */../* |
|00004a10| 70 72 6f 67 72 61 6d 6d | 65 72 73 20 6d 61 79 20 |programm|ers may |
|00004a20| 6e 65 65 64 20 74 68 69 | 73 20 66 75 6e 63 74 69 |need thi|s functi|
|00004a30| 6f 6e 2e 20 2a 2f 0d 09 | 2f 2a 20 57 41 52 4e 49 |on. */..|/* WARNI|
|00004a40| 4e 47 3a 20 74 68 65 20 | 64 65 66 69 6e 69 74 69 |NG: the |definiti|
|00004a50| 6f 6e 20 6f 66 20 45 78 | 74 4d 6f 64 75 6c 65 73 |on of Ex|tModules|
|00004a60| 50 61 72 61 6d 42 6c 6f | 63 6b 20 6d 61 79 20 63 |ParamBlo|ck may c|
|00004a70| 68 61 6e 67 65 20 69 6e | 20 66 75 74 75 72 65 20 |hange in| future |
|00004a80| 76 65 72 73 69 6f 6e 73 | 20 2a 2f 0d 09 2f 2a 20 |versions| */../* |
|00004a90| 6f 66 20 70 72 6f 20 46 | 69 74 2e 20 55 73 69 6e |of pro F|it. Usin|
|00004aa0| 67 20 69 74 20 66 72 6f | 6d 20 77 69 74 68 69 6e |g it fro|m within|
|00004ab0| 20 79 6f 75 72 20 66 75 | 6e 63 74 69 6f 6e 20 6d | your fu|nction m|
|00004ac0| 61 79 20 63 61 75 73 65 | 20 63 6f 6d 70 61 74 69 |ay cause| compati|
|00004ad0| 62 69 6c 69 74 79 20 70 | 72 6f 62 6c 65 6d 73 20 |bility p|roblems |
|00004ae0| 2a 2f 0d 09 2f 2a 20 77 | 69 74 68 20 74 68 6f 73 |*/../* w|ith thos|
|00004af0| 65 20 66 75 74 75 72 65 | 20 76 65 72 73 69 6f 6e |e future| version|
|00004b00| 73 2e 20 2a 2f 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |s. */./*|********|
|00004b10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004b20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004b40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004b50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 0d |********|****/...|
|00004b60| 0d 0d 0d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...../**|********|
|00004b70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004b80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004b90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ba0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004bb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2f 0d |********|******/.|
|00004bc0| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00004bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004be0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 2f 2a 2a 2a 2a |********|*/./****|
|00004c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c70| 2a 2a 2a 2a 0d 0d 20 09 | 09 09 09 09 50 72 6f 74 |****.. .|....Prot|
|00004c80| 6f 74 79 70 65 73 20 6f | 66 20 61 6c 6c 20 72 6f |otypes o|f all ro|
|00004c90| 75 74 69 6e 65 73 20 70 | 72 6f 76 69 64 65 64 20 |utines p|rovided |
|00004ca0| 62 79 20 70 72 6f 20 46 | 69 74 2e 20 0d 20 09 09 |by pro F|it. . ..|
|00004cb0| 09 09 09 0d 20 09 09 09 | 09 09 0d 20 09 46 6f 72 |.... ...|... .For|
|00004cc0| 20 61 6e 20 65 78 70 6c | 61 69 6e 61 74 69 6f 6e | an expl|aination|
|00004cd0| 20 6f 66 20 74 68 65 20 | 6d 65 61 6e 69 6e 67 20 | of the |meaning |
|00004ce0| 6f 66 20 74 68 65 20 76 | 61 72 69 6f 75 73 20 70 |of the v|arious p|
|00004cf0| 61 72 61 6d 65 74 65 72 | 73 20 61 6e 64 20 74 68 |arameter|s and th|
|00004d00| 65 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 73 20 |e return| values |
|00004d10| 73 65 65 20 0d 20 09 74 | 68 65 20 70 72 6f 20 46 |see . .t|he pro F|
|00004d20| 69 74 20 75 73 65 72 20 | 6d 61 6e 75 61 6c 2e 09 |it user |manual..|
|00004d30| 09 0d 2a 2f 0d 0d 0d 0d | 2f 2a 2a 2a 2a 2a 2a 2a |..*/....|/*******|
|00004d40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004d50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004d60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004d70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 2f 2a 2a 2a 2a |********|*/./****|
|00004d90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 69 |********|****** i|
|00004db0| 6e 70 75 74 2f 6f 75 74 | 70 75 74 20 2a 2a 2a 2a |nput/out|put ****|
|00004dc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004dd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 0d |********|****/...|
|00004de0| 0d 73 68 6f 72 74 20 49 | 6e 70 75 74 42 6f 78 28 |.short I|nputBox(|
|00004df0| 73 68 6f 72 74 20 6e 75 | 6d 49 74 65 6d 73 2c 20 |short nu|mItems, |
|00004e00| 49 6e 70 75 74 52 65 63 | 2a 20 72 29 3b 0d 09 2f |InputRec|* r);../|
|00004e10| 2a 20 0d 09 09 53 68 6f | 77 73 20 61 20 64 69 61 |* ...Sho|ws a dia|
|00004e20| 6c 6f 67 20 62 6f 78 20 | 77 69 74 68 20 6e 72 41 |log box |with nrA|
|00004e30| 72 67 73 20 28 62 65 74 | 77 65 65 6e 20 31 20 61 |rgs (bet|ween 1 a|
|00004e40| 6e 64 20 36 3d 6d 61 78 | 4e 72 49 6e 70 75 74 56 |nd 6=max|NrInputV|
|00004e50| 61 6c 75 65 73 29 20 69 | 6e 70 75 74 20 76 61 6c |alues) i|nput val|
|00004e60| 75 65 73 0d 09 09 72 20 | 63 6f 6e 74 61 69 6e 73 |ues...r |contains|
|00004e70| 20 61 20 74 69 74 6c 65 | 20 61 6e 64 20 61 20 6e | a title| and a n|
|00004e80| 75 6d 65 72 69 63 20 66 | 69 65 6c 64 20 66 6f 72 |umeric f|ield for|
|00004e90| 20 65 76 65 72 79 20 61 | 72 67 75 6d 65 6e 74 0d | every a|rgument.|
|00004ea0| 09 09 54 68 65 20 64 65 | 66 61 75 6c 74 20 77 61 |..The de|fault wa|
|00004eb0| 79 20 74 6f 20 64 69 73 | 70 6c 61 79 20 61 6e 20 |y to dis|play an |
|00004ec0| 69 6e 70 75 74 20 76 61 | 6c 75 65 20 69 73 20 61 |input va|lue is a|
|00004ed0| 6e 20 6e 75 6d 62 65 72 | 69 63 20 65 64 69 74 20 |n number|ic edit |
|00004ee0| 66 69 65 6c 64 20 77 69 | 74 68 20 61 20 74 69 74 |field wi|th a tit|
|00004ef0| 6c 65 0d 09 09 49 66 20 | 74 68 65 20 74 69 74 6c |le...If |the titl|
|00004f00| 65 20 27 74 74 74 27 20 | 73 74 61 72 74 73 20 77 |e 'ttt' |starts w|
|00004f10| 69 74 68 20 61 20 27 24 | 27 20 6f 74 68 65 72 20 |ith a '$|' other |
|00004f20| 69 6e 74 65 72 66 61 63 | 65 20 65 6c 65 6d 65 6e |interfac|e elemen|
|00004f30| 74 73 20 61 72 65 20 64 | 69 73 70 6c 61 79 65 64 |ts are d|isplayed|
|00004f40| 3a 0d 09 09 2d 20 27 24 | 57 74 74 74 27 20 73 68 |:...- '$|Wttt' sh|
|00004f50| 6f 77 73 20 61 20 70 6f | 70 75 70 20 6d 65 6e 75 |ows a po|pup menu|
|00004f60| 20 74 6f 20 73 65 6c 65 | 63 74 20 61 20 64 61 74 | to sele|ct a dat|
|00004f70| 61 20 77 69 6e 64 6f 77 | 0d 09 09 2d 20 27 24 43 |a window|...- '$C|
|00004f80| 74 74 74 27 20 73 68 6f | 77 73 20 61 20 70 6f 70 |ttt' sho|ws a pop|
|00004f90| 75 70 20 6d 65 6e 75 20 | 74 6f 20 73 65 6c 65 63 |up menu |to selec|
|00004fa0| 74 20 61 20 63 6f 6c 75 | 6d 6e 0d 09 09 2d 20 27 |t a colu|mn...- '|
|00004fb0| 24 50 6d 6d 6d 24 74 74 | 74 27 20 73 68 6f 77 73 |$Pmmm$tt|t' shows|
|00004fc0| 20 61 20 75 73 65 72 20 | 64 65 66 69 6e 65 64 20 | a user |defined |
|00004fd0| 70 6f 70 75 70 20 6d 65 | 6e 75 20 27 6d 6d 6d 27 |popup me|nu 'mmm'|
|00004fe0| 20 28 65 61 63 68 20 65 | 6e 74 72 79 20 73 65 70 | (each e|ntry sep|
|00004ff0| 61 72 61 74 65 64 20 62 | 79 20 61 20 27 3b 27 29 |arated b|y a ';')|
|00005000| 0d 09 09 2d 20 27 24 58 | 74 74 74 27 20 73 68 6f |...- '$X|ttt' sho|
|00005010| 77 73 20 61 20 63 68 65 | 63 6b 20 62 6f 78 0d 09 |ws a che|ck box..|
|00005020| 09 2d 20 27 24 53 74 74 | 74 27 20 73 68 6f 77 73 |.- '$Stt|t' shows|
|00005030| 20 61 6e 20 65 64 69 74 | 20 66 69 65 6c 64 20 74 | an edit| field t|
|00005040| 6f 20 69 6e 70 75 74 20 | 61 20 73 74 72 69 6e 67 |o input |a string|
|00005050| 0d 09 09 49 6e 70 75 74 | 42 6f 78 20 72 65 74 75 |...Input|Box retu|
|00005060| 72 6e 73 20 30 20 69 66 | 20 75 73 65 72 20 70 72 |rns 0 if| user pr|
|00005070| 65 73 73 65 64 20 6f 6b | 2c 20 31 20 69 66 20 75 |essed ok|, 1 if u|
|00005080| 73 65 72 20 70 72 65 73 | 73 65 64 20 73 74 6f 70 |ser pres|sed stop|
|00005090| 0d 09 2a 2f 0d 0d 76 6f | 69 64 20 53 65 74 42 6f |..*/..vo|id SetBo|
|000050a0| 78 54 69 74 6c 65 28 63 | 6f 6e 73 74 20 53 74 72 |xTitle(c|onst Str|
|000050b0| 32 35 35 20 74 69 74 6c | 65 29 3b 0d 09 2f 2a 0d |255 titl|e);../*.|
|000050c0| 09 09 53 65 74 73 20 74 | 68 65 20 74 69 74 6c 65 |..Sets t|he title|
|000050d0| 20 6f 66 20 74 68 65 20 | 64 69 61 6c 6f 67 20 62 | of the |dialog b|
|000050e0| 6f 78 20 69 6e 20 74 68 | 65 20 6e 65 78 74 20 63 |ox in th|e next c|
|000050f0| 61 6c 6c 20 74 6f 20 49 | 6e 70 75 74 42 6f 78 2e |all to I|nputBox.|
|00005100| 0d 09 09 42 79 20 64 65 | 66 61 75 6c 74 2c 20 74 |...By de|fault, t|
|00005110| 68 69 73 20 62 6f 78 20 | 64 6f 65 73 20 6e 6f 74 |his box |does not|
|00005120| 20 68 61 76 65 20 61 20 | 74 69 74 6c 65 2e 0d 09 | have a |title...|
|00005130| 2a 2f 0d 0d 73 68 6f 72 | 74 20 41 6c 65 72 74 42 |*/..shor|t AlertB|
|00005140| 6f 78 28 63 6f 6e 73 74 | 20 53 74 72 32 35 35 20 |ox(const| Str255 |
|00005150| 6d 29 3b 0d 09 2f 2a 20 | 0d 09 09 73 68 6f 77 73 |m);../* |...shows|
|00005160| 20 61 6e 20 61 6c 65 72 | 74 20 62 6f 78 20 77 69 | an aler|t box wi|
|00005170| 74 68 20 61 20 6d 65 73 | 73 61 67 65 20 6d 20 28 |th a mes|sage m (|
|00005180| 70 61 73 63 61 6c 20 73 | 74 72 69 6e 67 29 20 0d |pascal s|tring) .|
|00005190| 09 09 41 6c 65 72 74 42 | 6f 78 20 72 65 74 75 72 |..AlertB|ox retur|
|000051a0| 6e 73 20 30 20 69 66 20 | 75 73 65 72 20 70 72 65 |ns 0 if |user pre|
|000051b0| 73 73 65 64 20 6f 6b 2c | 20 31 20 69 66 20 75 73 |ssed ok,| 1 if us|
|000051c0| 65 72 20 70 72 65 73 73 | 65 64 20 73 74 6f 70 20 |er press|ed stop |
|000051d0| 20 0d 09 2a 2f 0d 0d 73 | 68 6f 72 74 20 41 73 6b | ..*/..s|hort Ask|
|000051e0| 42 6f 78 28 73 68 6f 72 | 74 2a 20 63 6f 6e 73 74 |Box(shor|t* const|
|000051f0| 20 61 6e 73 77 65 72 2c | 20 63 6f 6e 73 74 20 53 | answer,| const S|
|00005200| 74 72 32 35 35 20 6d 65 | 73 73 61 67 65 29 3b 0d |tr255 me|ssage);.|
|00005210| 09 2f 2a 20 0d 09 09 73 | 68 6f 77 73 20 61 6e 20 |./* ...s|hows an |
|00005220| 61 6c 65 72 74 20 62 6f | 78 20 77 69 74 68 20 61 |alert bo|x with a|
|00005230| 20 59 65 73 20 61 6e 64 | 20 61 20 4e 6f 20 62 75 | Yes and| a No bu|
|00005240| 74 74 6f 6e 20 61 6e 64 | 20 64 69 73 70 6c 61 79 |tton and| display|
|00005250| 73 20 22 6d 65 73 73 61 | 67 65 22 0d 09 09 61 6e |s "messa|ge"...an|
|00005260| 73 77 65 72 20 69 73 20 | 30 20 66 6f 72 20 4e 6f |swer is |0 for No|
|00005270| 20 61 6e 64 20 31 20 66 | 6f 72 20 59 65 73 20 6f | and 1 f|or Yes o|
|00005280| 72 20 53 74 6f 70 0d 09 | 09 54 68 65 20 72 65 74 |r Stop..|.The ret|
|00005290| 75 72 6e 20 76 61 6c 75 | 65 20 69 73 20 30 20 69 |urn valu|e is 0 i|
|000052a0| 66 20 75 73 65 72 20 70 | 72 65 73 73 65 64 20 59 |f user p|ressed Y|
|000052b0| 65 73 20 6f 72 20 4e 6f | 2c 20 31 20 69 66 20 75 |es or No|, 1 if u|
|000052c0| 73 65 72 20 70 72 65 73 | 73 65 64 20 73 74 6f 70 |ser pres|sed stop|
|000052d0| 20 20 0d 09 2a 2f 0d 09 | 0d 09 09 09 0d 76 6f 69 | ..*/..|.....voi|
|000052e0| 64 20 57 72 69 74 65 28 | 63 6f 6e 73 74 20 53 74 |d Write(|const St|
|000052f0| 72 32 35 35 29 3b 0d 09 | 2f 2a 20 77 72 69 74 65 |r255);..|/* write|
|00005300| 73 20 61 20 73 74 72 69 | 6e 67 20 28 70 61 73 63 |s a stri|ng (pasc|
|00005310| 61 6c 20 73 74 72 69 6e | 67 29 20 74 6f 20 74 68 |al strin|g) to th|
|00005320| 65 20 72 65 73 75 6c 74 | 73 20 77 69 6e 64 6f 77 |e result|s window|
|00005330| 20 2a 2f 0d 0d 76 6f 69 | 64 20 57 72 69 74 65 6c | */..voi|d Writel|
|00005340| 6e 28 63 6f 6e 73 74 20 | 53 74 72 32 35 35 29 3b |n(const |Str255);|
|00005350| 0d 09 2f 2a 20 77 72 69 | 74 65 73 20 61 20 73 74 |../* wri|tes a st|
|00005360| 72 69 6e 67 20 28 70 61 | 73 63 61 6c 20 73 74 72 |ring (pa|scal str|
|00005370| 69 6e 67 29 20 74 6f 20 | 74 68 65 20 72 65 73 75 |ing) to |the resu|
|00005380| 6c 74 73 20 77 69 6e 64 | 6f 77 20 61 6e 64 20 67 |lts wind|ow and g|
|00005390| 6f 65 73 20 74 6f 20 6e | 65 78 74 20 6c 69 6e 65 |oes to n|ext line|
|000053a0| 20 2a 2f 0d 0d 76 6f 69 | 64 20 57 72 69 74 65 54 | */..voi|d WriteT|
|000053b0| 65 78 74 28 6c 6f 6e 67 | 20 6c 65 6e 67 74 68 2c |ext(long| length,|
|000053c0| 20 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a | unsigne|d char *|
|000053d0| 20 74 68 65 54 65 78 74 | 29 3b 0d 09 2f 2a 20 77 | theText|);../* w|
|000053e0| 72 69 74 65 73 20 61 20 | 74 65 78 74 20 74 6f 20 |rites a |text to |
|000053f0| 74 68 65 20 72 65 73 75 | 6c 74 73 20 77 69 6e 64 |the resu|lts wind|
|00005400| 6f 77 2e 20 74 68 65 20 | 70 6f 69 6e 74 65 72 20 |ow. the |pointer |
|00005410| 74 68 65 54 65 78 74 20 | 70 6f 69 6e 74 73 20 74 |theText |points t|
|00005420| 6f 20 74 68 65 20 66 69 | 72 73 74 20 2a 2f 0d 09 |o the fi|rst */..|
|00005430| 2f 2a 20 63 68 61 72 61 | 63 74 65 72 20 6f 66 20 |/* chara|cter of |
|00005440| 74 68 65 20 74 65 78 74 | 2e 20 22 6c 65 6e 67 74 |the text|. "lengt|
|00005450| 68 22 20 6d 75 73 74 20 | 67 69 76 65 20 74 68 65 |h" must |give the|
|00005460| 20 6c 65 6e 67 74 68 20 | 6f 66 20 74 68 65 20 74 | length |of the t|
|00005470| 65 78 74 09 09 09 09 20 | 2a 2f 0d 0d 76 6f 69 64 |ext.... |*/..void|
|00005480| 20 57 72 69 74 65 49 6e | 74 28 6c 6f 6e 67 20 69 | WriteIn|t(long i|
|00005490| 29 3b 0d 09 2f 2a 20 77 | 72 69 74 65 73 20 61 6e |);../* w|rites an|
|000054a0| 20 69 6e 74 65 67 65 72 | 20 76 61 6c 75 65 20 74 | integer| value t|
|000054b0| 6f 20 74 68 65 20 72 65 | 73 75 6c 74 73 20 77 69 |o the re|sults wi|
|000054c0| 6e 64 6f 77 20 2a 2f 0d | 0d 76 6f 69 64 20 57 72 |ndow */.|.void Wr|
|000054d0| 69 74 65 4e 75 6d 62 65 | 72 28 64 6f 75 62 6c 65 |iteNumbe|r(double|
|000054e0| 20 64 29 3b 0d 09 2f 2a | 20 77 72 69 74 65 73 20 | d);../*| writes |
|000054f0| 61 20 66 6c 6f 61 74 69 | 6e 67 20 70 6f 69 6e 74 |a floati|ng point|
|00005500| 20 76 61 6c 75 65 20 74 | 6f 20 74 68 65 20 72 65 | value t|o the re|
|00005510| 73 75 6c 74 73 20 77 69 | 6e 64 6f 77 20 2a 2f 0d |sults wi|ndow */.|
|00005520| 0d 76 6f 69 64 20 4e 75 | 6d 62 65 72 54 6f 53 74 |.void Nu|mberToSt|
|00005530| 72 32 35 35 28 64 6f 75 | 62 6c 65 20 78 2c 20 53 |r255(dou|ble x, S|
|00005540| 74 72 32 35 35 20 73 2c | 20 73 68 6f 72 74 20 66 |tr255 s,| short f|
|00005550| 6f 72 6d 61 74 2c 20 73 | 68 6f 72 74 20 64 69 67 |ormat, s|hort dig|
|00005560| 69 74 73 29 3b 0d 09 2f | 2a 20 63 6f 6e 76 65 72 |its);../|* conver|
|00005570| 74 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 78 20 |ts the n|umber x |
|00005580| 69 6e 74 6f 20 61 20 73 | 74 72 69 6e 67 20 2a 2f |into a s|tring */|
|00005590| 0d 09 2f 2a 20 66 6f 72 | 6d 61 74 2f 64 69 67 69 |../* for|mat/digi|
|000055a0| 74 73 3a 20 63 6f 6e 74 | 72 6f 6c 73 20 74 68 65 |ts: cont|rols the|
|000055b0| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 70 72 6f 63 | convers|ion proc|
|000055c0| 65 73 73 2e 20 2a 2f 0d | 09 2f 2a 09 66 6f 72 6d |ess. */.|./*.form|
|000055d0| 61 74 20 3d 20 30 3a 09 | 20 09 6e 6f 72 6d 61 6c |at = 0:.| .normal|
|000055e0| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 2a 2f 0d 09 | convers|ion */..|
|000055f0| 2f 2a 09 09 09 09 09 69 | 66 20 64 69 67 69 74 73 |/*.....i|f digits|
|00005600| 3e 30 3a 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |>0: the |number o|
|00005610| 66 20 64 69 67 69 74 73 | 20 61 66 74 65 72 20 74 |f digits| after t|
|00005620| 68 65 20 27 2e 27 2c 20 | 2a 2f 0d 09 2f 2a 09 09 |he '.', |*/../*..|
|00005630| 09 09 09 69 66 20 64 69 | 67 69 74 73 3c 30 3a 20 |...if di|gits<0: |
|00005640| 74 68 65 20 74 6f 74 61 | 6c 20 6e 75 6d 62 65 72 |the tota|l number|
|00005650| 20 6f 66 20 64 69 67 69 | 74 73 20 28 61 70 70 72 | of digi|ts (appr|
|00005660| 6f 78 2e 29 20 2a 2f 0d | 09 2f 2a 20 20 66 6f 72 |ox.) */.|./* for|
|00005670| 6d 61 74 20 3d 20 31 3a | 09 09 6f 70 74 69 6d 69 |mat = 1:|..optimi|
|00005680| 7a 65 64 20 63 6f 6e 76 | 65 72 73 69 6f 6e 2c 20 |zed conv|ersion, |
|00005690| 72 65 6d 6f 76 65 73 20 | 75 6e 6e 65 63 65 73 73 |removes |unnecess|
|000056a0| 61 72 79 20 74 72 61 69 | 6c 69 6e 67 20 7a 65 72 |ary trai|ling zer|
|000056b0| 6f 73 20 61 66 74 65 72 | 20 2a 2f 0d 09 2f 2a 09 |os after| */../*.|
|000056c0| 09 09 09 09 74 68 65 20 | 64 65 63 69 6d 61 6c 20 |....the |decimal |
|000056d0| 70 6f 69 6e 74 2c 20 6c | 65 61 64 69 6e 67 20 73 |point, l|eading s|
|000056e0| 70 61 63 65 73 2c 20 75 | 6e 65 63 65 73 73 61 72 |paces, u|necessar|
|000056f0| 79 20 27 2b 27 2d 73 69 | 67 6e 73 2c 20 65 74 63 |y '+'-si|gns, etc|
|00005700| 20 2a 2f 0d 09 2f 2a 09 | 09 09 09 09 64 69 67 69 | */../*.|....digi|
|00005710| 74 73 3a 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |ts: the |number o|
|00005720| 66 20 64 69 67 69 74 73 | 20 2a 2f 0d 0d 73 68 6f |f digits| */..sho|
|00005730| 72 74 20 53 74 72 32 35 | 35 54 6f 4e 75 6d 62 65 |rt Str25|5ToNumbe|
|00005740| 72 28 53 74 72 32 35 35 | 20 73 2c 20 64 6f 75 62 |r(Str255| s, doub|
|00005750| 6c 65 2a 20 63 6f 6e 73 | 74 20 78 29 3b 0d 09 2f |le* cons|t x);../|
|00005760| 2a 20 63 6f 6e 76 65 72 | 74 73 20 73 74 72 69 6e |* conver|ts strin|
|00005770| 67 20 73 20 74 6f 20 61 | 20 6e 75 6d 62 65 72 20 |g s to a| number |
|00005780| 78 2e 20 73 20 63 61 6e | 20 62 65 20 61 20 6e 75 |x. s can| be a nu|
|00005790| 6d 65 72 69 63 20 73 74 | 72 69 6e 67 20 6f 72 20 |meric st|ring or |
|000057a0| 61 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 20 2a 2f |an expre|ssion */|
|000057b0| 0d 09 2f 2a 20 72 65 74 | 75 72 6e 20 76 61 6c 75 |../* ret|urn valu|
|000057c0| 65 73 3a 20 2a 2f 0d 09 | 2f 2a 09 30 3a 09 09 63 |es: */..|/*.0:..c|
|000057d0| 6f 6e 76 65 72 73 69 6f | 6e 20 73 75 63 63 65 73 |onversio|n succes|
|000057e0| 73 66 75 6c 20 2a 2f 0d | 09 2f 2a 09 31 3a 09 09 |sful */.|./*.1:..|
|000057f0| 78 20 69 73 20 69 6e 66 | 69 6e 69 74 65 20 2a 2f |x is inf|inite */|
|00005800| 0d 09 2f 2a 09 32 3a 09 | 09 73 20 69 73 20 65 6d |../*.2:.|.s is em|
|00005810| 70 74 79 20 2a 2f 0d 09 | 2f 2a 09 33 3a 09 09 78 |pty */..|/*.3:..x|
|00005820| 20 69 73 20 61 6e 20 4e | 41 4e 20 28 69 6e 76 61 | is an N|AN (inva|
|00005830| 6c 69 64 20 6e 75 6d 62 | 65 72 29 20 2a 2f 0d 09 |lid numb|er) */..|
|00005840| 2f 2a 09 34 3a 09 09 75 | 73 65 72 20 61 62 6f 72 |/*.4:..u|ser abor|
|00005850| 74 65 64 20 63 61 6c 63 | 75 6c 61 74 69 6f 6e 20 |ted calc|ulation |
|00005860| 2a 2f 0d 09 2f 2a 09 35 | 3a 09 09 72 75 6e 20 74 |*/../*.5|:..run t|
|00005870| 69 6d 65 20 65 72 72 6f | 72 20 2a 2f 0d 0d 0d 2f |ime erro|r */.../|
|00005880| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000058a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000058b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000058c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000058d0| 2f 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 20 20 |/./*****|***** |
|000058e0| 72 65 64 69 72 65 63 74 | 69 6e 67 20 74 65 78 74 |redirect|ing text|
|000058f0| 20 74 6f 20 74 68 65 20 | 72 65 73 75 6c 74 73 20 | to the |results |
|00005900| 77 69 6e 64 6f 77 20 6f | 72 20 74 6f 20 74 65 78 |window o|r to tex|
|00005910| 74 20 66 69 6c 65 73 20 | 2a 2a 2a 2a 2a 2a 2a 2a |t files |********|
|00005920| 2a 2a 2a 2f 0d 09 0d 6c | 6f 6e 67 20 43 72 65 61 |***/...l|ong Crea|
|00005930| 74 65 54 65 78 74 46 69 | 6c 65 28 63 6f 6e 73 74 |teTextFi|le(const|
|00005940| 20 53 74 72 32 35 35 20 | 66 69 6c 65 4e 61 6d 65 | Str255 |fileName|
|00005950| 29 3b 0d 09 2f 2a 0d 09 | 09 63 72 65 61 74 65 73 |);../*..|.creates|
|00005960| 20 61 20 74 65 78 74 20 | 66 69 6c 65 20 77 69 74 | a text |file wit|
|00005970| 68 20 74 68 65 20 67 69 | 76 65 6e 20 6e 61 6d 65 |h the gi|ven name|
|00005980| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 61 0d 09 | and ret|urns a..|
|00005990| 09 72 65 66 65 72 65 6e | 63 65 20 6e 75 6d 62 65 |.referen|ce numbe|
|000059a0| 72 20 75 73 65 64 20 74 | 6f 20 69 64 65 6e 74 69 |r used t|o identi|
|000059b0| 66 79 20 74 68 69 73 20 | 66 69 6c 65 2e 0d 09 09 |fy this |file....|
|000059c0| 43 61 6c 6c 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |Call the| routine|
|000059d0| 20 57 72 69 74 65 54 6f | 54 65 78 74 46 69 6c 65 | WriteTo|TextFile|
|000059e0| 28 29 20 74 6f 20 72 65 | 64 69 72 65 63 74 20 74 |() to re|direct t|
|000059f0| 68 65 0d 09 09 6f 75 74 | 70 75 74 20 66 72 6f 6d |he...out|put from|
|00005a00| 20 63 61 6c 6c 73 20 74 | 6f 20 77 72 69 74 65 2f | calls t|o write/|
|00005a10| 77 72 69 74 6c 6e 2f 77 | 72 69 74 65 6e 75 6d 62 |writln/w|ritenumb|
|00005a20| 65 72 20 69 6e 74 6f 20 | 74 68 69 73 20 66 69 6c |er into |this fil|
|00005a30| 65 2e 0d 09 2a 2f 0d 09 | 0d 76 6f 69 64 20 43 6c |e...*/..|.void Cl|
|00005a40| 6f 73 65 54 65 78 74 46 | 69 6c 65 28 6c 6f 6e 67 |oseTextF|ile(long|
|00005a50| 20 66 69 6c 65 52 65 66 | 4e 75 6d 62 65 72 29 3b | fileRef|Number);|
|00005a60| 0d 09 2f 2a 0d 09 09 43 | 6c 6f 73 65 73 20 74 68 |../*...C|loses th|
|00005a70| 65 20 74 65 78 74 20 66 | 69 6c 65 20 77 69 74 68 |e text f|ile with|
|00005a80| 20 74 68 65 20 67 69 76 | 65 6e 20 72 65 66 65 72 | the giv|en refer|
|00005a90| 65 6e 63 65 20 6e 75 6d | 62 65 72 2e 20 0d 09 09 |ence num|ber. ...|
|00005aa0| 54 68 65 20 63 61 6c 6c | 73 20 74 6f 20 77 72 69 |The call|s to wri|
|00005ab0| 74 65 2f 77 72 69 74 6c | 6e 2f 77 72 69 74 65 6e |te/writl|n/writen|
|00005ac0| 75 6d 62 65 72 20 69 73 | 20 72 65 64 69 72 65 63 |umber is| redirec|
|00005ad0| 74 65 64 20 62 61 63 6b | 20 74 6f 0d 09 09 74 68 |ted back| to...th|
|00005ae0| 65 20 72 65 73 75 6c 74 | 73 20 77 69 6e 64 6f 77 |e result|s window|
|00005af0| 2e 0d 09 2a 2f 0d 09 0d | 76 6f 69 64 20 57 72 69 |...*/...|void Wri|
|00005b00| 74 65 54 6f 54 65 78 74 | 46 69 6c 65 28 6c 6f 6e |teToText|File(lon|
|00005b10| 67 20 66 69 6c 65 52 65 | 66 4e 75 6d 62 65 72 29 |g fileRe|fNumber)|
|00005b20| 3b 0d 09 2f 2a 0d 09 09 | 72 65 64 69 72 65 63 74 |;../*...|redirect|
|00005b30| 73 20 74 68 65 20 6f 75 | 74 70 75 74 20 6f 66 20 |s the ou|tput of |
|00005b40| 74 68 65 20 70 72 6f 20 | 46 69 74 20 22 77 72 69 |the pro |Fit "wri|
|00005b50| 74 65 2f 77 72 69 74 65 | 6c 6e 2f 77 72 69 74 65 |te/write|ln/write|
|00005b60| 6e 75 6d 62 65 72 22 0d | 09 09 72 6f 75 74 69 6e |number".|..routin|
|00005b70| 65 73 20 74 6f 20 74 68 | 65 20 67 69 76 65 6e 20 |es to th|e given |
|00005b80| 74 65 78 74 20 66 69 6c | 65 2e 0d 09 09 20 0d 09 |text fil|e.... ..|
|00005b90| 09 63 61 6c 6c 20 74 68 | 69 73 20 72 6f 75 74 69 |.call th|is routi|
|00005ba0| 6e 65 20 77 69 74 68 20 | 66 69 6c 65 52 65 66 4e |ne with |fileRefN|
|00005bb0| 75 6d 62 65 72 3d 3d 30 | 20 74 6f 20 64 69 72 65 |umber==0| to dire|
|00005bc0| 63 74 20 74 68 65 20 74 | 65 78 74 0d 09 09 77 72 |ct the t|ext...wr|
|00005bd0| 69 74 69 6e 67 20 72 6f | 75 74 69 6e 65 73 20 62 |iting ro|utines b|
|00005be0| 61 63 6b 20 74 6f 20 74 | 68 65 20 72 65 73 75 6c |ack to t|he resul|
|00005bf0| 74 73 20 77 69 6e 64 6f | 77 2e 0d 09 2a 2f 0d 0d |ts windo|w...*/..|
|00005c00| 0d 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |../*****|********|
|00005c10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c50| 2a 2a 2a 2f 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |***/./**|********|
|00005c60| 2a 2a 2a 2a 2a 2a 20 77 | 69 6e 64 6f 77 20 61 6e |****** w|indow an|
|00005c70| 64 20 64 6f 63 75 6d 65 | 6e 74 20 6d 61 6e 61 67 |d docume|nt manag|
|00005c80| 65 6d 65 6e 74 20 72 6f | 75 74 69 6e 65 73 20 2a |ement ro|utines *|
|00005c90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ca0| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 6c 6f 6e 67 20 47 65 |******/.|.long Ge|
|00005cb0| 74 46 72 6f 6e 74 57 69 | 6e 64 6f 77 28 76 6f 69 |tFrontWi|ndow(voi|
|00005cc0| 64 29 3b 0d 09 2f 2a 0d | 09 09 52 65 74 75 72 6e |d);../*.|..Return|
|00005cd0| 73 20 74 68 65 20 69 64 | 65 6e 74 69 66 69 63 61 |s the id|entifica|
|00005ce0| 74 69 6f 6e 20 6e 75 6d | 62 65 72 20 6f 66 20 74 |tion num|ber of t|
|00005cf0| 68 65 20 66 72 6f 6e 74 | 6d 6f 73 74 20 77 69 6e |he front|most win|
|00005d00| 64 6f 77 0d 09 2a 2f 0d | 09 0d 76 6f 69 64 20 44 |dow..*/.|..void D|
|00005d10| 6f 4e 65 77 57 69 6e 64 | 6f 77 28 6c 6f 6e 67 20 |oNewWind|ow(long |
|00005d20| 77 69 6e 64 6f 77 54 79 | 70 65 29 3b 0d 09 2f 2a |windowTy|pe);../*|
|00005d30| 0d 09 09 63 72 65 61 74 | 65 73 20 61 20 6e 65 77 |...creat|es a new|
|00005d40| 20 77 69 6e 64 6f 77 2e | 20 77 69 6e 64 6f 77 54 | window.| windowT|
|00005d50| 79 70 65 20 63 61 6e 20 | 74 61 6b 65 20 6f 6e 65 |ype can |take one|
|00005d60| 20 6f 66 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | of the |followin|
|00005d70| 67 20 76 61 6c 75 65 73 | 3a 0d 09 09 09 64 72 61 |g values|:....dra|
|00005d80| 77 69 6e 67 54 79 70 65 | 3a 09 63 72 65 61 74 65 |wingType|:.create|
|00005d90| 20 61 20 64 72 61 77 69 | 6e 67 20 77 69 6e 64 6f | a drawi|ng windo|
|00005da0| 77 0d 09 09 09 64 61 74 | 61 54 79 70 65 3a 09 09 |w....dat|aType:..|
|00005db0| 63 72 65 61 74 65 20 61 | 20 64 61 74 61 20 77 69 |create a| data wi|
|00005dc0| 6e 64 6f 77 0d 09 09 09 | 74 65 78 74 54 79 70 65 |ndow....|textType|
|00005dd0| 09 09 63 72 65 61 74 65 | 20 61 20 74 65 78 74 20 |..create| a text |
|00005de0| 77 69 6e 64 6f 77 0d 09 | 2a 2f 0d 0d 76 6f 69 64 |window..|*/..void|
|00005df0| 20 53 65 74 43 75 72 72 | 65 6e 74 57 69 6e 64 6f | SetCurr|entWindo|
|00005e00| 77 28 6c 6f 6e 67 09 77 | 69 6e 64 6f 77 49 44 29 |w(long.w|indowID)|
|00005e10| 3b 0d 09 2f 2a 0d 09 09 | 6d 61 6b 65 73 20 74 68 |;../*...|makes th|
|00005e20| 65 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 74 68 |e window| with th|
|00005e30| 65 20 67 69 76 65 6e 20 | 49 44 20 6e 75 6d 62 65 |e given |ID numbe|
|00005e40| 72 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 77 69 |r the cu|rrent wi|
|00005e50| 6e 64 6f 77 20 74 6f 0d | 09 09 62 65 20 75 73 65 |ndow to.|..be use|
|00005e60| 64 20 66 6f 72 20 64 61 | 74 61 2c 20 70 6c 6f 74 |d for da|ta, plot|
|00005e70| 74 69 6e 67 2c 20 77 72 | 69 74 69 6e 67 2c 20 65 |ting, wr|iting, e|
|00005e80| 74 63 2c 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |tc, depe|nding on|
|00005e90| 20 69 74 73 20 74 79 70 | 65 2e 0d 09 2a 2f 0d 0d | its typ|e...*/..|
|00005ea0| 6c 6f 6e 67 20 47 65 74 | 43 75 72 72 65 6e 74 57 |long Get|CurrentW|
|00005eb0| 69 6e 64 6f 77 28 6c 6f | 6e 67 20 77 69 6e 64 6f |indow(lo|ng windo|
|00005ec0| 77 54 79 70 65 29 3b 0d | 09 2f 2a 0d 09 09 72 65 |wType);.|./*...re|
|00005ed0| 74 75 72 6e 73 20 74 68 | 65 20 49 44 20 6e 75 6d |turns th|e ID num|
|00005ee0| 62 65 72 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ber of t|he curre|
|00005ef0| 6e 74 20 77 69 6e 64 6f | 77 20 6f 66 20 74 68 65 |nt windo|w of the|
|00005f00| 20 67 69 76 65 6e 20 74 | 79 70 65 0d 09 09 77 69 | given t|ype...wi|
|00005f10| 6e 64 6f 77 54 79 70 65 | 20 63 61 6e 20 74 61 6b |ndowType| can tak|
|00005f20| 65 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 66 6f 6c |e one of| the fol|
|00005f30| 6c 6f 77 69 6e 67 20 76 | 61 6c 75 65 73 0d 09 09 |lowing v|alues...|
|00005f40| 09 64 72 61 77 69 6e 67 | 54 79 70 65 3a 09 72 65 |.drawing|Type:.re|
|00005f50| 74 75 72 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |turn the| current|
|00005f60| 20 64 72 61 77 69 6e 67 | 20 77 69 6e 64 6f 77 0d | drawing| window.|
|00005f70| 09 09 09 64 61 74 61 54 | 79 70 65 3a 09 09 72 65 |...dataT|ype:..re|
|00005f80| 74 75 72 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |turn the| current|
|00005f90| 20 64 61 74 61 20 77 69 | 6e 64 6f 77 0d 09 09 09 | data wi|ndow....|
|00005fa0| 74 65 78 74 54 79 70 65 | 09 09 72 65 74 75 72 6e |textType|..return|
|00005fb0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 74 65 78 | the cur|rent tex|
|00005fc0| 74 20 77 69 6e 64 6f 77 | 0d 09 2a 2f 0d 0d 76 6f |t window|..*/..vo|
|00005fd0| 69 64 20 44 6f 43 6c 6f | 73 65 57 69 6e 64 6f 77 |id DoClo|seWindow|
|00005fe0| 28 6c 6f 6e 67 20 77 69 | 6e 64 6f 77 49 44 2c 20 |(long wi|ndowID, |
|00005ff0| 42 6f 6f 6c 65 61 6e 20 | 73 61 76 65 49 74 29 3b |Boolean |saveIt);|
|00006000| 0d 09 2f 2a 0d 09 09 63 | 6c 6f 73 65 73 20 74 68 |../*...c|loses th|
|00006010| 65 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 74 68 |e window| with th|
|00006020| 65 20 67 69 76 65 6e 20 | 49 44 20 6e 75 6d 62 65 |e given |ID numbe|
|00006030| 72 2e 0d 09 09 73 61 76 | 65 73 20 74 68 65 20 63 |r....sav|es the c|
|00006040| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 77 |ontents |of the w|
|00006050| 69 6e 64 6f 77 20 69 66 | 20 73 61 76 65 49 74 20 |indow if| saveIt |
|00006060| 69 73 20 74 72 75 65 0d | 09 2a 2f 0d 0d 6c 6f 6e |is true.|.*/..lon|
|00006070| 67 20 46 72 6f 6e 74 6d | 6f 73 74 57 69 6e 64 6f |g Frontm|ostWindo|
|00006080| 77 28 6c 6f 6e 67 20 77 | 69 6e 64 6f 77 54 79 70 |w(long w|indowTyp|
|00006090| 65 29 3b 0d 09 2f 2a 0d | 09 09 72 65 74 75 72 6e |e);../*.|..return|
|000060a0| 73 20 74 68 65 20 49 44 | 20 6e 75 6d 62 65 72 20 |s the ID| number |
|000060b0| 6f 66 20 74 68 65 20 66 | 72 6f 6e 74 20 6d 6f 73 |of the f|ront mos|
|000060c0| 74 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 74 68 |t window| with th|
|000060d0| 65 20 67 69 76 65 6e 20 | 74 79 70 65 0d 09 09 09 |e given |type....|
|000060e0| 64 72 61 77 69 6e 67 54 | 79 70 65 3a 09 72 65 74 |drawingT|ype:.ret|
|000060f0| 75 72 6e 20 74 68 65 20 | 66 72 6f 6e 74 6d 6f 73 |urn the |frontmos|
|00006100| 74 20 64 72 61 77 69 6e | 67 20 77 69 6e 64 6f 77 |t drawin|g window|
|00006110| 0d 09 09 09 64 61 74 61 | 54 79 70 65 3a 09 09 72 |....data|Type:..r|
|00006120| 65 74 75 72 6e 20 74 68 | 65 20 66 72 6f 6e 74 6d |eturn th|e frontm|
|00006130| 6f 73 74 20 64 61 74 61 | 20 77 69 6e 64 6f 77 0d |ost data| window.|
|00006140| 09 09 09 74 65 78 74 54 | 79 70 65 09 09 72 65 74 |...textT|ype..ret|
|00006150| 75 72 6e 20 74 68 65 20 | 66 72 6f 6e 74 6d 6f 73 |urn the |frontmos|
|00006160| 74 20 74 65 78 74 20 77 | 69 6e 64 6f 77 0d 09 2a |t text w|indow..*|
|00006170| 2f 0d 0d 76 6f 69 64 20 | 53 61 76 65 57 69 6e 64 |/..void |SaveWind|
|00006180| 6f 77 28 6c 6f 6e 67 20 | 77 69 6e 64 6f 77 49 44 |ow(long |windowID|
|00006190| 29 3b 0d 09 2f 2a 0d 09 | 09 73 61 76 65 73 20 74 |);../*..|.saves t|
|000061a0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|000061b0| 68 65 20 67 69 76 65 6e | 20 77 69 6e 64 6f 77 20 |he given| window |
|000061c0| 69 6e 20 74 68 65 20 66 | 69 6c 65 20 61 73 73 6f |in the f|ile asso|
|000061d0| 63 69 61 74 65 64 20 77 | 69 74 68 20 69 74 0d 09 |ciated w|ith it..|
|000061e0| 2a 2f 0d 0d 76 6f 69 64 | 20 53 61 76 65 57 69 6e |*/..void| SaveWin|
|000061f0| 64 6f 77 41 73 28 6c 6f | 6e 67 20 77 69 6e 64 6f |dowAs(lo|ng windo|
|00006200| 77 49 44 2c 20 63 6f 6e | 73 74 20 53 74 72 32 35 |wID, con|st Str25|
|00006210| 35 20 66 69 6c 65 4e 61 | 6d 65 29 3b 0d 09 2f 2a |5 fileNa|me);../*|
|00006220| 0d 09 09 73 61 76 65 73 | 20 74 68 65 20 63 6f 6e |...saves| the con|
|00006230| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 67 69 76 |tents of| the giv|
|00006240| 65 6e 20 77 69 6e 64 6f | 77 20 69 6e 20 74 68 65 |en windo|w in the|
|00006250| 20 66 69 6c 65 2e 0d 09 | 09 66 69 6c 65 4e 61 6d | file...|.fileNam|
|00006260| 65 3a 20 74 68 65 20 66 | 69 6c 65 73 20 6e 61 6d |e: the f|iles nam|
|00006270| 65 2e 20 49 66 20 66 69 | 6c 65 4e 61 6d 65 20 64 |e. If fi|leName d|
|00006280| 6f 65 73 20 6e 6f 74 20 | 63 6f 6e 74 61 69 6e 20 |oes not |contain |
|00006290| 61 20 66 69 6c 65 20 70 | 61 74 68 2c 20 74 68 65 |a file p|ath, the|
|000062a0| 20 66 69 6c 65 0d 09 09 | 09 69 73 20 65 78 70 65 | file...|.is expe|
|000062b0| 63 74 65 64 20 74 6f 20 | 72 65 73 69 64 65 20 69 |cted to |reside i|
|000062c0| 6e 20 74 68 65 20 73 61 | 6d 65 20 66 6f 6c 64 65 |n the sa|me folde|
|000062d0| 72 20 61 73 20 70 72 6f | 20 46 69 74 2e 20 41 6c |r as pro| Fit. Al|
|000062e0| 74 65 72 6e 61 74 69 76 | 65 6c 79 2c 20 79 6f 75 |ternativ|ely, you|
|000062f0| 0d 09 09 09 63 61 6e 20 | 73 70 65 63 69 66 79 20 |....can |specify |
|00006300| 61 20 66 69 6c 65 20 70 | 61 74 68 2c 20 73 75 63 |a file p|ath, suc|
|00006310| 68 20 61 73 20 22 5c 70 | 48 44 3a 4d 79 46 6f 6c |h as "\p|HD:MyFol|
|00006320| 64 65 72 3a 4d 79 20 46 | 69 6c 65 22 2e 0d 09 09 |der:My F|ile"....|
|00006330| 09 69 66 20 66 69 6c 65 | 4e 61 6d 65 20 69 73 20 |.if file|Name is |
|00006340| 61 6e 20 65 6d 70 74 79 | 20 73 74 72 69 6e 67 2c |an empty| string,|
|00006350| 20 74 68 65 20 77 69 6e | 64 6f 77 20 69 73 20 73 | the win|dow is s|
|00006360| 61 76 65 64 20 69 6e 20 | 61 20 66 69 6c 65 20 68 |aved in |a file h|
|00006370| 61 76 69 6e 67 20 74 68 | 65 20 6e 61 6d 65 20 6f |aving th|e name o|
|00006380| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 0d 09 09 09 |f the wi|ndow....|
|00006390| 69 66 20 66 69 6c 65 4e | 61 6d 65 20 69 73 20 22 |if fileN|ame is "|
|000063a0| 5c 70 3f 22 2c 20 61 20 | 64 69 61 6c 6f 67 20 62 |\p?", a |dialog b|
|000063b0| 6f 78 20 69 73 20 62 72 | 6f 75 67 68 74 20 75 70 |ox is br|ought up|
|000063c0| 20 74 6f 20 61 73 6b 20 | 66 6f 72 20 75 73 65 72 | to ask |for user|
|000063d0| 20 66 6f 72 20 61 20 6e | 61 6d 65 0d 09 2a 2f 0d | for a n|ame..*/.|
|000063e0| 0d 6c 6f 6e 67 20 47 65 | 74 57 69 6e 64 6f 77 49 |.long Ge|tWindowI|
|000063f0| 44 28 63 6f 6e 73 74 20 | 53 74 72 32 35 35 20 77 |D(const |Str255 w|
|00006400| 69 6e 64 6f 77 4e 61 6d | 65 29 3b 0d 09 2f 2a 0d |indowNam|e);../*.|
|00006410| 09 09 72 65 74 75 72 6e | 73 20 74 68 65 20 49 44 |..return|s the ID|
|00006420| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 77 | number |of the w|
|00006430| 69 6e 64 6f 77 20 77 69 | 74 68 20 74 68 65 20 67 |indow wi|th the g|
|00006440| 69 76 65 6e 20 6e 61 6d | 65 2e 0d 09 09 72 65 74 |iven nam|e....ret|
|00006450| 75 72 6e 73 20 30 20 69 | 66 20 6e 6f 20 73 75 63 |urns 0 i|f no suc|
|00006460| 68 20 77 69 6e 64 6f 77 | 20 69 73 20 66 6f 75 6e |h window| is foun|
|00006470| 64 2e 0d 09 2a 2f 0d 0d | 6c 6f 6e 67 20 47 65 74 |d...*/..|long Get|
|00006480| 57 69 6e 64 6f 77 54 79 | 70 65 28 6c 6f 6e 67 20 |WindowTy|pe(long |
|00006490| 77 69 6e 64 6f 77 49 44 | 29 3b 0d 09 2f 2a 0d 09 |windowID|);../*..|
|000064a0| 09 72 65 74 75 72 6e 73 | 20 74 68 65 20 74 79 70 |.returns| the typ|
|000064b0| 65 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |e of the| window |
|000064c0| 77 69 74 68 20 74 68 65 | 20 67 69 76 65 6e 20 49 |with the| given I|
|000064d0| 44 20 6e 75 6d 62 65 72 | 0d 09 09 72 65 74 75 72 |D number|...retur|
|000064e0| 6e 73 20 30 20 69 66 20 | 74 68 65 20 67 69 76 65 |ns 0 if |the give|
|000064f0| 6e 20 77 69 6e 64 6f 77 | 20 69 73 20 6e 6f 74 20 |n window| is not |
|00006500| 61 20 74 65 78 74 2c 20 | 64 72 61 77 69 6e 67 20 |a text, |drawing |
|00006510| 6f 72 20 64 61 74 61 20 | 77 69 6e 64 6f 77 0d 09 |or data |window..|
|00006520| 09 09 20 20 20 20 20 20 | 6f 72 20 69 66 20 74 68 |.. |or if th|
|00006530| 65 72 65 20 69 73 20 6e | 6f 20 77 69 6e 64 6f 77 |ere is n|o window|
|00006540| 20 65 78 69 73 74 73 20 | 77 69 74 68 20 74 68 65 | exists |with the|
|00006550| 20 67 69 76 65 6e 20 49 | 44 20 6e 75 6d 62 65 72 | given I|D number|
|00006560| 0d 09 2a 2f 0d 09 0d 6c | 6f 6e 67 20 4e 65 78 74 |..*/...l|ong Next|
|00006570| 57 69 6e 64 6f 77 28 6c | 6f 6e 67 20 77 69 6e 64 |Window(l|ong wind|
|00006580| 6f 77 49 44 29 3b 0d 09 | 2f 2a 0d 09 09 72 65 74 |owID);..|/*...ret|
|00006590| 75 72 6e 73 20 74 68 65 | 20 49 44 20 6e 75 6d 62 |urns the| ID numb|
|000065a0| 65 72 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |er of th|e window|
|000065b0| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 62 65 68 | immedia|tely beh|
|000065c0| 69 6e 64 20 74 68 65 20 | 67 69 76 65 6e 20 77 69 |ind the |given wi|
|000065d0| 6e 64 6f 77 0d 09 09 72 | 65 74 75 72 6e 73 20 30 |ndow...r|eturns 0|
|000065e0| 20 69 66 20 74 68 65 20 | 67 69 76 65 6e 20 77 69 | if the |given wi|
|000065f0| 6e 64 6f 77 20 69 73 20 | 74 68 65 20 6c 61 73 74 |ndow is |the last|
|00006600| 20 6f 6e 65 0d 09 09 72 | 65 74 75 72 6e 73 20 74 | one...r|eturns t|
|00006610| 68 65 20 66 72 6f 6e 74 | 20 77 69 6e 64 6f 77 20 |he front| window |
|00006620| 69 66 20 30 20 69 73 20 | 70 61 73 73 65 64 20 66 |if 0 is |passed f|
|00006630| 6f 72 20 74 68 65 20 77 | 69 6e 64 6f 77 49 44 2e |or the w|indowID.|
|00006640| 0d 09 09 72 65 74 75 72 | 6e 73 20 30 20 61 6e 64 |...retur|ns 0 and|
|00006650| 20 63 61 75 73 65 73 20 | 72 75 6e 2d 74 69 6d 65 | causes |run-time|
|00006660| 20 65 72 72 6f 72 20 69 | 66 20 74 68 65 20 77 69 | error i|f the wi|
|00006670| 6e 64 6f 77 49 44 20 69 | 74 20 72 65 63 65 69 76 |ndowID i|t receiv|
|00006680| 65 73 20 69 73 20 69 6e | 76 61 6c 69 64 0d 09 2a |es is in|valid..*|
|00006690| 2f 0d 0d 76 6f 69 64 20 | 4f 70 65 6e 46 69 6c 65 |/..void |OpenFile|
|000066a0| 28 63 6f 6e 73 74 20 53 | 74 72 32 35 35 20 66 69 |(const S|tr255 fi|
|000066b0| 6c 65 4e 61 6d 65 29 3b | 0d 09 2f 2a 0d 09 09 4f |leName);|../*...O|
|000066c0| 70 65 6e 73 20 74 68 65 | 20 67 69 76 65 6e 20 66 |pens the| given f|
|000066d0| 69 6c 65 20 69 6e 20 61 | 20 6e 65 77 20 77 69 6e |ile in a| new win|
|000066e0| 64 6f 77 2e 0d 09 09 66 | 69 6c 65 4e 61 6d 65 3a |dow....f|ileName:|
|000066f0| 20 74 68 65 20 66 69 6c | 65 73 20 6e 61 6d 65 2e | the fil|es name.|
|00006700| 20 49 66 20 66 69 6c 65 | 4e 61 6d 65 20 64 6f 65 | If file|Name doe|
|00006710| 73 20 6e 6f 74 20 63 6f | 6e 74 61 69 6e 20 61 20 |s not co|ntain a |
|00006720| 66 69 6c 65 20 70 61 74 | 68 2c 20 74 68 65 20 66 |file pat|h, the f|
|00006730| 69 6c 65 0d 09 09 69 73 | 20 65 78 70 65 63 74 65 |ile...is| expecte|
|00006740| 64 20 74 6f 20 72 65 73 | 69 64 65 20 69 6e 20 74 |d to res|ide in t|
|00006750| 68 65 20 73 61 6d 65 20 | 66 6f 6c 64 65 72 20 61 |he same |folder a|
|00006760| 73 20 70 72 6f 20 46 69 | 74 2e 20 41 6c 74 65 72 |s pro Fi|t. Alter|
|00006770| 6e 61 74 69 76 65 6c 79 | 2c 20 79 6f 75 0d 09 09 |natively|, you...|
|00006780| 63 61 6e 20 73 70 65 63 | 69 66 79 20 61 20 66 69 |can spec|ify a fi|
|00006790| 6c 65 20 70 61 74 68 2c | 20 73 75 63 68 20 61 73 |le path,| such as|
|000067a0| 20 22 5c 70 48 44 3a 4d | 79 46 6f 6c 64 65 72 3a | "\pHD:M|yFolder:|
|000067b0| 4d 79 20 46 69 6c 65 22 | 2e 0d 09 09 53 65 74 20 |My File"|....Set |
|000067c0| 6e 61 6d 65 20 74 6f 20 | 22 5c 70 3f 22 20 66 6f |name to |"\p?" fo|
|000067d0| 72 20 62 72 69 6e 67 69 | 6e 67 20 75 70 20 61 20 |r bringi|ng up a |
|000067e0| 64 69 61 6c 6f 67 20 62 | 6f 78 20 70 72 6f 6d 70 |dialog b|ox promp|
|000067f0| 74 69 6e 67 20 74 68 65 | 20 75 73 65 72 20 66 6f |ting the| user fo|
|00006800| 72 20 74 68 65 20 6e 61 | 6d 65 2e 0d 09 09 41 20 |r the na|me....A |
|00006810| 72 75 6e 2d 74 69 6d 65 | 20 65 72 72 6f 72 20 6f |run-time| error o|
|00006820| 63 63 75 72 73 20 69 66 | 20 74 68 65 20 66 69 6c |ccurs if| the fil|
|00006830| 65 20 63 61 6e 6e 6f 74 | 20 62 65 20 6f 70 65 6e |e cannot| be open|
|00006840| 65 64 2e 0d 09 2a 2f 0d | 0d 76 6f 69 64 20 4f 70 |ed...*/.|.void Op|
|00006850| 65 6e 44 61 74 61 28 63 | 6f 6e 73 74 20 53 74 72 |enData(c|onst Str|
|00006860| 32 35 35 20 66 69 6c 65 | 4e 61 6d 65 29 3b 0d 09 |255 file|Name);..|
|00006870| 2f 2a 0d 09 09 4f 70 65 | 6e 73 20 74 68 65 20 67 |/*...Ope|ns the g|
|00006880| 69 76 65 6e 20 66 69 6c | 65 20 61 73 20 61 20 64 |iven fil|e as a d|
|00006890| 61 74 61 20 66 69 6c 65 | 2e 20 54 68 65 20 66 69 |ata file|. The fi|
|000068a0| 6c 65 20 6d 75 73 74 20 | 65 69 74 68 65 72 20 62 |le must |either b|
|000068b0| 65 20 61 20 70 72 6f 20 | 46 69 74 20 64 61 74 61 |e a pro |Fit data|
|000068c0| 0d 09 09 66 69 6c 65 20 | 6f 72 20 61 20 74 65 78 |...file |or a tex|
|000068d0| 74 20 66 69 6c 65 20 77 | 69 74 68 20 76 61 6c 69 |t file w|ith vali|
|000068e0| 64 20 64 61 74 61 2e 0d | 09 09 66 69 6c 65 4e 61 |d data..|..fileNa|
|000068f0| 6d 65 3a 20 74 68 65 20 | 66 69 6c 65 73 20 6e 61 |me: the |files na|
|00006900| 6d 65 2e 20 49 66 20 66 | 69 6c 65 4e 61 6d 65 20 |me. If f|ileName |
|00006910| 64 6f 65 73 20 6e 6f 74 | 20 63 6f 6e 74 61 69 6e |does not| contain|
|00006920| 20 61 20 66 69 6c 65 20 | 70 61 74 68 2c 20 74 68 | a file |path, th|
|00006930| 65 20 66 69 6c 65 0d 09 | 09 69 73 20 65 78 70 65 |e file..|.is expe|
|00006940| 63 74 65 64 20 74 6f 20 | 72 65 73 69 64 65 20 69 |cted to |reside i|
|00006950| 6e 20 74 68 65 20 73 61 | 6d 65 20 66 6f 6c 64 65 |n the sa|me folde|
|00006960| 72 20 61 73 20 70 72 6f | 20 46 69 74 2e 20 41 6c |r as pro| Fit. Al|
|00006970| 74 65 72 6e 61 74 69 76 | 65 6c 79 2c 20 79 6f 75 |ternativ|ely, you|
|00006980| 0d 09 09 63 61 6e 20 73 | 70 65 63 69 66 79 20 61 |...can s|pecify a|
|00006990| 20 66 69 6c 65 20 70 61 | 74 68 2c 20 73 75 63 68 | file pa|th, such|
|000069a0| 20 61 73 20 22 5c 70 48 | 44 3a 4d 79 46 6f 6c 64 | as "\pH|D:MyFold|
|000069b0| 65 72 3a 4d 79 20 46 69 | 6c 65 22 2e 0d 09 09 53 |er:My Fi|le"....S|
|000069c0| 65 74 20 6e 61 6d 65 20 | 74 6f 20 22 5c 70 3f 22 |et name |to "\p?"|
|000069d0| 20 66 6f 72 20 62 72 69 | 6e 67 69 6e 67 20 75 70 | for bri|nging up|
|000069e0| 20 61 20 64 69 61 6c 6f | 67 20 62 6f 78 20 70 72 | a dialo|g box pr|
|000069f0| 6f 6d 70 74 69 6e 67 20 | 74 68 65 20 75 73 65 72 |ompting |the user|
|00006a00| 20 66 6f 72 20 74 68 65 | 20 6e 61 6d 65 2e 0d 09 | for the| name...|
|00006a10| 09 41 20 72 75 6e 2d 74 | 69 6d 65 20 65 72 72 6f |.A run-t|ime erro|
|00006a20| 72 20 6f 63 63 75 72 73 | 20 69 66 20 74 68 65 20 |r occurs| if the |
|00006a30| 66 69 6c 65 20 63 61 6e | 6e 6f 74 20 62 65 20 6f |file can|not be o|
|00006a40| 70 65 6e 65 64 2e 0d 09 | 2a 2f 0d 0d 76 6f 69 64 |pened...|*/..void|
|00006a50| 20 4f 70 65 6e 54 65 78 | 74 28 63 6f 6e 73 74 20 | OpenTex|t(const |
|00006a60| 53 74 72 32 35 35 20 66 | 69 6c 65 4e 61 6d 65 29 |Str255 f|ileName)|
|00006a70| 3b 0d 09 2f 2a 0d 09 09 | 4f 70 65 6e 73 20 74 68 |;../*...|Opens th|
|00006a80| 65 20 67 69 76 65 6e 20 | 66 69 6c 65 20 61 73 20 |e given |file as |
|00006a90| 61 20 74 65 78 74 20 66 | 69 6c 65 2e 20 54 68 65 |a text f|ile. The|
|00006aa0| 20 66 69 6c 65 20 6d 75 | 73 74 20 65 69 74 68 65 | file mu|st eithe|
|00006ab0| 72 20 62 65 20 61 20 70 | 72 6f 20 46 69 74 20 66 |r be a p|ro Fit f|
|00006ac0| 75 6e 63 74 69 6f 6e 0d | 09 09 66 69 6c 65 20 6f |unction.|..file o|
|00006ad0| 72 20 61 20 74 65 78 74 | 20 66 69 6c 65 2e 0d 09 |r a text| file...|
|00006ae0| 09 66 69 6c 65 4e 61 6d | 65 3a 20 74 68 65 20 66 |.fileNam|e: the f|
|00006af0| 69 6c 65 73 20 6e 61 6d | 65 2e 20 49 66 20 66 69 |iles nam|e. If fi|
|00006b00| 6c 65 4e 61 6d 65 20 64 | 6f 65 73 20 6e 6f 74 20 |leName d|oes not |
|00006b10| 63 6f 6e 74 61 69 6e 20 | 61 20 66 69 6c 65 20 70 |contain |a file p|
|00006b20| 61 74 68 2c 20 74 68 65 | 20 66 69 6c 65 0d 09 09 |ath, the| file...|
|00006b30| 69 73 20 65 78 70 65 63 | 74 65 64 20 74 6f 20 72 |is expec|ted to r|
|00006b40| 65 73 69 64 65 20 69 6e | 20 74 68 65 20 73 61 6d |eside in| the sam|
|00006b50| 65 20 66 6f 6c 64 65 72 | 20 61 73 20 70 72 6f 20 |e folder| as pro |
|00006b60| 46 69 74 2e 20 41 6c 74 | 65 72 6e 61 74 69 76 65 |Fit. Alt|ernative|
|00006b70| 6c 79 2c 20 79 6f 75 0d | 09 09 63 61 6e 20 73 70 |ly, you.|..can sp|
|00006b80| 65 63 69 66 79 20 61 20 | 66 69 6c 65 20 70 61 74 |ecify a |file pat|
|00006b90| 68 2c 20 73 75 63 68 20 | 61 73 20 22 5c 70 48 44 |h, such |as "\pHD|
|00006ba0| 3a 4d 79 46 6f 6c 64 65 | 72 3a 4d 79 20 46 69 6c |:MyFolde|r:My Fil|
|00006bb0| 65 22 2e 0d 09 09 53 65 | 74 20 6e 61 6d 65 20 74 |e"....Se|t name t|
|00006bc0| 6f 20 22 5c 70 3f 22 20 | 66 6f 72 20 62 72 69 6e |o "\p?" |for brin|
|00006bd0| 67 69 6e 67 20 75 70 20 | 61 20 64 69 61 6c 6f 67 |ging up |a dialog|
|00006be0| 20 62 6f 78 20 70 72 6f | 6d 70 74 69 6e 67 20 74 | box pro|mpting t|
|00006bf0| 68 65 20 75 73 65 72 20 | 66 6f 72 20 74 68 65 20 |he user |for the |
|00006c00| 6e 61 6d 65 2e 0d 09 09 | 41 20 72 75 6e 2d 74 69 |name....|A run-ti|
|00006c10| 6d 65 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 20 |me error| occurs |
|00006c20| 69 66 20 74 68 65 20 66 | 69 6c 65 20 63 61 6e 6e |if the f|ile cann|
|00006c30| 6f 74 20 62 65 20 6f 70 | 65 6e 65 64 2e 0d 09 2a |ot be op|ened...*|
|00006c40| 2f 0d 0d 76 6f 69 64 20 | 53 65 74 54 65 78 74 46 |/..void |SetTextF|
|00006c50| 69 6c 65 46 6f 72 6d 61 | 74 28 63 6f 6e 73 74 20 |ileForma|t(const |
|00006c60| 53 74 72 32 35 35 20 63 | 6f 6c 44 65 6c 69 6d 69 |Str255 c|olDelimi|
|00006c70| 74 65 72 2c 0d 09 09 09 | 09 09 09 63 6f 6e 73 74 |ter,....|...const|
|00006c80| 20 53 74 72 32 35 35 20 | 65 6e 64 4f 66 4c 69 6e | Str255 |endOfLin|
|00006c90| 65 2c 0d 09 09 09 09 09 | 09 42 6f 6f 6c 65 61 6e |e,......|.Boolean|
|00006ca0| 20 77 69 74 68 43 6f 6c | 54 69 74 6c 65 73 2c 0d | withCol|Titles,.|
|00006cb0| 09 09 09 09 09 09 42 6f | 6f 6c 65 61 6e 20 63 6f |......Bo|olean co|
|00006cc0| 70 79 49 6e 66 6f 54 65 | 78 74 2c 0d 09 09 09 09 |pyInfoTe|xt,.....|
|00006cd0| 09 09 6c 6f 6e 67 20 6e | 72 48 65 61 64 65 72 4c |..long n|rHeaderL|
|00006ce0| 69 6e 65 73 2c 0d 09 09 | 09 09 09 09 6c 6f 6e 67 |ines,...|....long|
|00006cf0| 20 69 6e 70 75 74 4f 52 | 6f 75 74 70 75 74 29 3b | inputOR|output);|
|00006d00| 0d 09 2f 2a 0d 09 09 63 | 6f 6c 44 65 6c 69 6d 69 |../*...c|olDelimi|
|00006d10| 74 65 72 3a 09 69 6e 73 | 65 72 74 65 64 20 62 65 |ter:.ins|erted be|
|00006d20| 74 77 65 65 6e 20 63 6f | 6e 73 65 63 75 74 69 76 |tween co|nsecutiv|
|00006d30| 65 20 63 65 6c 6c 73 20 | 69 6e 20 74 68 65 20 73 |e cells |in the s|
|00006d40| 61 6d 65 20 72 6f 77 2e | 0d 09 09 09 09 09 09 55 |ame row.|.......U|
|00006d50| 73 75 61 6c 6c 79 2c 20 | 79 6f 75 20 77 69 6c 6c |sually, |you will|
|00006d60| 20 73 70 65 63 69 66 79 | 20 61 20 74 61 62 20 63 | specify| a tab c|
|00006d70| 68 61 72 61 63 74 65 72 | 20 62 79 20 70 61 73 73 |haracter| by pass|
|00006d80| 69 6e 67 20 22 5c 70 5c | 74 22 0d 09 09 65 6e 64 |ing "\p\|t"...end|
|00006d90| 4f 66 4c 69 6e 65 3a 09 | 09 69 6e 73 65 72 74 65 |OfLine:.|.inserte|
|00006da0| 64 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 6c 61 |d betwee|n the la|
|00006db0| 73 74 20 63 65 6c 6c 20 | 6f 66 20 61 20 72 6f 77 |st cell |of a row|
|00006dc0| 20 61 6e 64 20 74 68 65 | 20 66 69 72 73 74 20 63 | and the| first c|
|00006dd0| 65 6c 6c 0d 09 09 09 09 | 09 09 6f 66 20 61 20 6e |ell.....|..of a n|
|00006de0| 65 78 74 20 72 6f 77 2e | 20 55 73 75 61 6c 6c 79 |ext row.| Usually|
|00006df0| 2c 20 79 6f 75 20 77 69 | 6c 6c 20 73 70 65 63 69 |, you wi|ll speci|
|00006e00| 66 79 20 74 68 65 20 43 | 52 20 63 68 61 72 61 63 |fy the C|R charac|
|00006e10| 74 65 72 0d 09 09 09 09 | 09 09 62 79 20 70 61 73 |ter.....|..by pas|
|00006e20| 73 69 6e 67 20 22 5c 70 | 5c 31 35 22 0d 09 09 77 |sing "\p|\15"...w|
|00006e30| 69 74 68 43 6f 6c 54 69 | 74 6c 65 73 3a 09 70 61 |ithColTi|tles:.pa|
|00006e40| 73 73 20 74 72 75 65 20 | 69 66 20 74 68 65 20 63 |ss true |if the c|
|00006e50| 6f 6c 75 6d 6e 20 74 69 | 74 6c 65 73 20 73 68 6f |olumn ti|tles sho|
|00006e60| 75 6c 64 20 62 65 20 73 | 61 76 65 64 20 2f 20 6c |uld be s|aved / l|
|00006e70| 6f 61 64 65 64 0d 09 09 | 09 09 09 09 61 73 20 74 |oaded...|....as t|
|00006e80| 68 65 20 28 66 69 72 73 | 74 29 20 72 6f 77 20 6f |he (firs|t) row o|
|00006e90| 66 20 74 68 65 20 66 69 | 6c 65 2e 0d 09 09 63 6f |f the fi|le....co|
|00006ea0| 70 79 49 6e 66 6f 54 65 | 78 74 3a 09 70 61 73 73 |pyInfoTe|xt:.pass|
|00006eb0| 20 74 72 75 65 20 69 66 | 20 74 68 65 20 74 65 78 | true if| the tex|
|00006ec0| 74 20 69 6e 20 74 68 65 | 20 69 6e 66 6f 20 66 69 |t in the| info fi|
|00006ed0| 65 6c 64 20 6f 66 20 74 | 68 65 20 64 61 74 61 20 |eld of t|he data |
|00006ee0| 77 69 6e 64 6f 77 0d 09 | 09 09 09 09 09 73 68 6f |window..|.....sho|
|00006ef0| 75 6c 64 20 62 65 20 73 | 61 76 65 64 20 2f 20 6c |uld be s|aved / l|
|00006f00| 6f 61 64 65 64 20 61 74 | 20 74 68 65 20 62 65 67 |oaded at| the beg|
|00006f10| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 66 69 |inning o|f the fi|
|00006f20| 6c 65 0d 09 09 6e 72 48 | 65 61 64 65 72 4c 69 6e |le...nrH|eaderLin|
|00006f30| 65 73 3a 09 6e 75 6d 62 | 65 72 20 6f 66 20 68 65 |es:.numb|er of he|
|00006f40| 61 64 65 72 20 6c 69 6e | 65 73 20 63 6f 6e 74 61 |ader lin|es conta|
|00006f50| 69 6e 65 64 20 69 6e 20 | 74 68 65 20 74 65 78 74 |ined in |the text|
|00006f60| 20 66 69 6c 65 20 77 68 | 65 6e 20 6c 6f 61 64 69 | file wh|en loadi|
|00006f70| 6e 67 2e 0d 09 09 09 09 | 09 09 49 66 20 63 6f 70 |ng......|..If cop|
|00006f80| 79 49 6e 66 6f 54 65 78 | 74 20 69 73 20 74 72 75 |yInfoTex|t is tru|
|00006f90| 65 2c 20 74 68 65 73 65 | 20 6c 69 6e 65 73 20 61 |e, these| lines a|
|00006fa0| 72 65 20 63 6f 70 69 65 | 64 20 74 6f 20 74 68 65 |re copie|d to the|
|00006fb0| 20 69 6e 66 6f 0d 09 09 | 09 09 09 09 66 69 65 6c | info...|....fiel|
|00006fc0| 64 2c 20 6f 74 68 65 72 | 77 69 73 65 20 74 68 65 |d, other|wise the|
|00006fd0| 79 20 61 72 65 20 73 6b | 69 70 70 65 64 2e 0d 09 |y are sk|ipped...|
|00006fe0| 09 69 6e 70 75 74 4f 52 | 6f 75 74 70 75 74 3a 09 |.inputOR|output:.|
|00006ff0| 70 61 73 73 20 31 20 74 | 6f 20 64 65 66 69 6e 65 |pass 1 t|o define|
|00007000| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 6f 66 20 61 | the for|mat of a|
|00007010| 6e 20 69 6e 70 75 74 20 | 66 69 6c 65 20 28 6c 6f |n input |file (lo|
|00007020| 61 64 69 6e 67 29 2c 0d | 09 09 09 09 09 09 70 61 |ading),.|......pa|
|00007030| 73 73 20 30 20 74 6f 20 | 64 65 66 69 6e 65 20 74 |ss 0 to |define t|
|00007040| 68 65 20 66 6f 72 6d 61 | 74 20 6f 66 20 61 6e 20 |he forma|t of an |
|00007050| 6f 75 74 70 75 74 20 66 | 69 6c 65 20 28 73 61 76 |output f|ile (sav|
|00007060| 69 6e 67 29 2e 0d 09 2a | 2f 0d 0d 76 6f 69 64 20 |ing)...*|/..void |
|00007070| 53 61 76 65 44 61 74 61 | 41 73 54 65 78 74 28 6c |SaveData|AsText(l|
|00007080| 6f 6e 67 20 77 69 6e 64 | 6f 77 49 44 2c 20 63 6f |ong wind|owID, co|
|00007090| 6e 73 74 20 53 74 72 32 | 35 35 20 66 69 6c 65 4e |nst Str2|55 fileN|
|000070a0| 61 6d 65 29 3b 09 09 09 | 0d 09 2f 2a 0d 09 09 73 |ame);...|../*...s|
|000070b0| 61 76 65 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |aves the| content|
|000070c0| 73 20 6f 66 20 74 68 65 | 20 64 61 74 61 20 77 69 |s of the| data wi|
|000070d0| 6e 64 6f 77 20 69 6e 20 | 61 20 66 69 6c 65 2e 0d |ndow in |a file..|
|000070e0| 09 09 66 69 6c 65 4e 61 | 6d 65 3a 20 74 68 65 20 |..fileNa|me: the |
|000070f0| 66 69 6c 65 27 73 20 6e | 61 6d 65 2e 20 49 66 20 |file's n|ame. If |
|00007100| 66 69 6c 65 4e 61 6d 65 | 20 64 6f 65 73 20 6e 6f |fileName| does no|
|00007110| 74 20 63 6f 6e 74 61 69 | 6e 20 61 20 66 69 6c 65 |t contai|n a file|
|00007120| 20 70 61 74 68 2c 20 74 | 68 65 20 66 69 6c 65 0d | path, t|he file.|
|00007130| 09 09 09 69 73 20 65 78 | 70 65 63 74 65 64 20 74 |...is ex|pected t|
|00007140| 6f 20 72 65 73 69 64 65 | 20 69 6e 20 74 68 65 20 |o reside| in the |
|00007150| 73 61 6d 65 20 66 6f 6c | 64 65 72 20 61 73 20 70 |same fol|der as p|
|00007160| 72 6f 20 46 69 74 2e 20 | 41 6c 74 65 72 6e 61 74 |ro Fit. |Alternat|
|00007170| 69 76 65 6c 79 2c 20 79 | 6f 75 0d 09 09 09 63 61 |ively, y|ou....ca|
|00007180| 6e 20 73 70 65 63 69 66 | 79 20 61 20 66 69 6c 65 |n specif|y a file|
|00007190| 20 70 61 74 68 2c 20 73 | 75 63 68 20 61 73 20 22 | path, s|uch as "|
|000071a0| 5c 70 48 44 3a 4d 79 46 | 6f 6c 64 65 72 3a 4d 79 |\pHD:MyF|older:My|
|000071b0| 20 46 69 6c 65 22 2e 0d | 09 09 09 69 66 20 66 69 | File"..|...if fi|
|000071c0| 6c 65 4e 61 6d 65 20 69 | 73 20 61 6e 20 65 6d 70 |leName i|s an emp|
|000071d0| 74 79 20 73 74 72 69 6e | 67 2c 20 74 68 65 20 77 |ty strin|g, the w|
|000071e0| 69 6e 64 6f 77 20 69 73 | 20 73 61 76 65 64 20 69 |indow is| saved i|
|000071f0| 6e 20 61 20 66 69 6c 65 | 20 68 61 76 69 6e 67 20 |n a file| having |
|00007200| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00007210| 77 69 6e 64 6f 77 0d 09 | 09 09 69 66 20 66 69 6c |window..|..if fil|
|00007220| 65 4e 61 6d 65 20 69 73 | 20 22 5c 70 3f 22 2c 20 |eName is| "\p?", |
|00007230| 61 20 64 69 61 6c 6f 67 | 20 62 6f 78 20 69 73 20 |a dialog| box is |
|00007240| 62 72 6f 75 67 68 74 20 | 75 70 20 74 6f 20 61 73 |brought |up to as|
|00007250| 6b 20 66 6f 72 20 75 73 | 65 72 20 66 6f 72 20 61 |k for us|er for a|
|00007260| 20 6e 61 6d 65 0d 09 09 | 54 68 65 20 69 6e 64 69 | name...|The indi|
|00007270| 76 69 64 75 61 6c 20 63 | 65 6c 6c 73 20 77 69 6c |vidual c|ells wil|
|00007280| 6c 20 62 65 20 73 74 6f | 72 65 64 20 72 6f 77 20 |l be sto|red row |
|00007290| 62 79 20 72 6f 77 2e 0d | 09 09 54 6f 20 73 65 74 |by row..|..To set|
|000072a0| 20 74 68 65 20 66 6f 72 | 6d 61 74 20 6f 66 20 74 | the for|mat of t|
|000072b0| 68 65 20 74 65 78 74 20 | 66 69 6c 65 2c 20 75 73 |he text |file, us|
|000072c0| 65 20 53 65 74 54 65 78 | 74 46 69 6c 65 46 6f 72 |e SetTex|tFileFor|
|000072d0| 6d 61 74 0d 09 2a 2f 0d | 0d 76 6f 69 64 20 53 61 |mat..*/.|.void Sa|
|000072e0| 76 65 44 72 61 77 69 6e | 67 41 73 28 6c 6f 6e 67 |veDrawin|gAs(long|
|000072f0| 20 77 69 6e 64 6f 77 49 | 44 2c 20 63 6f 6e 73 74 | windowI|D, const|
|00007300| 20 53 74 72 32 35 35 20 | 66 69 6c 65 4e 61 6d 65 | Str255 |fileName|
|00007310| 2c 6c 6f 6e 67 20 66 6f | 72 6d 61 74 29 3b 0d 09 |,long fo|rmat);..|
|00007320| 2f 2a 0d 09 09 73 61 76 | 65 73 20 74 68 65 20 63 |/*...sav|es the c|
|00007330| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 64 |ontents |of the d|
|00007340| 72 61 77 69 6e 67 20 77 | 69 6e 64 6f 77 20 69 6e |rawing w|indow in|
|00007350| 20 61 20 66 69 6c 65 2e | 0d 09 09 66 69 6c 65 4e | a file.|...fileN|
|00007360| 61 6d 65 3a 20 74 68 65 | 20 66 69 6c 65 27 73 20 |ame: the| file's |
|00007370| 6e 61 6d 65 2e 20 49 66 | 20 66 69 6c 65 4e 61 6d |name. If| fileNam|
|00007380| 65 20 64 6f 65 73 20 6e | 6f 74 20 63 6f 6e 74 61 |e does n|ot conta|
|00007390| 69 6e 20 61 20 66 69 6c | 65 20 70 61 74 68 2c 20 |in a fil|e path, |
|000073a0| 74 68 65 20 66 69 6c 65 | 0d 09 09 09 69 73 20 65 |the file|....is e|
|000073b0| 78 70 65 63 74 65 64 20 | 74 6f 20 72 65 73 69 64 |xpected |to resid|
|000073c0| 65 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 66 6f |e in the| same fo|
|000073d0| 6c 64 65 72 20 61 73 20 | 70 72 6f 20 46 69 74 2e |lder as |pro Fit.|
|000073e0| 20 41 6c 74 65 72 6e 61 | 74 69 76 65 6c 79 2c 20 | Alterna|tively, |
|000073f0| 79 6f 75 0d 09 09 09 63 | 61 6e 20 73 70 65 63 69 |you....c|an speci|
|00007400| 66 79 20 61 20 66 69 6c | 65 20 70 61 74 68 2c 20 |fy a fil|e path, |
|00007410| 73 75 63 68 20 61 73 20 | 22 5c 70 48 44 3a 4d 79 |such as |"\pHD:My|
|00007420| 46 6f 6c 64 65 72 3a 4d | 79 20 46 69 6c 65 22 2e |Folder:M|y File".|
|00007430| 0d 09 09 09 69 66 20 66 | 69 6c 65 4e 61 6d 65 20 |....if f|ileName |
|00007440| 69 73 20 61 6e 20 65 6d | 70 74 79 20 73 74 72 69 |is an em|pty stri|
|00007450| 6e 67 2c 20 74 68 65 20 | 77 69 6e 64 6f 77 20 69 |ng, the |window i|
|00007460| 73 20 73 61 76 65 64 20 | 69 6e 20 61 20 66 69 6c |s saved |in a fil|
|00007470| 65 20 68 61 76 69 6e 67 | 20 74 68 65 20 6e 61 6d |e having| the nam|
|00007480| 65 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 0d |e of the| window.|
|00007490| 09 09 09 69 66 20 66 69 | 6c 65 4e 61 6d 65 20 69 |...if fi|leName i|
|000074a0| 73 20 22 5c 70 3f 22 2c | 20 61 20 64 69 61 6c 6f |s "\p?",| a dialo|
|000074b0| 67 20 62 6f 78 20 69 73 | 20 62 72 6f 75 67 68 74 |g box is| brought|
|000074c0| 20 75 70 20 74 6f 20 61 | 73 6b 20 66 6f 72 20 75 | up to a|sk for u|
|000074d0| 73 65 72 20 66 6f 72 20 | 61 20 6e 61 6d 65 0d 09 |ser for |a name..|
|000074e0| 09 66 6f 72 6d 61 74 3a | 09 30 20 66 6f 72 20 73 |.format:|.0 for s|
|000074f0| 61 76 69 6e 67 20 74 68 | 65 20 66 69 6c 65 20 69 |aving th|e file i|
|00007500| 6e 20 61 20 73 74 61 6e | 64 61 72 64 20 70 72 6f |n a stan|dard pro|
|00007510| 20 46 69 74 20 64 72 61 | 77 69 6e 67 20 66 69 6c | Fit dra|wing fil|
|00007520| 65 0d 09 09 09 09 31 20 | 66 6f 72 20 73 61 76 69 |e.....1 |for savi|
|00007530| 6e 67 20 74 68 65 20 66 | 69 6c 65 20 61 73 20 70 |ng the f|ile as p|
|00007540| 69 63 74 75 72 65 20 28 | 68 61 76 69 6e 67 20 61 |icture (|having a|
|00007550| 20 66 69 6c 65 20 74 79 | 70 65 20 50 49 43 54 29 | file ty|pe PICT)|
|00007560| 0d 09 09 09 09 32 20 66 | 6f 72 20 73 61 76 69 6e |.....2 f|or savin|
|00007570| 67 20 74 68 65 20 66 69 | 65 6c 20 61 73 20 65 70 |g the fi|el as ep|
|00007580| 73 2d 66 69 6c 65 20 28 | 68 61 76 69 6e 67 20 61 |s-file (|having a|
|00007590| 20 66 69 6c 65 20 74 79 | 70 65 20 45 50 53 46 29 | file ty|pe EPSF)|
|000075a0| 0d 09 2a 2f 0d 0d 76 6f | 69 64 20 53 65 74 57 69 |..*/..vo|id SetWi|
|000075b0| 6e 64 6f 77 54 69 74 6c | 65 28 6c 6f 6e 67 20 77 |ndowTitl|e(long w|
|000075c0| 69 6e 64 6f 77 49 44 2c | 20 63 6f 6e 73 74 20 53 |indowID,| const S|
|000075d0| 74 72 32 35 35 20 6e 61 | 6d 65 29 3b 0d 09 2f 2a |tr255 na|me);../*|
|000075e0| 0d 09 09 73 65 74 73 20 | 74 68 65 20 74 69 74 6c |...sets |the titl|
|000075f0| 65 20 6f 66 20 61 20 67 | 69 76 65 6e 20 77 69 6e |e of a g|iven win|
|00007600| 64 6f 77 2e 20 54 68 65 | 20 74 69 74 6c 65 20 73 |dow. The| title s|
|00007610| 68 6f 75 6c 64 20 6e 6f | 74 20 63 6f 6e 74 61 69 |hould no|t contai|
|00007620| 6e 20 61 20 27 3a 27 0d | 09 2a 2f 0d 0d 76 6f 69 |n a ':'.|.*/..voi|
|00007630| 64 20 47 65 74 57 69 6e | 64 6f 77 54 69 74 6c 65 |d GetWin|dowTitle|
|00007640| 28 6c 6f 6e 67 20 77 69 | 6e 64 6f 77 49 44 2c 20 |(long wi|ndowID, |
|00007650| 53 74 72 32 35 35 20 6e | 61 6d 65 29 3b 0d 09 2f |Str255 n|ame);../|
|00007660| 2a 0d 09 09 72 65 74 75 | 72 6e 73 20 74 68 65 20 |*...retu|rns the |
|00007670| 74 69 74 6c 65 20 6f 66 | 20 74 68 65 20 77 69 6e |title of| the win|
|00007680| 64 6f 77 20 77 69 74 68 | 20 74 68 65 20 67 69 76 |dow with| the giv|
|00007690| 65 6e 20 77 69 6e 64 6f | 77 49 44 0d 09 2a 2f 0d |en windo|wID..*/.|
|000076a0| 0d 76 6f 69 64 20 53 65 | 74 57 69 6e 64 6f 77 49 |.void Se|tWindowI|
|000076b0| 6e 66 6f 28 6c 6f 6e 67 | 20 77 69 6e 64 6f 77 49 |nfo(long| windowI|
|000076c0| 44 2c 20 6c 6f 6e 67 20 | 6c 65 6e 67 74 68 2c 20 |D, long |length, |
|000076d0| 50 74 72 20 69 6e 66 6f | 29 3b 0d 09 2f 2a 0d 09 |Ptr info|);../*..|
|000076e0| 09 53 65 74 73 20 74 68 | 65 20 69 6e 66 6f 20 6f |.Sets th|e info o|
|000076f0| 66 20 61 20 77 69 6e 64 | 6f 77 2e 20 28 54 68 65 |f a wind|ow. (The|
|00007700| 20 22 69 6e 66 6f 22 20 | 6f 66 20 61 20 77 69 6e | "info" |of a win|
|00007710| 64 6f 77 20 63 61 6e 20 | 62 65 20 76 69 65 77 65 |dow can |be viewe|
|00007720| 64 20 62 79 20 75 73 69 | 6e 67 20 74 68 65 0d 09 |d by usi|ng the..|
|00007730| 09 47 65 74 20 49 6e 66 | 6f 2e 2e 2e 20 63 6f 6d |.Get Inf|o... com|
|00007740| 6d 61 6e 64 20 66 72 6f | 6d 20 74 68 65 20 46 69 |mand fro|m the Fi|
|00007750| 6c 65 20 6d 65 6e 75 2e | 20 46 6f 72 20 64 61 74 |le menu.| For dat|
|00007760| 61 20 77 69 6e 64 6f 77 | 73 2c 20 69 74 20 69 73 |a window|s, it is|
|00007770| 20 74 68 65 0d 09 09 74 | 65 78 74 20 74 68 61 74 | the...t|ext that|
|00007780| 20 61 70 70 65 61 72 73 | 20 77 68 65 6e 20 79 6f | appears| when yo|
|00007790| 75 20 64 72 61 67 20 64 | 6f 77 6e 20 74 68 65 20 |u drag d|own the |
|000077a0| 69 6e 66 6f 20 66 69 65 | 6c 64 2e 29 0d 09 09 77 |info fie|ld.)...w|
|000077b0| 69 6e 64 6f 77 49 44 3a | 20 74 68 65 20 69 64 20 |indowID:| the id |
|000077c0| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 0d 09 09 |of the w|indow...|
|000077d0| 6c 65 6e 67 74 68 3a 20 | 74 68 65 20 6c 65 6e 67 |length: |the leng|
|000077e0| 74 68 20 6f 66 20 74 68 | 65 20 74 65 78 74 20 69 |th of th|e text i|
|000077f0| 6e 20 62 79 74 65 73 0d | 09 09 69 6e 66 6f 3a 20 |n bytes.|..info: |
|00007800| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|00007810| 20 73 74 61 72 74 20 6f | 66 20 74 68 65 20 74 65 | start o|f the te|
|00007820| 78 74 0d 09 09 55 73 65 | 20 53 65 74 57 69 6e 64 |xt...Use| SetWind|
|00007830| 6f 77 28 77 69 6e 64 6f | 77 49 44 2c 20 30 2c 20 |ow(windo|wID, 0, |
|00007840| 6e 69 6c 29 20 66 6f 72 | 20 63 6c 65 61 72 69 6e |nil) for| clearin|
|00007850| 67 20 74 68 65 20 69 6e | 66 6f 20 66 69 65 6c 64 |g the in|fo field|
|00007860| 2e 0d 09 2a 2f 0d 0d 76 | 6f 69 64 20 50 6c 61 63 |...*/..v|oid Plac|
|00007870| 65 57 69 6e 64 6f 77 28 | 6c 6f 6e 67 20 77 69 6e |eWindow(|long win|
|00007880| 64 6f 77 49 44 2c 20 52 | 65 63 74 20 77 69 6e 64 |dowID, R|ect wind|
|00007890| 6f 77 52 65 63 74 29 3b | 0d 09 2f 2a 0d 09 09 72 |owRect);|../*...r|
|000078a0| 65 73 69 7a 65 73 20 61 | 6e 64 20 70 6f 73 69 74 |esizes a|nd posit|
|000078b0| 69 6f 6e 73 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |ions the| window |
|000078c0| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 77 69 6e |accordin|g to win|
|000078d0| 64 6f 77 52 65 63 74 0d | 09 2a 2f 0d 0d 0d 76 6f |dowRect.|.*/...vo|
|000078e0| 69 64 20 42 72 69 6e 67 | 57 69 6e 64 6f 77 54 6f |id Bring|WindowTo|
|000078f0| 46 72 6f 6e 74 28 6c 6f | 6e 67 20 77 69 6e 64 6f |Front(lo|ng windo|
|00007900| 77 49 44 29 3b 0d 09 2f | 2a 0d 09 09 74 68 65 20 |wID);../|*...the |
|00007910| 77 69 6e 64 6f 77 20 77 | 69 74 68 20 74 68 65 20 |window w|ith the |
|00007920| 67 69 76 65 6e 20 49 44 | 20 6e 75 6d 62 65 72 20 |given ID| number |
|00007930| 69 73 20 62 72 6f 75 67 | 68 74 20 69 6e 20 66 72 |is broug|ht in fr|
|00007940| 6f 6e 74 20 6f 66 20 61 | 6c 6c 20 6f 74 68 65 72 |ont of a|ll other|
|00007950| 73 2e 0d 09 2a 2f 0d 0d | 76 6f 69 64 20 43 6f 6d |s...*/..|void Com|
|00007960| 70 69 6c 65 28 6c 6f 6e | 67 20 77 69 6e 64 6f 77 |pile(lon|g window|
|00007970| 49 44 29 3b 0d 09 2f 2a | 20 20 0d 09 09 43 6f 6d |ID);../*| ...Com|
|00007980| 70 69 6c 65 73 20 74 68 | 65 20 74 65 78 74 20 66 |piles th|e text f|
|00007990| 6f 75 6e 64 20 69 6e 20 | 74 68 65 20 67 69 76 65 |ound in |the give|
|000079a0| 6e 20 77 69 6e 64 6f 77 | 2e 0d 09 09 43 61 75 73 |n window|....Caus|
|000079b0| 65 73 20 61 20 72 75 6e | 20 65 72 72 6f 72 20 69 |es a run| error i|
|000079c0| 66 20 74 68 65 20 67 69 | 76 65 6e 20 77 69 6e 64 |f the gi|ven wind|
|000079d0| 6f 77 20 69 73 20 6e 6f | 74 20 61 20 66 75 6e 63 |ow is no|t a func|
|000079e0| 74 69 6f 6e 20 77 69 6e | 64 6f 77 20 6f 72 20 69 |tion win|dow or i|
|000079f0| 66 0d 09 09 74 68 65 20 | 74 65 78 74 20 69 73 20 |f...the |text is |
|00007a00| 6e 6f 74 20 63 6f 6d 70 | 69 6c 65 64 20 73 75 63 |not comp|iled suc|
|00007a10| 63 65 73 73 66 75 6c 6c | 79 2e 0d 09 2a 2f 0d 0d |cessfull|y...*/..|
|00007a20| 0d 0d 0d 0d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |....../*|********|
|00007a30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00007a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00007a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00007a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00007a70| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 2f 2a 2a 2a 2a 2a 2a |*******/|./******|
|00007a80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00007a90| 2a 2a 2a 2a 20 64 72 61 | 77 69 6e 67 20 61 6e 64 |**** dra|wing and|
|00007aa0| 20 70 6c 6f 74 74 69 6e | 67 20 2a 2a 2a 2a 2a 2a | plottin|g ******|
|00007ab0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00007ac0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 76 6f 69 |********|**/..voi|
|00007ad0| 64 20 4f 70 65 6e 43 75 | 72 76 65 28 63 6f 6e 73 |d OpenCu|rve(cons|
|00007ae0| 74 20 53 74 72 32 35 35 | 20 63 75 72 76 65 4e 61 |t Str255| curveNa|
|00007af0| 6d 65 29 3b 0d 09 2f 2a | 0d 09 09 53 74 61 72 74 |me);../*|...Start|
|00007b00| 73 20 61 20 6e 65 77 20 | 66 75 6e 63 74 69 6f 6e |s a new |function|
|00007b10| 20 63 75 72 76 65 20 64 | 65 66 69 6e 69 74 69 6f | curve d|efinitio|
|00007b20| 6e 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n in the| current|
|00007b30| 20 67 72 61 70 68 2e 20 | 41 66 74 65 72 20 74 68 | graph. |After th|
|00007b40| 69 73 20 63 61 6c 6c 2c | 0d 09 09 61 6c 6c 20 6d |is call,|...all m|
|00007b50| 6f 76 65 74 6f 2f 6c 69 | 6e 65 74 6f 20 63 61 6c |oveto/li|neto cal|
|00007b60| 6c 73 20 77 69 6c 6c 20 | 67 65 6e 65 72 61 74 65 |ls will |generate|
|00007b70| 20 6c 69 6e 65 73 20 69 | 6e 20 74 68 65 20 63 75 | lines i|n the cu|
|00007b80| 72 72 65 6e 74 20 67 72 | 61 70 68 2e 0d 09 09 54 |rrent gr|aph....T|
|00007b90| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 63 75 72 76 |he funct|ion curv|
|00007ba0| 65 20 77 69 6c 6c 20 75 | 73 65 20 74 68 65 20 63 |e will u|se the c|
|00007bb0| 75 72 72 65 6e 74 20 73 | 74 79 6c 65 2f 63 6f 6c |urrent s|tyle/col|
|00007bc0| 6f 72 2c 20 73 65 74 20 | 62 79 20 53 65 74 4c 69 |or, set |by SetLi|
|00007bd0| 6e 65 53 74 79 6c 65 2f | 53 65 74 4c 69 6e 65 43 |neStyle/|SetLineC|
|00007be0| 6f 6c 6f 72 0d 09 09 63 | 75 72 76 65 4e 61 6d 65 |olor...c|urveName|
|00007bf0| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 74 68 61 | is the |name tha|
|00007c00| 74 20 77 69 6c 6c 20 61 | 70 70 65 61 72 20 69 6e |t will a|ppear in|
|00007c10| 20 74 68 65 20 6c 65 67 | 65 6e 64 20 28 70 61 73 | the leg|end (pas|
|00007c20| 63 61 6c 20 73 74 72 69 | 6e 67 29 2e 0d 09 09 43 |cal stri|ng)....C|
|00007c30| 61 6c 6c 20 43 6c 6f 73 | 65 43 75 72 76 65 20 6f |all Clos|eCurve o|
|00007c40| 6e 63 65 20 79 6f 75 20 | 61 72 65 20 66 69 6e 69 |nce you |are fini|
|00007c50| 73 68 65 64 2e 0d 0d 09 | 09 54 68 69 73 20 66 75 |shed....|.This fu|
|00007c60| 6e 63 74 69 6f 6e 20 72 | 65 70 6c 61 63 65 73 20 |nction r|eplaces |
|00007c70| 74 68 65 20 6f 62 73 6f | 6c 65 74 65 20 22 4e 65 |the obso|lete "Ne|
|00007c80| 77 43 75 72 76 65 22 20 | 66 75 6e 63 74 69 6f 6e |wCurve" |function|
|00007c90| 2c 20 75 73 65 64 20 69 | 6e 20 65 61 72 6c 69 65 |, used i|n earlie|
|00007ca0| 72 20 76 65 72 73 69 6f | 6e 73 0d 09 09 0d 09 2a |r versio|ns.....*|
|00007cb0| 2f 0d 0d 76 6f 69 64 20 | 43 6c 6f 73 65 43 75 72 |/..void |CloseCur|
|00007cc0| 76 65 28 76 6f 69 64 29 | 3b 0d 09 2f 2a 0d 09 09 |ve(void)|;../*...|
|00007cd0| 4d 61 74 63 68 65 73 20 | 74 68 65 20 22 4f 70 65 |Matches |the "Ope|
|00007ce0| 6e 43 75 72 76 65 22 20 | 63 61 6c 6c 2e 20 53 74 |nCurve" |call. St|
|00007cf0| 6f 70 73 20 63 6f 6c 6c | 65 63 74 69 6e 67 20 6d |ops coll|ecting m|
|00007d00| 6f 76 65 74 6f 2f 6c 69 | 6e 65 74 6f 20 63 61 6c |oveto/li|neto cal|
|00007d10| 6c 73 0d 09 09 61 73 20 | 61 20 64 65 66 69 6e 69 |ls...as |a defini|
|00007d20| 74 69 6f 6e 20 6f 66 20 | 61 20 66 75 6e 63 74 69 |tion of |a functi|
|00007d30| 6f 6e 20 63 75 72 76 65 | 20 69 6e 20 74 68 65 20 |on curve| in the |
|00007d40| 63 75 72 72 65 6e 74 20 | 67 72 61 70 68 2e 0d 09 |current |graph...|
|00007d50| 09 43 61 6c 6c 20 6f 6e | 63 65 20 79 6f 75 20 61 |.Call on|ce you a|
|00007d60| 72 65 20 66 69 6e 69 73 | 68 65 64 20 64 65 66 69 |re finis|hed defi|
|00007d70| 6e 69 6e 67 20 61 20 63 | 75 72 76 65 20 69 6e 20 |ning a c|urve in |
|00007d80| 74 68 65 20 63 75 72 72 | 65 6e 74 20 67 72 61 70 |the curr|ent grap|
|00007d90| 68 2e 0d 09 2a 2f 0d 09 | 0d 0d 76 6f 69 64 20 4f |h...*/..|..void O|
|00007da0| 70 65 6e 44 61 74 61 53 | 65 74 28 73 68 6f 72 74 |penDataS|et(short|
|00007db0| 20 65 72 72 6f 72 73 2c | 20 42 6f 6f 6c 65 61 6e | errors,| Boolean|
|00007dc0| 20 63 6f 6e 6e 65 63 74 | 65 64 2c 20 63 6f 6e 73 | connect|ed, cons|
|00007dd0| 74 20 53 74 72 32 35 35 | 20 64 61 74 61 73 65 74 |t Str255| dataset|
|00007de0| 4e 61 6d 65 29 3b 0d 09 | 2f 2a 0d 09 09 53 74 61 |Name);..|/*...Sta|
|00007df0| 72 74 73 20 61 20 6e 65 | 77 20 64 61 74 61 20 73 |rts a ne|w data s|
|00007e00| 65 74 20 64 65 66 69 6e | 69 74 69 6f 6e 20 69 6e |et defin|ition in|
|00007e10| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 67 72 61 | the cur|rent gra|
|00007e20| 70 68 2e 20 41 66 74 65 | 72 20 74 68 69 73 20 63 |ph. Afte|r this c|
|00007e30| 61 6c 6c 2c 0d 09 09 61 | 6c 6c 20 44 72 61 77 44 |all,...a|ll DrawD|
|00007e40| 61 74 61 50 6f 69 6e 74 | 20 63 61 6c 6c 73 20 77 |ataPoint| calls w|
|00007e50| 69 6c 6c 20 67 65 6e 65 | 72 61 74 65 20 64 61 74 |ill gene|rate dat|
|00007e60| 61 20 70 6f 69 6e 74 73 | 20 69 6e 20 74 68 65 20 |a points| in the |
|00007e70| 63 75 72 72 65 6e 74 20 | 67 72 61 70 68 2e 0d 09 |current |graph...|
|00007e80| 09 41 64 64 44 61 74 61 | 50 6f 69 6e 74 20 69 73 |.AddData|Point is|
|00007e90| 20 61 6c 73 6f 20 75 73 | 65 64 20 66 6f 72 20 74 | also us|ed for t|
|00007ea0| 68 65 20 73 61 6d 65 20 | 70 75 72 70 6f 73 65 73 |he same |purposes|
|00007eb0| 2c 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |, if you| want to|
|00007ec0| 20 61 64 64 20 65 72 72 | 6f 72 0d 09 09 62 61 72 | add err|or...bar|
|00007ed0| 73 20 74 6f 20 74 68 65 | 20 64 61 74 61 20 70 6f |s to the| data po|
|00007ee0| 69 6e 74 2e 0d 09 09 54 | 68 65 20 64 61 74 61 20 |int....T|he data |
|00007ef0| 73 65 74 20 77 69 6c 6c | 20 75 73 65 20 74 68 65 |set will| use the|
|00007f00| 20 63 75 72 72 65 6e 74 | 20 73 74 79 6c 65 2f 63 | current| style/c|
|00007f10| 6f 6c 6f 72 2c 20 73 65 | 74 20 62 79 20 53 65 74 |olor, se|t by Set|
|00007f20| 4c 69 6e 65 53 74 79 6c | 65 2f 53 65 74 4c 69 6e |LineStyl|e/SetLin|
|00007f30| 65 43 6f 6c 6f 72 0d 09 | 09 64 61 74 61 73 65 74 |eColor..|.dataset|
|00007f40| 4e 61 6d 65 20 69 73 20 | 74 68 65 20 6e 61 6d 65 |Name is |the name|
|00007f50| 20 74 68 61 74 20 77 69 | 6c 6c 20 61 70 70 65 61 | that wi|ll appea|
|00007f60| 72 20 69 6e 20 74 68 65 | 20 6c 65 67 65 6e 64 2e |r in the| legend.|
|00007f70| 0d 09 09 43 61 6c 6c 20 | 43 6c 6f 73 65 44 61 74 |...Call |CloseDat|
|00007f80| 61 53 65 74 20 6f 6e 63 | 65 20 79 6f 75 20 61 72 |aSet onc|e you ar|
|00007f90| 65 20 66 69 6e 69 73 68 | 65 64 2e 0d 09 09 65 72 |e finish|ed....er|
|00007fa0| 72 6f 72 73 3a 09 09 75 | 73 65 64 20 74 6f 20 73 |rors:..u|sed to s|
|00007fb0| 70 65 63 69 66 79 20 69 | 66 20 74 68 65 20 6e 65 |pecify i|f the ne|
|00007fc0| 77 20 64 61 74 61 20 73 | 65 74 20 77 69 6c 6c 20 |w data s|et will |
|00007fd0| 75 73 65 20 65 72 72 6f | 72 20 62 61 72 73 20 6f |use erro|r bars o|
|00007fe0| 72 20 6e 6f 74 2e 0d 09 | 09 09 09 09 70 61 73 73 |r not...|....pass|
|00007ff0| 20 30 20 69 66 20 79 6f | 75 20 64 6f 6e 27 74 20 | 0 if yo|u don't |
|00008000| 70 6c 61 6e 20 74 6f 20 | 75 73 65 20 65 72 72 6f |plan to |use erro|
|00008010| 72 20 62 61 72 73 2c 0d | 09 09 09 09 09 70 61 73 |r bars,.|.....pas|
|00008020| 73 20 61 20 73 75 6d 20 | 6f 66 20 65 42 61 72 59 |s a sum |of eBarY|
|00008030| 2c 20 65 42 61 72 58 2c | 20 61 73 79 6d 6d 45 42 |, eBarX,| asymmEB|
|00008040| 61 72 59 2c 20 61 73 79 | 6d 6d 45 42 61 72 58 20 |arY, asy|mmEBarX |
|00008050| 74 6f 20 73 70 65 63 69 | 66 79 20 77 68 69 63 68 |to speci|fy which|
|00008060| 0d 09 09 09 09 09 6b 69 | 6e 64 20 6f 66 20 65 72 |......ki|nd of er|
|00008070| 72 6f 72 20 62 61 72 73 | 20 79 6f 75 20 77 69 6c |ror bars| you wil|
|00008080| 6c 20 75 73 65 2e 0d 09 | 09 63 6f 6e 6e 65 63 74 |l use...|.connect|
|00008090| 3a 09 73 65 74 20 74 6f | 20 74 72 75 65 20 69 66 |:.set to| true if|
|000080a0| 20 79 6f 75 20 77 61 6e | 74 20 61 20 6c 69 6e 65 | you wan|t a line|
|000080b0| 20 74 6f 20 63 6f 6f 6e | 6e 65 63 74 74 68 65 20 | to coon|nectthe |
|000080c0| 64 61 74 61 20 70 6f 69 | 6e 74 73 2e 0d 09 09 0d |data poi|nts.....|
|000080d0| 09 09 45 78 61 6d 70 6c | 65 0d 09 09 09 22 65 42 |..Exampl|e...."eB|
|000080e0| 61 72 59 2b 61 73 79 6d | 6d 45 42 61 72 58 22 20 |arY+asym|mEBarX" |
|000080f0| 74 65 6c 6c 73 20 70 72 | 6f 46 69 74 20 74 68 61 |tells pr|oFit tha|
|00008100| 74 20 69 74 20 68 61 73 | 20 74 6f 20 61 6c 6c 6f |t it has| to allo|
|00008110| 63 61 74 65 20 73 70 61 | 63 65 20 66 6f 72 0d 09 |cate spa|ce for..|
|00008120| 09 09 68 6f 6c 64 69 6e | 67 20 74 68 65 20 76 61 |..holdin|g the va|
|00008130| 6c 75 65 20 6f 66 20 74 | 68 65 20 79 20 65 72 72 |lue of t|he y err|
|00008140| 6f 72 20 62 61 72 20 61 | 6e 64 20 74 68 65 20 74 |or bar a|nd the t|
|00008150| 77 6f 20 76 61 6c 75 65 | 73 20 63 6f 72 72 65 73 |wo value|s corres|
|00008160| 70 6f 6e 64 69 6e 67 0d | 09 09 09 74 6f 20 74 68 |ponding.|...to th|
|00008170| 65 20 6c 65 66 74 20 61 | 6e 64 20 72 69 67 68 74 |e left a|nd right|
|00008180| 20 70 61 72 74 20 6f 66 | 20 61 6e 20 78 20 65 72 | part of| an x er|
|00008190| 72 6f 72 20 62 61 72 2e | 0d 09 09 09 57 68 65 6e |ror bar.|....When|
|000081a0| 20 79 6f 75 20 74 68 65 | 6e 20 63 61 6c 6c 20 41 | you the|n call A|
|000081b0| 64 64 44 61 74 61 50 6f | 69 6e 74 2c 20 74 68 65 |ddDataPo|int, the|
|000081c0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 79 45 72 72 | paramet|ers yErr|
|000081d0| 2c 20 78 45 72 72 2c 20 | 61 6e 64 20 78 45 72 72 |, xErr, |and xErr|
|000081e0| 31 0d 09 09 09 77 69 6c | 6c 20 62 65 20 69 6e 74 |1....wil|l be int|
|000081f0| 65 72 70 72 65 74 65 64 | 20 62 79 20 70 72 6f 46 |erpreted| by proF|
|00008200| 69 74 2e 0d 09 09 0d 09 | 09 54 68 69 73 20 66 75 |it......|.This fu|
|00008210| 6e 63 74 69 6f 6e 20 72 | 65 70 6c 61 63 65 73 20 |nction r|eplaces |
|00008220| 74 68 65 20 6f 62 73 6f | 6c 65 74 65 20 22 4e 65 |the obso|lete "Ne|
|00008230| 77 44 61 74 61 53 65 74 | 22 20 66 75 6e 63 74 69 |wDataSet|" functi|
|00008240| 6f 6e 2c 20 75 73 65 64 | 20 69 6e 20 65 61 72 6c |on, used| in earl|
|00008250| 69 65 72 20 76 65 72 73 | 69 6f 6e 73 0d 0d 09 2a |ier vers|ions...*|
|00008260| 2f 0d 09 0d 09 0d 76 6f | 69 64 20 43 6c 6f 73 65 |/.....vo|id Close|
|00008270| 44 61 74 61 53 65 74 28 | 76 6f 69 64 29 3b 0d 09 |DataSet(|void);..|
|00008280| 2f 2a 0d 09 09 4d 61 74 | 63 68 65 73 20 74 68 65 |/*...Mat|ches the|
|00008290| 20 22 4f 70 65 6e 44 61 | 74 61 53 65 74 22 20 63 | "OpenDa|taSet" c|
|000082a0| 61 6c 6c 2e 20 53 74 6f | 70 73 20 63 6f 6c 6c 65 |all. Sto|ps colle|
|000082b0| 63 74 69 6e 67 20 41 64 | 64 44 61 74 61 50 6f 69 |cting Ad|dDataPoi|
|000082c0| 6e 74 2f 44 72 61 77 44 | 61 74 61 50 6f 69 6e 74 |nt/DrawD|ataPoint|
|000082d0| 20 63 61 6c 6c 73 0d 09 | 09 61 73 20 61 20 64 65 | calls..|.as a de|
|000082e0| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 61 20 64 61 |finition| of a da|
|000082f0| 74 61 20 73 65 74 20 69 | 6e 20 74 68 65 20 63 75 |ta set i|n the cu|
|00008300| 72 72 65 6e 74 20 67 72 | 61 70 68 2e 0d 09 2a 2f |rrent gr|aph...*/|
|00008310| 0d 0d 76 6f 69 64 20 53 | 65 74 43 75 72 76 65 46 |..void S|etCurveF|
|00008320| 69 6c 6c 28 73 68 6f 72 | 74 20 77 68 69 63 68 41 |ill(shor|t whichA|
|00008330| 78 69 73 2c 20 73 68 6f | 72 74 20 61 78 69 73 49 |xis, sho|rt axisI|
|00008340| 44 29 3b 0d 09 2f 2a 0d | 09 09 73 77 69 74 63 68 |D);../*.|..switch|
|00008350| 65 73 20 6f 6e 20 74 68 | 65 20 66 69 6c 6c 69 6e |es on th|e fillin|
|00008360| 67 20 73 74 79 6c 65 20 | 66 6f 72 20 63 75 72 76 |g style |for curv|
|00008370| 65 73 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |es that |will be |
|00008380| 63 72 65 61 74 65 64 20 | 69 6e 20 74 68 65 20 63 |created |in the c|
|00008390| 75 72 72 65 6e 74 0d 09 | 09 67 72 61 70 68 20 75 |urrent..|.graph u|
|000083a0| 73 69 6e 67 20 74 68 65 | 20 4f 70 65 6e 44 61 74 |sing the| OpenDat|
|000083b0| 61 53 65 74 20 61 6e 64 | 20 4f 70 65 6e 43 75 72 |aSet and| OpenCur|
|000083c0| 76 65 20 66 75 6e 63 74 | 69 6f 6e 73 2e 0d 09 09 |ve funct|ions....|
|000083d0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 74 |the para|meters t|
|000083e0| 6f 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 20 73 |o this r|outine s|
|000083f0| 70 65 63 69 66 79 20 74 | 68 65 20 61 78 69 73 20 |pecify t|he axis |
|00008400| 74 6f 77 61 72 64 73 20 | 77 68 69 63 68 20 74 68 |towards |which th|
|00008410| 65 20 66 69 6c 6c 69 6e | 67 20 69 73 0d 09 09 61 |e fillin|g is...a|
|00008420| 70 70 6c 69 65 64 2e 20 | 75 73 65 20 61 78 69 73 |pplied. |use axis|
|00008430| 49 44 3d 3d 30 20 74 6f | 20 73 77 69 63 68 20 6f |ID==0 to| swich o|
|00008440| 66 66 20 66 69 6c 6c 69 | 6e 67 2e 0d 09 09 53 70 |ff filli|ng....Sp|
|00008450| 65 63 69 66 79 20 74 68 | 65 20 66 69 6c 6c 69 6e |ecify th|e fillin|
|00008460| 67 20 63 6f 6c 6f 72 20 | 75 73 69 6e 67 20 74 68 |g color |using th|
|00008470| 65 20 22 53 65 74 46 69 | 6c 6c 43 6f 6c 6f 72 22 |e "SetFi|llColor"|
|00008480| 20 72 6f 75 74 69 6e 65 | 2e 0d 09 2a 2f 0d 09 0d | routine|...*/...|
|00008490| 76 6f 69 64 20 53 65 74 | 45 42 61 72 53 74 79 6c |void Set|EBarStyl|
|000084a0| 65 28 64 6f 75 62 6c 65 | 20 63 61 70 6c 65 6e 67 |e(double| capleng|
|000084b0| 74 68 2c 20 64 6f 75 62 | 6c 65 20 63 61 70 54 68 |th, doub|le capTh|
|000084c0| 69 63 6b 2c 20 64 6f 75 | 62 6c 65 20 6c 69 6e 65 |ick, dou|ble line|
|000084d0| 54 68 69 63 6b 29 3b 0d | 09 2f 2a 0d 09 09 73 65 |Thick);.|./*...se|
|000084e0| 74 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 65 |ts the d|efault e|
|000084f0| 72 72 6f 72 20 62 61 72 | 20 73 74 79 6c 65 20 75 |rror bar| style u|
|00008500| 73 65 64 20 66 6f 72 20 | 70 72 6f 64 75 63 69 6e |sed for |producin|
|00008510| 67 20 65 72 72 6f 72 20 | 62 61 72 73 20 69 6e 20 |g error |bars in |
|00008520| 74 68 65 20 6e 65 78 74 | 0d 09 09 64 61 74 61 20 |the next|...data |
|00008530| 73 65 74 20 63 72 65 61 | 74 65 64 20 69 6e 20 74 |set crea|ted in t|
|00008540| 68 65 20 63 75 72 72 65 | 6e 74 20 67 72 61 70 68 |he curre|nt graph|
|00008550| 20 75 73 69 6e 67 20 74 | 68 65 20 4f 70 65 6e 44 | using t|he OpenD|
|00008560| 61 74 61 53 65 74 20 63 | 61 6c 6c 0d 09 2a 2f 0d |ataSet c|all..*/.|
|00008570| 09 0d 76 6f 69 64 20 41 | 64 64 44 61 74 61 50 6f |..void A|ddDataPo|
|00008580| 69 6e 74 28 64 6f 75 62 | 6c 65 20 78 2c 20 64 6f |int(doub|le x, do|
|00008590| 75 62 6c 65 20 79 2c 20 | 64 6f 75 62 6c 65 20 78 |uble y, |double x|
|000085a0| 45 72 72 2c 20 64 6f 75 | 62 6c 65 20 79 45 72 72 |Err, dou|ble yErr|
|000085b0| 2c 20 64 6f 75 62 6c 65 | 20 78 45 72 72 31 2c 20 |, double| xErr1, |
|000085c0| 64 6f 75 62 6c 65 20 79 | 45 72 72 31 29 3b 0d 09 |double y|Err1);..|
|000085d0| 2f 2a 0d 09 09 41 64 64 | 73 20 61 20 64 61 74 61 |/*...Add|s a data|
|000085e0| 20 70 6f 69 6e 74 20 61 | 74 20 74 68 65 20 67 69 | point a|t the gi|
|000085f0| 76 65 6e 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |ven coor|dinates |
|00008600| 61 6e 64 20 77 69 74 68 | 20 74 68 65 20 67 69 76 |and with| the giv|
|00008610| 65 6e 20 65 72 72 6f 72 | 20 74 6f 20 74 68 65 0d |en error| to the.|
|00008620| 09 09 63 75 72 72 65 6e | 74 20 64 61 74 61 20 73 |..curren|t data s|
|00008630| 65 74 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |et in th|e curren|
|00008640| 74 20 67 72 61 70 68 2e | 0d 09 09 54 68 65 20 65 |t graph.|...The e|
|00008650| 72 72 6f 72 2d 70 61 72 | 61 6d 65 74 65 72 73 20 |rror-par|ameters |
|00008660| 61 72 65 20 69 6e 74 65 | 72 70 72 65 74 65 64 20 |are inte|rpreted |
|00008670| 69 6e 20 74 68 65 20 77 | 61 79 20 73 70 65 63 69 |in the w|ay speci|
|00008680| 66 69 65 64 20 62 79 20 | 73 65 74 74 69 6e 67 20 |fied by |setting |
|00008690| 74 68 65 0d 09 09 22 65 | 72 72 6f 72 73 22 20 70 |the..."e|rrors" p|
|000086a0| 61 72 61 6d 65 74 65 72 | 20 69 6e 20 74 68 65 20 |arameter| in the |
|000086b0| 4e 65 77 44 61 74 61 53 | 65 74 20 63 61 6c 6c 2e |NewDataS|et call.|
|000086c0| 0d 0d 09 09 49 66 20 79 | 6f 75 20 64 6f 6e 27 74 |....If y|ou don't|
|000086d0| 20 75 73 65 20 65 72 72 | 6f 72 20 62 61 72 73 20 | use err|or bars |
|000086e0| 79 6f 75 20 63 61 6e 20 | 63 61 6c 6c 20 74 68 65 |you can |call the|
|000086f0| 20 22 44 72 61 77 44 61 | 74 61 50 6f 69 6e 74 22 | "DrawDa|taPoint"|
|00008700| 20 72 6f 75 74 69 6e 65 | 20 69 6e 73 74 65 61 64 | routine| instead|
|00008710| 20 6f 66 20 41 64 64 44 | 61 74 61 50 6f 69 6e 74 | of AddD|ataPoint|
|00008720| 0d 09 2a 2f 0d 0d 76 6f | 69 64 20 47 72 4d 6f 76 |..*/..vo|id GrMov|
|00008730| 65 54 6f 20 28 64 6f 75 | 62 6c 65 20 78 2c 20 64 |eTo (dou|ble x, d|
|00008740| 6f 75 62 6c 65 20 79 29 | 3b 0d 09 2f 2a 20 0d 09 |ouble y)|;../* ..|
|00008750| 09 73 65 74 20 63 75 72 | 72 65 6e 74 20 70 6f 69 |.set cur|rent poi|
|00008760| 6e 74 20 74 6f 20 78 2c | 79 0d 09 2a 2f 0d 0d 76 |nt to x,|y..*/..v|
|00008770| 6f 69 64 20 47 72 4c 69 | 6e 65 54 6f 20 28 64 6f |oid GrLi|neTo (do|
|00008780| 75 62 6c 65 20 78 2c 20 | 64 6f 75 62 6c 65 20 79 |uble x, |double y|
|00008790| 29 3b 0d 09 2f 2a 20 0d | 09 09 61 64 64 20 61 20 |);../* .|..add a |
|000087a0| 6c 69 6e 65 20 66 72 6f | 6d 20 63 75 72 72 65 6e |line fro|m curren|
|000087b0| 74 20 70 6f 69 6e 74 20 | 74 6f 20 78 2c 79 20 0d |t point |to x,y .|
|000087c0| 09 2a 2f 0d 0d 76 6f 69 | 64 20 47 72 4d 6f 76 65 |.*/..voi|d GrMove|
|000087d0| 20 28 64 6f 75 62 6c 65 | 20 78 2c 20 64 6f 75 62 | (double| x, doub|
|000087e0| 6c 65 20 79 29 3b 0d 09 | 2f 2a 20 0d 09 09 61 64 |le y);..|/* ...ad|
|000087f0| 64 20 78 2c 20 79 20 74 | 6f 20 74 68 65 20 63 75 |d x, y t|o the cu|
|00008800| 72 72 65 6e 74 20 70 6f | 69 6e 74 2e 0d 09 2a 2f |rrent po|int...*/|
|00008810| 0d 0d 76 6f 69 64 20 47 | 72 4c 69 6e 65 20 28 64 |..void G|rLine (d|
|00008820| 6f 75 62 6c 65 20 78 2c | 20 64 6f 75 62 6c 65 20 |ouble x,| double |
|00008830| 79 29 3b 0d 09 2f 2a 20 | 0d 09 09 61 64 64 20 61 |y);../* |...add a|
|00008840| 20 6c 69 6e 65 20 73 74 | 61 72 74 69 6e 67 20 66 | line st|arting f|
|00008850| 72 6f 6d 20 63 75 72 72 | 65 6e 74 20 70 6f 69 6e |rom curr|ent poin|
|00008860| 74 2c 20 78 2c 79 20 20 | 6c 6f 6e 67 0d 09 2a 2f |t, x,y |long..*/|
|00008870| 0d 0d 0d 76 6f 69 64 20 | 47 65 74 47 72 61 70 68 |...void |GetGraph|
|00008880| 43 6f 6f 72 64 69 6e 61 | 74 65 73 20 28 64 6f 75 |Coordina|tes (dou|
|00008890| 62 6c 65 2a 20 63 6f 6e | 73 74 20 78 6d 69 6e 2c |ble* con|st xmin,|
|000088a0| 20 64 6f 75 62 6c 65 2a | 20 63 6f 6e 73 74 20 78 | double*| const x|
|000088b0| 6d 61 78 2c 0d 09 09 09 | 09 09 09 20 64 6f 75 62 |max,....|... doub|
|000088c0| 6c 65 2a 20 63 6f 6e 73 | 74 20 79 6d 69 6e 2c 20 |le* cons|t ymin, |
|000088d0| 64 6f 75 62 6c 65 2a 20 | 63 6f 6e 73 74 20 79 6d |double* |const ym|
|000088e0| 61 78 29 3b 0d 09 2f 2a | 20 0d 09 09 72 65 74 75 |ax);../*| ...retu|
|000088f0| 72 6e 73 20 74 68 65 20 | 61 78 65 73 20 6c 69 6d |rns the |axes lim|
|00008900| 69 74 73 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |its of t|he curre|
|00008910| 6e 74 20 67 72 61 70 68 | 20 0d 09 2a 2f 0d 09 0d |nt graph| ..*/...|
|00008920| 76 6f 69 64 20 43 72 65 | 61 74 65 4e 65 77 47 72 |void Cre|ateNewGr|
|00008930| 61 70 68 28 64 6f 75 62 | 6c 65 20 78 6d 69 6e 2c |aph(doub|le xmin,|
|00008940| 20 64 6f 75 62 6c 65 20 | 78 6d 61 78 2c 20 64 6f | double |xmax, do|
|00008950| 75 62 6c 65 20 79 6d 69 | 6e 2c 20 64 6f 75 62 6c |uble ymi|n, doubl|
|00008960| 65 20 79 6d 61 78 2c 20 | 73 68 6f 72 74 20 78 53 |e ymax, |short xS|
|00008970| 63 61 6c 69 6e 67 2c 20 | 73 68 6f 72 74 20 79 53 |caling, |short yS|
|00008980| 63 61 6c 69 6e 67 29 3b | 0d 09 2f 2a 20 0d 09 09 |caling);|../* ...|
|00008990| 63 72 65 61 74 65 73 20 | 61 20 6e 65 77 2c 20 65 |creates |a new, e|
|000089a0| 6d 70 74 79 20 67 72 61 | 70 68 20 77 69 74 68 20 |mpty gra|ph with |
|000089b0| 74 68 65 20 67 69 76 65 | 6e 20 72 61 6e 67 65 73 |the give|n ranges|
|000089c0| 20 0d 09 09 70 72 6f 64 | 75 63 65 73 20 61 20 72 | ...prod|uces a r|
|000089d0| 75 6e 2d 74 69 6d 65 20 | 65 72 72 6f 72 20 69 66 |un-time |error if|
|000089e0| 20 20 74 68 65 20 72 61 | 6e 67 65 73 20 61 6e 64 | the ra|nges and|
|000089f0| 20 73 63 61 6c 69 6e 67 | 20 61 72 65 20 69 6e 63 | scaling| are inc|
|00008a00| 6f 6e 73 69 73 74 65 6e | 74 20 0d 09 09 78 53 63 |onsisten|t ...xSc|
|00008a10| 61 6c 69 6e 67 2f 79 53 | 63 61 6c 69 6e 67 20 09 |aling/yS|caling .|
|00008a20| 3d 20 30 09 3a 20 6c 69 | 6e 65 61 72 0d 09 09 09 |= 0.: li|near....|
|00008a30| 09 09 09 09 3d 20 31 09 | 3a 20 6c 6f 67 0d 09 09 |....= 1.|: log...|
|00008a40| 09 09 09 09 09 3d 20 32 | 09 3a 20 31 2f 78 0d 09 |.....= 2|.: 1/x..|
|00008a50| 09 09 09 09 09 09 3d 20 | 33 09 3a 20 70 72 6f 62 |......= |3.: prob|
|00008a60| 61 62 69 6c 69 74 79 0d | 09 2a 2f 0d 0d 0d 76 6f |ability.|.*/...vo|
|00008a70| 69 64 20 53 65 74 4c 69 | 6e 65 53 74 79 6c 65 28 |id SetLi|neStyle(|
|00008a80| 64 6f 75 62 6c 65 20 74 | 68 69 63 6b 2c 20 73 68 |double t|hick, sh|
|00008a90| 6f 72 74 20 64 61 73 68 | 29 3b 0d 09 2f 2a 0d 09 |ort dash|);../*..|
|00008aa0| 09 53 65 74 73 20 74 68 | 65 20 64 65 66 61 75 6c |.Sets th|e defaul|
|00008ab0| 74 20 6c 69 6e 65 20 73 | 74 79 6c 65 20 74 68 61 |t line s|tyle tha|
|00008ac0| 74 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 20 66 |t will b|e used f|
|00008ad0| 6f 72 20 64 72 61 77 69 | 6e 67 20 61 6e 64 20 70 |or drawi|ng and p|
|00008ae0| 6c 6f 74 74 69 6e 67 2e | 0d 09 09 74 68 69 63 6b |lotting.|...thick|
|00008af0| 3a 09 74 68 65 20 74 68 | 69 63 6b 6e 65 73 73 20 |:.the th|ickness |
|00008b00| 6f 66 20 74 68 65 20 6c | 69 6e 65 20 69 6e 20 70 |of the l|ine in p|
|00008b10| 6f 69 6e 74 73 2c 0d 09 | 09 64 61 73 68 3a 09 74 |oints,..|.dash:.t|
|00008b20| 68 65 20 64 61 73 68 20 | 70 61 74 74 65 72 6e 2c |he dash |pattern,|
|00008b30| 20 67 69 76 65 6e 20 62 | 79 20 74 68 65 20 69 74 | given b|y the it|
|00008b40| 65 6d 20 6e 75 6d 62 65 | 72 20 69 6e 20 74 68 65 |em numbe|r in the|
|00008b50| 20 64 61 73 68 20 70 6f | 70 75 70 20 6d 65 6e 75 | dash po|pup menu|
|00008b60| 0d 09 2a 2f 0d 09 0d 76 | 6f 69 64 20 53 65 74 46 |..*/...v|oid SetF|
|00008b70| 69 6c 6c 50 61 74 74 65 | 72 6e 28 73 68 6f 72 74 |illPatte|rn(short|
|00008b80| 20 70 61 74 74 65 72 6e | 29 3b 0d 09 2f 2a 0d 09 | pattern|);../*..|
|00008b90| 09 53 65 74 73 20 74 68 | 65 20 64 65 66 61 75 6c |.Sets th|e defaul|
|00008ba0| 74 20 66 69 6c 6c 20 70 | 61 74 74 65 72 6e 2e 0d |t fill p|attern..|
|00008bb0| 09 09 70 61 74 74 65 72 | 6e 3a 09 74 68 65 20 66 |..patter|n:.the f|
|00008bc0| 69 6c 6c 20 70 61 74 74 | 65 72 6e 2c 20 67 69 76 |ill patt|ern, giv|
|00008bd0| 65 6e 20 62 79 20 74 68 | 65 20 69 74 65 6d 20 6e |en by th|e item n|
|00008be0| 75 6d 62 65 72 20 69 6e | 20 74 68 65 20 63 6f 72 |umber in| the cor|
|00008bf0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 70 6f 70 75 70 |respondi|ng popup|
|00008c00| 20 6d 65 6e 75 0d 09 2a | 2f 0d 09 0d 76 6f 69 64 | menu..*|/...void|
|00008c10| 20 53 65 74 41 72 72 6f | 77 53 74 79 6c 65 28 73 | SetArro|wStyle(s|
|00008c20| 68 6f 72 74 20 61 72 72 | 6f 77 4c 6f 63 61 74 69 |hort arr|owLocati|
|00008c30| 6f 6e 2c 20 73 68 6f 72 | 74 20 73 74 79 6c 65 2c |on, shor|t style,|
|00008c40| 20 64 6f 75 62 6c 65 20 | 73 69 7a 65 29 3b 0d 09 | double |size);..|
|00008c50| 2f 2a 0d 09 09 53 65 74 | 73 20 74 68 65 20 64 65 |/*...Set|s the de|
|00008c60| 66 61 75 6c 74 20 61 72 | 72 6f 77 20 73 74 79 6c |fault ar|row styl|
|00008c70| 65 2e 0d 09 09 59 6f 75 | 20 63 61 6e 20 64 65 66 |e....You| can def|
|00008c80| 69 6e 65 20 64 69 66 66 | 65 72 65 6e 74 20 61 72 |ine diff|erent ar|
|00008c90| 72 6f 77 73 20 66 6f 72 | 20 6c 69 6e 65 20 73 74 |rows for| line st|
|00008ca0| 61 72 74 20 61 6e 64 20 | 6c 69 6e 65 20 65 6e 64 |art and |line end|
|00008cb0| 2e 0d 09 09 61 72 72 6f | 77 4c 6f 63 61 74 69 6f |....arro|wLocatio|
|00008cc0| 6e 3a 09 31 3a 20 61 74 | 20 73 74 61 72 74 2c 20 |n:.1: at| start, |
|00008cd0| 32 3a 20 61 74 20 65 6e | 64 2c 20 33 3a 20 62 6f |2: at en|d, 3: bo|
|00008ce0| 74 68 20 73 74 61 72 74 | 20 61 6e 64 20 65 6e 64 |th start| and end|
|00008cf0| 0d 09 09 73 74 79 6c 65 | 3a 09 09 09 30 3a 20 6e |...style|:...0: n|
|00008d00| 6f 20 61 72 72 6f 77 2c | 20 31 2e 2e 31 32 3a 20 |o arrow,| 1..12: |
|00008d10| 74 68 65 20 69 74 65 6d | 20 6e 75 6d 62 65 72 20 |the item| number |
|00008d20| 69 6e 20 74 68 65 20 61 | 72 72 6f 77 20 70 6f 70 |in the a|rrow pop|
|00008d30| 75 70 20 6d 65 6e 75 2e | 0d 09 09 73 69 7a 65 3a |up menu.|...size:|
|00008d40| 09 09 09 74 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |...the s|ize of t|
|00008d50| 68 65 20 61 72 72 6f 77 | 20 69 6e 20 70 6f 69 6e |he arrow| in poin|
|00008d60| 74 73 2c 20 61 73 20 69 | 74 20 77 6f 75 6c 64 20 |ts, as i|t would |
|00008d70| 61 70 70 65 61 72 20 69 | 6e 20 74 68 65 20 63 75 |appear i|n the cu|
|00008d80| 73 74 6f 6d 20 61 72 72 | 6f 77 20 64 69 61 6c 6f |stom arr|ow dialo|
|00008d90| 67 20 62 6f 78 2e 0d 09 | 2a 2f 0d 09 0d 76 6f 69 |g box...|*/...voi|
|00008da0| 64 20 53 65 74 54 65 78 | 74 53 74 79 6c 65 28 63 |d SetTex|tStyle(c|
|00008db0| 6f 6e 73 74 20 53 74 72 | 32 35 35 20 66 6f 6e 74 |onst Str|255 font|
|00008dc0| 4e 61 6d 65 2c 20 64 6f | 75 62 6c 65 20 73 69 7a |Name, do|uble siz|
|00008dd0| 65 2c 20 73 68 6f 72 74 | 20 73 74 79 6c 65 29 3b |e, short| style);|
|00008de0| 0d 09 2f 2a 0d 09 09 53 | 65 74 73 20 74 68 65 20 |../*...S|ets the |
|00008df0| 64 65 66 61 75 6c 74 20 | 74 65 78 74 20 73 74 79 |default |text sty|
|00008e00| 6c 65 2e 0d 09 09 73 75 | 70 70 6c 79 20 61 20 66 |le....su|pply a f|
|00008e10| 6f 6e 74 20 6e 61 6d 65 | 2c 20 69 74 73 20 73 69 |ont name|, its si|
|00008e20| 7a 65 2c 20 61 6e 64 20 | 73 74 79 6c 65 2e 0d 09 |ze, and |style...|
|00008e30| 09 73 69 7a 65 20 61 6e | 64 20 73 74 79 6c 65 20 |.size an|d style |
|00008e40| 61 72 65 20 74 68 65 20 | 73 61 6d 65 20 70 61 72 |are the |same par|
|00008e50| 61 6d 65 74 65 72 73 20 | 79 6f 75 20 63 61 6e 20 |ameters |you can |
|00008e60| 70 61 73 73 20 74 6f 20 | 74 68 65 20 4d 61 63 4f |pass to |the MacO|
|00008e70| 53 20 72 6f 75 74 69 6e | 65 73 20 22 54 65 78 74 |S routin|es "Text|
|00008e80| 53 69 7a 65 22 20 61 6e | 64 20 22 54 65 78 74 46 |Size" an|d "TextF|
|00008e90| 61 63 65 22 0d 09 2a 2f | 0d 0d 76 6f 69 64 20 53 |ace"..*/|..void S|
|00008ea0| 65 74 4e 65 77 47 72 61 | 70 68 52 65 63 74 28 64 |etNewGra|phRect(d|
|00008eb0| 6f 75 62 6c 65 20 6c 65 | 66 74 2c 20 64 6f 75 62 |ouble le|ft, doub|
|00008ec0| 6c 65 20 74 6f 70 2c 20 | 64 6f 75 62 6c 65 20 72 |le top, |double r|
|00008ed0| 69 67 68 74 2c 20 64 6f | 75 62 6c 65 20 62 6f 74 |ight, do|uble bot|
|00008ee0| 74 6f 6d 29 3b 0d 09 2f | 2a 0d 09 09 53 65 74 73 |tom);../|*...Sets|
|00008ef0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 72 65 63 | the def|ault rec|
|00008f00| 74 61 6e 67 6c 65 20 75 | 73 65 64 20 66 6f 72 20 |tangle u|sed for |
|00008f10| 63 72 65 61 74 69 6e 67 | 20 6e 65 77 20 67 72 61 |creating| new gra|
|00008f20| 70 68 73 20 69 6e 20 74 | 68 65 20 64 72 61 77 69 |phs in t|he drawi|
|00008f30| 6e 67 20 77 69 6e 64 6f | 77 2e 0d 09 2a 2f 0d 0d |ng windo|w...*/..|
|00008f40| 76 6f 69 64 20 53 65 74 | 44 61 74 61 50 6f 69 6e |void Set|DataPoin|
|00008f50| 74 53 74 79 6c 65 28 73 | 68 6f 72 74 20 73 74 79 |tStyle(s|hort sty|
|00008f60| 6c 65 2c 20 64 6f 75 62 | 6c 65 20 73 69 7a 65 2c |le, doub|le size,|
|00008f70| 20 64 6f 75 62 6c 65 20 | 74 68 69 63 6b 6e 65 73 | double |thicknes|
|00008f80| 73 29 3b 0d 09 2f 2a 0d | 09 09 53 65 74 73 20 74 |s);../*.|..Sets t|
|00008f90| 68 65 20 64 65 66 61 75 | 6c 74 20 64 61 74 61 20 |he defau|lt data |
|00008fa0| 70 6f 69 6e 74 20 73 74 | 79 6c 65 2e 0d 09 09 73 |point st|yle....s|
|00008fb0| 74 79 6c 65 20 67 69 76 | 65 73 20 74 68 65 20 69 |tyle giv|es the i|
|00008fc0| 74 65 6d 20 6e 75 6d 62 | 65 72 20 69 6e 20 74 68 |tem numb|er in th|
|00008fd0| 65 20 64 61 74 61 20 70 | 6f 69 6e 74 73 20 70 6f |e data p|oints po|
|00008fe0| 70 75 70 20 6d 65 6e 75 | 0d 09 09 73 74 79 6c 65 |pup menu|...style|
|00008ff0| 3a 09 30 3a 70 69 78 65 | 6c 2c 20 31 2d 31 33 3a |:.0:pixe|l, 1-13:|
|00009000| 20 72 6f 77 20 6e 75 6d | 62 65 72 20 69 6e 20 64 | row num|ber in d|
|00009010| 61 74 61 20 70 6f 6e 74 | 20 6d 65 6e 75 2c 20 31 |ata pont| menu, 1|
|00009020| 34 2d 31 37 3a 20 70 6f | 69 6e 74 73 20 69 6e 20 |4-17: po|ints in |
|00009030| 74 68 65 20 6c 61 73 74 | 20 72 6f 77 2c 20 73 65 |the last| row, se|
|00009040| 63 6f 6e 64 20 63 6f 6c | 75 6d 6e 0d 09 09 09 09 |cond col|umn.....|
|00009050| 2d 31 2e 2e 2d 38 3a 20 | 74 68 65 20 38 20 63 75 |-1..-8: |the 8 cu|
|00009060| 73 74 6f 6d 20 70 6f 69 | 6e 74 73 20 69 6e 20 74 |stom poi|nts in t|
|00009070| 68 65 20 73 65 70 61 72 | 61 74 65 20 73 65 63 74 |he separ|ate sect|
|00009080| 69 6f 6e 0d 09 09 73 69 | 7a 65 3a 09 74 68 65 20 |ion...si|ze:.the |
|00009090| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 70 6f 69 6e |size of |the poin|
|000090a0| 74 20 69 6e 20 70 6f 69 | 6e 74 73 2c 20 73 61 6d |t in poi|nts, sam|
|000090b0| 65 20 61 73 20 74 68 65 | 20 6f 6e 65 20 77 68 69 |e as the| one whi|
|000090c0| 63 68 20 69 73 20 67 69 | 76 65 6e 20 69 6e 20 74 |ch is gi|ven in t|
|000090d0| 68 65 20 63 75 73 74 6f | 6d 20 64 61 74 61 20 70 |he custo|m data p|
|000090e0| 6f 69 6e 74 20 73 79 6d | 62 6f 6c 73 20 64 69 61 |oint sym|bols dia|
|000090f0| 6c 6f 67 20 62 6f 78 2e | 0d 09 09 74 68 69 63 6b |log box.|...thick|
|00009100| 6e 65 73 73 3a 09 74 68 | 65 20 6c 69 6e 65 20 74 |ness:.th|e line t|
|00009110| 68 69 63 6b 6e 65 73 73 | 20 75 73 65 64 20 74 6f |hickness| used to|
|00009120| 20 64 72 61 77 20 65 6d | 70 74 79 20 64 61 74 61 | draw em|pty data|
|00009130| 20 70 6f 69 6e 74 20 73 | 79 6d 62 6f 6c 73 2e 0d | point s|ymbols..|
|00009140| 09 2a 2f 0d 09 0d 76 6f | 69 64 20 53 65 74 42 47 |.*/...vo|id SetBG|
|00009150| 44 61 74 61 50 6f 69 6e | 74 53 74 79 6c 65 28 73 |DataPoin|tStyle(s|
|00009160| 68 6f 72 74 20 73 74 79 | 6c 65 2c 20 64 6f 75 62 |hort sty|le, doub|
|00009170| 6c 65 20 73 69 7a 65 29 | 3b 0d 09 2f 2a 0d 09 09 |le size)|;../*...|
|00009180| 43 61 6e 20 62 65 20 75 | 73 65 64 20 69 6e 20 63 |Can be u|sed in c|
|00009190| 6f 6e 6a 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 20 |onjuncti|on with |
|000091a0| 53 65 74 44 61 74 61 50 | 6f 69 6e 74 53 74 79 6c |SetDataP|ointStyl|
|000091b0| 65 20 74 6f 20 73 65 74 | 20 74 68 65 20 64 65 66 |e to set| the def|
|000091c0| 61 75 6c 74 20 64 61 74 | 61 20 70 6f 6e 74 20 73 |ault dat|a pont s|
|000091d0| 74 79 6c 65 2e 0d 09 09 | 53 75 62 73 74 69 74 75 |tyle....|Substitu|
|000091e0| 74 65 73 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 |tes the |backgrou|
|000091f0| 6e 64 20 73 79 6d 62 6f | 6c 20 6f 66 20 74 68 65 |nd symbo|l of the|
|00009200| 20 63 75 72 72 65 6e 74 | 20 64 61 74 61 20 70 6f | current| data po|
|00009210| 69 6e 74 20 73 74 79 6c | 65 20 77 69 74 68 20 74 |int styl|e with t|
|00009220| 68 65 20 6f 6e 65 0d 09 | 09 67 69 76 65 6e 2e 0d |he one..|.given..|
|00009230| 09 09 73 74 79 6c 65 20 | 61 6e 64 20 73 69 7a 65 |..style |and size|
|00009240| 20 61 72 65 20 69 6e 74 | 65 72 70 72 65 74 65 64 | are int|erpreted|
|00009250| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 77 61 79 | in the |same way|
|00009260| 20 61 73 20 66 6f 72 20 | 74 68 65 20 53 65 74 44 | as for |the SetD|
|00009270| 61 74 61 50 6f 69 6e 74 | 53 74 79 6c 65 20 72 6f |ataPoint|Style ro|
|00009280| 75 74 69 6e 65 0d 09 2a | 2f 0d 0d 76 6f 69 64 20 |utine..*|/..void |
|00009290| 53 65 74 4c 69 6e 65 43 | 6f 6c 6f 72 28 6c 6f 6e |SetLineC|olor(lon|
|000092a0| 67 20 72 65 64 2c 20 6c | 6f 6e 67 20 67 72 65 65 |g red, l|ong gree|
|000092b0| 6e 2c 20 6c 6f 6e 67 20 | 62 6c 75 65 29 3b 0d 09 |n, long |blue);..|
|000092c0| 2f 2a 0d 09 09 53 65 74 | 73 20 74 68 65 20 64 65 |/*...Set|s the de|
|000092d0| 66 61 75 6c 74 20 6c 69 | 6e 65 20 63 6f 6c 6f 72 |fault li|ne color|
|000092e0| 2c 20 75 73 65 64 20 66 | 6f 72 20 6c 69 6e 65 73 |, used f|or lines|
|000092f0| 20 61 6e 64 20 74 65 78 | 74 2e 0d 09 09 72 65 64 | and tex|t....red|
|00009300| 2c 20 67 72 65 65 6e 2c | 20 62 6c 75 65 20 67 69 |, green,| blue gi|
|00009310| 76 65 20 74 68 65 20 52 | 47 42 20 76 61 6c 75 65 |ve the R|GB value|
|00009320| 20 6f 66 20 74 68 65 20 | 63 6f 6c 6f 72 20 28 30 | of the |color (0|
|00009330| 3c 72 65 64 2c 67 72 65 | 65 6e 2c 62 6c 75 65 3c |<red,gre|en,blue<|
|00009340| 36 35 35 33 36 29 0d 09 | 2a 2f 0d 09 0d 76 6f 69 |65536)..|*/...voi|
|00009350| 64 20 53 65 74 46 69 6c | 6c 43 6f 6c 6f 72 28 6c |d SetFil|lColor(l|
|00009360| 6f 6e 67 20 72 65 64 2c | 20 6c 6f 6e 67 20 67 72 |ong red,| long gr|
|00009370| 65 65 6e 2c 20 6c 6f 6e | 67 20 62 6c 75 65 29 3b |een, lon|g blue);|
|00009380| 0d 09 2f 2a 0d 09 09 53 | 65 74 73 20 74 68 65 20 |../*...S|ets the |
|00009390| 64 65 66 61 75 6c 74 20 | 66 69 6c 6c 20 63 6f 6c |default |fill col|
|000093a0| 6f 72 2c 20 75 73 65 64 | 20 74 6f 20 66 69 6c 6c |or, used| to fill|
|000093b0| 20 64 72 61 77 69 6e 67 | 20 73 68 61 70 65 73 20 | drawing| shapes |
|000093c0| 6f 72 20 66 6f 72 20 63 | 75 72 76 65 73 20 69 6e |or for c|urves in|
|000093d0| 20 70 6c 6f 74 73 2e 0d | 09 09 72 65 64 2c 20 67 | plots..|..red, g|
|000093e0| 72 65 65 6e 2c 20 62 6c | 75 65 20 67 69 76 65 20 |reen, bl|ue give |
|000093f0| 74 68 65 20 52 47 42 20 | 76 61 6c 75 65 20 6f 66 |the RGB |value of|
|00009400| 20 74 68 65 20 63 6f 6c | 6f 72 20 28 30 3c 72 65 | the col|or (0<re|
|00009410| 64 2c 67 72 65 65 6e 2c | 62 6c 75 65 3c 36 35 35 |d,green,|blue<655|
|00009420| 33 36 29 0d 09 2a 2f 0d | 09 0d 76 6f 69 64 20 44 |36)..*/.|..void D|
|00009430| 72 61 77 52 65 63 74 28 | 64 6f 75 62 6c 65 20 6c |rawRect(|double l|
|00009440| 65 66 74 2c 20 64 6f 75 | 62 6c 65 20 74 6f 70 2c |eft, dou|ble top,|
|00009450| 20 64 6f 75 62 6c 65 20 | 72 69 67 68 74 2c 20 64 | double |right, d|
|00009460| 6f 75 62 6c 65 20 62 6f | 74 74 6f 6d 29 3b 0d 09 |ouble bo|ttom);..|
|00009470| 2f 2a 0d 09 09 43 72 65 | 61 74 65 73 20 61 20 72 |/*...Cre|ates a r|
|00009480| 65 63 74 61 6e 67 6c 65 | 20 77 69 74 68 20 74 68 |ectangle| with th|
|00009490| 65 20 67 69 76 65 6e 20 | 63 6f 6f 72 64 69 6e 61 |e given |coordina|
|000094a0| 74 65 73 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |tes in t|he curre|
|000094b0| 6e 74 20 64 72 61 77 69 | 6e 67 20 77 69 6e 64 6f |nt drawi|ng windo|
|000094c0| 77 0d 09 2a 2f 0d 09 0d | 76 6f 69 64 20 44 72 61 |w..*/...|void Dra|
|000094d0| 77 45 6c 6c 69 70 73 65 | 28 64 6f 75 62 6c 65 20 |wEllipse|(double |
|000094e0| 6c 65 66 74 2c 20 64 6f | 75 62 6c 65 20 74 6f 70 |left, do|uble top|
|000094f0| 2c 20 64 6f 75 62 6c 65 | 20 72 69 67 68 74 2c 20 |, double| right, |
|00009500| 64 6f 75 62 6c 65 20 62 | 6f 74 74 6f 6d 29 3b 0d |double b|ottom);.|
|00009510| 09 2f 2a 0d 09 09 43 72 | 65 61 74 65 73 20 61 6e |./*...Cr|eates an|
|00009520| 20 65 6c 6c 69 70 73 65 | 20 77 69 74 68 20 74 68 | ellipse| with th|
|00009530| 65 20 67 69 76 65 6e 20 | 63 6f 6f 72 64 69 6e 61 |e given |coordina|
|00009540| 74 65 73 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |tes in t|he curre|
|00009550| 6e 74 20 64 72 61 77 69 | 6e 67 20 77 69 6e 64 6f |nt drawi|ng windo|
|00009560| 77 0d 09 2a 2f 0d 09 0d | 76 6f 69 64 20 44 72 61 |w..*/...|void Dra|
|00009570| 77 4c 69 6e 65 28 64 6f | 75 62 6c 65 20 73 74 61 |wLine(do|uble sta|
|00009580| 72 74 5f 68 2c 20 64 6f | 75 62 6c 65 20 73 74 61 |rt_h, do|uble sta|
|00009590| 72 74 5f 76 2c 20 64 6f | 75 62 6c 65 20 65 6e 64 |rt_v, do|uble end|
|000095a0| 5f 68 2c 20 64 6f 75 62 | 6c 65 20 65 6e 64 5f 76 |_h, doub|le end_v|
|000095b0| 29 3b 0d 09 2f 2a 0d 09 | 09 43 72 65 61 74 65 73 |);../*..|.Creates|
|000095c0| 20 61 20 6c 69 6e 65 20 | 77 69 74 68 20 74 68 65 | a line |with the|
|000095d0| 20 67 69 76 65 6e 20 63 | 6f 6f 72 64 69 6e 61 74 | given c|oordinat|
|000095e0| 65 73 20 69 6e 20 74 68 | 65 20 63 75 72 72 65 6e |es in th|e curren|
|000095f0| 74 20 64 72 61 77 69 6e | 67 20 77 69 6e 64 6f 77 |t drawin|g window|
|00009600| 0d 09 2a 2f 0d 09 0d 76 | 6f 69 64 20 44 72 61 77 |..*/...v|oid Draw|
|00009610| 54 65 78 74 4c 69 6e 65 | 28 63 6f 6e 73 74 20 53 |TextLine|(const S|
|00009620| 74 72 32 35 35 20 74 68 | 65 53 74 72 69 6e 67 2c |tr255 th|eString,|
|00009630| 20 64 6f 75 62 6c 65 20 | 74 68 65 41 6e 67 6c 65 | double |theAngle|
|00009640| 2c 20 42 6f 6f 6c 65 61 | 6e 20 64 6f 63 65 6e 74 |, Boolea|n docent|
|00009650| 65 72 29 3b 0d 09 2f 2a | 0d 09 09 43 72 65 61 74 |er);../*|...Creat|
|00009660| 65 73 20 61 20 74 65 78 | 74 2d 6c 61 62 65 6c 20 |es a tex|t-label |
|00009670| 61 74 20 74 68 65 20 67 | 69 76 65 6e 20 63 6f 6f |at the g|iven coo|
|00009680| 72 64 69 6e 61 74 65 73 | 20 69 6e 20 74 68 65 20 |rdinates| in the |
|00009690| 63 75 72 72 65 6e 74 20 | 64 72 61 77 69 6e 67 20 |current |drawing |
|000096a0| 77 69 6e 64 6f 77 2c 0d | 09 09 77 69 74 68 20 74 |window,.|..with t|
|000096b0| 68 65 20 67 69 76 65 6e | 20 72 6f 74 61 74 69 6f |he given| rotatio|
|000096c0| 6e 20 61 6e 67 6c 65 2e | 0d 09 09 72 6f 74 61 74 |n angle.|...rotat|
|000096d0| 69 6f 6e 20 69 73 20 61 | 72 6f 75 6e 64 20 63 65 |ion is a|round ce|
|000096e0| 6e 74 65 72 20 69 66 20 | 64 6f 63 65 6e 74 65 72 |nter if |docenter|
|000096f0| 20 69 73 20 74 72 75 65 | 2e 0d 09 2a 2f 0d 09 0d | is true|...*/...|
|00009700| 76 6f 69 64 20 44 72 61 | 77 4e 75 6d 62 65 72 28 |void Dra|wNumber(|
|00009710| 64 6f 75 62 6c 65 20 74 | 68 65 4e 75 6d 2c 20 73 |double t|heNum, s|
|00009720| 68 6f 72 74 20 64 65 63 | 73 2c 20 64 6f 75 62 6c |hort dec|s, doubl|
|00009730| 65 20 74 68 65 41 6e 67 | 6c 65 2c 20 42 6f 6f 6c |e theAng|le, Bool|
|00009740| 65 61 6e 20 64 6f 63 65 | 6e 74 65 72 29 3b 0d 09 |ean doce|nter);..|
|00009750| 2f 2a 0d 09 09 43 6f 6e | 76 65 72 74 73 20 74 68 |/*...Con|verts th|
|00009760| 65 20 6e 75 6d 62 65 72 | 20 69 6e 74 6f 20 61 20 |e number| into a |
|00009770| 74 65 78 74 20 77 69 74 | 68 20 74 68 65 20 67 69 |text wit|h the gi|
|00009780| 76 65 6e 20 6e 75 6d 62 | 65 72 20 6f 66 20 64 65 |ven numb|er of de|
|00009790| 63 69 6d 61 6c 73 2c 20 | 61 6e 64 0d 09 09 63 72 |cimals, |and...cr|
|000097a0| 65 61 74 65 73 20 61 20 | 74 65 78 74 2d 6c 61 62 |eates a |text-lab|
|000097b0| 65 6c 20 61 74 20 74 68 | 65 20 67 69 76 65 6e 20 |el at th|e given |
|000097c0| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 69 6e 20 74 |coordina|tes in t|
|000097d0| 68 65 20 63 75 72 72 65 | 6e 74 20 64 72 61 77 69 |he curre|nt drawi|
|000097e0| 6e 67 20 77 69 6e 64 6f | 77 2c 0d 09 09 77 69 74 |ng windo|w,...wit|
|000097f0| 68 20 74 68 65 20 67 69 | 76 65 6e 20 72 6f 74 61 |h the gi|ven rota|
|00009800| 74 69 6f 6e 20 61 6e 67 | 6c 65 2e 0d 09 09 72 6f |tion ang|le....ro|
|00009810| 74 61 74 69 6f 6e 20 69 | 73 20 61 72 6f 75 6e 64 |tation i|s around|
|00009820| 20 63 65 6e 74 65 72 20 | 69 66 20 64 6f 63 65 6e | center |if docen|
|00009830| 74 65 72 20 69 73 20 74 | 72 75 65 2e 0d 09 2a 2f |ter is t|rue...*/|
|00009840| 0d 09 0d 76 6f 69 64 20 | 44 72 61 77 44 61 74 61 |...void |DrawData|
|00009850| 50 6f 69 6e 74 28 64 6f | 75 62 6c 65 20 78 2c 20 |Point(do|uble x, |
|00009860| 64 6f 75 62 6c 65 20 79 | 29 3b 0d 09 2f 2a 0d 09 |double y|);../*..|
|00009870| 09 44 72 61 77 73 20 61 | 20 64 61 74 61 20 70 6f |.Draws a| data po|
|00009880| 69 6e 74 20 73 79 6d 62 | 6f 6c 20 61 74 20 74 68 |int symb|ol at th|
|00009890| 65 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 67 69 |e coordi|nates gi|
|000098a0| 76 65 6e 2c 20 75 73 69 | 6e 67 20 74 68 65 20 63 |ven, usi|ng the c|
|000098b0| 75 72 72 65 6e 74 20 0d | 09 09 64 61 74 61 20 70 |urrent .|..data p|
|000098c0| 6f 69 6e 74 20 73 74 79 | 6c 65 2e 0d 09 09 69 66 |oint sty|le....if|
|000098d0| 20 4f 70 65 6e 44 61 74 | 61 53 65 74 20 77 61 73 | OpenDat|aSet was|
|000098e0| 20 63 61 6c 6c 65 64 2c | 20 74 68 65 6e 20 69 74 | called,| then it|
|000098f0| 20 63 72 65 61 74 65 73 | 20 61 20 64 61 74 61 20 | creates| a data |
|00009900| 70 6f 69 6e 74 20 69 6e | 20 74 68 65 20 63 75 72 |point in| the cur|
|00009910| 72 65 6e 74 20 70 6c 6f | 74 2c 0d 09 09 61 64 64 |rent plo|t,...add|
|00009920| 69 6e 67 20 69 74 20 74 | 6f 20 74 68 65 20 63 75 |ing it t|o the cu|
|00009930| 72 72 65 6e 74 20 64 61 | 74 61 20 73 65 74 2e 0d |rrent da|ta set..|
|00009940| 09 2a 2f 0d 0d 76 6f 69 | 64 20 44 72 61 77 50 49 |.*/..voi|d DrawPI|
|00009950| 43 54 28 64 6f 75 62 6c | 65 20 6c 65 66 74 2c 20 |CT(doubl|e left, |
|00009960| 64 6f 75 62 6c 65 20 74 | 6f 70 2c 20 64 6f 75 62 |double t|op, doub|
|00009970| 6c 65 20 72 69 67 68 74 | 2c 20 64 6f 75 62 6c 65 |le right|, double|
|00009980| 20 62 6f 74 74 6f 6d 2c | 20 50 69 63 48 61 6e 64 | bottom,| PicHand|
|00009990| 6c 65 20 74 68 65 50 69 | 63 74 29 3b 0d 09 2f 2a |le thePi|ct);../*|
|000099a0| 0d 09 09 43 72 65 61 74 | 65 73 20 61 20 6e 65 77 |...Creat|es a new|
|000099b0| 20 70 69 63 74 75 72 65 | 20 69 6e 20 74 68 65 20 | picture| in the |
|000099c0| 63 75 72 72 65 6e 74 20 | 64 72 61 77 69 6e 67 20 |current |drawing |
|000099d0| 77 69 6e 64 6f 77 20 75 | 73 69 6e 67 20 74 68 65 |window u|sing the|
|000099e0| 20 0d 09 09 4d 61 63 4f | 53 20 50 69 63 48 61 6e | ...MacO|S PicHan|
|000099f0| 64 6c 65 20 22 74 68 65 | 50 69 63 74 22 2e 0d 09 |dle "the|Pict"...|
|00009a00| 09 4f 6e 63 65 20 79 6f | 75 20 63 61 6c 6c 20 74 |.Once yo|u call t|
|00009a10| 68 69 73 20 72 6f 75 74 | 69 6e 65 2c 20 74 68 65 |his rout|ine, the|
|00009a20| 20 68 61 6e 64 6c 65 20 | 74 68 65 50 69 63 74 20 | handle |thePict |
|00009a30| 42 45 43 4f 4d 45 53 20 | 50 52 4f 50 45 52 54 59 |BECOMES |PROPERTY|
|00009a40| 20 0d 09 09 6f 66 20 70 | 72 6f 20 46 69 74 20 d1 | ...of p|ro Fit .|
|00009a50| 20 44 4f 20 4e 4f 54 20 | 44 49 53 50 4f 53 45 20 | DO NOT |DISPOSE |
|00009a60| 49 54 21 0d 09 09 6c 65 | 66 74 20 61 6e 64 20 74 |IT!...le|ft and t|
|00009a70| 6f 70 20 67 69 76 65 20 | 74 68 65 20 63 6f 6f 72 |op give |the coor|
|00009a80| 64 69 6e 61 74 65 73 20 | 6f 66 20 74 68 65 20 70 |dinates |of the p|
|00009a90| 69 63 74 75 72 65 2e 0d | 09 09 72 69 67 68 74 20 |icture..|..right |
|00009aa0| 61 6e 64 20 62 6f 74 74 | 6f 6d 20 61 72 65 20 75 |and bott|om are u|
|00009ab0| 73 65 64 20 74 6f 20 64 | 65 66 69 6e 65 20 74 68 |sed to d|efine th|
|00009ac0| 65 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 70 69 |e size o|f the pi|
|00009ad0| 63 74 75 72 65 20 69 66 | 20 74 68 65 79 20 61 72 |cture if| they ar|
|00009ae0| 65 20 6c 61 72 67 65 72 | 0d 09 09 74 68 61 6e 20 |e larger|...than |
|00009af0| 6c 65 66 74 20 61 6e 64 | 20 74 6f 70 2c 20 72 65 |left and| top, re|
|00009b00| 73 70 65 63 74 69 76 65 | 6c 79 2e 0d 09 09 4f 74 |spective|ly....Ot|
|00009b10| 68 65 72 77 69 73 65 20 | 74 68 65 20 73 69 7a 65 |herwise |the size|
|00009b20| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 63 6f 6e | informa|tion con|
|00009b30| 74 61 69 6e 64 20 69 6e | 20 74 68 65 20 50 69 63 |taind in| the Pic|
|00009b40| 48 61 6e 64 6c 65 20 70 | 61 73 73 65 64 20 79 6f |Handle p|assed yo|
|00009b50| 75 20 70 61 73 73 20 69 | 73 20 75 73 65 64 2e 0d |u pass i|s used..|
|00009b60| 09 2a 2f 0d 0d 76 6f 69 | 64 20 47 65 74 4c 61 73 |.*/..voi|d GetLas|
|00009b70| 74 43 6c 69 63 6b 65 64 | 43 6f 6f 72 64 69 6e 61 |tClicked|Coordina|
|00009b80| 74 65 73 28 64 6f 75 62 | 6c 65 2a 20 78 2c 20 64 |tes(doub|le* x, d|
|00009b90| 6f 75 62 6c 65 2a 20 79 | 29 3b 0d 09 2f 2a 0d 09 |ouble* y|);../*..|
|00009ba0| 09 72 65 74 75 72 6e 73 | 20 74 68 65 20 73 63 72 |.returns| the scr|
|00009bb0| 65 65 6e 2d 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |een-coor|dinates |
|00009bc0| 74 68 61 74 20 77 65 72 | 65 20 6c 61 73 74 20 63 |that wer|e last c|
|00009bd0| 6c 69 63 6b 65 64 20 62 | 79 20 74 68 65 20 75 73 |licked b|y the us|
|00009be0| 65 72 0d 09 2a 2f 0d 09 | 0d 09 0d 76 6f 69 64 20 |er..*/..|...void |
|00009bf0| 44 69 73 61 62 6c 65 44 | 72 61 77 69 6e 67 55 70 |DisableD|rawingUp|
|00009c00| 64 61 74 65 73 28 76 6f | 69 64 29 3b 0d 09 2f 2a |dates(vo|id);../*|
|00009c10| 0d 09 09 49 6e 68 69 62 | 69 74 73 20 75 70 64 61 |...Inhib|its upda|
|00009c20| 74 65 73 20 69 6e 20 74 | 68 65 20 63 75 72 72 65 |tes in t|he curre|
|00009c30| 6e 74 20 64 72 61 77 69 | 6e 67 20 77 69 6e 64 6f |nt drawi|ng windo|
|00009c40| 77 20 75 6e 74 69 6c 20 | 79 6f 75 72 20 70 72 6f |w until |your pro|
|00009c50| 67 72 61 6d 20 69 73 20 | 66 69 6e 69 73 68 65 64 |gram is |finished|
|00009c60| 2e 0d 09 09 43 61 6c 6c | 20 74 68 69 73 20 69 66 |....Call| this if|
|00009c70| 20 79 6f 75 20 61 72 65 | 20 64 72 61 77 69 6e 67 | you are| drawing|
|00009c80| 20 6c 6f 74 73 20 6f 66 | 20 73 74 75 66 66 20 61 | lots of| stuff a|
|00009c90| 6e 64 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 64 |nd you w|ant to d|
|00009ca0| 6f 20 69 74 20 61 73 20 | 66 61 73 74 20 61 73 0d |o it as |fast as.|
|00009cb0| 09 09 70 6f 73 73 69 62 | 6c 65 2e 0d 09 2a 2f 0d |..possib|le...*/.|
|00009cc0| 09 0d 76 6f 69 64 20 4f | 70 65 6e 50 6f 6c 79 67 |..void O|penPolyg|
|00009cd0| 6f 6e 28 73 68 6f 72 74 | 20 73 6d 6f 6f 74 68 69 |on(short| smoothi|
|00009ce0| 6e 67 2c 20 73 68 6f 72 | 74 20 6b 69 6e 64 29 3b |ng, shor|t kind);|
|00009cf0| 0d 09 2f 2a 0d 09 09 4f | 70 65 6e 73 20 61 20 6e |../*...O|pens a n|
|00009d00| 65 77 20 70 6f 6c 79 67 | 6f 6e 20 64 65 66 69 6e |ew polyg|on defin|
|00009d10| 69 74 69 6f 6e 2c 20 77 | 68 69 63 68 20 63 61 6e |ition, w|hich can|
|00009d20| 20 74 68 65 6e 20 62 65 | 20 64 65 66 69 6e 65 64 | then be| defined|
|00009d30| 20 62 79 20 6d 6f 76 65 | 74 6f 2f 6c 69 6e 65 74 | by move|to/linet|
|00009d40| 6f 20 63 61 6c 6c 73 2e | 0d 09 09 73 6d 6f 6f 74 |o calls.|...smoot|
|00009d50| 68 69 6e 67 3a 09 67 69 | 76 65 73 20 74 68 65 20 |hing:.gi|ves the |
|00009d60| 6b 69 6e 64 20 6f 66 20 | 73 6d 6f 6f 74 68 69 6e |kind of |smoothin|
|00009d70| 67 20 77 68 69 63 68 20 | 69 73 20 61 70 70 6c 69 |g which |is appli|
|00009d80| 65 64 20 74 6f 20 74 68 | 65 20 70 6f 6c 79 67 6f |ed to th|e polygo|
|00009d90| 6e 2c 20 75 73 65 0d 09 | 09 09 09 09 30 20 66 6f |n, use..|....0 fo|
|00009da0| 72 20 6e 6f 20 73 6d 6f | 6f 74 68 69 6e 67 2e 0d |r no smo|othing..|
|00009db0| 09 09 6b 69 6e 64 3a 09 | 09 30 20 66 6f 72 20 61 |..kind:.|.0 for a|
|00009dc0| 20 6e 6f 72 6d 61 6c 20 | 70 6f 6c 79 67 6f 6e 2c | normal |polygon,|
|00009dd0| 20 31 20 66 6f 72 20 61 | 20 63 6c 6f 73 65 64 20 | 1 for a| closed |
|00009de0| 70 6f 6c 79 67 6f 6e 2e | 0d 09 2a 2f 0d 09 0d 76 |polygon.|..*/...v|
|00009df0| 6f 69 64 20 43 6c 6f 73 | 65 50 6f 6c 79 67 6f 6e |oid Clos|ePolygon|
|00009e00| 28 76 6f 69 64 29 3b 0d | 09 2f 2a 0d 09 09 53 74 |(void);.|./*...St|
|00009e10| 6f 70 73 20 63 6f 6c 6c | 65 63 74 69 6e 67 20 64 |ops coll|ecting d|
|00009e20| 61 74 61 20 66 6f 72 20 | 61 20 70 6f 6c 79 67 6f |ata for |a polygo|
|00009e30| 6e 20 64 65 66 69 6e 69 | 74 69 6f 6e 2c 20 61 6e |n defini|tion, an|
|00009e40| 64 20 63 72 65 61 74 65 | 73 20 74 68 65 20 72 65 |d create|s the re|
|00009e50| 73 75 6c 74 69 6e 67 0d | 09 09 70 6f 6c 79 6f 6e |sulting.|..polyon|
|00009e60| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00009e70| 64 72 61 77 69 6e 67 20 | 77 69 6e 64 6f 77 2e 0d |drawing |window..|
|00009e80| 09 2a 2f 0d 0d 09 0d 76 | 6f 69 64 20 47 72 6f 75 |.*/....v|oid Grou|
|00009e90| 70 42 65 67 69 6e 28 76 | 6f 69 64 29 3b 0d 76 6f |pBegin(v|oid);.vo|
|00009ea0| 69 64 20 47 72 6f 75 70 | 45 6e 64 28 76 6f 69 64 |id Group|End(void|
|00009eb0| 29 3b 0d 09 2f 2a 0d 09 | 09 53 74 61 72 74 73 2f |);../*..|.Starts/|
|00009ec0| 65 6e 64 73 20 74 68 65 | 20 64 65 66 69 6e 69 74 |ends the| definit|
|00009ed0| 69 6f 6e 20 6f 66 20 61 | 20 67 72 6f 75 70 2e 20 |ion of a| group. |
|00009ee0| 41 6c 6c 20 64 72 61 77 | 69 6e 67 20 74 61 6b 69 |All draw|ing taki|
|00009ef0| 6e 67 20 70 6c 61 63 65 | 20 61 66 74 65 72 20 74 |ng place| after t|
|00009f00| 68 69 73 20 63 61 6c 6c | 0d 09 09 77 69 6c 6c 20 |his call|...will |
|00009f10| 62 65 20 70 61 72 74 20 | 6f 66 20 61 20 67 72 6f |be part |of a gro|
|00009f20| 75 70 2e 20 0d 09 09 43 | 61 6c 6c 20 47 72 6f 75 |up. ...C|all Grou|
|00009f30| 70 45 6e 64 20 77 68 65 | 6e 20 79 6f 75 20 61 72 |pEnd whe|n you ar|
|00009f40| 65 20 66 69 6e 69 73 68 | 65 64 20 77 69 74 68 20 |e finish|ed with |
|00009f50| 74 68 65 20 64 72 61 77 | 69 6e 67 20 74 68 61 74 |the draw|ing that|
|00009f60| 20 62 65 6c 6f 6e 67 73 | 20 74 6f 20 74 68 69 73 | belongs| to this|
|00009f70| 20 67 72 6f 75 70 2e 0d | 09 2a 2f 0d 09 0d 09 0d | group..|.*/.....|
|00009f80| 76 6f 69 64 20 53 65 74 | 43 75 72 72 65 6e 74 47 |void Set|CurrentG|
|00009f90| 72 61 70 68 28 6c 6f 6e | 67 20 67 72 61 70 68 49 |raph(lon|g graphI|
|00009fa0| 44 29 3b 0d 09 2f 2a 0d | 09 09 53 65 74 73 20 74 |D);../*.|..Sets t|
|00009fb0| 68 65 20 63 75 72 72 65 | 6e 74 20 67 72 61 70 68 |he curre|nt graph|
|00009fc0| 2c 20 74 68 61 74 20 69 | 73 20 74 68 65 20 67 72 |, that i|s the gr|
|00009fd0| 61 70 68 20 74 68 61 74 | 20 77 69 6c 6c 20 62 65 |aph that| will be|
|00009fe0| 20 75 73 65 64 20 66 6f | 72 20 61 6c 6c 20 6e 65 | used fo|r all ne|
|00009ff0| 77 6c 79 0d 09 09 63 72 | 65 61 74 65 64 20 66 75 |wly...cr|eated fu|
|0000a000| 6e 63 74 69 6f 6e 2d 63 | 75 72 76 65 73 20 61 6e |nction-c|urves an|
|0000a010| 64 20 64 61 74 61 2d 73 | 65 74 73 2c 20 61 6e 64 |d data-s|ets, and|
|0000a020| 20 62 79 20 61 6c 6c 20 | 72 6f 75 74 69 6e 65 73 | by all |routines|
|0000a030| 20 74 68 61 74 20 61 63 | 63 65 73 73 20 74 68 65 | that ac|cess the|
|0000a040| 0d 09 09 63 75 72 72 65 | 6e 74 20 67 72 61 70 68 |...curre|nt graph|
|0000a050| 20 69 6e 20 67 65 6e 65 | 72 61 6c 2c 20 73 75 63 | in gene|ral, suc|
|0000a060| 68 20 61 73 20 74 68 65 | 20 61 78 65 73 2d 65 64 |h as the| axes-ed|
|0000a070| 69 74 69 6e 67 20 72 6f | 75 74 69 6e 65 73 2e 0d |iting ro|utines..|
|0000a080| 09 09 67 72 61 70 68 49 | 44 20 69 73 20 74 68 65 |..graphI|D is the|
|0000a090| 20 67 72 61 70 68 27 73 | 20 69 64 65 6e 74 69 66 | graph's| identif|
|0000a0a0| 69 63 61 74 69 6f 69 6e | 20 6e 75 6d 62 65 72 2c |icatioin| number,|
|0000a0b0| 20 77 68 69 63 68 20 63 | 61 6e 20 62 65 20 66 6f | which c|an be fo|
|0000a0c0| 75 6e 64 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 0d |und imme|diately.|
|0000a0d0| 09 09 61 66 74 65 72 20 | 61 20 67 72 61 70 68 20 |..after |a graph |
|0000a0e0| 69 73 20 63 72 65 61 74 | 65 64 20 62 79 20 75 73 |is creat|ed by us|
|0000a0f0| 69 6e 67 20 74 68 65 20 | 72 6f 75 74 69 6e 65 20 |ing the |routine |
|0000a100| 47 65 74 43 75 72 72 65 | 6e 74 47 72 61 70 68 2e |GetCurre|ntGraph.|
|0000a110| 0d 09 2a 2f 0d 0d 6c 6f | 6e 67 20 47 65 74 43 75 |..*/..lo|ng GetCu|
|0000a120| 72 72 65 6e 74 47 72 61 | 70 68 28 76 6f 69 64 29 |rrentGra|ph(void)|
|0000a130| 3b 0d 09 2f 2a 09 0d 09 | 09 72 65 74 75 72 6e 73 |;../*...|.returns|
|0000a140| 20 74 68 65 20 67 72 61 | 70 68 20 69 64 65 6e 74 | the gra|ph ident|
|0000a150| 69 66 69 63 61 74 69 6f | 6e 20 6e 75 6d 62 65 72 |ificatio|n number|
|0000a160| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|0000a170| 67 72 61 70 68 2e 0d 09 | 2a 2f 0d 09 0d 09 0d 6c |graph...|*/.....l|
|0000a180| 6f 6e 67 20 47 65 74 4e | 65 78 74 47 72 61 70 68 |ong GetN|extGraph|
|0000a190| 28 6c 6f 6e 67 20 67 72 | 61 70 68 49 44 29 3b 0d |(long gr|aphID);.|
|0000a1a0| 09 2f 2a 0d 09 09 72 65 | 74 75 72 6e 73 20 74 68 |./*...re|turns th|
|0000a1b0| 65 20 69 64 65 6e 74 69 | 66 69 63 61 74 69 6f 6e |e identi|fication|
|0000a1c0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 67 | number |of the g|
|0000a1d0| 72 61 70 68 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 |raph fol|lowing t|
|0000a1e0| 68 65 20 67 69 76 65 6e | 20 6f 6e 65 20 69 6e 0d |he given| one in.|
|0000a1f0| 09 09 70 72 6f 20 46 69 | 74 27 73 20 70 72 69 76 |..pro Fi|t's priv|
|0000a200| 61 74 65 20 6c 69 73 74 | 20 6f 66 20 65 78 69 73 |ate list| of exis|
|0000a210| 74 69 6e 67 20 67 72 61 | 70 68 73 2e 20 54 68 65 |ting gra|phs. The|
|0000a220| 20 6f 72 64 65 72 20 69 | 6e 20 74 68 69 73 20 6c | order i|n this l|
|0000a230| 69 73 74 20 69 73 20 6e | 6f 74 0d 09 09 64 65 66 |ist is n|ot...def|
|0000a240| 69 6e 65 64 20 61 6e 64 | 20 64 65 70 65 6e 64 73 |ined and| depends|
|0000a250| 20 6f 6e 20 74 68 65 20 | 6f 72 64 65 72 20 6f 66 | on the |order of|
|0000a260| 20 74 68 65 20 77 69 6e | 64 6f 77 73 20 63 6f 6e | the win|dows con|
|0000a270| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 67 72 61 70 |taining |the grap|
|0000a280| 68 73 2e 0d 09 09 75 73 | 65 20 67 72 61 70 68 49 |hs....us|e graphI|
|0000a290| 44 3d 30 20 74 6f 20 67 | 65 74 20 74 68 65 20 49 |D=0 to g|et the I|
|0000a2a0| 44 20 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 67 |D of the| first g|
|0000a2b0| 72 61 70 68 2e 0d 09 09 | 72 65 74 75 72 6e 73 20 |raph....|returns |
|0000a2c0| 30 20 69 66 20 67 72 61 | 70 68 49 44 20 69 64 65 |0 if gra|phID ide|
|0000a2d0| 6e 74 69 66 69 65 73 20 | 74 68 65 20 6c 61 73 74 |ntifies |the last|
|0000a2e0| 20 67 72 61 70 68 2c 20 | 6f 72 20 69 66 20 67 72 | graph, |or if gr|
|0000a2f0| 61 70 68 49 44 21 3d 30 | 20 61 6e 64 20 6e 6f 20 |aphID!=0| and no |
|0000a300| 67 72 61 70 68 20 0d 09 | 09 77 69 74 68 20 74 68 |graph ..|.with th|
|0000a310| 69 73 20 69 64 65 6e 74 | 69 66 69 63 61 74 69 6f |is ident|ificatio|
|0000a320| 6e 20 6e 75 6d 62 65 72 | 20 65 78 69 73 74 73 2e |n number| exists.|
|0000a330| 0d 09 2a 2f 0d 09 0d 76 | 6f 69 64 20 47 65 74 47 |..*/...v|oid GetG|
|0000a340| 72 61 70 68 46 72 61 6d | 65 28 64 6f 75 62 6c 65 |raphFram|e(double|
|0000a350| 2a 20 6c 65 66 74 2c 64 | 6f 75 62 6c 65 2a 20 74 |* left,d|ouble* t|
|0000a360| 6f 70 2c 64 6f 75 62 6c | 65 2a 20 72 69 67 68 74 |op,doubl|e* right|
|0000a370| 2c 64 6f 75 62 6c 65 2a | 20 62 6f 74 74 6f 6d 29 |,double*| bottom)|
|0000a380| 3b 0d 09 2f 2a 0d 09 09 | 72 65 74 75 72 6e 73 20 |;../*...|returns |
|0000a390| 74 68 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |the coor|dinates |
|0000a3a0| 6f 66 20 74 68 65 20 66 | 72 61 6d 65 20 6f 66 20 |of the f|rame of |
|0000a3b0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 67 72 61 70 |the curr|ent grap|
|0000a3c0| 68 2e 0d 09 2a 2f 0d 09 | 0d 76 6f 69 64 20 53 65 |h...*/..|.void Se|
|0000a3d0| 74 47 72 61 70 68 46 72 | 61 6d 65 28 64 6f 75 62 |tGraphFr|ame(doub|
|0000a3e0| 6c 65 20 6c 65 66 74 2c | 64 6f 75 62 6c 65 20 74 |le left,|double t|
|0000a3f0| 6f 70 2c 64 6f 75 62 6c | 65 20 72 69 67 68 74 2c |op,doubl|e right,|
|0000a400| 64 6f 75 62 6c 65 20 62 | 6f 74 74 6f 6d 29 3b 0d |double b|ottom);.|
|0000a410| 09 2f 2a 0d 09 09 63 68 | 61 6e 67 65 73 20 74 68 |./*...ch|anges th|
|0000a420| 65 20 66 72 61 6d 65 20 | 6f 66 20 74 68 65 20 63 |e frame |of the c|
|0000a430| 75 72 72 65 6e 74 20 67 | 72 61 70 68 61 20 74 6f |urrent g|rapha to|
|0000a440| 20 6d 61 74 63 68 20 74 | 68 65 20 67 69 76 65 6e | match t|he given|
|0000a450| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 2e 0d 09 2a | coordin|ates...*|
|0000a460| 2f 0d 0d 0d 73 68 6f 72 | 74 20 47 65 74 43 75 72 |/...shor|t GetCur|
|0000a470| 72 65 6e 74 41 78 69 73 | 28 73 68 6f 72 74 20 77 |rentAxis|(short w|
|0000a480| 68 69 63 68 41 78 69 73 | 29 3b 0d 09 2f 2a 0d 09 |hichAxis|);../*..|
|0000a490| 09 72 65 74 75 72 6e 73 | 20 74 68 65 20 6e 75 6d |.returns| the num|
|0000a4a0| 62 65 72 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ber of t|he curre|
|0000a4b0| 6e 74 20 78 20 6f 72 20 | 79 20 61 78 69 73 2e 0d |nt x or |y axis..|
|0000a4c0| 09 09 77 68 69 63 68 41 | 78 69 73 20 69 73 20 65 |..whichA|xis is e|
|0000a4d0| 69 74 68 65 72 20 78 41 | 78 69 73 20 28 3d 3d 30 |ither xA|xis (==0|
|0000a4e0| 29 20 6f 72 20 79 41 78 | 69 73 20 28 3d 3d 31 29 |) or yAx|is (==1)|
|0000a4f0| 2e 0d 09 2a 2f 0d 09 0d | 76 6f 69 64 20 53 65 74 |...*/...|void Set|
|0000a500| 43 75 72 72 65 6e 74 41 | 78 69 73 28 73 68 6f 72 |CurrentA|xis(shor|
|0000a510| 74 20 77 68 69 63 68 41 | 78 69 73 2c 20 73 68 6f |t whichA|xis, sho|
|0000a520| 72 74 20 61 78 69 73 49 | 44 29 3b 0d 09 2f 2a 0d |rt axisI|D);../*.|
|0000a530| 09 09 73 65 74 73 20 74 | 68 65 20 63 75 72 72 65 |..sets t|he curre|
|0000a540| 6e 74 20 61 78 69 73 20 | 74 68 61 74 20 77 69 6c |nt axis |that wil|
|0000a550| 6c 20 62 65 20 75 73 65 | 64 20 66 6f 72 20 74 68 |l be use|d for th|
|0000a560| 65 20 6e 65 78 74 20 64 | 61 74 61 20 73 65 74 20 |e next d|ata set |
|0000a570| 6f 72 20 63 75 72 76 65 | 2c 20 61 6e 64 0d 09 09 |or curve|, and...|
|0000a580| 66 6f 72 20 61 6c 6c 20 | 61 78 69 73 2d 65 64 69 |for all |axis-edi|
|0000a590| 74 69 6e 67 20 63 61 6c | 6c 73 2c 20 73 75 63 68 |ting cal|ls, such|
|0000a5a0| 20 61 73 20 53 65 74 52 | 61 6e 67 65 2c 20 53 65 | as SetR|ange, Se|
|0000a5b0| 74 41 78 69 73 50 6f 73 | 69 74 69 6f 6e 2c 20 65 |tAxisPos|ition, e|
|0000a5c0| 74 63 2e 0d 09 2a 2f 0d | 09 0d 76 6f 69 64 20 44 |tc...*/.|..void D|
|0000a5d0| 65 6c 65 74 65 41 78 69 | 73 28 73 68 6f 72 74 20 |eleteAxi|s(short |
|0000a5e0| 77 68 69 63 68 41 78 69 | 73 2c 20 73 68 6f 72 74 |whichAxi|s, short|
|0000a5f0| 20 61 78 69 73 49 44 29 | 3b 0d 09 2f 2a 0d 09 09 | axisID)|;../*...|
|0000a600| 64 65 6c 65 74 65 73 20 | 74 68 65 20 67 69 76 65 |deletes |the give|
|0000a610| 6e 20 61 78 69 73 20 69 | 6e 20 74 68 65 20 63 75 |n axis i|n the cu|
|0000a620| 72 72 65 6e 74 20 67 72 | 61 70 68 2e 0d 09 2a 2f |rrent gr|aph...*/|
|0000a630| 0d 09 0d 76 6f 69 64 20 | 4d 61 6b 65 4e 65 77 41 |...void |MakeNewA|
|0000a640| 78 69 73 28 73 68 6f 72 | 74 20 77 68 69 63 68 41 |xis(shor|t whichA|
|0000a650| 78 69 73 2c 20 64 6f 75 | 62 6c 65 20 6d 69 6e 2c |xis, dou|ble min,|
|0000a660| 20 64 6f 75 62 6c 65 20 | 6d 61 78 2c 20 73 68 6f | double |max, sho|
|0000a670| 72 74 20 73 63 61 6c 69 | 6e 67 2c 20 64 6f 75 62 |rt scali|ng, doub|
|0000a680| 6c 65 20 70 6f 73 69 74 | 69 6f 6e 29 3b 0d 09 2f |le posit|ion);../|
|0000a690| 2a 0d 09 09 63 72 65 61 | 74 65 73 20 61 20 6e 65 |*...crea|tes a ne|
|0000a6a0| 77 20 61 78 69 73 20 77 | 69 74 68 20 74 68 65 20 |w axis w|ith the |
|0000a6b0| 67 69 76 65 6e 20 72 61 | 6e 67 65 20 61 6e 64 20 |given ra|nge and |
|0000a6c0| 73 63 61 6c 69 6e 67 20 | 69 6e 20 74 68 65 20 63 |scaling |in the c|
|0000a6d0| 75 72 72 65 6e 74 20 67 | 72 61 70 68 2e 0d 09 09 |urrent g|raph....|
|0000a6e0| 70 6f 73 69 74 69 6f 6e | 20 67 69 76 65 73 20 74 |position| gives t|
|0000a6f0| 68 65 20 70 6f 73 69 74 | 69 6f 6e 20 6f 66 20 74 |he posit|ion of t|
|0000a700| 68 65 20 6e 65 77 20 61 | 78 69 73 20 69 6e 20 74 |he new a|xis in t|
|0000a710| 68 65 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 73 79 |he coord|inate sy|
|0000a720| 73 74 65 6d 20 6f 66 20 | 74 68 65 0d 09 09 4d 41 |stem of |the...MA|
|0000a730| 49 4e 20 41 58 49 53 20 | 70 65 72 70 65 6e 64 69 |IN AXIS |perpendi|
|0000a740| 63 75 6c 61 72 20 74 6f | 20 69 74 2e 0d 09 2a 2f |cular to| it...*/|
|0000a750| 0d 09 0d 76 6f 69 64 20 | 53 65 74 52 61 6e 67 65 |...void |SetRange|
|0000a760| 28 73 68 6f 72 74 20 77 | 68 69 63 68 41 78 69 73 |(short w|hichAxis|
|0000a770| 2c 20 64 6f 75 62 6c 65 | 20 6d 69 6e 2c 20 64 6f |, double| min, do|
|0000a780| 75 62 6c 65 20 6d 61 78 | 2c 20 73 68 6f 72 74 20 |uble max|, short |
|0000a790| 73 63 61 6c 69 6e 67 29 | 3b 0d 09 2f 2a 0d 09 09 |scaling)|;../*...|
|0000a7a0| 43 68 61 6e 67 65 73 20 | 74 68 65 20 72 61 6e 67 |Changes |the rang|
|0000a7b0| 65 20 61 6e 64 20 73 63 | 61 6c 69 6e 67 20 6f 66 |e and sc|aling of|
|0000a7c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 61 78 69 | the cur|rent axi|
|0000a7d0| 73 20 74 6f 20 74 68 65 | 20 73 70 65 63 69 66 69 |s to the| specifi|
|0000a7e0| 65 64 20 6f 6e 65 2e 0d | 09 09 28 74 68 65 20 63 |ed one..|..(the c|
|0000a7f0| 75 72 72 65 6e 74 20 61 | 78 69 73 20 63 61 6e 20 |urrent a|xis can |
|0000a800| 62 65 20 73 65 74 20 77 | 69 74 68 20 74 68 65 20 |be set w|ith the |
|0000a810| 53 65 74 43 75 72 72 65 | 6e 74 41 78 69 73 20 72 |SetCurre|ntAxis r|
|0000a820| 6f 75 74 69 6e 65 29 0d | 09 2a 2f 0d 09 0d 76 6f |outine).|.*/...vo|
|0000a830| 69 64 20 4d 61 6b 65 54 | 69 63 6b 73 28 73 68 6f |id MakeT|icks(sho|
|0000a840| 72 74 20 77 68 69 63 68 | 41 78 69 73 2c 20 64 6f |rt which|Axis, do|
|0000a850| 75 62 6c 65 20 66 69 72 | 73 74 4d 61 6a 2c 20 64 |uble fir|stMaj, d|
|0000a860| 6f 75 62 6c 65 20 64 69 | 73 74 61 6e 63 65 2c 20 |ouble di|stance, |
|0000a870| 73 68 6f 72 74 20 6e 72 | 4d 69 6e 54 69 63 6b 73 |short nr|MinTicks|
|0000a880| 29 3b 0d 09 2f 2a 0d 09 | 09 4c 65 74 73 20 74 68 |);../*..|.Lets th|
|0000a890| 65 20 63 75 72 72 65 6e | 74 20 61 78 69 73 20 72 |e curren|t axis r|
|0000a8a0| 65 63 61 6c 63 75 6c 61 | 74 65 20 69 74 73 20 74 |ecalcula|te its t|
|0000a8b0| 69 63 6b 73 2c 20 62 61 | 73 65 64 20 6f 6e 20 74 |icks, ba|sed on t|
|0000a8c0| 68 65 20 6e 65 77 20 70 | 6f 73 69 74 69 6f 6e 0d |he new p|osition.|
|0000a8d0| 09 09 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 6d |..of the| first m|
|0000a8e0| 61 6a 6f 72 20 74 69 63 | 6b 2c 20 74 69 63 6b 20 |ajor tic|k, tick |
|0000a8f0| 64 69 73 74 61 6e 63 65 | 2c 20 61 6e 64 20 6e 75 |distance|, and nu|
|0000a900| 6d 62 65 72 20 6f 66 20 | 6d 69 6e 6f 72 20 74 69 |mber of |minor ti|
|0000a910| 63 6b 73 2e 0d 09 2a 2f | 0d 09 0d 76 6f 69 64 20 |cks...*/|...void |
|0000a920| 53 65 74 4c 61 62 65 6c | 73 46 6f 72 6d 61 74 28 |SetLabel|sFormat(|
|0000a930| 73 68 6f 72 74 20 77 68 | 69 63 68 41 78 69 73 2c |short wh|ichAxis,|
|0000a940| 20 73 68 6f 72 74 20 66 | 6f 72 6d 61 74 2c 20 73 | short f|ormat, s|
|0000a950| 68 6f 72 74 20 64 65 63 | 69 6d 61 6c 73 29 3b 0d |hort dec|imals);.|
|0000a960| 09 2f 2a 0d 09 09 43 68 | 61 6e 67 65 73 20 74 68 |./*...Ch|anges th|
|0000a970| 65 20 66 6f 72 6d 61 74 | 20 6f 66 20 74 68 65 20 |e format| of the |
|0000a980| 74 69 63 6b 20 6c 61 62 | 65 6c 73 20 6f 66 20 74 |tick lab|els of t|
|0000a990| 68 65 20 63 75 72 72 65 | 6e 74 20 61 78 69 73 2e |he curre|nt axis.|
|0000a9a0| 0d 09 09 66 6f 72 6d 61 | 74 3a 09 09 2d 31 3a 20 |...forma|t:..-1: |
|0000a9b0| 61 75 74 6f 2c 20 30 3a | 20 64 65 63 69 6d 61 6c |auto, 0:| decimal|
|0000a9c0| 2c 20 31 3a 20 61 75 74 | 6f 20 65 78 70 6f 6e 65 |, 1: aut|o expone|
|0000a9d0| 6e 74 2e 0d 09 09 09 09 | 09 61 6e 79 20 6f 74 68 |nt......|.any oth|
|0000a9e0| 65 72 20 6e 75 6d 62 65 | 72 20 67 69 76 65 73 20 |er numbe|r gives |
|0000a9f0| 74 68 65 20 66 69 78 65 | 64 20 65 78 70 6f 6e 65 |the fixe|d expone|
|0000aa00| 6e 74 0d 09 09 64 65 63 | 69 6d 61 6c 73 3a 09 6e |nt...dec|imals:.n|
|0000aa10| 75 6d 62 65 72 20 6f 66 | 20 64 69 67 69 74 73 20 |umber of| digits |
|0000aa20| 61 66 74 65 72 20 74 68 | 65 20 64 65 63 69 6d 61 |after th|e decima|
|0000aa30| 6c 20 70 6f 69 6e 74 2e | 0d 09 2a 2f 0d 09 09 0d |l point.|..*/....|
|0000aa40| 76 6f 69 64 20 43 6c 65 | 61 72 4c 61 62 65 6c 73 |void Cle|arLabels|
|0000aa50| 28 73 68 6f 72 74 20 77 | 68 69 63 68 41 78 69 73 |(short w|hichAxis|
|0000aa60| 29 3b 0d 09 2f 2a 0d 09 | 09 43 6c 65 61 72 73 20 |);../*..|.Clears |
|0000aa70| 74 68 65 20 74 65 78 74 | 20 63 6f 6e 74 61 69 6e |the text| contain|
|0000aa80| 65 64 20 69 6e 20 61 6c | 6c 20 6c 61 62 65 6c 73 |ed in al|l labels|
|0000aa90| 20 6f 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | of the |current |
|0000aaa0| 61 78 69 73 2e 0d 09 2a | 2f 0d 09 0d 76 6f 69 64 |axis...*|/...void|
|0000aab0| 20 43 6c 65 61 72 54 69 | 63 6b 73 28 73 68 6f 72 | ClearTi|cks(shor|
|0000aac0| 74 20 77 68 69 63 68 41 | 78 69 73 29 3b 0d 09 2f |t whichA|xis);../|
|0000aad0| 2a 0d 09 09 43 6c 65 61 | 72 73 20 74 68 65 20 74 |*...Clea|rs the t|
|0000aae0| 69 63 6b 73 20 6c 69 73 | 74 20 6f 66 20 74 68 65 |icks lis|t of the|
|0000aaf0| 20 63 75 72 72 65 6e 74 | 20 61 78 69 73 2c 20 65 | current| axis, e|
|0000ab00| 66 66 65 63 74 69 76 65 | 6c 79 20 63 72 65 61 74 |ffective|ly creat|
|0000ab10| 69 6e 67 0d 09 09 61 6e | 20 65 6d 70 74 79 20 6c |ing...an| empty l|
|0000ab20| 69 73 74 20 6f 66 20 74 | 69 63 6b 73 2e 0d 09 09 |ist of t|icks....|
|0000ab30| 43 61 6c 6c 20 74 68 69 | 73 20 72 6f 75 74 69 6e |Call thi|s routin|
|0000ab40| 65 20 62 65 66 6f 72 65 | 20 64 65 66 69 6e 69 6e |e before| definin|
|0000ab50| 67 20 61 20 73 65 74 20 | 6f 66 20 63 75 73 74 6f |g a set |of custo|
|0000ab60| 6d 20 74 69 63 6b 73 20 | 77 69 74 68 20 74 68 65 |m ticks |with the|
|0000ab70| 0d 09 09 41 64 64 54 69 | 63 6b 20 72 6f 75 74 69 |...AddTi|ck routi|
|0000ab80| 6e 65 2e 0d 09 2a 2f 0d | 0d 09 0d 73 68 6f 72 74 |ne...*/.|...short|
|0000ab90| 20 41 64 64 54 69 63 6b | 28 73 68 6f 72 74 20 77 | AddTick|(short w|
|0000aba0| 68 69 63 68 41 78 69 73 | 2c 20 64 6f 75 62 6c 65 |hichAxis|, double|
|0000abb0| 20 74 69 63 6b 50 6f 73 | 2c 20 42 6f 6f 6c 65 61 | tickPos|, Boolea|
|0000abc0| 6e 20 69 73 4d 61 6a 6f | 72 29 3b 0d 09 2f 2a 0d |n isMajo|r);../*.|
|0000abd0| 09 09 55 73 65 20 74 68 | 69 73 20 72 6f 75 74 69 |..Use th|is routi|
|0000abe0| 6e 65 20 74 6f 20 64 65 | 66 69 6e 65 20 79 6f 75 |ne to de|fine you|
|0000abf0| 72 20 6f 77 6e 20 74 69 | 63 6b 73 20 69 6e 20 74 |r own ti|cks in t|
|0000ac00| 68 65 20 63 75 72 72 65 | 6e 74 20 61 78 69 73 2e |he curre|nt axis.|
|0000ac10| 0d 09 09 43 61 6c 6c 20 | 43 6c 65 61 72 54 69 63 |...Call |ClearTic|
|0000ac20| 6b 73 20 62 65 66 6f 72 | 65 20 75 73 69 6e 67 20 |ks befor|e using |
|0000ac30| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 2e 0d 09 09 |this rou|tine....|
|0000ac40| 67 69 76 65 6e 20 74 68 | 65 20 70 6f 73 69 74 69 |given th|e positi|
|0000ac50| 6f 6e 20 6f 66 20 74 68 | 65 20 74 69 63 20 6d 61 |on of th|e tic ma|
|0000ac60| 72 6b 20 61 6e 64 20 69 | 74 73 20 70 72 6f 70 65 |rk and i|ts prope|
|0000ac70| 72 74 69 65 73 20 28 73 | 65 74 20 69 73 4d 61 6a |rties (s|et isMaj|
|0000ac80| 6f 72 20 74 6f 20 74 72 | 75 65 0d 09 09 74 6f 20 |or to tr|ue...to |
|0000ac90| 6f 62 74 61 69 6e 20 61 | 20 6d 61 6a 6f 72 20 74 |obtain a| major t|
|0000aca0| 69 63 6b 29 2c 20 41 64 | 64 54 69 63 6b 20 72 65 |ick), Ad|dTick re|
|0000acb0| 74 75 72 6e 73 20 74 68 | 65 20 69 6e 64 65 78 20 |turns th|e index |
|0000acc0| 6f 66 20 74 68 65 20 6e | 65 77 6c 79 20 63 72 65 |of the n|ewly cre|
|0000acd0| 61 74 65 64 0d 09 09 74 | 69 63 6b 20 69 6e 20 74 |ated...t|ick in t|
|0000ace0| 68 65 20 74 69 63 6b 20 | 6c 69 73 74 2e 0d 09 09 |he tick |list....|
|0000acf0| 49 74 20 72 65 74 75 72 | 6e 73 20 31 20 66 6f 72 |It retur|ns 1 for|
|0000ad00| 20 74 68 65 20 66 69 72 | 73 74 20 74 69 63 6b 2e | the fir|st tick.|
|0000ad10| 0d 09 09 54 68 69 73 20 | 69 6e 64 65 78 20 63 61 |...This |index ca|
|0000ad20| 6e 20 62 65 20 75 73 65 | 64 20 69 6e 20 74 68 65 |n be use|d in the|
|0000ad30| 20 53 65 74 4c 61 62 65 | 6c 2f 53 65 74 4c 61 62 | SetLabe|l/SetLab|
|0000ad40| 65 6c 54 65 78 74 20 72 | 6f 75 74 69 6e 65 73 20 |elText r|outines |
|0000ad50| 74 6f 20 63 68 61 6e 67 | 65 0d 09 09 74 68 65 20 |to chang|e...the |
|0000ad60| 6c 61 62 65 6c 20 61 74 | 74 61 63 68 65 64 20 74 |label at|tached t|
|0000ad70| 6f 20 74 68 65 20 6e 65 | 77 6c 79 20 63 72 65 61 |o the ne|wly crea|
|0000ad80| 74 65 64 20 74 69 63 6b | 2e 0d 09 2a 2f 0d 09 0d |ted tick|...*/...|
|0000ad90| 76 6f 69 64 20 53 65 74 | 4c 61 62 65 6c 28 73 68 |void Set|Label(sh|
|0000ada0| 6f 72 74 20 77 68 69 63 | 68 41 78 69 73 2c 20 73 |ort whic|hAxis, s|
|0000adb0| 68 6f 72 74 20 74 69 63 | 6b 4e 75 6d 2c 20 64 6f |hort tic|kNum, do|
|0000adc0| 75 62 6c 65 20 6c 61 62 | 65 6c 4e 75 6d 62 65 72 |uble lab|elNumber|
|0000add0| 29 3b 0d 09 2f 2a 0d 09 | 09 47 69 76 65 6e 20 61 |);../*..|.Given a|
|0000ade0| 20 74 69 63 6b 20 69 6e | 64 65 78 20 28 31 3c 3d | tick in|dex (1<=|
|0000adf0| 74 69 63 6b 4e 75 6d 3c | 3d 6e 75 6d 62 65 72 4f |tickNum<|=numberO|
|0000ae00| 66 54 69 63 6b 73 29 2c | 20 74 68 69 73 20 72 6f |fTicks),| this ro|
|0000ae10| 75 74 69 6e 65 20 61 74 | 74 61 63 68 65 73 20 74 |utine at|taches t|
|0000ae20| 68 65 0d 09 09 67 69 76 | 65 6e 20 6c 61 62 65 6c |he...giv|en label|
|0000ae30| 20 74 6f 20 69 74 20 62 | 79 20 63 6f 6e 76 65 72 | to it b|y conver|
|0000ae40| 74 69 6e 67 20 6c 61 62 | 65 6c 4e 75 6d 62 65 72 |ting lab|elNumber|
|0000ae50| 20 69 6e 74 6f 20 61 20 | 73 74 72 69 6e 67 20 61 | into a |string a|
|0000ae60| 63 63 6f 72 64 69 6e 67 | 20 74 6f 0d 09 09 74 68 |ccording| to...th|
|0000ae70| 65 20 6c 61 62 65 6c 2d | 66 6f 72 6d 61 74 20 73 |e label-|format s|
|0000ae80| 70 65 63 69 66 69 65 64 | 20 66 6f 72 20 74 68 65 |pecified| for the|
|0000ae90| 20 63 75 72 72 65 6e 74 | 20 61 78 69 73 2e 0d 09 | current| axis...|
|0000aea0| 09 6c 61 62 65 6c 73 20 | 63 61 6e 20 62 65 20 61 |.labels |can be a|
|0000aeb0| 74 74 61 63 68 65 64 20 | 74 6f 20 6d 69 6e 6f 72 |ttached |to minor|
|0000aec0| 20 6f 72 20 6d 61 6a 6f | 72 20 74 69 63 6b 73 20 | or majo|r ticks |
|0000aed0| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 2e |in the s|ame way.|
|0000aee0| 0d 09 2a 2f 0d 09 0d 76 | 6f 69 64 20 53 65 74 4c |..*/...v|oid SetL|
|0000aef0| 61 62 65 6c 54 65 78 74 | 28 73 68 6f 72 74 20 77 |abelText|(short w|
|0000af00| 68 69 63 68 41 78 69 73 | 2c 20 73 68 6f 72 74 20 |hichAxis|, short |
|0000af10| 74 69 63 6b 4e 75 6d 2c | 20 63 6f 6e 73 74 20 53 |tickNum,| const S|
|0000af20| 74 72 32 35 35 20 6c 61 | 62 65 6c 54 65 78 74 29 |tr255 la|belText)|
|0000af30| 3b 0d 09 2f 2a 0d 09 09 | 47 69 76 65 6e 20 61 20 |;../*...|Given a |
|0000af40| 74 69 63 6b 20 69 6e 64 | 65 78 20 28 31 3c 3d 74 |tick ind|ex (1<=t|
|0000af50| 69 63 6b 4e 75 6d 3c 3d | 6e 75 6d 62 65 72 4f 66 |ickNum<=|numberOf|
|0000af60| 54 69 63 6b 73 29 2c 20 | 74 68 69 73 20 72 6f 75 |Ticks), |this rou|
|0000af70| 74 69 6e 65 20 61 74 74 | 61 63 68 65 73 20 74 68 |tine att|aches th|
|0000af80| 65 0d 09 09 67 69 76 65 | 6e 20 6c 61 62 65 6c 20 |e...give|n label |
|0000af90| 74 6f 20 69 74 20 62 79 | 20 75 73 69 6e 67 20 74 |to it by| using t|
|0000afa0| 68 65 20 74 65 78 74 20 | 70 61 73 73 65 64 20 69 |he text |passed i|
|0000afb0| 6e 20 6c 61 62 65 6c 54 | 65 78 74 20 28 70 61 73 |n labelT|ext (pas|
|0000afc0| 63 61 6c 20 73 74 72 69 | 6e 67 21 29 0d 0d 09 2a |cal stri|ng!)...*|
|0000afd0| 2f 0d 09 0d 76 6f 69 64 | 20 53 65 74 41 78 69 73 |/...void| SetAxis|
|0000afe0| 50 6f 73 69 74 69 6f 6e | 28 73 68 6f 72 74 20 77 |Position|(short w|
|0000aff0| 68 69 63 68 41 78 69 73 | 2c 20 64 6f 75 62 6c 65 |hichAxis|, double|
|0000b000| 20 70 6f 73 69 74 69 6f | 6e 29 3b 0d 09 2f 2a 0d | positio|n);../*.|
|0000b010| 09 09 53 65 74 73 20 74 | 68 65 20 70 6f 73 69 74 |..Sets t|he posit|
|0000b020| 69 6f 6e 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ion of t|he curre|
|0000b030| 6e 74 20 61 78 69 73 20 | 69 6e 20 74 68 65 20 63 |nt axis |in the c|
|0000b040| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|0000b050| 20 6f 66 20 74 68 65 0d | 09 09 4d 41 49 4e 20 41 | of the.|..MAIN A|
|0000b060| 58 49 53 20 70 65 72 70 | 65 6e 64 69 63 75 6c 61 |XIS perp|endicula|
|0000b070| 72 20 74 6f 20 69 74 2e | 0d 09 2a 2f 0d 0d 76 6f |r to it.|..*/..vo|
|0000b080| 69 64 20 53 65 74 41 78 | 69 73 41 74 74 72 69 62 |id SetAx|isAttrib|
|0000b090| 75 74 65 73 28 73 68 6f | 72 74 20 77 68 69 63 68 |utes(sho|rt which|
|0000b0a0| 41 78 69 73 2c 20 6c 6f | 6e 67 20 66 6c 61 67 73 |Axis, lo|ng flags|
|0000b0b0| 29 3b 0d 09 2f 2a 0d 09 | 09 73 65 74 73 20 74 68 |);../*..|.sets th|
|0000b0c0| 65 20 61 74 74 72 69 62 | 75 74 65 73 20 6f 66 20 |e attrib|utes of |
|0000b0d0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 61 78 69 73 |the curr|ent axis|
|0000b0e0| 20 74 6f 20 6d 61 74 63 | 68 20 22 66 6c 61 67 73 | to matc|h "flags|
|0000b0f0| 22 0d 09 09 66 6c 61 67 | 73 3a 09 61 20 73 65 74 |"...flag|s:.a set|
|0000b100| 20 6f 66 20 61 78 69 73 | 20 63 68 61 72 61 63 74 | of axis| charact|
|0000b110| 65 72 69 73 74 69 63 73 | 20 74 68 61 74 20 63 61 |eristics| that ca|
|0000b120| 6e 20 62 65 20 63 61 6c | 63 75 6c 61 74 65 64 20 |n be cal|culated |
|0000b130| 62 79 20 73 75 6d 6d 69 | 6e 67 20 74 68 65 0d 09 |by summi|ng the..|
|0000b140| 09 09 09 61 76 61 69 6c | 61 62 6c 65 20 63 6f 6e |...avail|able con|
|0000b150| 73 74 61 6e 74 73 2e 0d | 09 2a 2f 0d 09 0d 76 6f |stants..|.*/...vo|
|0000b160| 69 64 20 53 65 74 47 72 | 61 70 68 41 74 74 72 69 |id SetGr|aphAttri|
|0000b170| 62 75 74 65 73 28 6c 6f | 6e 67 20 66 6c 61 67 73 |butes(lo|ng flags|
|0000b180| 29 3b 0d 09 2f 2a 0d 09 | 09 73 65 74 73 20 74 68 |);../*..|.sets th|
|0000b190| 65 20 61 74 74 72 69 62 | 75 74 65 73 20 6f 66 20 |e attrib|utes of |
|0000b1a0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 61 78 69 73 |the curr|ent axis|
|0000b1b0| 20 74 6f 20 6d 61 74 63 | 68 20 22 66 6c 61 67 73 | to matc|h "flags|
|0000b1c0| 22 0d 09 09 66 6c 61 67 | 73 3a 09 61 20 73 65 74 |"...flag|s:.a set|
|0000b1d0| 20 6f 66 20 61 78 69 73 | 20 63 68 61 72 61 63 74 | of axis| charact|
|0000b1e0| 65 72 69 73 74 69 63 73 | 20 74 68 61 74 20 63 61 |eristics| that ca|
|0000b1f0| 6e 20 62 65 20 63 61 6c | 63 75 6c 61 74 65 64 20 |n be cal|culated |
|0000b200| 62 79 20 73 75 6d 6d 69 | 6e 67 20 74 68 65 20 0d |by summi|ng the .|
|0000b210| 09 09 09 09 61 76 61 69 | 6c 61 62 6c 65 20 63 6f |....avai|lable co|
|0000b220| 6e 73 74 61 6e 74 73 2e | 0d 09 2a 2f 0d 09 0d 09 |nstants.|..*/....|
|0000b230| 0d 09 0d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...../**|********|
|0000b240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b250| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b270| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b280| 2a 2a 2a 2a 2a 2a 2f 0d | 2f 2a 2a 2a 2a 2a 2a 2a |******/.|/*******|
|0000b290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 20 69 6e 74 65 72 |********|** inter|
|0000b2a0| 61 63 74 69 6f 6e 20 77 | 69 74 68 20 6f 74 68 65 |action w|ith othe|
|0000b2b0| 72 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 6e 64 20 |r functi|ons and |
|0000b2c0| 70 72 6f 67 72 61 6d 73 | 20 2a 2a 2a 2a 2a 2a 2a |programs| *******|
|0000b2d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 09 09 0d |********|**/.....|
|0000b2e0| 76 6f 69 64 20 53 65 74 | 50 61 72 61 6d 4c 69 6d |void Set|ParamLim|
|0000b2f0| 69 74 73 28 73 68 6f 72 | 74 20 70 61 72 61 6d 4e |its(shor|t paramN|
|0000b300| 75 6d 2c 20 64 6f 75 62 | 6c 65 20 6c 6f 77 2c 20 |um, doub|le low, |
|0000b310| 64 6f 75 62 6c 65 20 68 | 69 67 68 29 3b 0d 09 2f |double h|igh);../|
|0000b320| 2a 20 73 65 74 73 20 74 | 68 65 20 6c 69 6d 69 74 |* sets t|he limit|
|0000b330| 73 20 6f 66 20 61 20 70 | 61 72 61 6d 65 74 65 72 |s of a p|arameter|
|0000b340| 20 28 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 | (of the| current|
|0000b350| 6c 79 20 72 75 6e 6e 69 | 6e 67 20 66 75 6e 63 74 |ly runni|ng funct|
|0000b360| 69 6f 6e 29 20 2a 2f 0d | 0d 76 6f 69 64 20 53 65 |ion) */.|.void Se|
|0000b370| 74 50 61 72 61 6d 44 65 | 66 61 75 6c 74 56 61 6c |tParamDe|faultVal|
|0000b380| 75 65 28 73 68 6f 72 74 | 20 70 61 72 61 6d 4e 75 |ue(short| paramNu|
|0000b390| 6d 2c 20 64 6f 75 62 6c | 65 20 76 61 6c 75 65 29 |m, doubl|e value)|
|0000b3a0| 3b 0d 09 2f 2a 20 73 65 | 74 73 20 74 68 65 20 64 |;../* se|ts the d|
|0000b3b0| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 73 20 6f 66 |efault v|alues of|
|0000b3c0| 20 61 20 70 61 72 61 6d | 65 74 65 72 20 28 6f 66 | a param|eter (of|
|0000b3d0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 6c 79 20 72 | the cur|rently r|
|0000b3e0| 75 6e 6e 69 6e 67 20 66 | 75 6e 63 74 69 6f 6e 29 |unning f|unction)|
|0000b3f0| 20 2a 2f 0d 0d 76 6f 69 | 64 20 53 65 74 50 61 72 | */..voi|d SetPar|
|0000b400| 61 6d 4e 61 6d 65 28 73 | 68 6f 72 74 20 70 61 72 |amName(s|hort par|
|0000b410| 61 6d 4e 75 6d 2c 20 63 | 6f 6e 73 74 20 53 74 72 |amNum, c|onst Str|
|0000b420| 32 35 35 20 6e 61 6d 65 | 29 3b 0d 09 2f 2a 20 73 |255 name|);../* s|
|0000b430| 65 74 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ets the |name of |
|0000b440| 61 20 70 61 72 61 6d 65 | 74 65 72 20 28 6f 66 20 |a parame|ter (of |
|0000b450| 74 68 65 20 63 75 72 72 | 65 6e 74 6c 79 20 72 75 |the curr|ently ru|
|0000b460| 6e 6e 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 29 20 |nning fu|nction) |
|0000b470| 2a 2f 0d 0d 76 6f 69 64 | 20 53 65 74 50 61 72 61 |*/..void| SetPara|
|0000b480| 6d 44 65 66 61 75 6c 74 | 73 28 73 68 6f 72 74 20 |mDefault|s(short |
|0000b490| 70 61 72 61 6d 4e 75 6d | 2c 64 6f 75 62 6c 65 20 |paramNum|,double |
|0000b4a0| 76 61 6c 75 65 2c 73 68 | 6f 72 74 20 6d 6f 64 65 |value,sh|ort mode|
|0000b4b0| 2c 20 63 6f 6e 73 74 20 | 53 74 72 32 35 35 20 6e |, const |Str255 n|
|0000b4c0| 61 6d 65 2c 20 64 6f 75 | 62 6c 65 20 6c 6f 77 2c |ame, dou|ble low,|
|0000b4d0| 20 64 6f 75 62 6c 65 20 | 68 69 67 68 29 3b 0d 09 | double |high);..|
|0000b4e0| 2f 2a 20 73 65 74 73 20 | 74 68 65 20 64 65 66 61 |/* sets |the defa|
|0000b4f0| 75 6c 74 20 73 65 74 74 | 69 6e 67 73 20 6f 66 20 |ult sett|ings of |
|0000b500| 61 20 70 61 72 61 6d 65 | 74 65 72 20 28 6f 66 20 |a parame|ter (of |
|0000b510| 74 68 65 20 63 75 72 72 | 65 6e 74 6c 79 20 72 75 |the curr|ently ru|
|0000b520| 6e 6e 69 6e 67 20 66 75 | 6e 63 74 69 6f 6e 29 20 |nning fu|nction) |
|0000b530| 2a 2f 0d 09 2f 2a 20 6d | 6f 64 65 20 69 73 20 7b |*/../* m|ode is {|
|0000b540| 61 63 74 69 76 65 2c 20 | 69 6e 61 63 74 69 76 65 |active, |inactive|
|0000b550| 2c 20 63 6f 6e 73 74 61 | 6e 74 7d 20 2a 2f 0d 0d |, consta|nt} */..|
|0000b560| 0d 0d 64 6f 75 62 6c 65 | 20 43 61 6c 6c 46 75 6e |..double| CallFun|
|0000b570| 63 74 69 6f 6e 28 63 6f | 6e 73 74 20 53 74 72 32 |ction(co|nst Str2|
|0000b580| 35 35 20 6e 61 6d 65 2c | 64 6f 75 62 6c 65 20 78 |55 name,|double x|
|0000b590| 76 61 6c 75 65 29 3b 0d | 09 2f 2a 20 63 61 6c 6c |value);.|./* call|
|0000b5a0| 73 20 61 6e 79 20 6f 66 | 20 74 68 65 20 66 75 6e |s any of| the fun|
|0000b5b0| 63 74 69 6f 6e 73 20 69 | 6e 20 74 68 65 20 66 75 |ctions i|n the fu|
|0000b5c0| 6e 63 20 6d 65 6e 75 20 | 62 79 20 69 74 73 20 6e |nc menu |by its n|
|0000b5d0| 61 6d 65 20 2a 2f 0d 0d | 73 68 6f 72 74 20 47 65 |ame */..|short Ge|
|0000b5e0| 74 4e 75 6d 46 75 6e 63 | 74 69 6f 6e 50 61 72 61 |tNumFunc|tionPara|
|0000b5f0| 6d 73 28 63 6f 6e 73 74 | 20 53 74 72 32 35 35 20 |ms(const| Str255 |
|0000b600| 66 75 6e 63 74 69 6f 6e | 4e 61 6d 65 29 3b 0d 09 |function|Name);..|
|0000b610| 2f 2a 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |/* retur|ns the n|
|0000b620| 75 6d 62 65 72 20 6f 66 | 20 70 61 72 61 6d 65 74 |umber of| paramet|
|0000b630| 65 72 73 20 6f 66 20 61 | 20 66 75 6e 63 74 69 6f |ers of a| functio|
|0000b640| 6e 20 69 6e 20 74 68 65 | 20 66 75 6e 63 20 6d 65 |n in the| func me|
|0000b650| 6e 75 20 2a 2f 0d 0d 73 | 68 6f 72 74 20 47 65 74 |nu */..s|hort Get|
|0000b660| 46 75 6e 63 74 69 6f 6e | 50 61 72 61 6d 4d 6f 64 |Function|ParamMod|
|0000b670| 65 28 63 6f 6e 73 74 20 | 53 74 72 32 35 35 20 66 |e(const |Str255 f|
|0000b680| 75 6e 63 74 69 6f 6e 4e | 61 6d 65 2c 73 68 6f 72 |unctionN|ame,shor|
|0000b690| 74 20 70 61 72 61 6d 49 | 6e 64 65 78 29 3b 0d 09 |t paramI|ndex);..|
|0000b6a0| 2f 2a 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6d |/* retur|ns the m|
|0000b6b0| 6f 64 65 20 6f 66 20 61 | 20 70 61 72 61 6d 65 74 |ode of a| paramet|
|0000b6c0| 65 72 20 66 6f 72 20 6f | 6e 65 20 6f 66 20 74 68 |er for o|ne of th|
|0000b6d0| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 69 6e 20 74 |e functi|ons in t|
|0000b6e0| 68 65 20 66 75 6e 63 20 | 6d 65 6e 75 20 2a 2f 0d |he func |menu */.|
|0000b6f0| 0d 76 6f 69 64 20 47 65 | 74 46 75 6e 63 74 69 6f |.void Ge|tFunctio|
|0000b700| 6e 50 61 72 61 6d 4e 61 | 6d 65 28 63 6f 6e 73 74 |nParamNa|me(const|
|0000b710| 20 53 74 72 32 35 35 20 | 66 75 6e 63 74 69 6f 6e | Str255 |function|
|0000b720| 4e 61 6d 65 2c 73 68 6f | 72 74 20 70 61 72 61 6d |Name,sho|rt param|
|0000b730| 49 6e 64 65 78 2c 20 53 | 74 72 32 35 35 20 70 61 |Index, S|tr255 pa|
|0000b740| 72 61 6d 4e 61 6d 65 29 | 3b 0d 09 2f 2a 20 72 65 |ramName)|;../* re|
|0000b750| 74 75 72 6e 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |turns th|e name o|
|0000b760| 66 20 61 20 70 61 72 61 | 6d 65 74 65 72 20 66 6f |f a para|meter fo|
|0000b770| 72 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 66 75 6e |r one of| the fun|
|0000b780| 63 74 69 6f 6e 73 20 69 | 6e 20 74 68 65 20 66 75 |ctions i|n the fu|
|0000b790| 6e 63 20 6d 65 6e 75 20 | 2a 2f 0d 0d 64 6f 75 62 |nc menu |*/..doub|
|0000b7a0| 6c 65 20 47 65 74 46 75 | 6e 63 74 69 6f 6e 50 61 |le GetFu|nctionPa|
|0000b7b0| 72 61 6d 28 63 6f 6e 73 | 74 20 53 74 72 32 35 35 |ram(cons|t Str255|
|0000b7c0| 20 66 75 6e 63 74 69 6f | 6e 4e 61 6d 65 2c 73 68 | functio|nName,sh|
|0000b7d0| 6f 72 74 20 70 61 72 61 | 6d 49 6e 64 65 78 29 3b |ort para|mIndex);|
|0000b7e0| 0d 09 2f 2a 20 72 65 74 | 75 72 6e 73 20 74 68 65 |../* ret|urns the|
|0000b7f0| 20 76 61 6c 75 65 20 6f | 66 20 61 20 70 61 72 61 | value o|f a para|
|0000b800| 6d 65 74 65 72 20 66 6f | 72 20 6f 6e 65 20 6f 66 |meter fo|r one of|
|0000b810| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 73 20 69 | the fun|ctions i|
|0000b820| 6e 20 74 68 65 20 66 75 | 6e 63 20 6d 65 6e 75 20 |n the fu|nc menu |
|0000b830| 2a 2f 0d 0d 76 6f 69 64 | 20 53 65 74 46 75 6e 63 |*/..void| SetFunc|
|0000b840| 74 69 6f 6e 50 61 72 61 | 6d 28 63 6f 6e 73 74 20 |tionPara|m(const |
|0000b850| 53 74 72 32 35 35 20 66 | 75 6e 63 74 69 6f 6e 4e |Str255 f|unctionN|
|0000b860| 61 6d 65 2c 73 68 6f 72 | 74 20 70 61 72 61 6d 49 |ame,shor|t paramI|
|0000b870| 6e 64 65 78 2c 64 6f 75 | 62 6c 65 20 76 61 6c 75 |ndex,dou|ble valu|
|0000b880| 65 29 3b 0d 09 2f 2a 20 | 73 65 74 73 20 61 20 70 |e);../* |sets a p|
|0000b890| 61 72 61 6d 65 74 65 72 | 20 76 61 6c 75 65 20 66 |arameter| value f|
|0000b8a0| 6f 72 20 61 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |or a fun|ction in|
|0000b8b0| 20 74 68 65 20 66 75 6e | 63 20 6d 65 6e 75 20 2a | the fun|c menu *|
|0000b8c0| 2f 0d 0d 76 6f 69 64 20 | 43 61 6c 6c 50 72 6f 67 |/..void |CallProg|
|0000b8d0| 72 61 6d 28 63 6f 6e 73 | 74 20 53 74 72 32 35 35 |ram(cons|t Str255|
|0000b8e0| 20 70 72 6f 67 72 61 6d | 4e 61 6d 65 29 3b 0d 09 | program|Name);..|
|0000b8f0| 2f 2a 20 63 61 6c 6c 73 | 20 61 20 70 72 6f 67 72 |/* calls| a progr|
|0000b900| 61 6d 20 66 72 6f 6d 20 | 74 68 65 20 55 73 65 72 |am from |the User|
|0000b910| 20 6d 65 6e 75 20 2a 2f | 0d 09 0d 09 0d 0d 0d 2f | menu */|......./|
|0000b920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b970| 2f 0d 2f 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/./*****|********|
|0000b980| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b990| 2a 20 6e 75 6d 65 72 69 | 63 61 6c 20 61 6e 61 6c |* numeri|cal anal|
|0000b9a0| 79 73 69 73 20 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ysis ***|********|
|0000b9b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000b9c0| 2a 2a 2a 2f 0d 0d 0d 0d | 64 6f 75 62 6c 65 20 49 |***/....|double I|
|0000b9d0| 6e 74 65 67 72 61 6c 28 | 63 6f 6e 73 74 20 53 74 |ntegral(|const St|
|0000b9e0| 72 32 35 35 20 66 75 6e | 63 74 69 6f 6e 4e 61 6d |r255 fun|ctionNam|
|0000b9f0| 65 2c 20 64 6f 75 62 6c | 65 20 78 6d 69 6e 2c 20 |e, doubl|e xmin, |
|0000ba00| 64 6f 75 62 6c 65 20 78 | 6d 61 78 2c 20 73 68 6f |double x|max, sho|
|0000ba10| 72 74 20 6e 75 6d 49 74 | 65 72 73 29 3b 0d 09 2f |rt numIt|ers);../|
|0000ba20| 2a 20 63 61 6c 63 75 6c | 61 74 65 73 20 74 68 65 |* calcul|ates the|
|0000ba30| 20 69 6e 74 65 67 72 61 | 6c 20 6f 66 20 61 20 66 | integra|l of a f|
|0000ba40| 75 6e 63 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 66 |unction |in the f|
|0000ba50| 75 6e 63 20 6d 65 6e 75 | 20 2a 2f 0d 09 2f 2a 20 |unc menu| */../* |
|0000ba60| 6e 75 6d 49 74 65 72 73 | 20 69 73 20 74 68 65 20 |numIters| is the |
|0000ba70| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 72 61 74 |number o|f iterat|
|0000ba80| 69 6f 6e 73 20 28 35 2d | 31 35 29 20 2a 2f 0d 0d |ions (5-|15) */..|
|0000ba90| 64 6f 75 62 6c 65 20 4d | 61 78 69 6d 75 6d 28 63 |double M|aximum(c|
|0000baa0| 6f 6e 73 74 20 53 74 72 | 32 35 35 20 66 75 6e 63 |onst Str|255 func|
|0000bab0| 74 69 6f 6e 4e 61 6d 65 | 2c 20 64 6f 75 62 6c 65 |tionName|, double|
|0000bac0| 20 78 6d 69 6e 2c 20 64 | 6f 75 62 6c 65 20 78 6d | xmin, d|ouble xm|
|0000bad0| 61 78 29 3b 0d 09 2f 2a | 20 66 69 6e 64 73 20 74 |ax);../*| finds t|
|0000bae0| 68 65 20 6d 61 78 69 6d | 75 6d 20 6f 66 20 61 20 |he maxim|um of a |
|0000baf0| 66 75 6e 63 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |function| in the |
|0000bb00| 66 75 6e 63 20 6d 65 6e | 75 20 2a 2f 0d 0d 64 6f |func men|u */..do|
|0000bb10| 75 62 6c 65 20 4d 69 6e | 69 6d 75 6d 28 63 6f 6e |uble Min|imum(con|
|0000bb20| 73 74 20 53 74 72 32 35 | 35 20 66 75 6e 63 74 69 |st Str25|5 functi|
|0000bb30| 6f 6e 4e 61 6d 65 2c 20 | 64 6f 75 62 6c 65 20 78 |onName, |double x|
|0000bb40| 6d 69 6e 2c 20 64 6f 75 | 62 6c 65 20 78 6d 61 78 |min, dou|ble xmax|
|0000bb50| 29 3b 0d 09 2f 2a 20 66 | 69 6e 64 73 20 74 68 65 |);../* f|inds the|
|0000bb60| 20 6d 69 6e 69 6d 75 6d | 20 6f 66 20 61 20 66 75 | minimum| of a fu|
|0000bb70| 6e 63 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 66 75 |nction i|n the fu|
|0000bb80| 6e 63 20 6d 65 6e 75 20 | 2a 2f 0d 0d 64 6f 75 62 |nc menu |*/..doub|
|0000bb90| 6c 65 20 52 6f 6f 74 28 | 63 6f 6e 73 74 20 53 74 |le Root(|const St|
|0000bba0| 72 32 35 35 20 66 75 6e | 63 74 69 6f 6e 4e 61 6d |r255 fun|ctionNam|
|0000bbb0| 65 2c 20 64 6f 75 62 6c | 65 20 78 6d 69 6e 2c 20 |e, doubl|e xmin, |
|0000bbc0| 64 6f 75 62 6c 65 20 78 | 6d 61 78 29 3b 0d 09 2f |double x|max);../|
|0000bbd0| 2a 20 66 69 6e 64 73 20 | 74 68 65 20 72 6f 6f 74 |* finds |the root|
|0000bbe0| 20 6f 66 20 61 20 66 75 | 6e 63 74 69 6f 6e 20 69 | of a fu|nction i|
|0000bbf0| 6e 20 74 68 65 20 66 75 | 6e 63 20 6d 65 6e 75 20 |n the fu|nc menu |
|0000bc00| 2a 2f 0d 0d 64 6f 75 62 | 6c 65 20 44 65 72 69 76 |*/..doub|le Deriv|
|0000bc10| 61 74 69 76 65 28 63 6f | 6e 73 74 20 53 74 72 32 |ative(co|nst Str2|
|0000bc20| 35 35 20 66 75 6e 63 74 | 69 6f 6e 4e 61 6d 65 2c |55 funct|ionName,|
|0000bc30| 20 64 6f 75 62 6c 65 20 | 78 2c 20 64 6f 75 62 6c | double |x, doubl|
|0000bc40| 65 20 73 63 61 6c 65 29 | 3b 0d 09 2f 2a 20 66 69 |e scale)|;../* fi|
|0000bc50| 6e 64 73 20 74 68 65 20 | 64 65 72 69 76 61 74 69 |nds the |derivati|
|0000bc60| 76 65 20 6f 66 20 61 20 | 66 75 6e 63 74 69 6f 6e |ve of a |function|
|0000bc70| 20 69 6e 20 74 68 65 20 | 66 75 6e 63 20 6d 65 6e | in the |func men|
|0000bc80| 75 20 2a 2f 0d 09 0d 0d | 0d 76 6f 69 64 20 46 69 |u */....|.void Fi|
|0000bc90| 74 28 63 6f 6e 73 74 20 | 53 74 72 32 35 35 20 66 |t(const |Str255 f|
|0000bca0| 75 6e 63 74 69 6f 6e 4e | 61 6d 65 2c 20 6c 6f 6e |unctionN|ame, lon|
|0000bcb0| 67 20 78 43 6f 6c 2c 20 | 6c 6f 6e 67 20 79 43 6f |g xCol, |long yCo|
|0000bcc0| 6c 2c 20 6c 6f 6e 67 20 | 65 72 72 43 6f 6c 2c 20 |l, long |errCol, |
|0000bcd0| 64 6f 75 62 6c 65 20 65 | 72 72 56 61 6c 2c 20 42 |double e|rrVal, B|
|0000bce0| 6f 6f 6c 65 61 6e 20 73 | 65 6c 65 63 74 69 6f 6e |oolean s|election|
|0000bcf0| 4f 6e 6c 79 29 3b 0d 09 | 2f 2a 09 0d 09 09 72 75 |Only);..|/*....ru|
|0000bd00| 6e 73 20 61 20 6e 6f 6e | 2d 6c 69 6e 65 61 72 20 |ns a non|-linear |
|0000bd10| 66 69 74 20 66 6f 72 20 | 74 68 65 20 67 69 76 65 |fit for |the give|
|0000bd20| 6e 20 66 75 6e 63 74 69 | 6f 6e 2e 20 47 65 6e 65 |n functi|on. Gene|
|0000bd30| 72 61 74 65 73 20 61 20 | 72 75 6e 2d 74 69 6d 65 |rates a |run-time|
|0000bd40| 0d 09 09 65 72 72 6f 72 | 20 69 66 20 66 69 74 20 |...error| if fit |
|0000bd50| 64 69 64 20 6e 6f 74 20 | 63 6f 6e 76 65 72 67 65 |did not |converge|
|0000bd60| 2e 0d 09 09 78 43 6f 6c | 2c 20 79 43 6f 6c 3a 20 |....xCol|, yCol: |
|0000bd70| 74 68 65 20 78 2d 20 61 | 6e 64 20 79 2d 63 6f 6c |the x- a|nd y-col|
|0000bd80| 75 6d 6e 73 0d 09 09 65 | 72 72 43 6f 6c 3a 20 74 |umns...e|rrCol: t|
|0000bd90| 68 65 20 65 72 72 6f 72 | 20 63 6f 6c 75 6d 6e 2e |he error| column.|
|0000bda0| 20 53 65 74 20 74 6f 20 | 30 20 69 66 20 75 73 69 | Set to |0 if usi|
|0000bdb0| 6e 67 20 6e 6f 20 65 72 | 72 6f 72 20 6f 72 20 61 |ng no er|ror or a|
|0000bdc0| 20 63 6f 6e 73 74 61 6e | 74 20 2f 20 70 65 72 63 | constan|t / perc|
|0000bdd0| 65 6e 74 75 61 6c 20 65 | 72 72 6f 72 0d 09 09 65 |entual e|rror...e|
|0000bde0| 72 72 56 61 6c 3a 09 69 | 66 20 3e 20 30 3a 20 61 |rrVal:.i|f > 0: a|
|0000bdf0| 20 63 6f 6e 73 74 61 6e | 74 20 65 72 72 6f 72 20 | constan|t error |
|0000be00| 20 20 69 66 20 3c 20 30 | 20 28 2d 31 30 30 2e 2e | if < 0| (-100..|
|0000be10| 2d 30 29 20 61 20 70 65 | 72 63 65 6e 74 75 61 6c |-0) a pe|rcentual|
|0000be20| 20 65 72 72 6f 72 0d 09 | 09 73 65 6c 65 63 74 69 | error..|.selecti|
|0000be30| 6f 6e 4f 6e 6c 79 3a 20 | 73 65 74 20 74 6f 20 74 |onOnly: |set to t|
|0000be40| 72 75 65 20 69 66 20 6f | 6e 6c 79 20 73 65 6c 65 |rue if o|nly sele|
|0000be50| 63 74 65 64 20 72 6f 77 | 73 20 73 68 6f 75 6c 64 |cted row|s should|
|0000be60| 20 62 65 20 66 69 74 74 | 65 64 20 0d 09 2a 2f 0d | be fitt|ed ..*/.|
|0000be70| 09 0d 64 6f 75 62 6c 65 | 20 43 68 69 53 71 75 61 |..double| ChiSqua|
|0000be80| 72 65 64 28 76 6f 69 64 | 29 3b 0d 09 2f 2a 20 09 |red(void|);../* .|
|0000be90| 0d 09 09 72 65 74 75 72 | 6e 73 20 74 68 65 20 63 |...retur|ns the c|
|0000bea0| 68 69 2d 73 71 75 61 72 | 65 64 20 6f 66 20 74 68 |hi-squar|ed of th|
|0000beb0| 65 20 6c 61 73 74 20 73 | 75 63 63 65 73 73 66 75 |e last s|uccessfu|
|0000bec0| 6c 20 66 69 74 2e 0d 09 | 09 50 72 6f 64 75 63 65 |l fit...|.Produce|
|0000bed0| 73 20 61 20 72 75 6e 2d | 74 69 6d 65 20 65 72 72 |s a run-|time err|
|0000bee0| 6f 72 20 69 66 20 6e 6f | 20 66 69 74 20 69 6e 66 |or if no| fit inf|
|0000bef0| 6f 72 6d 61 74 69 6f 6e | 20 66 72 6f 6d 0d 09 09 |ormation| from...|
|0000bf00| 61 20 73 75 63 63 65 73 | 73 66 75 6c 20 66 69 74 |a succes|sful fit|
|0000bf10| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 0d 09 | is avai|lable ..|
|0000bf20| 2a 2f 0d 09 0d 73 68 6f | 72 74 20 4e 75 6d 46 69 |*/...sho|rt NumFi|
|0000bf30| 74 50 61 72 61 6d 73 28 | 76 6f 69 64 29 3b 0d 09 |tParams(|void);..|
|0000bf40| 2f 2a 20 09 0d 09 09 72 | 65 74 75 72 6e 73 20 74 |/* ....r|eturns t|
|0000bf50| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 70 61 72 |he numbe|r of par|
|0000bf60| 61 6d 65 74 65 72 73 20 | 6f 66 20 74 68 65 20 6c |ameters |of the l|
|0000bf70| 61 73 74 20 73 75 63 63 | 65 73 73 66 75 6c 20 66 |ast succ|essful f|
|0000bf80| 69 74 20 0d 09 09 28 41 | 4c 4c 20 70 61 72 61 6d |it ...(A|LL param|
|0000bf90| 65 74 65 72 73 2c 20 61 | 63 74 69 76 65 2c 20 69 |eters, a|ctive, i|
|0000bfa0| 6e 61 63 74 69 76 65 2c | 20 61 6e 64 20 63 6f 6e |nactive,| and con|
|0000bfb0| 73 74 61 6e 74 20 0d 09 | 09 72 65 74 75 72 6e 73 |stant ..|.returns|
|0000bfc0| 20 30 20 69 66 20 6e 6f | 20 66 69 74 20 69 6e 66 | 0 if no| fit inf|
|0000bfd0| 6f 72 6d 61 74 69 6f 6e | 20 66 72 6f 6d 0d 09 09 |ormation| from...|
|0000bfe0| 61 20 73 75 63 63 65 73 | 73 66 75 6c 20 66 69 74 |a succes|sful fit|
|0000bff0| 20 69 73 20 61 76 61 69 | 6c 61 62 6c 65 20 0d 09 | is avai|lable ..|
|0000c000| 2a 2f 0d 0d 0d 64 6f 75 | 62 6c 65 20 46 69 74 74 |*/...dou|ble Fitt|
|0000c010| 65 64 50 61 72 61 6d 73 | 28 73 68 6f 72 74 20 70 |edParams|(short p|
|0000c020| 61 72 61 6d 4e 75 6d 29 | 3b 0d 09 2f 2a 20 09 0d |aramNum)|;../* ..|
|0000c030| 09 09 72 65 74 75 72 6e | 73 20 74 68 65 20 66 69 |..return|s the fi|
|0000c040| 74 74 65 64 20 76 61 6c | 75 65 20 6f 66 20 61 20 |tted val|ue of a |
|0000c050| 70 61 72 61 6d 65 74 65 | 72 2e 20 20 0d 09 09 50 |paramete|r. ...P|
|0000c060| 72 6f 64 75 63 65 73 20 | 61 20 72 75 6e 2d 74 69 |roduces |a run-ti|
|0000c070| 6d 65 20 65 72 72 6f 72 | 20 69 66 20 6e 6f 20 66 |me error| if no f|
|0000c080| 69 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |it infor|mation f|
|0000c090| 72 6f 6d 0d 09 09 61 20 | 73 75 63 63 65 73 73 66 |rom...a |successf|
|0000c0a0| 75 6c 20 66 69 74 20 69 | 73 20 61 76 61 69 6c 61 |ul fit i|s availa|
|0000c0b0| 62 6c 65 20 0d 09 2a 2f | 0d 0d 0d 64 6f 75 62 6c |ble ..*/|...doubl|
|0000c0c0| 65 20 50 61 72 61 6d 53 | 44 28 73 68 6f 72 74 20 |e ParamS|D(short |
|0000c0d0| 70 61 72 61 6d 4e 75 6d | 29 3b 0d 09 2f 2a 20 09 |paramNum|);../* .|
|0000c0e0| 0d 09 09 72 65 74 75 72 | 6e 73 20 74 68 65 20 73 |...retur|ns the s|
|0000c0f0| 74 61 6e 64 61 72 64 20 | 64 65 76 69 61 74 69 6f |tandard |deviatio|
|0000c100| 6e 20 6f 66 20 61 20 70 | 61 72 61 6d 65 74 65 72 |n of a p|arameter|
|0000c110| 20 61 66 74 65 72 20 61 | 20 73 75 63 63 65 73 73 | after a| success|
|0000c120| 66 75 6c 0d 09 09 66 69 | 74 2e 20 72 65 74 75 72 |ful...fi|t. retur|
|0000c130| 6e 73 20 4e 41 4e 20 28 | 4e 6f 74 20 41 20 4e 75 |ns NAN (|Not A Nu|
|0000c140| 6d 62 65 72 2c 20 61 6e | 20 69 6e 76 61 6c 69 64 |mber, an| invalid|
|0000c150| 20 72 65 61 6c 20 6e 75 | 6d 62 65 72 29 20 69 66 | real nu|mber) if|
|0000c160| 20 6e 6f 20 73 74 61 6e | 64 61 72 64 20 0d 09 09 | no stan|dard ...|
|0000c170| 64 65 76 69 61 74 69 6f | 6e 20 69 73 20 61 76 61 |deviatio|n is ava|
|0000c180| 69 6c 61 62 6c 65 2e 09 | 0d 09 09 50 72 6f 64 75 |ilable..|...Produ|
|0000c190| 63 65 73 20 61 20 72 75 | 6e 2d 74 69 6d 65 20 65 |ces a ru|n-time e|
|0000c1a0| 72 72 6f 72 20 69 66 20 | 6e 6f 20 66 69 74 20 69 |rror if |no fit i|
|0000c1b0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 72 6f 6d 0d |nformati|on from.|
|0000c1c0| 09 09 61 20 73 75 63 63 | 65 73 73 66 75 6c 20 66 |..a succ|essful f|
|0000c1d0| 69 74 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |it is av|ailable |
|0000c1e0| 20 0d 09 2a 2f 0d 0d 64 | 6f 75 62 6c 65 20 43 6f | ..*/..d|ouble Co|
|0000c1f0| 76 61 72 4d 61 74 72 69 | 78 28 73 68 6f 72 74 20 |varMatri|x(short |
|0000c200| 70 61 72 61 6d 4e 75 6d | 31 2c 20 73 68 6f 72 74 |paramNum|1, short|
|0000c210| 20 70 61 72 61 6d 4e 75 | 6d 32 29 3b 0d 09 2f 2a | paramNu|m2);../*|
|0000c220| 20 09 0d 09 09 72 65 74 | 75 72 6e 73 20 74 68 65 | ....ret|urns the|
|0000c230| 20 65 6c 65 6d 65 6e 74 | 73 20 6f 66 20 74 68 65 | element|s of the|
|0000c240| 20 63 6f 76 61 72 69 61 | 6e 63 65 20 6d 61 74 72 | covaria|nce matr|
|0000c250| 69 78 20 61 66 74 65 72 | 20 61 20 73 75 63 63 65 |ix after| a succe|
|0000c260| 73 73 66 75 6c 0d 09 09 | 66 69 74 2e 20 72 65 74 |ssful...|fit. ret|
|0000c270| 75 72 6e 73 20 4e 41 4e | 20 69 66 20 74 68 65 20 |urns NAN| if the |
|0000c280| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 65 6c |correspo|nding el|
|0000c290| 65 6d 65 6e 74 20 69 73 | 20 6e 6f 74 20 64 65 66 |ement is| not def|
|0000c2a0| 69 6e 65 64 20 62 65 63 | 61 75 73 65 20 0d 09 09 |ined bec|ause ...|
|0000c2b0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 77 61 |the para|meter wa|
|0000c2c0| 73 20 6e 6f 74 20 75 73 | 65 64 20 66 6f 72 20 74 |s not us|ed for t|
|0000c2d0| 68 65 20 66 69 74 2e 0d | 09 09 50 72 6f 64 75 63 |he fit..|..Produc|
|0000c2e0| 65 73 20 61 20 72 75 6e | 2d 74 69 6d 65 20 65 72 |es a run|-time er|
|0000c2f0| 72 6f 72 20 69 66 20 6e | 6f 20 66 69 74 20 69 6e |ror if n|o fit in|
|0000c300| 66 6f 72 6d 61 74 69 6f | 6e 20 66 72 6f 6d 0d 09 |formatio|n from..|
|0000c310| 09 61 20 73 75 63 63 65 | 73 73 66 75 6c 20 66 69 |.a succe|ssful fi|
|0000c320| 74 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 20 0d |t is ava|ilable .|
|0000c330| 09 2a 2f 0d 0d 0d 64 6f | 75 62 6c 65 20 50 52 61 |.*/...do|uble PRa|
|0000c340| 6e 64 6f 6d 20 28 76 6f | 69 64 29 3b 0d 09 2f 2a |ndom (vo|id);../*|
|0000c350| 20 0d 09 09 72 65 74 75 | 72 6e 73 20 61 20 72 61 | ...retu|rns a ra|
|0000c360| 6e 64 6f 6d 20 64 6f 75 | 62 6c 65 20 62 65 74 77 |ndom dou|ble betw|
|0000c370| 65 65 6e 20 30 20 61 6e | 64 20 31 20 0d 09 2a 2f |een 0 an|d 1 ..*/|
|0000c380| 0d 09 0d 73 68 6f 72 74 | 20 4e 75 6d 62 65 72 49 |...short| NumberI|
|0000c390| 6e 76 61 6c 69 64 28 64 | 6f 75 62 6c 65 20 61 4e |nvalid(d|ouble aN|
|0000c3a0| 75 6d 29 3b 0d 09 2f 2a | 20 0d 09 09 09 72 65 74 |um);../*| ....ret|
|0000c3b0| 75 72 6e 73 20 31 20 69 | 66 20 74 68 65 20 61 72 |urns 1 i|f the ar|
|0000c3c0| 67 75 6d 65 6e 74 20 69 | 73 20 6e 6f 74 20 61 20 |gument i|s not a |
|0000c3d0| 67 6f 6f 64 20 6e 75 6d | 62 65 72 20 0d 09 09 09 |good num|ber ....|
|0000c3e0| 72 65 74 75 72 6e 73 20 | 30 20 69 66 20 74 68 65 |returns |0 if the|
|0000c3f0| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 61 20 6e | argumen|t is a n|
|0000c400| 6f 72 6d 61 6c 2c 20 72 | 65 61 73 6f 6e 61 62 6c |ormal, r|easonabl|
|0000c410| 65 20 6e 75 6d 62 65 72 | 20 0d 09 2a 2f 0d 0d 0d |e number| ..*/...|
|0000c420| 64 6f 75 62 6c 65 20 45 | 72 66 28 64 6f 75 62 6c |double E|rf(doubl|
|0000c430| 65 20 78 29 3b 0d 09 2f | 2a 09 0d 09 09 72 65 74 |e x);../|*....ret|
|0000c440| 75 72 6e 73 20 74 68 65 | 20 65 72 72 6f 72 20 66 |urns the| error f|
|0000c450| 75 6e 63 74 69 6f 6e 20 | 64 65 66 69 6e 65 64 20 |unction |defined |
|0000c460| 61 73 0d 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |as.. | |
|0000c470| 20 78 0d 09 20 20 20 20 | 20 20 32 20 20 20 20 20 | x.. | 2 |
|0000c480| 20 2f 0d 09 20 20 20 20 | 2d 2d 2d 2d 2d 2d 20 20 | /.. |------ |
|0000c490| 20 7c 20 20 65 78 70 28 | 2d 74 2a 74 29 20 64 74 | | exp(|-t*t) dt|
|0000c4a0| 0d 09 20 20 20 20 20 20 | c3 b9 20 20 20 20 20 2f |.. |.. /|
|0000c4b0| 0d 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 30 |.. | 0|
|0000c4c0| 0d 09 09 54 68 65 20 64 | 65 66 69 6e 69 74 69 6f |...The d|efinitio|
|0000c4d0| 6e 20 69 73 20 73 75 63 | 68 20 74 68 61 74 20 45 |n is suc|h that E|
|0000c4e0| 72 66 28 2d 69 6e 66 29 | 20 3d 20 2d 31 2c 20 45 |rf(-inf)| = -1, E|
|0000c4f0| 72 66 28 69 6e 66 29 20 | 3d 20 31 0d 09 2a 2f 0d |rf(inf) |= 1..*/.|
|0000c500| 0d 64 6f 75 62 6c 65 20 | 45 72 66 63 28 64 6f 75 |.double |Erfc(dou|
|0000c510| 62 6c 65 20 78 29 3b 0d | 09 2f 2a 20 09 0d 09 09 |ble x);.|./* ....|
|0000c520| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 6f 6d 70 |returns |the comp|
|0000c530| 6c 65 6d 65 6e 74 61 72 | 79 20 65 72 72 6f 72 20 |lementar|y error |
|0000c540| 66 75 6e 63 74 69 6f 6e | 20 64 65 66 69 6e 65 64 |function| defined|
|0000c550| 20 61 73 20 31 2d 65 72 | 66 28 78 29 0d 09 2a 2f | as 1-er|f(x)..*/|
|0000c560| 0d 0d 76 6f 69 64 20 53 | 65 74 46 69 74 44 65 66 |..void S|etFitDef|
|0000c570| 61 75 6c 74 73 28 09 73 | 68 6f 72 74 20 09 61 6c |aults(.s|hort .al|
|0000c580| 67 6f 72 69 74 68 6d 2c | 20 09 09 09 2f 2a 20 61 |gorithm,| .../* a|
|0000c590| 6c 67 6f 72 69 74 68 6d | 20 74 6f 20 62 65 20 75 |lgorithm| to be u|
|0000c5a0| 73 65 64 20 66 6f 72 20 | 66 69 74 74 69 6e 67 20 |sed for |fitting |
|0000c5b0| 2a 2f 0d 09 09 09 09 09 | 09 73 68 6f 72 74 20 09 |*/......|.short .|
|0000c5c0| 79 45 72 72 44 69 73 74 | 72 69 62 75 74 69 6f 6e |yErrDist|ribution|
|0000c5d0| 2c 20 09 2f 2a 20 79 20 | 65 72 72 6f 72 20 64 69 |, ./* y |error di|
|0000c5e0| 73 74 72 69 62 75 74 69 | 6f 6e 3a 20 67 61 75 73 |stributi|on: gaus|
|0000c5f0| 73 44 69 73 74 72 2c 20 | 64 6f 75 62 6c 65 45 78 |sDistr, |doubleEx|
|0000c600| 70 44 69 73 74 72 2c 20 | 6c 6f 72 65 6e 74 7a 44 |pDistr, |lorentzD|
|0000c610| 69 73 74 72 2c 20 61 6e | 64 72 65 77 44 69 73 74 |istr, an|drewDist|
|0000c620| 72 2c 20 74 75 6b 65 79 | 44 69 73 74 72 20 2a 2f |r, tukey|Distr */|
|0000c630| 0d 09 09 09 09 09 09 73 | 68 6f 72 74 20 09 78 45 |.......s|hort .xE|
|0000c640| 72 72 44 69 73 74 72 69 | 62 75 74 69 6f 6e 2c 09 |rrDistri|bution,.|
|0000c650| 2f 2a 20 78 20 65 72 72 | 6f 72 20 64 69 73 74 72 |/* x err|or distr|
|0000c660| 69 62 75 74 69 6f 6e 3a | 20 67 61 75 73 73 44 69 |ibution:| gaussDi|
|0000c670| 73 74 72 2c 20 64 6f 75 | 62 6c 65 45 78 70 44 69 |str, dou|bleExpDi|
|0000c680| 73 74 72 2c 20 6c 6f 72 | 65 6e 74 7a 44 69 73 74 |str, lor|entzDist|
|0000c690| 72 2c 20 61 6e 64 72 65 | 77 44 69 73 74 72 2c 20 |r, andre|wDistr, |
|0000c6a0| 74 75 6b 65 79 44 69 73 | 74 72 20 2a 2f 0d 09 09 |tukeyDis|tr */...|
|0000c6b0| 09 09 09 09 6c 6f 6e 67 | 20 20 09 78 45 72 72 43 |....long| .xErrC|
|0000c6c0| 6f 6c 75 6d 6e 2c 20 09 | 09 2f 2a 20 78 20 65 72 |olumn, .|./* x er|
|0000c6d0| 72 6f 72 20 63 6f 6c 75 | 6d 6e 3a 20 3e 30 3a 63 |ror colu|mn: >0:c|
|0000c6e0| 6f 6c 75 6d 6e 20 6e 75 | 6d 62 65 72 2c 20 30 3a |olumn nu|mber, 0:|
|0000c6f0| 6e 6f 6e 65 2c 20 2d 31 | 3a 63 6f 6e 73 74 61 6e |none, -1|:constan|
|0000c700| 74 2c 20 2d 32 3a 70 65 | 72 63 65 6e 74 20 2a 2f |t, -2:pe|rcent */|
|0000c710| 0d 09 09 09 09 09 09 64 | 6f 75 62 6c 65 20 09 78 |.......d|ouble .x|
|0000c720| 45 72 72 56 61 6c 75 65 | 2c 09 09 09 2f 2a 20 78 |ErrValue|,.../* x|
|0000c730| 20 65 72 72 6f 72 20 76 | 61 6c 75 65 20 69 66 20 | error v|alue if |
|0000c740| 63 6f 6e 73 74 61 6e 74 | 20 28 78 45 72 72 43 6f |constant| (xErrCo|
|0000c750| 6c 75 6d 6e 3d 2d 31 29 | 20 6f 72 20 70 65 72 63 |lumn=-1)| or perc|
|0000c760| 65 6e 74 61 67 65 20 28 | 78 45 72 72 43 6f 6c 75 |entage (|xErrColu|
|0000c770| 6d 6e 3d 2d 32 29 20 2a | 2f 0d 09 09 09 09 09 09 |mn=-2) *|/.......|
|0000c780| 64 6f 75 62 6c 65 09 73 | 74 6f 70 54 69 6d 65 29 |double.s|topTime)|
|0000c790| 3b 09 09 09 2f 2a 20 63 | 72 69 74 65 72 69 75 6d |;.../* c|riterium|
|0000c7a0| 20 74 6f 20 73 74 6f 70 | 20 6d 6f 6e 74 65 20 63 | to stop| monte c|
|0000c7b0| 61 72 6c 6f 20 66 69 74 | 73 2c 20 64 6f 65 73 20 |arlo fit|s, does |
|0000c7c0| 6e 6f 74 20 73 74 6f 70 | 20 69 66 20 30 20 2a 2f |not stop| if 0 */|
|0000c7d0| 0d 09 09 09 09 09 09 09 | 09 09 09 09 09 09 2f 2a |........|....../*|
|0000c7e0| 20 69 6e 74 65 72 70 72 | 65 74 65 64 20 61 73 20 | interpr|eted as |
|0000c7f0| 73 65 63 6f 6e 64 73 20 | 69 66 20 6e 65 67 61 74 |seconds |if negat|
|0000c800| 69 76 20 61 6e 64 20 61 | 73 20 69 74 65 72 61 74 |iv and a|s iterat|
|0000c810| 69 6f 6e 73 20 69 66 20 | 70 6f 73 69 74 69 76 65 |ions if |positive|
|0000c820| 20 2a 2f 0d 09 2f 2a 0d | 09 09 53 65 74 73 20 74 | */../*.|..Sets t|
|0000c830| 68 65 20 65 72 72 6f 72 | 20 63 6f 6c 75 6d 6e 20 |he error| column |
|0000c840| 61 6e 64 20 74 79 70 65 | 2c 20 74 68 65 20 61 6c |and type|, the al|
|0000c850| 67 6f 72 69 74 68 6d 20 | 61 6e 64 20 74 68 65 20 |gorithm |and the |
|0000c860| 73 74 6f 70 70 69 6e 67 | 20 63 72 65 74 65 72 69 |stopping| creteri|
|0000c870| 61 0d 09 09 74 6f 20 62 | 65 20 75 73 65 64 20 69 |a...to b|e used i|
|0000c880| 6e 20 61 6c 6c 20 73 75 | 62 73 65 71 75 65 6e 74 |n all su|bsequent|
|0000c890| 20 63 61 6c 6c 73 20 74 | 6f 20 46 69 74 28 2e 2e | calls t|o Fit(..|
|0000c8a0| 29 0d 09 2a 2f 0d 0d 42 | 6f 6f 6c 65 61 6e 20 4d |)..*/..B|oolean M|
|0000c8b0| 61 78 69 6d 69 7a 65 28 | 09 63 6f 6e 73 74 20 53 |aximize(|.const S|
|0000c8c0| 74 72 32 35 35 09 74 68 | 65 46 75 6e 63 74 69 6f |tr255.th|eFunctio|
|0000c8d0| 6e 2c 09 2f 2a 20 74 68 | 65 20 66 75 6e 63 74 69 |n,./* th|e functi|
|0000c8e0| 6f 6e 20 6e 61 6d 65 20 | 69 6e 20 74 68 65 20 66 |on name |in the f|
|0000c8f0| 75 6e 63 20 6d 65 6e 75 | 20 2a 2f 0d 09 09 09 09 |unc menu| */.....|
|0000c900| 09 64 6f 75 62 6c 65 09 | 70 72 65 63 69 73 69 6f |.double.|precisio|
|0000c910| 6e 2c 09 09 09 09 2f 2a | 20 72 65 6c 61 74 69 76 |n,..../*| relativ|
|0000c920| 65 20 74 6f 6c 65 72 61 | 6e 63 65 20 6f 66 20 66 |e tolera|nce of f|
|0000c930| 75 6e 63 74 69 6f 6e 20 | 76 61 6c 75 65 73 20 63 |unction |values c|
|0000c940| 61 6c 63 75 6c 61 74 65 | 64 20 69 6e 20 74 68 65 |alculate|d in the|
|0000c950| 20 73 69 6d 70 6c 65 78 | 20 2a 2f 0d 09 09 09 09 | simplex| */.....|
|0000c960| 09 09 09 09 09 09 09 09 | 09 2f 2a 20 61 6c 67 6f |........|./* algo|
|0000c970| 72 69 74 68 6d 2c 20 75 | 73 65 64 20 61 73 20 63 |rithm, u|sed as c|
|0000c980| 6f 6e 76 65 72 67 65 6e | 63 65 20 63 72 69 74 65 |onvergen|ce crite|
|0000c990| 72 69 75 6d 20 2a 2f 0d | 09 09 09 09 09 42 6f 6f |rium */.|.....Boo|
|0000c9a0| 6c 65 61 6e 09 76 61 72 | 79 58 2c 09 09 09 09 09 |lean.var|yX,.....|
|0000c9b0| 2f 2a 20 74 72 75 65 2c | 20 69 66 20 74 68 65 20 |/* true,| if the |
|0000c9c0| 78 2d 76 61 6c 75 65 73 | 20 73 68 6f 75 6c 64 20 |x-values| should |
|0000c9d0| 62 65 20 76 61 72 69 65 | 64 2c 20 74 6f 6f 20 2a |be varie|d, too *|
|0000c9e0| 2f 0d 09 09 09 09 09 64 | 6f 75 62 6c 65 2a 09 78 |/......d|ouble*.x|
|0000c9f0| 2c 09 09 09 09 09 09 2f | 2a 20 6f 6e 20 69 6e 70 |,....../|* on inp|
|0000ca00| 75 74 3a 20 66 69 78 65 | 64 20 78 2d 76 61 6c 75 |ut: fixe|d x-valu|
|0000ca10| 65 2c 20 6f 72 20 73 74 | 61 72 74 69 6e 67 20 78 |e, or st|arting x|
|0000ca20| 2d 76 61 6c 75 65 20 69 | 66 20 76 61 72 79 58 20 |-value i|f varyX |
|0000ca30| 69 73 20 74 72 75 65 20 | 2a 2f 0d 09 09 09 09 09 |is true |*/......|
|0000ca40| 09 09 09 09 09 09 09 09 | 2f 2a 20 72 65 74 75 72 |........|/* retur|
|0000ca50| 6e 65 64 20 78 2d 76 61 | 6c 75 65 20 6f 66 20 6d |ned x-va|lue of m|
|0000ca60| 61 78 69 6d 75 6d 20 66 | 6f 75 6e 64 20 2a 2f 0d |aximum f|ound */.|
|0000ca70| 09 09 09 09 09 64 6f 75 | 62 6c 65 2a 09 79 29 3b |.....dou|ble*.y);|
|0000ca80| 09 09 09 09 09 09 2f 2a | 20 72 65 74 75 72 6e 65 |....../*| returne|
|0000ca90| 64 20 79 2d 76 61 6c 75 | 65 20 6f 66 20 6d 61 78 |d y-valu|e of max|
|0000caa0| 69 6d 75 6d 20 66 6f 75 | 6e 64 20 2a 2f 0d 09 2f |imum fou|nd */../|
|0000cab0| 2a 0d 09 09 20 56 61 72 | 69 65 73 20 74 68 65 20 |*... Var|ies the |
|0000cac0| 70 61 72 61 6d 65 74 65 | 72 73 20 6f 66 20 74 68 |paramete|rs of th|
|0000cad0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 28 61 6e 64 20 |e functi|on (and |
|0000cae0| 78 20 69 66 20 76 61 72 | 79 58 20 69 73 20 74 72 |x if var|yX is tr|
|0000caf0| 75 65 29 20 75 6e 74 69 | 6c 0d 09 09 20 74 68 65 |ue) unti|l... the|
|0000cb00| 20 66 75 6e 63 74 69 6f | 6e 20 76 61 6c 75 65 20 | functio|n value |
|0000cb10| 72 65 61 63 68 65 73 20 | 61 20 6d 61 78 69 6d 75 |reaches |a maximu|
|0000cb20| 6d 2e 20 49 74 20 69 73 | 20 61 20 70 72 6f 63 65 |m. It is| a proce|
|0000cb30| 64 75 72 65 20 63 6f 6d | 70 61 72 61 62 6c 65 20 |dure com|parable |
|0000cb40| 74 6f 0d 09 09 20 66 69 | 74 74 69 6e 67 2e 20 54 |to... fi|tting. T|
|0000cb50| 68 65 20 61 6c 67 6f 72 | 69 74 68 6d 20 75 73 65 |he algor|ithm use|
|0000cb60| 64 20 69 73 20 74 68 65 | 20 53 69 6d 70 6c 65 78 |d is the| Simplex|
|0000cb70| 20 6d 65 74 68 6f 64 2e | 20 0d 09 2a 2f 0d 09 0d | method.| ..*/...|
|0000cb80| 42 6f 6f 6c 65 61 6e 20 | 4d 69 6e 69 6d 69 7a 65 |Boolean |Minimize|
|0000cb90| 28 63 6f 6e 73 74 20 53 | 74 72 32 35 35 09 74 68 |(const S|tr255.th|
|0000cba0| 65 46 75 6e 63 74 69 6f | 6e 2c 64 6f 75 62 6c 65 |eFunctio|n,double|
|0000cbb0| 20 70 72 65 63 69 73 69 | 6f 6e 2c 42 6f 6f 6c 65 | precisi|on,Boole|
|0000cbc0| 61 6e 20 76 61 72 79 58 | 2c 20 64 6f 75 62 6c 65 |an varyX|, double|
|0000cbd0| 2a 09 78 2c 64 6f 75 62 | 6c 65 2a 20 79 29 3b 0d |*.x,doub|le* y);.|
|0000cbe0| 09 2f 2a 0d 09 09 20 53 | 65 65 20 74 68 65 20 63 |./*... S|ee the c|
|0000cbf0| 6f 6d 6d 65 6e 74 20 66 | 6f 72 20 22 4d 61 78 69 |omment f|or "Maxi|
|0000cc00| 6d 69 7a 65 22 2c 20 77 | 68 69 63 68 20 77 6f 72 |mize", w|hich wor|
|0000cc10| 6b 73 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 77 |ks in th|e same w|
|0000cc20| 61 79 2e 20 0d 09 2a 2f | 0d 0d 76 6f 69 64 20 53 |ay. ..*/|..void S|
|0000cc30| 65 74 45 72 72 6f 72 41 | 6e 61 6c 79 73 69 73 28 |etErrorA|nalysis(|
|0000cc40| 09 64 6f 75 62 6c 65 20 | 63 6f 6e 66 69 64 65 6e |.double |confiden|
|0000cc50| 63 65 2c 09 09 2f 2a 20 | 63 6f 6e 66 69 64 65 6e |ce,../* |confiden|
|0000cc60| 63 65 20 69 6e 74 65 72 | 76 61 6c 20 69 6e 20 25 |ce inter|val in %|
|0000cc70| 20 28 73 65 74 20 74 6f | 20 30 20 74 6f 20 64 69 | (set to| 0 to di|
|0000cc80| 73 61 62 6c 65 20 65 72 | 72 6f 72 20 61 6e 61 6c |sable er|ror anal|
|0000cc90| 79 69 73 29 20 2a 2f 0d | 09 09 09 09 09 09 6c 6f |yis) */.|......lo|
|0000cca0| 6e 67 20 69 74 65 72 61 | 74 69 6f 6e 73 29 3b 09 |ng itera|tions);.|
|0000ccb0| 09 2f 2a 20 6e 75 6d 62 | 65 72 20 6f 66 20 69 74 |./* numb|er of it|
|0000ccc0| 65 72 61 74 69 6f 6e 73 | 20 28 73 65 74 20 74 6f |erations| (set to|
|0000ccd0| 20 30 20 74 6f 20 64 69 | 73 61 62 6c 65 20 65 72 | 0 to di|sable er|
|0000cce0| 72 6f 72 20 61 6e 61 6c | 79 69 73 29 20 2a 2f 0d |ror anal|yis) */.|
|0000ccf0| 09 2f 2a 0d 09 09 20 53 | 65 74 73 20 74 68 65 20 |./*... S|ets the |
|0000cd00| 6f 70 74 69 6f 6e 73 20 | 66 6f 72 20 65 72 72 6f |options |for erro|
|0000cd10| 72 20 61 6e 61 6c 79 73 | 69 73 20 74 6f 20 62 65 |r analys|is to be|
|0000cd20| 20 75 73 65 64 20 69 6e | 20 74 68 65 20 6e 65 78 | used in| the nex|
|0000cd30| 74 20 63 61 6c 6c 20 74 | 6f 20 46 69 74 28 2e 2e |t call t|o Fit(..|
|0000cd40| 29 20 0d 09 2a 2f 0d 0d | 76 6f 69 64 20 43 6f 6e |) ..*/..|void Con|
|0000cd50| 66 69 64 65 6e 63 65 49 | 6e 74 65 72 76 61 6c 28 |fidenceI|nterval(|
|0000cd60| 09 73 68 6f 72 74 20 69 | 2c 64 6f 75 62 6c 65 2a |.short i|,double*|
|0000cd70| 20 63 6f 6e 73 74 20 6d | 69 6e 2c 20 64 6f 75 62 | const m|in, doub|
|0000cd80| 6c 65 2a 20 63 6f 6e 73 | 74 20 6d 61 78 29 3b 0d |le* cons|t max);.|
|0000cd90| 09 2f 2a 0d 09 09 72 65 | 74 75 72 6e 73 20 69 6e |./*...re|turns in|
|0000cda0| 20 6d 69 6e 2c 6d 61 78 | 20 74 68 65 20 63 6f 6e | min,max| the con|
|0000cdb0| 66 69 64 65 6e 63 65 20 | 69 6e 74 65 72 76 61 6c |fidence |interval|
|0000cdc0| 20 66 6f 72 20 70 61 72 | 61 6d 65 74 65 72 20 69 | for par|ameter i|
|0000cdd0| 2c 20 61 73 20 63 61 6c | 63 75 6c 61 74 65 64 20 |, as cal|culated |
|0000cde0| 61 66 74 65 72 0d 09 09 | 74 68 65 20 6c 61 73 74 |after...|the last|
|0000cdf0| 20 66 69 74 20 62 79 20 | 74 68 65 20 65 72 72 6f | fit by |the erro|
|0000ce00| 72 20 61 6e 61 6c 79 73 | 69 73 20 61 6c 67 6f 72 |r analys|is algor|
|0000ce10| 69 74 68 6d 2e 0d 09 09 | 20 0d 09 09 4e 6f 74 65 |ithm....| ...Note|
|0000ce20| 20 74 68 61 74 20 74 68 | 69 73 20 72 6f 75 74 69 | that th|is routi|
|0000ce30| 6e 65 20 64 6f 65 73 20 | 6e 6f 74 20 72 65 74 75 |ne does |not retu|
|0000ce40| 72 6e 20 6d 65 61 6e 69 | 6e 67 66 75 6c 20 72 65 |rn meani|ngful re|
|0000ce50| 73 75 6c 74 73 20 69 66 | 20 74 68 65 20 63 6f 6e |sults if| the con|
|0000ce60| 66 69 64 65 6e 63 65 0d | 09 09 69 6e 74 65 72 76 |fidence.|..interv|
|0000ce70| 61 6c 20 66 6f 72 20 61 | 20 67 69 76 65 6e 20 76 |al for a| given v|
|0000ce80| 61 6c 75 65 20 77 61 73 | 20 6e 6f 74 20 64 65 74 |alue was| not det|
|0000ce90| 65 72 6d 69 6e 65 64 2c | 20 65 2e 67 2e 20 62 65 |ermined,| e.g. be|
|0000cea0| 63 61 75 73 65 20 74 68 | 69 73 20 70 61 72 61 6d |cause th|is param|
|0000ceb0| 65 74 65 72 0d 09 09 77 | 61 73 20 6e 6f 74 20 61 |eter...w|as not a|
|0000cec0| 63 74 69 76 65 20 64 75 | 72 69 6e 67 20 61 20 66 |ctive du|ring a f|
|0000ced0| 69 74 2e 0d 09 2a 2f 0d | 0d 0d 42 6f 6f 6c 65 61 |it...*/.|..Boolea|
|0000cee0| 6e 20 43 61 6c 63 53 74 | 61 74 28 09 6c 6f 6e 67 |n CalcSt|at(.long|
|0000cef0| 20 63 6f 6c 75 6d 6e 2c | 20 09 09 09 09 2f 2a 20 | column,| ..../* |
|0000cf00| 63 6f 6c 75 6d 6e 20 6e | 75 6d 62 65 72 20 2a 2f |column n|umber */|
|0000cf10| 0d 09 09 09 09 09 42 6f | 6f 6c 65 61 6e 20 73 65 |......Bo|olean se|
|0000cf20| 6c 52 6f 77 73 4f 6e 6c | 79 2c 20 09 09 2f 2a 20 |lRowsOnl|y, ../* |
|0000cf30| 73 65 74 20 74 6f 20 74 | 72 75 65 20 74 6f 20 75 |set to t|rue to u|
|0000cf40| 73 65 20 6f 6e 6c 79 20 | 74 68 65 20 73 65 6c 65 |se only |the sele|
|0000cf50| 63 74 65 64 20 72 6f 77 | 73 20 2a 2f 0d 09 09 09 |cted row|s */....|
|0000cf60| 09 09 42 6f 6f 6c 65 61 | 6e 20 77 69 74 68 42 61 |..Boolea|n withBa|
|0000cf70| 73 69 63 73 2c 20 09 09 | 2f 2a 20 63 61 6c 63 75 |sics, ..|/* calcu|
|0000cf80| 6c 61 74 65 20 62 61 73 | 69 63 20 69 6e 66 6f 72 |late bas|ic infor|
|0000cf90| 6d 61 74 69 6f 6e 20 2a | 2f 0d 09 09 09 09 09 42 |mation *|/......B|
|0000cfa0| 6f 6f 6c 65 61 6e 20 77 | 69 74 68 53 6b 65 77 41 |oolean w|ithSkewA|
|0000cfb0| 6e 64 43 75 72 74 2c 20 | 09 2f 2a 20 63 61 6c 63 |ndCurt, |./* calc|
|0000cfc0| 75 6c 61 74 65 20 73 6b | 65 77 6e 65 73 73 20 61 |ulate sk|ewness a|
|0000cfd0| 6e 64 20 63 75 72 74 6f | 73 69 73 20 2a 2f 0d 09 |nd curto|sis */..|
|0000cfe0| 09 09 09 09 42 6f 6f 6c | 65 61 6e 20 77 69 74 68 |....Bool|ean with|
|0000cff0| 4d 65 64 69 61 6e 29 3b | 09 09 2f 2a 20 63 61 6c |Median);|../* cal|
|0000d000| 63 75 6c 61 74 65 20 6d | 65 64 69 61 6e 20 2a 2f |culate m|edian */|
|0000d010| 0d 09 2f 2a 0d 09 09 72 | 65 74 75 72 6e 73 20 66 |../*...r|eturns f|
|0000d020| 61 6c 73 65 20 69 66 20 | 61 6e 20 65 72 72 6f 72 |alse if |an error|
|0000d030| 20 6f 63 63 75 72 72 65 | 64 2c 20 74 72 75 65 20 | occurre|d, true |
|0000d040| 69 66 20 6f 6b 0d 09 20 | 09 73 65 74 20 22 63 6f |if ok.. |.set "co|
|0000d050| 6c 75 6d 6e 22 20 74 6f | 3a 20 20 30 20 74 6f 20 |lumn" to|: 0 to |
|0000d060| 69 6e 63 6c 75 64 65 20 | 61 6c 6c 20 63 6f 6c 75 |include |all colu|
|0000d070| 6d 6e 73 2e 0d 09 09 09 | 09 09 09 20 2d 31 20 74 |mns.....|... -1 t|
|0000d080| 6f 20 75 73 65 20 74 68 | 65 20 63 75 72 72 65 6e |o use th|e curren|
|0000d090| 74 20 73 65 6c 65 63 74 | 69 6f 6e 0d 09 09 73 65 |t select|ion...se|
|0000d0a0| 74 20 74 68 65 20 42 6f | 6f 6c 65 61 6e 20 70 61 |t the Bo|olean pa|
|0000d0b0| 72 61 6d 65 74 65 72 73 | 20 63 6f 72 72 65 73 70 |rameters| corresp|
|0000d0c0| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 69 6e |onding t|o the in|
|0000d0d0| 66 6f 72 6d 61 74 69 6f | 6e 20 79 6f 75 0d 09 09 |formatio|n you...|
|0000d0e0| 77 61 6e 74 20 74 6f 20 | 63 61 6c 63 75 6c 61 74 |want to |calculat|
|0000d0f0| 65 2e 0d 09 09 0d 09 09 | 59 6f 75 20 77 69 6c 6c |e.......|You will|
|0000d100| 20 75 73 65 20 47 65 74 | 42 61 73 69 63 73 2c 20 | use Get|Basics, |
|0000d110| 47 65 74 53 6b 65 77 2c | 20 47 65 74 4d 65 64 69 |GetSkew,| GetMedi|
|0000d120| 61 6e 20 74 6f 20 72 65 | 74 72 69 65 76 65 20 74 |an to re|trieve t|
|0000d130| 68 69 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 0d |his info|rmation.|
|0000d140| 09 2a 2f 0d 0d 76 6f 69 | 64 20 47 65 74 42 61 73 |.*/..voi|d GetBas|
|0000d150| 69 63 73 28 09 6c 6f 6e | 67 2a 20 09 63 6f 75 6e |ics(.lon|g* .coun|
|0000d160| 74 2c 20 09 09 09 2f 2a | 20 6e 75 6d 62 65 72 20 |t, .../*| number |
|0000d170| 6f 66 20 64 61 74 61 20 | 70 72 6f 63 65 73 73 65 |of data |processe|
|0000d180| 64 20 2a 2f 0d 09 09 09 | 09 64 6f 75 62 6c 65 2a |d */....|.double*|
|0000d190| 20 73 75 6d 2c 20 09 09 | 09 2f 2a 20 73 75 6d 20 | sum, ..|./* sum |
|0000d1a0| 6f 66 20 61 6c 6c 20 74 | 68 65 73 65 20 64 61 74 |of all t|hese dat|
|0000d1b0| 61 20 09 2a 2f 0d 09 09 | 09 09 64 6f 75 62 6c 65 |a .*/...|..double|
|0000d1c0| 2a 20 6d 65 61 6e 2c 20 | 09 09 09 2f 2a 20 74 68 |* mean, |.../* th|
|0000d1d0| 65 69 72 20 61 76 65 72 | 61 67 65 09 09 09 2a 2f |eir aver|age...*/|
|0000d1e0| 0d 09 09 09 09 64 6f 75 | 62 6c 65 2a 20 76 61 72 |.....dou|ble* var|
|0000d1f0| 69 61 6e 63 65 2c 09 09 | 2f 2a 20 76 61 72 69 61 |iance,..|/* varia|
|0000d200| 6e 63 65 20 3d 20 28 73 | 74 64 44 65 76 29 5e 32 |nce = (s|tdDev)^2|
|0000d210| 09 2a 2f 0d 09 09 09 09 | 64 6f 75 62 6c 65 2a 20 |.*/.....|double* |
|0000d220| 73 74 64 44 65 76 2c 09 | 09 09 2f 2a 20 74 68 65 |stdDev,.|../* the|
|0000d230| 20 73 74 61 6e 64 61 72 | 64 20 64 65 76 69 61 74 | standar|d deviat|
|0000d240| 69 6f 6e 09 2a 2f 0d 09 | 09 09 09 64 6f 75 62 6c |ion.*/..|...doubl|
|0000d250| 65 2a 20 6d 65 61 6e 41 | 62 73 44 65 76 29 3b 09 |e* meanA|bsDev);.|
|0000d260| 2f 2a 20 6d 65 61 6e 20 | 61 62 73 6f 6c 75 74 65 |/* mean |absolute|
|0000d270| 20 64 65 76 69 61 74 69 | 6f 6e 20 09 2a 2f 0d 09 | deviati|on .*/..|
|0000d280| 2f 2a 0d 09 09 72 65 74 | 75 72 6e 73 20 73 6f 6d |/*...ret|urns som|
|0000d290| 65 20 72 65 73 75 6c 74 | 73 20 6f 66 20 74 68 65 |e result|s of the|
|0000d2a0| 20 6c 61 73 74 20 73 74 | 61 74 69 73 74 69 63 73 | last st|atistics|
|0000d2b0| 20 65 76 61 6c 75 61 74 | 69 6f 6e 0d 09 09 43 61 | evaluat|ion...Ca|
|0000d2c0| 6c 63 53 74 61 74 20 6d | 75 73 74 20 68 61 76 65 |lcStat m|ust have|
|0000d2d0| 20 62 65 65 6e 20 63 61 | 6c 6c 65 64 20 77 69 74 | been ca|lled wit|
|0000d2e0| 68 20 74 68 65 20 77 69 | 74 68 42 61 73 69 63 73 |h the wi|thBasics|
|0000d2f0| 20 70 61 72 61 6d 65 74 | 65 72 0d 09 09 73 65 74 | paramet|er...set|
|0000d300| 20 74 6f 20 74 72 75 65 | 20 62 65 66 6f 72 65 20 | to true| before |
|0000d310| 74 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |this fun|ction ca|
|0000d320| 6e 20 62 65 20 75 73 65 | 64 2e 0d 09 2a 2f 0d 0d |n be use|d...*/..|
|0000d330| 76 6f 69 64 20 47 65 74 | 53 6b 65 77 41 6e 64 4b |void Get|SkewAndK|
|0000d340| 75 72 74 28 09 6c 6f 6e | 67 2a 20 09 63 6f 75 6e |urt(.lon|g* .coun|
|0000d350| 74 2c 20 09 09 2f 2a 20 | 6e 75 6d 62 65 72 20 6f |t, ../* |number o|
|0000d360| 66 20 64 61 74 61 20 70 | 72 6f 63 65 73 73 65 64 |f data p|rocessed|
|0000d370| 20 2a 2f 0d 09 09 09 09 | 09 09 64 6f 75 62 6c 65 | */.....|..double|
|0000d380| 2a 20 6d 65 61 6e 2c 20 | 09 09 2f 2a 20 31 2e 6d |* mean, |../* 1.m|
|0000d390| 6f 6d 65 6e 74 20 6f 66 | 20 64 69 73 74 72 69 62 |oment of| distrib|
|0000d3a0| 75 74 69 6f 6e 3a 20 61 | 76 65 72 61 67 65 20 2a |ution: a|verage *|
|0000d3b0| 2f 0d 09 09 09 09 09 09 | 09 09 09 09 09 2f 2a 20 |/.......|...../* |
|0000d3c0| 6d 65 61 73 75 72 65 20 | 74 68 65 20 61 76 65 72 |measure |the aver|
|0000d3d0| 61 67 65 20 76 61 6c 75 | 65 20 6f 66 20 61 20 64 |age valu|e of a d|
|0000d3e0| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 2a 2f 0d 09 |istribut|ion */..|
|0000d3f0| 09 09 09 09 09 64 6f 75 | 62 6c 65 2a 20 76 61 72 |.....dou|ble* var|
|0000d400| 69 61 6e 63 65 2c 09 2f | 2a 20 32 2e 6d 6f 6d 65 |iance,./|* 2.mome|
|0000d410| 6e 74 20 6f 66 20 64 69 | 73 74 72 69 62 75 74 69 |nt of di|stributi|
|0000d420| 6f 6e 3a 20 76 61 72 69 | 61 6e 63 65 20 2a 2f 0d |on: vari|ance */.|
|0000d430| 09 09 09 09 09 09 09 09 | 09 09 09 2f 2a 20 74 68 |........|.../* th|
|0000d440| 65 20 73 71 75 61 72 65 | 20 6f 66 20 74 68 65 20 |e square| of the |
|0000d450| 73 74 61 6e 64 61 72 64 | 20 64 65 76 69 61 74 69 |standard| deviati|
|0000d460| 6f 6e 20 2a 2f 0d 09 09 | 09 09 09 09 64 6f 75 62 |on */...|....doub|
|0000d470| 6c 65 2a 20 73 6b 65 77 | 6e 65 73 73 2c 20 09 2f |le* skew|ness, ./|
|0000d480| 2a 20 33 2e 6d 6f 6d 65 | 6e 74 20 6f 66 20 64 69 |* 3.mome|nt of di|
|0000d490| 73 74 72 69 62 75 74 69 | 6f 6e 3a 20 73 6b 65 77 |stributi|on: skew|
|0000d4a0| 6e 65 73 73 20 2a 2f 0d | 09 09 09 09 09 09 09 09 |ness */.|........|
|0000d4b0| 09 09 09 2f 2a 20 63 68 | 61 72 61 63 74 65 72 69 |.../* ch|aracteri|
|0000d4c0| 7a 65 73 20 74 68 65 20 | 61 73 79 6d 6d 65 74 72 |zes the |asymmetr|
|0000d4d0| 79 20 6f 66 20 61 20 64 | 69 73 74 72 69 62 75 74 |y of a d|istribut|
|0000d4e0| 69 6f 6e 20 61 72 6f 75 | 6e 64 20 69 74 73 20 6d |ion arou|nd its m|
|0000d4f0| 65 61 6e 20 2a 2f 0d 09 | 09 09 09 09 09 64 6f 75 |ean */..|.....dou|
|0000d500| 62 6c 65 2a 20 6b 75 72 | 74 6f 73 69 73 29 3b 09 |ble* kur|tosis);.|
|0000d510| 2f 2a 20 34 2e 6d 6f 6d | 65 6e 74 20 6f 66 20 64 |/* 4.mom|ent of d|
|0000d520| 69 73 74 72 69 62 75 74 | 69 6f 6e 3a 20 6b 75 72 |istribut|ion: kur|
|0000d530| 74 6f 73 69 73 20 2a 2f | 0d 09 09 09 09 09 09 09 |tosis */|........|
|0000d540| 09 09 09 09 2f 2a 20 6d | 65 61 73 75 72 65 20 74 |..../* m|easure t|
|0000d550| 68 65 20 72 65 6c 61 74 | 69 76 65 20 70 65 61 6b |he relat|ive peak|
|0000d560| 65 64 6e 65 73 73 20 6f | 72 20 66 6c 61 74 6e 65 |edness o|r flatne|
|0000d570| 73 73 20 6f 66 20 61 20 | 64 69 73 74 72 69 62 75 |ss of a |distribu|
|0000d580| 74 69 6f 6e 20 2a 2f 0d | 09 2f 2a 0d 09 09 72 65 |tion */.|./*...re|
|0000d590| 74 75 72 6e 73 20 73 6f | 6d 65 20 72 65 73 75 6c |turns so|me resul|
|0000d5a0| 74 73 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 73 |ts of th|e last s|
|0000d5b0| 74 61 74 69 73 74 69 63 | 73 20 65 76 61 6c 75 61 |tatistic|s evalua|
|0000d5c0| 74 69 6f 6e 0d 09 09 43 | 61 6c 63 53 74 61 74 20 |tion...C|alcStat |
|0000d5d0| 6d 75 73 74 20 68 61 76 | 65 20 62 65 65 6e 20 63 |must hav|e been c|
|0000d5e0| 61 6c 6c 65 64 20 77 69 | 74 68 20 74 68 65 20 77 |alled wi|th the w|
|0000d5f0| 69 74 68 53 6b 65 77 41 | 6e 64 43 75 72 74 20 70 |ithSkewA|ndCurt p|
|0000d600| 61 72 61 6d 65 74 65 72 | 0d 09 09 73 65 74 20 74 |arameter|...set t|
|0000d610| 6f 20 74 72 75 65 20 62 | 65 66 6f 72 65 20 74 68 |o true b|efore th|
|0000d620| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 63 61 6e 20 |is funct|ion can |
|0000d630| 62 65 20 75 73 65 64 2e | 0d 09 2a 2f 0d 0d 0d 76 |be used.|..*/...v|
|0000d640| 6f 69 64 20 47 65 74 4d | 65 64 69 61 6e 28 09 6c |oid GetM|edian(.l|
|0000d650| 6f 6e 67 2a 20 09 63 6f | 75 6e 74 2c 20 09 09 2f |ong* .co|unt, ../|
|0000d660| 2a 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 61 74 61 |* number| of data|
|0000d670| 20 70 72 6f 63 65 73 73 | 65 64 20 2a 2f 0d 09 09 | process|ed */...|
|0000d680| 09 09 64 6f 75 62 6c 65 | 2a 20 6d 65 61 6e 2c 20 |..double|* mean, |
|0000d690| 09 09 2f 2a 20 61 76 65 | 72 61 67 65 20 6f 76 65 |../* ave|rage ove|
|0000d6a0| 72 20 61 6c 6c 20 64 61 | 74 61 20 2a 2f 0d 09 09 |r all da|ta */...|
|0000d6b0| 09 09 64 6f 75 62 6c 65 | 2a 20 6d 65 64 69 61 6e |..double|* median|
|0000d6c0| 2c 09 09 2f 2a 20 74 68 | 65 20 64 61 74 61 20 69 |,../* th|e data i|
|0000d6d0| 6e 20 74 68 65 20 6d 69 | 64 74 68 20 6f 66 20 74 |n the mi|dth of t|
|0000d6e0| 68 65 20 6f 72 64 65 72 | 65 64 20 73 65 71 75 65 |he order|ed seque|
|0000d6f0| 6e 63 65 20 6f 66 20 64 | 61 74 61 20 2a 2f 0d 09 |nce of d|ata */..|
|0000d700| 09 09 09 64 6f 75 62 6c | 65 2a 20 6d 69 6e 69 6d |...doubl|e* minim|
|0000d710| 75 6d 2c 20 09 2f 2a 20 | 73 6d 61 6c 6c 65 73 74 |um, ./* |smallest|
|0000d720| 20 28 6c 61 72 67 65 73 | 74 20 6e 65 67 61 74 69 | (larges|t negati|
|0000d730| 76 65 29 20 76 61 6c 75 | 65 20 66 6f 75 6e 64 20 |ve) valu|e found |
|0000d740| 2a 2f 0d 09 09 09 09 64 | 6f 75 62 6c 65 2a 20 6d |*/.....d|ouble* m|
|0000d750| 61 78 69 6d 75 6d 29 3b | 09 2f 2a 20 6c 61 72 67 |aximum);|./* larg|
|0000d760| 65 73 74 20 76 61 6c 75 | 65 20 66 6f 75 6e 64 20 |est valu|e found |
|0000d770| 2a 2f 0d 09 2f 2a 0d 09 | 09 72 65 74 75 72 6e 73 |*/../*..|.returns|
|0000d780| 20 73 6f 6d 65 20 72 65 | 73 75 6c 74 73 20 6f 66 | some re|sults of|
|0000d790| 20 74 68 65 20 6c 61 73 | 74 20 73 74 61 74 69 73 | the las|t statis|
|0000d7a0| 74 69 63 73 20 65 76 61 | 6c 75 61 74 69 6f 6e 0d |tics eva|luation.|
|0000d7b0| 09 09 43 61 6c 63 53 74 | 61 74 20 6d 75 73 74 20 |..CalcSt|at must |
|0000d7c0| 68 61 76 65 20 62 65 65 | 6e 20 63 61 6c 6c 65 64 |have bee|n called|
|0000d7d0| 20 77 69 74 68 20 74 68 | 65 20 77 69 74 68 4d 65 | with th|e withMe|
|0000d7e0| 64 69 61 6e 20 70 61 72 | 61 6d 65 74 65 72 0d 09 |dian par|ameter..|
|0000d7f0| 09 73 65 74 20 74 6f 20 | 74 72 75 65 20 62 65 66 |.set to |true bef|
|0000d800| 6f 72 65 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |ore this| functio|
|0000d810| 6e 20 63 61 6e 20 62 65 | 20 75 73 65 64 2e 0d 09 |n can be| used...|
|0000d820| 2a 2f 0d 0d 0d 0d 0d 0d | 0d 2f 2a 2a 2a 2a 2a 2a |*/......|./******|
|0000d830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000d840| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000d850| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000d860| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000d870| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 2f 2a 2a 2a |********|**/./***|
|0000d880| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000d890| 2a 2a 2a 2a 2a 2a 20 64 | 61 74 61 20 61 63 63 65 |****** d|ata acce|
|0000d8a0| 73 73 20 72 6f 75 74 69 | 6e 65 73 20 2a 2a 2a 2a |ss routi|nes ****|
|0000d8b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000d8c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 0d |********|*****/..|
|0000d8d0| 0d 0d 6c 6f 6e 67 20 58 | 43 6f 6c 75 6d 6e 20 28 |..long X|Column (|
|0000d8e0| 76 6f 69 64 29 3b 0d 09 | 2f 2a 20 72 65 74 75 72 |void);..|/* retur|
|0000d8f0| 6e 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 78 |ns the c|urrent x|
|0000d900| 2d 63 6f 6c 75 6d 6e 20 | 6f 66 20 74 68 65 20 63 |-column |of the c|
|0000d910| 75 72 72 65 6e 74 20 64 | 61 74 61 20 77 69 6e 64 |urrent d|ata wind|
|0000d920| 6f 77 20 2a 2f 0d 0d 6c | 6f 6e 67 20 59 43 6f 6c |ow */..l|ong YCol|
|0000d930| 75 6d 6e 20 28 76 6f 69 | 64 29 3b 0d 09 2f 2a 20 |umn (voi|d);../* |
|0000d940| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 75 72 72 |returns |the curr|
|0000d950| 65 6e 74 20 79 2d 63 6f | 6c 75 6d 6e 20 6f 66 20 |ent y-co|lumn of |
|0000d960| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 61 74 61 |the curr|ent data|
|0000d970| 20 77 69 6e 64 6f 77 20 | 2a 2f 0d 0d 6c 6f 6e 67 | window |*/..long|
|0000d980| 20 58 45 72 72 43 6f 6c | 75 6d 6e 20 28 76 6f 69 | XErrCol|umn (voi|
|0000d990| 64 29 3b 0d 09 2f 2a 20 | 72 65 74 75 72 6e 73 20 |d);../* |returns |
|0000d9a0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 78 2d 65 72 |the curr|ent x-er|
|0000d9b0| 72 6f 72 20 63 6f 6c 75 | 6d 6e 20 6f 66 20 74 68 |ror colu|mn of th|
|0000d9c0| 65 20 63 75 72 72 65 6e | 74 20 64 61 74 61 20 77 |e curren|t data w|
|0000d9d0| 69 6e 64 6f 77 20 2a 2f | 0d 0d 6c 6f 6e 67 20 59 |indow */|..long Y|
|0000d9e0| 45 72 72 43 6f 6c 75 6d | 6e 20 28 76 6f 69 64 29 |ErrColum|n (void)|
|0000d9f0| 3b 0d 09 2f 2a 20 72 65 | 74 75 72 6e 73 20 74 68 |;../* re|turns th|
|0000da00| 65 20 63 75 72 72 65 6e | 74 20 79 2d 65 72 72 6f |e curren|t y-erro|
|0000da10| 72 20 63 6f 6c 75 6d 6e | 20 6f 66 20 74 68 65 20 |r column| of the |
|0000da20| 63 75 72 72 65 6e 74 20 | 64 61 74 61 20 77 69 6e |current |data win|
|0000da30| 64 6f 77 20 2a 2f 0d 0d | 76 6f 69 64 20 53 65 74 |dow */..|void Set|
|0000da40| 44 65 66 61 75 6c 74 43 | 6f 6c 73 28 6c 6f 6e 67 |DefaultC|ols(long|
|0000da50| 20 78 43 6f 6c 75 6d 6e | 2c 20 6c 6f 6e 67 20 79 | xColumn|, long y|
|0000da60| 43 6f 6c 75 6d 6e 2c 20 | 6c 6f 6e 67 20 78 45 72 |Column, |long xEr|
|0000da70| 72 43 6f 6c 75 6d 6e 2c | 20 6c 6f 6e 67 20 79 45 |rColumn,| long yE|
|0000da80| 72 72 43 6f 6c 75 6d 6e | 29 3b 0d 09 2f 2a 20 0d |rrColumn|);../* .|
|0000da90| 09 09 53 65 74 73 20 74 | 68 65 20 64 65 66 61 75 |..Sets t|he defau|
|0000daa0| 6c 74 20 78 2c 20 79 2c | 20 c6 78 2c 20 c6 79 20 |lt x, y,| .x, .y |
|0000dab0| 63 6f 6c 75 6d 6e 73 20 | 6f 66 20 74 68 65 20 63 |columns |of the c|
|0000dac0| 75 72 72 65 6e 74 20 64 | 61 74 61 20 77 69 6e 64 |urrent d|ata wind|
|0000dad0| 6f 77 2e 20 0d 09 09 54 | 68 65 20 64 65 66 61 75 |ow. ...T|he defau|
|0000dae0| 6c 74 20 78 20 61 6e 64 | 20 79 20 63 6f 6c 75 6d |lt x and| y colum|
|0000daf0| 6e 73 20 61 72 65 20 74 | 68 6f 73 65 20 63 6f 6c |ns are t|hose col|
|0000db00| 75 6d 6e 73 20 74 68 61 | 74 20 61 72 65 20 73 68 |umns tha|t are sh|
|0000db10| 6f 77 6e 20 69 6e 20 74 | 68 65 20 0d 09 09 70 72 |own in t|he ...pr|
|0000db20| 65 76 69 65 77 20 77 69 | 6e 64 6f 77 2e 20 0d 09 |eview wi|ndow. ..|
|0000db30| 09 44 65 66 61 75 6c 74 | 20 63 6f 6c 75 6d 6e 73 |.Default| columns|
|0000db40| 20 61 72 65 20 61 6c 73 | 6f 20 69 64 65 6e 74 69 | are als|o identi|
|0000db50| 66 69 65 64 20 62 79 20 | 73 6d 61 6c 6c 20 78 2c |fied by |small x,|
|0000db60| 20 79 2c 20 c6 78 2c 20 | c6 79 20 6c 65 74 74 65 | y, .x, |.y lette|
|0000db70| 72 69 6e 67 20 69 6e 0d | 09 09 74 68 65 20 63 6f |ring in.|..the co|
|0000db80| 6c 75 6d 6e 20 68 65 61 | 64 65 72 2e 0d 09 09 53 |lumn hea|der....S|
|0000db90| 65 74 20 78 45 72 72 43 | 6f 6c 75 6d 6e 20 61 6e |et xErrC|olumn an|
|0000dba0| 64 20 79 45 72 72 43 6f | 6c 75 6d 6e 20 74 6f 20 |d yErrCo|lumn to |
|0000dbb0| 30 20 74 6f 20 22 75 6e | 64 65 66 69 6e 65 22 20 |0 to "un|define" |
|0000dbc0| 69 74 2e 0d 09 09 55 73 | 65 20 61 20 6e 65 67 61 |it....Us|e a nega|
|0000dbd0| 74 69 76 65 20 6e 75 6d | 62 65 72 20 69 66 20 79 |tive num|ber if y|
|0000dbe0| 6f 75 20 64 6f 6e 27 74 | 20 77 61 6e 74 20 74 6f |ou don't| want to|
|0000dbf0| 20 63 68 61 6e 67 65 20 | 61 20 67 69 76 65 6e 20 | change |a given |
|0000dc00| 64 65 66 61 75 6c 74 20 | 63 6f 6c 75 6d 6e 2e 0d |default |column..|
|0000dc10| 09 2a 2f 0d 0d 6c 6f 6e | 67 20 4e 72 52 6f 77 73 |.*/..lon|g NrRows|
|0000dc20| 20 28 76 6f 69 64 29 3b | 0d 09 2f 2a 20 72 65 74 | (void);|../* ret|
|0000dc30| 75 72 6e 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |urns the| number |
|0000dc40| 6f 66 20 72 6f 77 73 20 | 69 6e 20 74 68 65 20 63 |of rows |in the c|
|0000dc50| 75 72 72 65 6e 74 20 64 | 61 74 61 20 77 69 6e 64 |urrent d|ata wind|
|0000dc60| 6f 77 20 2a 2f 0d 0d 6c | 6f 6e 67 20 4e 72 43 6f |ow */..l|ong NrCo|
|0000dc70| 6c 73 20 28 76 6f 69 64 | 29 3b 0d 09 2f 2a 20 72 |ls (void|);../* r|
|0000dc80| 65 74 75 72 6e 73 20 74 | 68 65 20 6e 75 6d 62 65 |eturns t|he numbe|
|0000dc90| 72 20 6f 66 20 63 6f 6c | 75 6d 6e 73 20 69 6e 20 |r of col|umns in |
|0000dca0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 61 74 61 |the curr|ent data|
|0000dcb0| 20 77 69 6e 64 6f 77 20 | 2a 2f 0d 09 0d 64 6f 75 | window |*/...dou|
|0000dcc0| 62 6c 65 20 47 65 74 44 | 61 74 61 28 6c 6f 6e 67 |ble GetD|ata(long|
|0000dcd0| 20 72 6f 77 2c 6c 6f 6e | 67 20 63 6f 6c 75 6d 6e | row,lon|g column|
|0000dce0| 29 3b 0d 09 2f 2a 20 72 | 65 74 75 72 6e 73 20 61 |);../* r|eturns a|
|0000dcf0| 20 76 61 6c 75 65 20 66 | 72 6f 6d 20 74 68 65 20 | value f|rom the |
|0000dd00| 63 75 72 72 65 6e 74 20 | 64 61 74 61 20 77 69 6e |current |data win|
|0000dd10| 64 6f 77 20 2a 2f 0d 0d | 76 6f 69 64 20 53 65 74 |dow */..|void Set|
|0000dd20| 44 61 74 61 28 6c 6f 6e | 67 20 72 6f 77 2c 6c 6f |Data(lon|g row,lo|
|0000dd30| 6e 67 20 63 6f 6c 75 6d | 6e 2c 64 6f 75 62 6c 65 |ng colum|n,double|
|0000dd40| 20 76 61 6c 75 65 29 3b | 0d 09 2f 2a 20 73 65 74 | value);|../* set|
|0000dd50| 73 20 61 20 76 61 6c 75 | 65 20 69 6e 20 74 68 65 |s a valu|e in the|
|0000dd60| 20 63 75 72 72 65 6e 74 | 20 64 61 74 61 20 77 69 | current| data wi|
|0000dd70| 6e 64 6f 77 20 2a 2f 0d | 0d 73 68 6f 72 74 20 54 |ndow */.|.short T|
|0000dd80| 65 73 74 44 61 74 61 28 | 6c 6f 6e 67 20 72 6f 77 |estData(|long row|
|0000dd90| 2c 6c 6f 6e 67 20 63 6f | 6c 75 6d 6e 29 3b 0d 09 |,long co|lumn);..|
|0000dda0| 2f 2a 20 72 65 74 75 72 | 6e 73 20 30 20 69 66 20 |/* retur|ns 0 if |
|0000ddb0| 61 20 76 61 6c 75 65 20 | 69 6e 20 74 68 65 20 63 |a value |in the c|
|0000ddc0| 75 72 72 65 6e 74 20 64 | 61 74 61 20 77 69 6e 64 |urrent d|ata wind|
|0000ddd0| 6f 77 20 69 73 20 65 6d | 70 74 79 20 2a 2f 0d 09 |ow is em|pty */..|
|0000dde0| 2f 2a 20 72 65 74 75 72 | 6e 73 20 31 20 6f 74 68 |/* retur|ns 1 oth|
|0000ddf0| 65 72 77 69 73 65 20 2a | 2f 0d 0d 76 6f 69 64 20 |erwise *|/..void |
|0000de00| 43 6c 65 61 72 44 61 74 | 61 28 6c 6f 6e 67 20 72 |ClearDat|a(long r|
|0000de10| 6f 77 2c 6c 6f 6e 67 20 | 63 6f 6c 75 6d 6e 29 3b |ow,long |column);|
|0000de20| 0d 09 2f 2a 20 63 6c 65 | 61 72 73 20 61 20 76 61 |../* cle|ars a va|
|0000de30| 6c 75 65 20 66 72 6f 6d | 20 74 68 65 20 63 75 72 |lue from| the cur|
|0000de40| 72 65 6e 74 20 64 61 74 | 61 20 77 69 6e 64 6f 77 |rent dat|a window|
|0000de50| 20 2a 2f 0d 0d 52 65 63 | 74 20 47 65 74 53 65 6c | */..Rec|t GetSel|
|0000de60| 65 63 74 69 6f 6e 28 76 | 6f 69 64 29 3b 0d 09 2f |ection(v|oid);../|
|0000de70| 2a 20 72 65 74 75 72 6e | 73 20 74 68 65 20 73 65 |* return|s the se|
|0000de80| 6c 65 63 74 65 64 20 72 | 6f 77 73 2f 63 6f 6c 75 |lected r|ows/colu|
|0000de90| 6d 6e 73 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |mns of t|he curre|
|0000dea0| 6e 74 20 64 61 74 61 20 | 77 69 6e 64 6f 77 20 2a |nt data |window *|
|0000deb0| 2f 0d 0d 76 6f 69 64 20 | 53 65 74 43 6f 6c 4e 61 |/..void |SetColNa|
|0000dec0| 6d 65 28 6c 6f 6e 67 20 | 63 6f 6c 75 6d 6e 2c 20 |me(long |column, |
|0000ded0| 63 6f 6e 73 74 20 53 74 | 72 32 35 35 20 6e 61 6d |const St|r255 nam|
|0000dee0| 65 29 3b 0d 09 2f 2a 20 | 73 65 74 73 20 74 68 65 |e);../* |sets the|
|0000def0| 20 6e 61 6d 65 20 6f 66 | 20 61 20 63 6f 6c 75 6d | name of| a colum|
|0000df00| 6e 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n in the| current|
|0000df10| 20 64 61 74 61 20 77 69 | 6e 64 6f 77 20 2a 2f 0d | data wi|ndow */.|
|0000df20| 09 09 09 0d 76 6f 69 64 | 20 47 65 74 43 6f 6c 4e |....void| GetColN|
|0000df30| 61 6d 65 28 53 74 72 32 | 35 35 20 6e 61 6d 65 2c |ame(Str2|55 name,|
|0000df40| 20 6c 6f 6e 67 20 63 6f | 6c 75 6d 6e 29 3b 0d 09 | long co|lumn);..|
|0000df50| 2f 2a 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |/* retur|ns the n|
|0000df60| 61 6d 65 20 6f 66 20 61 | 20 63 6f 6c 75 6d 6e 20 |ame of a| column |
|0000df70| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 64 |in the c|urrent d|
|0000df80| 61 74 61 20 77 69 6e 64 | 6f 77 20 2a 2f 0d 0d 0d |ata wind|ow */...|
|0000df90| 76 6f 69 64 20 53 65 74 | 44 61 74 61 53 69 7a 65 |void Set|DataSize|
|0000dfa0| 28 6c 6f 6e 67 20 6e 75 | 6d 62 65 72 4f 66 52 6f |(long nu|mberOfRo|
|0000dfb0| 77 73 2c 20 6c 6f 6e 67 | 20 6e 75 6d 62 65 72 4f |ws, long| numberO|
|0000dfc0| 66 43 6f 6c 75 6d 6e 73 | 29 3b 0d 09 2f 2a 20 20 |fColumns|);../* |
|0000dfd0| 0d 09 09 52 65 73 69 7a | 65 73 20 74 68 65 20 63 |...Resiz|es the c|
|0000dfe0| 75 72 72 65 6e 74 20 64 | 61 74 61 20 77 69 6e 64 |urrent d|ata wind|
|0000dff0| 6f 77 20 74 6f 20 6d 61 | 74 63 68 20 74 68 65 20 |ow to ma|tch the |
|0000e000| 6e 65 77 20 6e 75 6d 62 | 65 72 20 6f 66 20 72 6f |new numb|er of ro|
|0000e010| 77 73 20 61 6e 64 20 63 | 6f 6c 75 6d 6e 73 0d 09 |ws and c|olumns..|
|0000e020| 09 70 61 73 73 65 64 20 | 61 73 20 61 20 70 61 72 |.passed |as a par|
|0000e030| 61 6d 74 65 72 2e 0d 09 | 09 53 65 74 20 61 20 70 |amter...|.Set a p|
|0000e040| 61 72 61 6d 65 74 65 72 | 20 74 6f 20 30 20 69 66 |arameter| to 0 if|
|0000e050| 20 79 6f 75 20 64 6f 6e | 27 74 20 77 61 6e 74 20 | you don|'t want |
|0000e060| 74 6f 20 63 68 61 6e 67 | 65 20 69 74 2e 0d 09 09 |to chang|e it....|
|0000e070| 43 61 75 73 65 73 20 61 | 20 72 75 6e 2d 74 69 6d |Causes a| run-tim|
|0000e080| 65 20 65 72 72 6f 72 20 | 69 66 20 72 65 73 69 7a |e error |if resiz|
|0000e090| 69 6e 67 20 66 61 69 6c | 73 2e 0d 09 2a 2f 0d 0d |ing fail|s...*/..|
|0000e0a0| 6c 6f 6e 67 20 47 65 74 | 43 6f 6c 54 79 70 65 28 |long Get|ColType(|
|0000e0b0| 6c 6f 6e 67 20 63 6f 6c | 75 6d 6e 4e 75 6d 62 65 |long col|umnNumbe|
|0000e0c0| 72 29 3b 0d 09 2f 2a 20 | 20 0d 09 09 72 65 74 75 |r);../* | ...retu|
|0000e0d0| 72 6e 73 20 74 68 65 20 | 74 79 70 65 20 6f 66 20 |rns the |type of |
|0000e0e0| 61 20 63 6f 6c 75 6d 6e | 20 6f 66 20 74 68 65 20 |a column| of the |
|0000e0f0| 63 75 72 72 65 6e 74 20 | 64 61 74 61 20 77 69 6e |current |data win|
|0000e100| 64 6f 77 20 28 63 6f 6c | 4e 75 6d 62 65 72 20 3d |dow (col|Number =|
|0000e110| 20 31 2e 2e 4d 61 78 4e | 72 43 6f 6c 73 29 0d 09 | 1..MaxN|rCols)..|
|0000e120| 09 72 65 74 75 72 6e 20 | 76 61 6c 75 65 73 3a 0d |.return |values:.|
|0000e130| 09 09 09 66 6c 6f 61 74 | 43 6f 6c 75 6d 6e 3a 09 |...float|Column:.|
|0000e140| 09 34 20 62 79 74 65 20 | 66 6c 6f 61 74 69 6e 67 |.4 byte |floating|
|0000e150| 20 70 6f 69 6e 74 20 66 | 6f 72 6d 61 74 0d 09 09 | point f|ormat...|
|0000e160| 09 64 6f 75 62 6c 65 43 | 6f 6c 75 6d 6e 09 09 38 |.doubleC|olumn..8|
|0000e170| 20 62 79 74 65 20 66 6c | 6f 61 74 69 6e 67 20 70 | byte fl|oating p|
|0000e180| 6f 69 6e 74 20 66 6f 72 | 6d 61 74 0d 09 09 09 74 |oint for|mat....t|
|0000e190| 65 78 74 43 6f 6c 75 6d | 6e 3a 09 09 09 74 65 78 |extColum|n:...tex|
|0000e1a0| 74 20 66 6f 72 6d 61 74 | 0d 09 2a 2f 0d 0d 76 6f |t format|..*/..vo|
|0000e1b0| 69 64 20 53 65 74 43 6f | 6c 54 79 70 65 28 6c 6f |id SetCo|lType(lo|
|0000e1c0| 6e 67 20 63 6f 6c 75 6d | 6e 4e 75 6d 62 65 72 2c |ng colum|nNumber,|
|0000e1d0| 20 6c 6f 6e 67 20 74 68 | 65 54 79 70 65 29 3b 0d | long th|eType);.|
|0000e1e0| 09 2f 2a 20 20 0d 09 09 | 73 65 74 73 20 74 68 65 |./* ...|sets the|
|0000e1f0| 20 74 79 70 65 20 6f 66 | 20 61 20 63 6f 6c 75 6d | type of| a colum|
|0000e200| 6e 20 6f 66 20 74 68 65 | 20 63 75 72 72 65 6e 74 |n of the| current|
|0000e210| 20 64 61 74 61 20 77 69 | 6e 64 6f 77 20 28 63 6f | data wi|ndow (co|
|0000e220| 6c 4e 75 6d 62 65 72 20 | 3d 20 31 2e 2e 4d 61 78 |lNumber |= 1..Max|
|0000e230| 4e 72 43 6f 6c 73 29 0d | 09 09 74 68 65 54 79 70 |NrCols).|..theTyp|
|0000e240| 65 3a 0d 09 09 09 66 6c | 6f 61 74 43 6f 6c 75 6d |e:....fl|oatColum|
|0000e250| 6e 3a 09 09 34 20 62 79 | 74 65 20 66 6c 6f 61 74 |n:..4 by|te float|
|0000e260| 69 6e 67 20 70 6f 69 6e | 74 20 66 6f 72 6d 61 74 |ing poin|t format|
|0000e270| 0d 09 09 09 64 6f 75 62 | 6c 65 43 6f 6c 75 6d 6e |....doub|leColumn|
|0000e280| 09 09 38 20 62 79 74 65 | 20 66 6c 6f 61 74 69 6e |..8 byte| floatin|
|0000e290| 67 20 70 6f 69 6e 74 20 | 66 6f 72 6d 61 74 0d 09 |g point |format..|
|0000e2a0| 09 09 74 65 78 74 43 6f | 6c 75 6d 6e 3a 09 09 09 |..textCo|lumn:...|
|0000e2b0| 74 65 78 74 20 66 6f 72 | 6d 61 74 0d 09 09 43 61 |text for|mat...Ca|
|0000e2c0| 75 73 65 73 20 61 20 72 | 75 6e 2d 74 69 6d 65 20 |uses a r|un-time |
|0000e2d0| 65 72 72 6f 72 20 69 66 | 20 63 6f 6e 76 65 72 73 |error if| convers|
|0000e2e0| 69 6f 6e 20 66 61 69 6c | 65 64 2e 0d 09 2a 2f 0d |ion fail|ed...*/.|
|0000e2f0| 0d 42 6f 6f 6c 65 61 6e | 20 43 6f 6c 45 6d 70 74 |.Boolean| ColEmpt|
|0000e300| 79 28 6c 6f 6e 67 20 63 | 6f 6c 75 6d 6e 4e 75 6d |y(long c|olumnNum|
|0000e310| 62 65 72 29 3b 0d 09 2f | 2a 0d 09 09 72 65 74 75 |ber);../|*...retu|
|0000e320| 72 6e 73 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |rns true| if the |
|0000e330| 67 69 76 65 6e 20 63 6f | 6c 75 6d 6e 20 64 6f 65 |given co|lumn doe|
|0000e340| 73 6e 27 74 20 63 6f 6e | 74 61 69 6e 20 61 6e 79 |sn't con|tain any|
|0000e350| 20 64 61 74 61 2c 20 66 | 61 6c 73 65 20 6f 74 68 | data, f|alse oth|
|0000e360| 65 72 77 69 73 65 0d 09 | 2a 2f 0d 0d 76 6f 69 64 |erwise..|*/..void|
|0000e370| 20 53 65 74 43 6f 6c 57 | 69 64 74 68 28 6c 6f 6e | SetColW|idth(lon|
|0000e380| 67 20 63 6f 6c 75 6d 6e | 4e 75 6d 62 65 72 2c 20 |g column|Number, |
|0000e390| 73 68 6f 72 74 20 77 69 | 64 74 68 29 3b 0d 09 2f |short wi|dth);../|
|0000e3a0| 2a 20 09 0d 09 09 73 65 | 74 73 20 74 68 65 20 77 |* ....se|ts the w|
|0000e3b0| 69 64 74 68 20 6f 66 20 | 74 68 65 20 67 69 76 65 |idth of |the give|
|0000e3c0| 6e 20 63 6f 6c 75 6d 6e | 20 74 6f 20 74 68 65 20 |n column| to the |
|0000e3d0| 6e 75 6d 62 65 72 20 6f | 66 20 70 69 78 65 6c 73 |number o|f pixels|
|0000e3e0| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 20 22 77 | specifi|ed in "w|
|0000e3f0| 69 64 74 68 22 0d 09 2a | 2f 0d 09 0d 76 6f 69 64 |idth"..*|/...void|
|0000e400| 20 53 65 6c 65 63 74 43 | 65 6c 6c 73 28 6c 6f 6e | SelectC|ells(lon|
|0000e410| 67 20 6c 65 66 74 2c 20 | 6c 6f 6e 67 20 74 6f 70 |g left, |long top|
|0000e420| 2c 20 6c 6f 6e 67 20 72 | 69 67 68 74 2c 20 6c 6f |, long r|ight, lo|
|0000e430| 6e 67 20 62 6f 74 74 6f | 6d 29 3b 0d 09 2f 2a 20 |ng botto|m);../* |
|0000e440| 20 0d 09 09 73 65 6c 65 | 63 74 73 20 74 68 65 20 | ...sele|cts the |
|0000e450| 63 65 6c 6c 73 20 77 69 | 74 68 69 6e 20 74 68 65 |cells wi|thin the|
|0000e460| 20 67 69 76 65 6e 20 72 | 65 63 74 61 6e 67 6c 65 | given r|ectangle|
|0000e470| 0d 09 09 74 68 65 20 63 | 6f 6f 72 64 69 6e 61 74 |...the c|oordinat|
|0000e480| 65 73 20 61 72 65 20 63 | 6c 69 70 70 65 64 20 74 |es are c|lipped t|
|0000e490| 6f 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |o the si|ze of th|
|0000e4a0| 65 20 64 61 74 61 20 6c | 69 73 74 0d 09 2a 2f 0d |e data l|ist..*/.|
|0000e4b0| 0d 0d 76 6f 69 64 20 53 | 65 6c 65 63 74 52 6f 77 |..void S|electRow|
|0000e4c0| 73 28 6c 6f 6e 67 20 74 | 6f 70 2c 20 6c 6f 6e 67 |s(long t|op, long|
|0000e4d0| 20 62 6f 74 74 6f 6d 2c | 20 42 6f 6f 6c 65 61 6e | bottom,| Boolean|
|0000e4e0| 20 64 6f 53 65 6c 65 63 | 74 29 3b 0d 09 2f 2a 20 | doSelec|t);../* |
|0000e4f0| 20 0d 09 09 73 65 6c 65 | 63 74 73 20 6f 72 20 64 | ...sele|cts or d|
|0000e500| 65 73 65 6c 65 63 74 73 | 20 74 68 65 20 67 69 76 |eselects| the giv|
|0000e510| 65 6e 20 72 6f 77 73 0d | 09 09 64 6f 53 65 6c 65 |en rows.|..doSele|
|0000e520| 63 74 3d 3d 74 72 75 65 | 3a 20 73 65 6c 65 63 74 |ct==true|: select|
|0000e530| 73 20 74 68 65 20 67 69 | 76 65 6e 20 72 6f 77 73 |s the gi|ven rows|
|0000e540| 0d 09 09 64 6f 53 65 6c | 65 63 74 3d 3d 66 61 6c |...doSel|ect==fal|
|0000e550| 73 65 3a 20 64 65 73 65 | 6c 65 63 74 73 20 74 68 |se: dese|lects th|
|0000e560| 65 20 67 69 76 65 6e 20 | 72 6f 77 73 0d 09 09 74 |e given |rows...t|
|0000e570| 6f 70 20 61 6e 64 20 62 | 6f 74 74 6f 6d 20 61 72 |op and b|ottom ar|
|0000e580| 65 20 63 6c 69 70 70 65 | 64 20 74 6f 20 74 68 65 |e clippe|d to the|
|0000e590| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 6c 69 73 | size of| the lis|
|0000e5a0| 74 0d 09 09 73 65 6c 65 | 63 74 69 6f 6e 73 20 6f |t...sele|ctions o|
|0000e5b0| 75 74 73 69 64 65 20 74 | 6f 70 2f 62 6f 74 74 6f |utside t|op/botto|
|0000e5c0| 6d 20 72 65 6d 61 69 6e | 20 61 73 20 74 68 65 79 |m remain| as they|
|0000e5d0| 20 61 72 65 0d 09 2a 2f | 0d 0d 0d 42 6f 6f 6c 65 | are..*/|...Boole|
|0000e5e0| 61 6e 20 52 6f 77 53 65 | 6c 65 63 74 65 64 28 6c |an RowSe|lected(l|
|0000e5f0| 6f 6e 67 20 72 6f 77 4e | 75 6d 62 65 72 29 3b 0d |ong rowN|umber);.|
|0000e600| 09 2f 2a 20 20 0d 09 09 | 72 65 74 75 72 6e 73 20 |./* ...|returns |
|0000e610| 74 72 75 65 20 69 66 20 | 61 74 20 6c 65 61 73 74 |true if |at least|
|0000e620| 20 61 20 63 65 6c 6c 20 | 69 6e 20 74 68 65 20 67 | a cell |in the g|
|0000e630| 69 76 65 6e 20 72 6f 77 | 20 69 73 20 73 65 6c 65 |iven row| is sele|
|0000e640| 63 74 65 64 2c 0d 09 09 | 66 61 6c 73 65 20 6f 74 |cted,...|false ot|
|0000e650| 68 65 72 77 69 73 65 2c | 20 6f 72 20 69 66 20 74 |herwise,| or if t|
|0000e660| 68 65 20 67 69 76 65 6e | 20 72 6f 77 20 69 73 20 |he given| row is |
|0000e670| 6f 75 74 73 69 64 65 20 | 74 68 65 20 6c 69 73 74 |outside |the list|
|0000e680| 2e 0d 09 2a 2f 0d 0d 42 | 6f 6f 6c 65 61 6e 20 43 |...*/..B|oolean C|
|0000e690| 65 6c 6c 53 65 6c 65 63 | 74 65 64 28 6c 6f 6e 67 |ellSelec|ted(long|
|0000e6a0| 20 72 6f 77 2c 20 6c 6f | 6e 67 20 63 6f 6c 75 6d | row, lo|ng colum|
|0000e6b0| 6e 29 3b 0d 09 2f 2a 20 | 20 0d 09 09 72 65 74 75 |n);../* | ...retu|
|0000e6c0| 72 6e 73 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |rns true| if the |
|0000e6d0| 67 69 76 65 6e 20 63 65 | 6c 6c 20 69 73 20 73 65 |given ce|ll is se|
|0000e6e0| 6c 65 63 74 65 64 0d 09 | 09 72 75 6e 2d 74 69 6d |lected..|.run-tim|
|0000e6f0| 65 20 65 72 72 6f 72 20 | 69 66 20 72 6f 77 2f 63 |e error |if row/c|
|0000e700| 6f 6c 75 6d 6e 20 69 73 | 20 6f 75 74 73 69 64 65 |olumn is| outside|
|0000e710| 20 74 68 65 20 6c 69 73 | 74 0d 09 2a 2f 0d 0d 09 | the lis|t..*/...|
|0000e720| 0d 76 6f 69 64 20 53 65 | 74 43 65 6c 6c 28 6c 6f |.void Se|tCell(lo|
|0000e730| 6e 67 20 72 6f 77 2c 6c | 6f 6e 67 20 63 6f 6c 75 |ng row,l|ong colu|
|0000e740| 6d 6e 2c 20 63 6f 6e 73 | 74 20 53 74 72 32 35 35 |mn, cons|t Str255|
|0000e750| 20 73 29 3b 0d 09 2f 2a | 20 20 0d 09 09 73 65 74 | s);../*| ...set|
|0000e760| 73 20 74 68 65 20 67 69 | 76 65 6e 20 63 65 6c 6c |s the gi|ven cell|
|0000e770| 20 74 6f 20 74 68 65 20 | 73 74 72 69 6e 67 20 73 | to the |string s|
|0000e780| 2e 0d 09 09 49 66 20 74 | 68 65 20 67 69 76 65 6e |....If t|he given|
|0000e790| 20 63 65 6c 6c 20 69 73 | 20 61 20 6e 75 6d 65 72 | cell is| a numer|
|0000e7a0| 69 63 20 63 65 6c 6c 2c | 20 74 68 65 20 73 74 72 |ic cell,| the str|
|0000e7b0| 69 6e 67 20 69 73 20 63 | 6f 6e 76 65 72 74 65 64 |ing is c|onverted|
|0000e7c0| 0d 09 09 69 6e 74 6f 20 | 61 20 6e 75 6d 62 65 72 |...into |a number|
|0000e7d0| 20 77 68 69 63 68 20 69 | 73 20 75 73 65 64 20 74 | which i|s used t|
|0000e7e0| 6f 20 73 65 74 20 74 68 | 65 20 76 61 6c 75 65 20 |o set th|e value |
|0000e7f0| 6f 66 20 74 68 65 20 63 | 65 6c 6c 2e 0d 09 2a 2f |of the c|ell...*/|
|0000e800| 0d 0d 0d 76 6f 69 64 20 | 47 65 74 43 65 6c 6c 28 |...void |GetCell(|
|0000e810| 53 74 72 32 35 35 20 73 | 2c 20 6c 6f 6e 67 20 72 |Str255 s|, long r|
|0000e820| 6f 77 2c 6c 6f 6e 67 20 | 63 6f 6c 75 6d 6e 29 3b |ow,long |column);|
|0000e830| 0d 09 2f 2a 20 20 0d 09 | 09 72 65 74 75 72 6e 73 |../* ..|.returns|
|0000e840| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 | the con|tents of|
|0000e850| 20 74 68 65 20 67 69 76 | 65 6e 20 63 65 6c 6c 20 | the giv|en cell |
|0000e860| 69 6e 20 74 68 65 20 73 | 74 72 69 6e 67 20 73 2e |in the s|tring s.|
|0000e870| 0d 09 09 49 66 20 74 68 | 65 20 63 65 6c 6c 20 69 |...If th|e cell i|
|0000e880| 73 20 61 20 6e 75 6d 65 | 72 69 63 20 63 65 6c 6c |s a nume|ric cell|
|0000e890| 2c 20 74 68 65 20 6e 75 | 6d 62 65 72 20 69 73 20 |, the nu|mber is |
|0000e8a0| 63 6f 6e 76 65 72 74 65 | 64 20 69 6e 74 6f 0d 09 |converte|d into..|
|0000e8b0| 09 61 20 73 74 72 69 6e | 67 20 61 6e 64 20 72 65 |.a strin|g and re|
|0000e8c0| 74 75 72 6e 65 64 20 69 | 6e 20 73 2e 0d 09 2a 2f |turned i|n s...*/|
|0000e8d0| 0d 0d 0d 0d 76 6f 69 64 | 20 47 65 74 44 65 66 61 |....void| GetDefa|
|0000e8e0| 75 6c 74 44 61 74 61 28 | 44 6f 75 62 6c 65 41 72 |ultData(|DoubleAr|
|0000e8f0| 72 61 79 48 61 6e 64 6c | 65 2a 20 63 6f 6e 73 74 |rayHandl|e* const|
|0000e900| 20 78 43 6f 6c 48 2c 20 | 09 0d 09 09 09 09 09 44 | xColH, |.......D|
|0000e910| 6f 75 62 6c 65 41 72 72 | 61 79 48 61 6e 64 6c 65 |oubleArr|ayHandle|
|0000e920| 2a 20 63 6f 6e 73 74 20 | 79 43 6f 6c 48 2c 0d 09 |* const |yColH,..|
|0000e930| 09 09 09 09 44 6f 75 62 | 6c 65 41 72 72 61 79 48 |....Doub|leArrayH|
|0000e940| 61 6e 64 6c 65 2a 20 63 | 6f 6e 73 74 20 78 45 72 |andle* c|onst xEr|
|0000e950| 72 43 6f 6c 48 2c 20 0d | 09 09 09 09 09 44 6f 75 |rColH, .|.....Dou|
|0000e960| 62 6c 65 41 72 72 61 79 | 48 61 6e 64 6c 65 2a 20 |bleArray|Handle* |
|0000e970| 63 6f 6e 73 74 20 79 45 | 72 72 43 6f 6c 48 2c 0d |const yE|rrColH,.|
|0000e980| 09 09 09 09 09 4c 6f 6e | 67 41 72 72 61 79 48 61 |.....Lon|gArrayHa|
|0000e990| 6e 64 6c 65 2a 20 20 20 | 63 6f 6e 73 74 20 69 6e |ndle* |const in|
|0000e9a0| 64 65 63 65 73 48 2c 0d | 09 09 09 09 09 6c 6f 6e |decesH,.|.....lon|
|0000e9b0| 67 2a 20 61 72 72 61 79 | 53 69 7a 65 2c 0d 09 09 |g* array|Size,...|
|0000e9c0| 09 09 09 42 6f 6f 6c 65 | 61 6e 20 73 65 6c 65 63 |...Boole|an selec|
|0000e9d0| 74 65 64 52 6f 77 73 4f | 6e 6c 79 2c 0d 09 09 09 |tedRowsO|nly,....|
|0000e9e0| 09 09 44 61 74 61 49 6e | 66 6f 2a 20 63 6f 6e 73 |..DataIn|fo* cons|
|0000e9f0| 74 20 69 6e 66 6f 29 3b | 0d 09 2f 2a 0d 09 09 54 |t info);|../*...T|
|0000ea00| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 70 72 6f 76 |his rout|ine prov|
|0000ea10| 69 64 65 73 20 79 6f 75 | 20 77 69 74 68 20 61 20 |ides you| with a |
|0000ea20| 63 6f 70 79 20 6f 66 20 | 74 68 65 20 64 65 66 61 |copy of |the defa|
|0000ea30| 75 6c 74 20 78 2d 79 20 | 64 61 74 61 20 69 6e 20 |ult x-y |data in |
|0000ea40| 74 68 65 0d 09 09 63 75 | 72 72 65 6e 74 20 44 61 |the...cu|rrent Da|
|0000ea50| 74 61 20 77 69 6e 64 6f | 77 2e 0d 09 09 49 74 20 |ta windo|w....It |
|0000ea60| 61 6c 6c 6f 63 61 74 65 | 73 20 6d 65 6d 6f 72 79 |allocate|s memory|
|0000ea70| 20 66 6f 72 20 74 68 65 | 20 78 2c 79 20 61 72 72 | for the| x,y arr|
|0000ea80| 61 79 73 2c 20 66 6f 72 | 20 74 68 65 20 78 2c 79 |ays, for| the x,y|
|0000ea90| 2d 45 72 72 6f 72 20 61 | 72 72 61 79 73 2c 20 61 |-Error a|rrays, a|
|0000eaa0| 6e 64 0d 09 09 66 6f 72 | 20 74 68 65 20 61 72 72 |nd...for| the arr|
|0000eab0| 61 79 20 74 68 61 74 20 | 67 69 76 65 73 20 74 68 |ay that |gives th|
|0000eac0| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|0000ead0| 72 6f 77 20 6e 75 6d 62 | 65 72 73 20 69 6e 20 74 |row numb|ers in t|
|0000eae0| 68 65 20 64 61 74 61 20 | 77 69 6e 64 6f 77 2e 0d |he data |window..|
|0000eaf0| 09 09 54 68 65 6e 20 69 | 74 20 66 69 6c 6c 73 20 |..Then i|t fills |
|0000eb00| 74 68 65 6d 20 75 70 20 | 77 69 74 68 20 74 68 65 |them up |with the|
|0000eb10| 20 64 61 74 61 2e 20 49 | 74 20 63 6f 70 69 65 73 | data. I|t copies|
|0000eb20| 20 6f 6e 6c 79 20 74 68 | 65 20 64 61 74 61 20 77 | only th|e data w|
|0000eb30| 68 65 72 65 20 0d 09 09 | 62 6f 74 68 20 74 68 65 |here ...|both the|
|0000eb40| 20 78 20 61 6e 64 20 74 | 68 65 20 79 20 63 65 6c | x and t|he y cel|
|0000eb50| 6c 20 63 6f 6e 74 61 69 | 6e 20 76 61 6c 69 64 20 |l contai|n valid |
|0000eb60| 6e 75 6d 62 65 72 73 2e | 0d 09 09 50 61 73 73 20 |numbers.|...Pass |
|0000eb70| 6e 69 6c 20 66 6f 72 20 | 6f 6e 65 20 6f 66 20 74 |nil for |one of t|
|0000eb80| 68 65 73 65 20 61 72 72 | 61 79 20 69 66 20 79 6f |hese arr|ay if yo|
|0000eb90| 75 20 61 72 65 20 6e 6f | 74 20 69 6e 74 65 72 65 |u are no|t intere|
|0000eba0| 73 74 65 64 20 69 6e 20 | 69 74 2e 0d 0d 09 09 49 |sted in |it.....I|
|0000ebb0| 6e 64 65 63 65 73 48 20 | 63 6f 6e 74 61 69 6e 73 |ndecesH |contains|
|0000ebc0| 2c 20 66 6f 72 20 65 61 | 63 68 20 78 2d 79 20 64 |, for ea|ch x-y d|
|0000ebd0| 61 74 61 20 69 6e 20 74 | 68 65 20 64 61 74 61 2d |ata in t|he data-|
|0000ebe0| 61 72 72 61 79 73 2c 20 | 74 68 65 20 72 6f 77 20 |arrays, |the row |
|0000ebf0| 6e 75 6d 62 65 72 20 69 | 6e 0d 09 09 74 68 65 20 |number i|n...the |
|0000ec00| 63 75 72 72 65 6e 74 20 | 64 61 74 61 20 6c 69 73 |current |data lis|
|0000ec10| 74 20 77 68 65 72 65 20 | 74 68 61 74 20 64 61 74 |t where |that dat|
|0000ec20| 61 20 69 73 20 66 6f 75 | 6e 64 2e 0d 0d 09 09 77 |a is fou|nd.....w|
|0000ec30| 68 65 6e 20 73 65 6c 65 | 63 74 65 64 52 6f 77 73 |hen sele|ctedRows|
|0000ec40| 4f 6e 6c 79 20 69 73 20 | 74 72 75 65 2c 20 6f 6e |Only is |true, on|
|0000ec50| 6c 79 20 64 61 74 61 20 | 69 6e 20 73 65 6c 65 63 |ly data |in selec|
|0000ec60| 74 65 64 20 72 6f 77 73 | 20 69 73 20 75 73 65 64 |ted rows| is used|
|0000ec70| 20 74 6f 20 66 69 6c 6c | 20 75 70 0d 09 09 74 68 | to fill| up...th|
|0000ec80| 65 20 61 72 72 61 79 73 | 2e 0d 09 09 0d 09 09 54 |e arrays|.......T|
|0000ec90| 68 65 20 61 72 72 61 79 | 73 20 72 65 74 75 72 6e |he array|s return|
|0000eca0| 65 64 20 62 79 20 47 65 | 74 44 65 66 61 75 6c 74 |ed by Ge|tDefault|
|0000ecb0| 44 61 74 61 20 63 6f 6e | 74 61 69 6e 20 76 61 6c |Data con|tain val|
|0000ecc0| 69 64 20 64 61 74 61 20 | 73 74 61 72 74 69 6e 67 |id data |starting|
|0000ecd0| 20 66 72 6f 6d 20 0d 09 | 09 74 68 65 20 65 6c 65 | from ..|.the ele|
|0000ece0| 6d 65 6e 74 20 77 69 74 | 68 20 69 6e 64 65 78 20 |ment wit|h index |
|0000ecf0| 31 2e 20 54 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |1. The v|alue of |
|0000ed00| 74 68 65 20 65 6c 65 6d | 65 6e 74 20 77 69 74 68 |the elem|ent with|
|0000ed10| 20 69 6e 64 65 78 20 30 | 20 69 73 20 75 6e 64 65 | index 0| is unde|
|0000ed20| 66 69 6e 65 64 2e 0d 09 | 09 54 68 65 20 6c 61 73 |fined...|.The las|
|0000ed30| 74 20 65 6c 65 6d 65 6e | 74 20 68 61 73 20 69 6e |t elemen|t has in|
|0000ed40| 64 65 78 20 22 61 72 72 | 61 79 53 69 7a 65 22 2e |dex "arr|aySize".|
|0000ed50| 0d 09 09 61 72 72 61 79 | 53 69 7a 65 20 69 73 20 |...array|Size is |
|0000ed60| 73 65 74 20 74 6f 20 7a | 65 72 6f 20 69 6e 20 63 |set to z|ero in c|
|0000ed70| 61 73 65 20 6f 66 20 6f | 75 74 2d 6f 66 2d 6d 65 |ase of o|ut-of-me|
|0000ed80| 6d 6f 72 79 20 73 69 74 | 75 61 74 69 6f 6e 73 20 |mory sit|uations |
|0000ed90| 6f 72 20 6f 74 68 65 72 | 20 70 72 6f 62 6c 65 6d |or other| problem|
|0000eda0| 73 2e 0d 09 09 0d 09 09 | 50 72 6f 76 69 64 65 20 |s.......|Provide |
|0000edb0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 64 |a pointe|r to a d|
|0000edc0| 61 74 61 20 73 74 72 75 | 63 74 20 6f 66 20 74 79 |ata stru|ct of ty|
|0000edd0| 70 65 20 44 61 74 61 49 | 6e 66 6f 20 61 73 20 74 |pe DataI|nfo as t|
|0000ede0| 68 65 20 6c 61 73 74 20 | 70 61 72 61 65 6d 74 65 |he last |paraemte|
|0000edf0| 72 20 69 66 0d 09 09 79 | 6f 75 20 61 72 65 20 69 |r if...y|ou are i|
|0000ee00| 6e 74 65 72 65 73 74 65 | 64 20 69 6e 20 65 78 74 |ntereste|d in ext|
|0000ee10| 72 61 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |ra infor|mation o|
|0000ee20| 6e 20 74 68 65 20 64 61 | 74 61 20 73 65 74 2e 0d |n the da|ta set..|
|0000ee30| 09 09 54 68 65 20 65 6c | 65 6d 65 6e 74 73 20 6f |..The el|ements o|
|0000ee40| 66 20 74 68 65 20 44 61 | 74 61 49 6e 66 6f 20 73 |f the Da|taInfo s|
|0000ee50| 74 72 75 63 74 20 61 72 | 65 20 73 65 74 20 62 79 |truct ar|e set by|
|0000ee60| 20 47 65 74 44 65 66 61 | 75 6c 74 44 61 74 61 2c | GetDefa|ultData,|
|0000ee70| 20 61 6e 64 20 74 68 65 | 79 20 74 65 6c 6c 0d 09 | and the|y tell..|
|0000ee80| 09 79 6f 75 20 74 68 65 | 20 62 6f 75 6e 64 61 72 |.you the| boundar|
|0000ee90| 69 65 73 20 6f 66 20 74 | 68 65 20 78 2d 20 61 6e |ies of t|he x- an|
|0000eea0| 64 20 79 2d 20 64 61 74 | 61 2c 20 69 66 20 74 68 |d y- dat|a, if th|
|0000eeb0| 65 20 64 61 74 61 20 69 | 73 20 6f 72 64 65 72 65 |e data i|s ordere|
|0000eec0| 64 20 77 69 74 68 0d 09 | 09 78 2d 76 61 6c 75 65 |d with..|.x-value|
|0000eed0| 73 20 67 72 6f 77 69 6e | 67 20 77 69 74 68 20 74 |s growin|g with t|
|0000eee0| 68 65 20 69 6e 64 65 78 | 20 69 6e 20 74 68 65 20 |he index| in the |
|0000eef0| 61 72 72 61 79 73 2c 20 | 69 66 20 61 6e 79 20 63 |arrays, |if any c|
|0000ef00| 65 6c 6c 73 20 69 6e 20 | 74 68 65 20 63 6f 6c 75 |ells in |the colu|
|0000ef10| 6d 6e 73 0d 09 09 64 65 | 64 69 63 61 74 65 64 20 |mns...de|dicated |
|0000ef20| 74 6f 20 74 68 65 20 65 | 72 72 6f 72 73 20 6f 66 |to the e|rrors of|
|0000ef30| 20 74 68 65 20 64 61 74 | 61 20 70 6f 69 6e 74 73 | the dat|a points|
|0000ef40| 20 77 68 65 72 65 20 66 | 6f 75 6e 64 20 65 6d 70 | where f|ound emp|
|0000ef50| 74 79 2e 0d 09 09 53 65 | 65 20 74 68 65 20 64 65 |ty....Se|e the de|
|0000ef60| 63 6c 61 72 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |claratio|n of the|
|0000ef70| 20 44 61 74 61 49 6e 66 | 6f 20 73 74 72 75 63 74 | DataInf|o struct|
|0000ef80| 75 72 65 2c 20 61 62 6f | 76 65 2e 0d 09 09 0d 09 |ure, abo|ve......|
|0000ef90| 2a 2f 0d 09 0d 0d 0d 0d | 0d 2f 2a 2a 2a 2a 2a 2a |*/......|./******|
|0000efa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000efb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000efc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000efd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000efe0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 2f 2a 2a 2a |********|**/./***|
|0000eff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 20 6d 69 73 |********|**** mis|
|0000f010| 63 65 6c 6c 61 6e 65 6f | 75 73 20 2a 2a 2a 2a 2a |cellaneo|us *****|
|0000f020| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f030| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 0d |********|****/...|
|0000f040| 0d 76 6f 69 64 20 53 65 | 74 57 61 69 74 54 69 74 |.void Se|tWaitTit|
|0000f050| 6c 65 28 63 6f 6e 73 74 | 20 53 74 72 32 35 35 20 |le(const| Str255 |
|0000f060| 73 31 29 3b 0d 09 2f 2a | 0d 09 09 77 72 69 74 65 |s1);../*|...write|
|0000f070| 73 20 74 68 65 20 73 74 | 72 69 6e 67 20 73 31 20 |s the st|ring s1 |
|0000f080| 69 6e 20 74 68 65 20 77 | 69 6e 64 6f 77 20 70 75 |in the w|indow pu|
|0000f090| 74 20 75 70 20 62 79 20 | 70 72 6f 66 69 74 20 77 |t up by |profit w|
|0000f0a0| 68 69 6c 65 20 72 75 6e | 6e 69 6e 67 20 70 72 6f |hile run|ning pro|
|0000f0b0| 67 72 61 6d 73 0d 09 09 | 54 68 69 73 20 73 74 72 |grams...|This str|
|0000f0c0| 69 6e 67 20 73 65 72 76 | 65 73 20 61 73 20 61 20 |ing serv|es as a |
|0000f0d0| 74 69 74 6c 65 2e 0d 09 | 2a 2f 0d 0d 0d 76 6f 69 |title...|*/...voi|
|0000f0e0| 64 20 53 65 74 57 61 69 | 74 54 65 78 74 28 63 6f |d SetWai|tText(co|
|0000f0f0| 6e 73 74 20 53 74 72 32 | 35 35 20 73 31 2c 20 63 |nst Str2|55 s1, c|
|0000f100| 6f 6e 73 74 20 53 74 72 | 32 35 35 20 73 32 2c 20 |onst Str|255 s2, |
|0000f110| 63 6f 6e 73 74 20 53 74 | 72 32 35 35 20 73 33 2c |const St|r255 s3,|
|0000f120| 20 63 6f 6e 73 74 20 53 | 74 72 32 35 35 20 73 34 | const S|tr255 s4|
|0000f130| 2c 20 63 6f 6e 73 74 20 | 53 74 72 32 35 35 20 73 |, const |Str255 s|
|0000f140| 35 2c 20 63 6f 6e 73 74 | 20 53 74 72 32 35 35 20 |5, const| Str255 |
|0000f150| 73 36 29 3b 0d 09 2f 2a | 0d 09 09 77 72 69 74 65 |s6);../*|...write|
|0000f160| 73 20 74 68 65 20 73 74 | 72 69 6e 67 73 20 73 31 |s the st|rings s1|
|0000f170| 2d 73 36 20 69 6e 20 74 | 68 65 20 77 69 6e 64 6f |-s6 in t|he windo|
|0000f180| 77 20 70 75 74 20 75 70 | 20 62 79 20 70 72 6f 66 |w put up| by prof|
|0000f190| 69 74 20 77 68 69 6c 65 | 20 72 75 6e 6e 69 6e 67 |it while| running|
|0000f1a0| 20 70 72 6f 67 72 61 6d | 73 0d 09 09 69 6e 20 61 | program|s...in a|
|0000f1b0| 20 74 77 6f 20 63 6f 6c | 75 6d 6e 73 20 62 79 20 | two col|umns by |
|0000f1c0| 74 68 72 65 65 20 72 6f | 77 20 61 72 72 61 6e 67 |three ro|w arrang|
|0000f1d0| 65 6d 65 6e 74 3a 0d 09 | 09 73 31 09 09 73 32 0d |ement:..|.s1..s2.|
|0000f1e0| 09 09 73 33 09 09 73 34 | 0d 09 09 73 35 09 09 73 |..s3..s4|...s5..s|
|0000f1f0| 36 0d 09 09 55 73 65 20 | 61 6e 20 65 6d 70 74 79 |6...Use |an empty|
|0000f200| 20 73 74 72 69 6e 67 20 | 69 66 20 79 6f 75 20 64 | string |if you d|
|0000f210| 6f 6e 27 74 20 77 61 6e | 74 20 74 6f 20 63 68 61 |on't wan|t to cha|
|0000f220| 6e 67 65 20 69 74 2e 0d | 09 2a 2f 0d 0d 0d 64 6f |nge it..|.*/...do|
|0000f230| 75 62 6c 65 20 4d 61 72 | 6b 65 64 58 28 73 68 6f |uble Mar|kedX(sho|
|0000f240| 72 74 20 69 29 3b 0d 64 | 6f 75 62 6c 65 20 4d 61 |rt i);.d|ouble Ma|
|0000f250| 72 6b 65 64 59 28 73 68 | 6f 72 74 20 69 29 3b 0d |rkedY(sh|ort i);.|
|0000f260| 09 2f 2a 0d 09 72 65 74 | 75 72 6e 20 74 68 65 20 |./*..ret|urn the |
|0000f270| 78 20 61 6e 64 20 79 20 | 63 6f 6f 72 64 69 6e 61 |x and y |coordina|
|0000f280| 74 65 20 6f 66 20 61 20 | 6d 61 72 6b 65 72 20 69 |te of a |marker i|
|0000f290| 6e 20 74 68 65 20 70 72 | 65 76 69 65 77 20 77 69 |n the pr|eview wi|
|0000f2a0| 6e 64 6f 77 2e 0d 09 69 | 20 69 73 20 74 68 65 20 |ndow...i| is the |
|0000f2b0| 69 6e 64 65 78 20 6f 66 | 20 74 68 65 20 6d 61 72 |index of| the mar|
|0000f2c0| 6b 65 72 2e 0d 09 69 20 | 3d 20 30 20 66 6f 72 20 |ker...i |= 0 for |
|0000f2d0| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 6d 61 |the refe|rence ma|
|0000f2e0| 72 6b 65 72 2e 0d 09 2a | 2f 0d 0d 76 6f 69 64 20 |rker...*|/..void |
|0000f2f0| 4d 61 72 6b 65 64 43 6f | 6f 72 64 28 73 68 6f 72 |MarkedCo|ord(shor|
|0000f300| 74 20 69 2c 20 64 6f 75 | 62 6c 65 2a 20 78 2c 20 |t i, dou|ble* x, |
|0000f310| 64 6f 75 62 6c 65 2a 20 | 79 29 3b 0d 09 2f 2a 0d |double* |y);../*.|
|0000f320| 09 72 65 74 75 72 6e 73 | 20 74 68 65 20 78 20 61 |.returns| the x a|
|0000f330| 6e 64 20 79 20 63 6f 6f | 72 64 69 6e 61 74 65 73 |nd y coo|rdinates|
|0000f340| 20 6f 66 20 61 20 6d 61 | 72 6b 65 72 20 69 6e 20 | of a ma|rker in |
|0000f350| 74 68 65 20 70 72 65 76 | 69 65 77 20 77 69 6e 64 |the prev|iew wind|
|0000f360| 6f 77 2e 0d 09 69 20 69 | 73 20 74 68 65 20 69 6e |ow...i i|s the in|
|0000f370| 64 65 78 20 6f 66 20 74 | 68 65 20 6d 61 72 6b 65 |dex of t|he marke|
|0000f380| 72 2e 0d 09 69 20 3d 20 | 30 20 66 6f 72 20 74 68 |r...i = |0 for th|
|0000f390| 65 20 72 65 66 65 72 65 | 6e 63 65 20 6d 61 72 6b |e refere|nce mark|
|0000f3a0| 65 72 2e 0d 09 2a 2f 0d | 0d 0d 76 6f 69 64 20 44 |er...*/.|..void D|
|0000f3b0| 6f 4d 65 6e 75 28 63 6f | 6e 73 74 20 53 74 72 32 |oMenu(co|nst Str2|
|0000f3c0| 35 35 20 73 29 3b 0d 09 | 2f 2a 0d 09 09 65 78 65 |55 s);..|/*...exe|
|0000f3d0| 63 75 74 65 73 20 61 20 | 6d 65 6e 75 20 63 6f 6d |cutes a |menu com|
|0000f3e0| 6d 61 6e 64 2c 20 77 69 | 74 68 20 74 68 65 20 73 |mand, wi|th the s|
|0000f3f0| 61 6d 65 20 65 66 66 65 | 63 74 20 61 73 20 69 66 |ame effe|ct as if|
|0000f400| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 0d 09 09 69 | the com|mand...i|
|0000f410| 73 20 63 68 6f 73 65 6e | 20 62 79 20 68 61 6e 64 |s chosen| by hand|
|0000f420| 2e 0d 09 09 73 20 69 73 | 20 6f 66 20 74 68 65 20 |....s is| of the |
|0000f430| 74 79 70 65 20 27 4d 65 | 6e 75 54 69 74 6c 65 3a |type 'Me|nuTitle:|
|0000f440| 4d 65 6e 75 49 74 65 6d | 27 20 6f 72 20 27 4d 65 |MenuItem|' or 'Me|
|0000f450| 6e 75 54 69 74 6c 65 3a | 53 75 62 6d 65 6e 75 54 |nuTitle:|SubmenuT|
|0000f460| 69 74 6c 65 3a 4d 65 6e | 75 49 74 65 6d 27 0d 09 |itle:Men|uItem'..|
|0000f470| 09 43 61 75 73 65 73 20 | 61 20 72 75 6e 2d 74 69 |.Causes |a run-ti|
|0000f480| 6d 65 20 65 72 72 6f 72 | 20 69 66 20 73 75 63 68 |me error| if such|
|0000f490| 20 61 20 6d 65 6e 75 20 | 69 74 65 6d 20 64 6f 65 | a menu |item doe|
|0000f4a0| 73 20 6e 6f 74 20 65 78 | 69 73 74 2e 0d 09 09 61 |s not ex|ist....a|
|0000f4b0| 64 64 20 22 24 4f 4b 22 | 20 61 74 20 74 68 65 20 |dd "$OK"| at the |
|0000f4c0| 65 6e 64 20 6f 66 20 74 | 68 65 20 73 74 72 69 6e |end of t|he strin|
|0000f4d0| 67 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |g if you| want to|
|0000f4e0| 20 62 79 70 61 73 73 20 | 64 69 61 6c 6f 67 20 62 | bypass |dialog b|
|0000f4f0| 6f 78 65 73 0d 09 09 61 | 6e 64 20 73 69 6d 75 6c |oxes...a|nd simul|
|0000f500| 61 74 65 20 61 20 63 6c | 69 63 6b 20 6f 6e 20 6f |ate a cl|ick on o|
|0000f510| 6b 2e 0d 09 2a 2f 0d 0d | 09 0d 73 68 6f 72 74 20 |k...*/..|..short |
|0000f520| 54 65 73 74 53 74 6f 70 | 28 76 6f 69 64 29 3b 0d |TestStop|(void);.|
|0000f530| 09 2f 2a 20 72 65 74 75 | 72 6e 73 20 31 20 69 66 |./* retu|rns 1 if|
|0000f540| 20 74 68 65 20 75 73 65 | 72 20 69 6e 74 65 72 72 | the use|r interr|
|0000f550| 75 70 74 65 64 20 65 78 | 65 63 75 74 69 6f 6e 20 |upted ex|ecution |
|0000f560| 28 63 6d 64 2d 2e 29 2c | 20 30 20 6f 74 68 65 72 |(cmd-.),| 0 other|
|0000f570| 77 69 73 65 20 2a 2f 0d | 0d 76 6f 69 64 20 53 74 |wise */.|.void St|
|0000f580| 6f 70 45 78 65 63 75 74 | 69 6f 6e 28 76 6f 69 64 |opExecut|ion(void|
|0000f590| 29 3b 0d 09 2f 2a 20 74 | 65 6c 6c 73 20 70 72 6f |);../* t|ells pro|
|0000f5a0| 20 46 69 74 20 74 6f 20 | 73 74 6f 70 20 74 68 65 | Fit to |stop the|
|0000f5b0| 20 65 78 65 63 75 74 69 | 6f 6e 20 61 6e 64 20 6e | executi|on and n|
|0000f5c0| 6f 74 20 63 61 6c 6c 20 | 74 68 65 20 65 78 74 65 |ot call |the exte|
|0000f5d0| 72 6e 61 6c 20 6d 6f 64 | 75 6c 65 0d 09 2f 2a 20 |rnal mod|ule../* |
|0000f5e0| 61 6e 79 6d 6f 72 65 20 | 61 66 74 65 72 20 68 61 |anymore |after ha|
|0000f5f0| 76 69 6e 67 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ving the| current|
|0000f600| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 20 28 | functio|n call (|
|0000f610| 46 69 72 73 74 2c 20 52 | 75 6e 2c 20 65 74 63 2e |First, R|un, etc.|
|0000f620| 29 20 69 73 20 63 6f 6d | 70 6c 65 74 65 64 2e 2a |) is com|pleted.*|
|0000f630| 2f 0d 0d 73 68 6f 72 74 | 20 47 65 74 41 6e 64 53 |/..short| GetAndS|
|0000f640| 65 74 53 74 61 74 75 73 | 28 73 68 6f 72 74 20 6e |etStatus|(short n|
|0000f650| 65 77 53 74 61 74 75 73 | 2c 20 53 74 72 32 35 35 |ewStatus|, Str255|
|0000f660| 20 73 29 3b 0d 09 2f 2a | 20 52 65 74 75 72 6e 73 | s);../*| Returns|
|0000f670| 20 74 68 65 20 70 72 65 | 73 65 6e 74 20 65 78 65 | the pre|sent exe|
|0000f680| 63 75 74 69 6f 6e 20 73 | 74 61 74 75 73 2c 20 74 |cution s|tatus, t|
|0000f690| 68 65 6e 20 73 65 74 73 | 20 69 74 20 74 6f 20 6e |hen sets| it to n|
|0000f6a0| 65 77 53 74 61 74 75 73 | 20 2a 2f 0d 09 2f 2a 20 |ewStatus| */../* |
|0000f6b0| 54 68 65 20 73 74 61 74 | 75 73 20 63 61 6e 20 62 |The stat|us can b|
|0000f6c0| 65 3a 20 2a 2f 0d 09 2f | 2a 09 30 3a 20 69 66 20 |e: */../|*.0: if |
|0000f6d0| 6e 6f 72 6d 61 6c 20 6f | 70 65 72 61 74 69 6f 6e |normal o|peration|
|0000f6e0| 20 2a 2f 0d 09 2f 2a 09 | 31 3a 20 69 66 20 74 68 | */../*.|1: if th|
|0000f6f0| 65 20 75 73 65 72 20 69 | 6e 74 65 72 72 75 70 74 |e user i|nterrupt|
|0000f700| 65 64 20 6f 70 65 72 61 | 74 69 6f 6e 20 2a 2f 0d |ed opera|tion */.|
|0000f710| 09 2f 2a 09 32 3a 20 69 | 66 20 61 20 77 61 72 6e |./*.2: i|f a warn|
|0000f720| 69 6e 67 20 68 61 73 20 | 62 65 65 6e 20 70 6f 73 |ing has |been pos|
|0000f730| 74 65 64 20 2a 2f 0d 09 | 2f 2a 09 33 3a 20 69 66 |ted */..|/*.3: if|
|0000f740| 20 61 20 72 75 6e 2d 74 | 69 6d 65 20 65 72 72 6f | a run-t|ime erro|
|0000f750| 72 20 68 61 73 20 62 65 | 65 6e 20 70 6f 73 74 65 |r has be|en poste|
|0000f760| 64 20 2a 2f 0d 09 2f 2a | 20 53 65 74 20 6e 65 77 |d */../*| Set new|
|0000f770| 53 74 61 74 75 73 20 74 | 6f 20 2d 31 20 69 66 20 |Status t|o -1 if |
|0000f780| 79 6f 75 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 |you don'|t want t|
|0000f790| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 63 75 72 |o change| the cur|
|0000f7a0| 72 65 6e 74 20 73 74 61 | 74 75 73 20 2a 2f 0d 09 |rent sta|tus */..|
|0000f7b0| 2f 2a 20 49 66 20 79 6f | 75 20 73 65 74 20 61 20 |/* If yo|u set a |
|0000f7c0| 73 74 61 74 75 73 20 32 | 20 6f 72 20 33 2c 20 70 |status 2| or 3, p|
|0000f7d0| 61 73 73 20 61 20 73 75 | 69 74 61 62 6c 65 20 65 |ass a su|itable e|
|0000f7e0| 72 72 6f 72 20 6f 72 20 | 77 61 72 6e 69 6e 67 20 |rror or |warning |
|0000f7f0| 6d 65 73 73 61 67 65 20 | 2a 2f 0d 09 2f 2a 20 69 |message |*/../* i|
|0000f800| 6e 20 73 20 49 74 20 77 | 69 6c 6c 20 62 65 20 73 |n s It w|ill be s|
|0000f810| 68 6f 77 6e 20 6f 6e 63 | 65 20 79 6f 75 72 20 6d |hown onc|e your m|
|0000f820| 6f 64 75 6c 65 20 69 73 | 20 66 69 6e 73 68 65 64 |odule is| finshed|
|0000f830| 2e 20 2a 2f 0d 09 2f 2a | 20 4f 6e 20 72 65 74 75 |. */../*| On retu|
|0000f840| 72 6e 2c 20 73 20 68 6f | 6c 64 73 20 74 68 65 20 |rn, s ho|lds the |
|0000f850| 63 75 72 72 65 6e 74 20 | 6d 65 73 73 61 67 65 20 |current |message |
|0000f860| 28 69 66 20 73 74 61 74 | 75 73 20 77 61 73 20 32 |(if stat|us was 2|
|0000f870| 20 6f 72 20 33 29 20 2a | 2f 0d 09 2f 2a 20 4e 6f | or 3) *|/../* No|
|0000f880| 74 65 2c 20 74 68 61 74 | 20 63 61 6c 6c 69 6e 67 |te, that| calling|
|0000f890| 20 53 74 6f 70 45 78 65 | 63 75 74 69 6f 6e 20 69 | StopExe|cution i|
|0000f8a0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|0000f8b0| 73 65 74 74 69 6e 67 20 | 65 72 72 6f 72 20 73 74 |setting |error st|
|0000f8c0| 61 74 75 73 20 2a 2f 0d | 09 2f 2a 20 74 6f 20 31 |atus */.|./* to 1|
|0000f8d0| 20 61 6e 64 20 54 65 73 | 74 53 74 6f 70 20 72 65 | and Tes|tStop re|
|0000f8e0| 74 75 72 6e 73 20 74 72 | 75 65 20 69 66 20 65 72 |turns tr|ue if er|
|0000f8f0| 72 6f 72 20 73 74 61 74 | 75 73 20 69 73 20 31 20 |ror stat|us is 1 |
|0000f900| 6f 72 20 33 20 2a 2f 0d | 0d 2f 2a 2a 2a 2a 2a 2a |or 3 */.|./******|
|0000f910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 2f 2a 2a 2a |********|**/./***|
|0000f960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 20 61 64 76 61 |********|*** adva|
|0000f980| 6e 63 65 64 20 72 6f 75 | 74 69 6e 65 73 20 2a 2a |nced rou|tines **|
|0000f990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|0000f9a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 0d |********|*****/..|
|0000f9b0| 2f 2a 0d 09 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |/*..The |followin|
|0000f9c0| 67 20 72 6f 75 74 69 6e | 65 73 20 61 72 65 20 70 |g routin|es are p|
|0000f9d0| 72 6f 76 69 64 65 64 20 | 66 6f 72 20 74 68 65 20 |rovided |for the |
|0000f9e0| 65 78 70 65 72 69 65 6e | 63 65 64 20 70 72 6f 67 |experien|ced prog|
|0000f9f0| 72 61 6d 6d 65 72 2e 0d | 09 54 68 65 79 20 61 6c |rammer..|.They al|
|0000fa00| 6c 6f 77 20 66 6f 72 20 | 6d 6f 72 65 20 70 6f 77 |low for |more pow|
|0000fa10| 65 72 20 61 6e 64 20 66 | 6c 65 78 69 62 69 6c 69 |er and f|lexibili|
|0000fa20| 74 79 20 77 68 65 6e 20 | 77 72 69 74 69 6e 67 20 |ty when |writing |
|0000fa30| 70 6f 77 65 72 66 75 6c | 0d 09 65 78 74 65 72 6e |powerful|..extern|
|0000fa40| 61 6c 20 6d 6f 64 75 6c | 65 73 2e 0d 2a 2f 0d 0d |al modul|es..*/..|
|0000fa50| 0d 76 6f 69 64 20 48 61 | 6e 64 6c 65 45 76 65 6e |.void Ha|ndleEven|
|0000fa60| 74 28 45 76 65 6e 74 52 | 65 63 6f 72 64 2a 20 63 |t(EventR|ecord* c|
|0000fa70| 6f 6e 73 74 20 74 68 65 | 45 76 65 6e 74 29 3b 0d |onst the|Event);.|
|0000fa80| 09 2f 2a 0d 09 09 50 61 | 73 73 65 73 20 74 68 65 |./*...Pa|sses the|
|0000fa90| 45 76 65 6e 74 20 74 6f | 20 70 72 6f 20 46 69 74 |Event to| pro Fit|
|0000faa0| 20 66 6f 72 20 68 61 6e | 64 6c 69 6e 67 20 69 74 | for han|dling it|
|0000fab0| 2e 20 55 73 65 20 74 68 | 69 73 20 63 61 6c 6c 20 |. Use th|is call |
|0000fac0| 74 6f 0d 09 09 68 61 6e | 64 6c 65 20 75 70 64 61 |to...han|dle upda|
|0000fad0| 74 65 20 65 76 65 6e 74 | 73 20 77 68 65 6e 20 63 |te event|s when c|
|0000fae0| 72 65 61 74 69 6e 67 20 | 79 6f 75 72 20 6f 77 6e |reating |your own|
|0000faf0| 20 77 69 6e 64 6f 77 2e | 0d 09 2a 2f 0d 0d 42 6f | window.|..*/..Bo|
|0000fb00| 6f 6c 65 61 6e 20 43 61 | 6e 63 65 6c 45 76 65 6e |olean Ca|ncelEven|
|0000fb10| 74 28 45 76 65 6e 74 52 | 65 63 6f 72 64 2a 20 63 |t(EventR|ecord* c|
|0000fb20| 6f 6e 73 74 20 74 68 65 | 45 76 65 6e 74 29 3b 0d |onst the|Event);.|
|0000fb30| 09 2f 2a 0d 09 09 72 65 | 74 75 72 6e 73 20 74 72 |./*...re|turns tr|
|0000fb40| 75 65 20 69 66 20 74 68 | 65 45 76 65 6e 74 20 69 |ue if th|eEvent i|
|0000fb50| 73 20 61 20 6b 65 79 2d | 64 6f 77 6e 20 65 76 65 |s a key-|down eve|
|0000fb60| 6e 74 20 66 6f 72 20 74 | 68 65 0d 09 09 65 73 63 |nt for t|he...esc|
|0000fb70| 61 70 65 20 6b 65 79 20 | 6f 72 20 63 6d 64 2d 27 |ape key |or cmd-'|
|0000fb80| 2e 27 20 2e 0d 09 2a 2f | 0d 0d 76 6f 69 64 20 44 |.' ...*/|..void D|
|0000fb90| 65 61 63 74 69 76 61 74 | 65 50 72 6f 46 69 74 57 |eactivat|eProFitW|
|0000fba0| 69 6e 64 6f 77 73 28 76 | 6f 69 64 29 3b 0d 09 2f |indows(v|oid);../|
|0000fbb0| 2a 0d 09 09 44 65 61 63 | 74 69 76 61 74 65 73 20 |*...Deac|tivates |
|0000fbc0| 61 6c 6c 20 6f 66 20 70 | 72 6f 20 46 69 74 27 73 |all of p|ro Fit's|
|0000fbd0| 20 77 69 6e 64 6f 77 73 | 20 61 6e 64 20 64 69 73 | windows| and dis|
|0000fbe0| 61 62 6c 65 73 20 61 6c | 6c 20 6d 65 6e 75 73 2e |ables al|l menus.|
|0000fbf0| 0d 09 09 43 61 6c 6c 20 | 74 68 69 73 20 72 6f 75 |...Call |this rou|
|0000fc00| 74 69 6e 65 20 62 65 66 | 6f 72 65 20 73 68 6f 77 |tine bef|ore show|
|0000fc10| 69 6e 67 20 61 20 77 69 | 6e 64 6f 77 20 6f 72 20 |ing a wi|ndow or |
|0000fc20| 63 72 65 61 74 69 6e 67 | 20 61 20 64 69 61 6c 6f |creating| a dialo|
|0000fc30| 67 2e 0d 09 09 45 61 63 | 68 20 63 61 6c 6c 20 74 |g....Eac|h call t|
|0000fc40| 6f 20 44 65 63 74 69 76 | 61 74 65 50 72 6f 46 69 |o Dectiv|ateProFi|
|0000fc50| 74 57 69 6e 64 6f 77 73 | 20 6d 75 73 74 20 62 65 |tWindows| must be|
|0000fc60| 20 6d 61 74 63 68 65 64 | 20 77 69 74 68 20 61 20 | matched| with a |
|0000fc70| 63 61 6c 6c 20 74 6f 0d | 09 09 41 63 74 69 76 61 |call to.|..Activa|
|0000fc80| 74 65 50 72 6f 46 69 74 | 57 69 6e 64 6f 77 73 28 |teProFit|Windows(|
|0000fc90| 76 6f 69 64 29 0d 09 2a | 2f 0d 0d 76 6f 69 64 20 |void)..*|/..void |
|0000fca0| 41 63 74 69 76 61 74 65 | 50 72 6f 46 69 74 57 69 |Activate|ProFitWi|
|0000fcb0| 6e 64 6f 77 73 28 76 6f | 69 64 29 3b 0d 09 2f 2a |ndows(vo|id);../*|
|0000fcc0| 0d 09 09 41 63 74 69 76 | 61 74 65 73 20 70 72 6f |...Activ|ates pro|
|0000fcd0| 20 46 69 74 27 73 20 66 | 72 6f 6e 74 6d 6f 73 74 | Fit's f|rontmost|
|0000fce0| 20 77 69 6e 64 6f 77 20 | 61 6e 64 20 65 6e 61 62 | window |and enab|
|0000fcf0| 6c 65 73 20 74 68 65 20 | 6d 65 6e 75 73 2e 0d 09 |les the |menus...|
|0000fd00| 09 43 61 6c 6c 20 74 68 | 69 73 20 72 6f 75 74 69 |.Call th|is routi|
|0000fd10| 6e 65 20 61 66 74 65 72 | 20 63 6c 6f 73 69 6e 67 |ne after| closing|
|0000fd20| 20 61 20 77 69 6e 64 6f | 77 20 6f 72 20 61 20 64 | a windo|w or a d|
|0000fd30| 69 61 6c 6f 67 2e 0d 09 | 09 45 61 63 68 20 63 61 |ialog...|.Each ca|
|0000fd40| 6c 6c 20 74 6f 20 41 63 | 74 69 76 61 74 65 50 72 |ll to Ac|tivatePr|
|0000fd50| 6f 46 69 74 57 69 6e 64 | 6f 77 73 20 6d 75 73 74 |oFitWind|ows must|
|0000fd60| 20 62 65 20 70 72 65 63 | 65 64 65 64 20 62 79 20 | be prec|eded by |
|0000fd70| 61 20 63 61 6c 6c 20 74 | 6f 0d 09 09 44 65 63 74 |a call t|o...Dect|
|0000fd80| 69 76 61 74 65 50 72 6f | 46 69 74 57 69 6e 64 6f |ivatePro|FitWindo|
|0000fd90| 77 73 28 76 6f 69 64 29 | 0d 09 2a 2f 0d 0d 46 53 |ws(void)|..*/..FS|
|0000fda0| 53 70 65 63 50 74 72 20 | 47 65 74 4d 6f 64 75 6c |SpecPtr |GetModul|
|0000fdb0| 65 46 69 6c 65 28 76 6f | 69 64 29 3b 0d 09 2f 2a |eFile(vo|id);../*|
|0000fdc0| 0d 09 09 52 65 74 75 72 | 6e 73 20 61 20 70 6f 69 |...Retur|ns a poi|
|0000fdd0| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 46 53 53 70 |nter to |the FSSp|
|0000fde0| 65 63 20 72 65 63 6f 72 | 64 20 6f 66 20 74 68 69 |ec recor|d of thi|
|0000fdf0| 73 20 66 69 6c 65 20 6f | 66 20 74 68 69 73 20 6d |s file o|f this m|
|0000fe00| 6f 64 75 6c 65 2e 0d 09 | 2a 2f 0d 0d 2f 2a 20 61 |odule...|*/../* a|
|0000fe10| 64 76 61 6e 63 65 64 20 | 64 61 74 61 20 61 63 63 |dvanced |data acc|
|0000fe20| 65 73 73 20 72 6f 75 74 | 69 6e 65 73 20 2a 2f 0d |ess rout|ines */.|
|0000fe30| 0d 76 6f 69 64 20 47 65 | 74 43 6f 6c 48 61 6e 64 |.void Ge|tColHand|
|0000fe40| 6c 65 28 6c 6f 6e 67 20 | 63 6f 6c 2c 20 48 61 6e |le(long |col, Han|
|0000fe50| 64 6c 65 2a 20 63 6f 6e | 73 74 20 63 6f 6c 48 2c |dle* con|st colH,|
|0000fe60| 20 6c 6f 6e 67 2a 20 63 | 6f 6e 73 74 20 6c 65 6e | long* c|onst len|
|0000fe70| 67 74 68 2c 20 0d 09 09 | 09 6c 6f 6e 67 2a 20 63 |gth, ...|.long* c|
|0000fe80| 6f 6e 73 74 20 63 6f 6c | 54 79 70 65 2c 20 42 6f |onst col|Type, Bo|
|0000fe90| 6f 6c 65 61 6e 20 66 6f | 72 57 72 69 74 69 6e 67 |olean fo|rWriting|
|0000fea0| 29 3b 0d 09 2f 2a 0d 09 | 09 52 65 74 75 72 6e 73 |);../*..|.Returns|
|0000feb0| 20 61 20 68 61 6e 64 6c | 65 20 28 63 6f 6c 48 29 | a handl|e (colH)|
|0000fec0| 20 74 6f 20 74 68 65 20 | 64 61 74 61 20 6f 66 20 | to the |data of |
|0000fed0| 74 68 65 20 67 69 76 65 | 6e 20 63 6f 6c 75 6d 6e |the give|n column|
|0000fee0| 2e 20 59 6f 75 20 63 61 | 6e 20 72 65 61 64 20 61 |. You ca|n read a|
|0000fef0| 6e 64 2f 6f 72 0d 09 09 | 6d 6f 64 69 66 79 20 74 |nd/or...|modify t|
|0000ff00| 68 65 20 64 61 74 61 20 | 69 6e 20 74 68 65 20 68 |he data |in the h|
|0000ff10| 61 6e 64 6c 65 2e 20 54 | 68 69 73 20 69 73 20 6d |andle. T|his is m|
|0000ff20| 75 63 68 20 66 61 73 74 | 65 72 20 74 68 61 6e 20 |uch fast|er than |
|0000ff30| 61 63 63 65 73 73 69 6e | 67 20 61 20 63 6f 6c 75 |accessin|g a colu|
|0000ff40| 6d 6e 27 73 0d 09 09 64 | 61 74 61 20 74 68 72 6f |mn's...d|ata thro|
|0000ff50| 75 67 68 20 47 65 74 44 | 61 74 61 2f 53 65 74 44 |ugh GetD|ata/SetD|
|0000ff60| 61 74 61 20 61 6e 64 20 | 47 65 74 43 65 6c 6c 2f |ata and |GetCell/|
|0000ff70| 53 65 74 43 65 6c 6c 2e | 20 20 0d 09 09 63 6f 6c |SetCell.| ...col|
|0000ff80| 48 3a 09 09 54 68 65 20 | 68 61 6e 64 6c 65 20 74 |H:..The |handle t|
|0000ff90| 6f 20 74 68 65 20 63 6f | 6c 75 6d 6e 27 73 20 64 |o the co|lumn's d|
|0000ffa0| 61 74 61 2e 20 43 61 6e | 20 62 65 20 6e 69 6c 20 |ata. Can| be nil |
|0000ffb0| 69 66 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |if the c|orrespon|
|0000ffc0| 64 69 6e 67 20 63 6f 6c | 75 6d 6e 0d 09 09 09 09 |ding col|umn.....|
|0000ffd0| 09 69 73 20 65 6d 70 74 | 79 2e 0d 09 09 6c 65 6e |.is empt|y....len|
|0000ffe0| 67 74 68 3a 20 09 74 68 | 65 20 6e 75 6d 62 65 72 |gth: .th|e number|
|0000fff0| 20 6f 66 20 72 6f 77 73 | 20 68 65 6c 64 20 62 79 | of rows| held by|
|00010000| 20 74 68 69 73 20 63 6f | 6c 75 6d 6e 2c 20 70 72 | this co|lumn, pr|
|00010010| 65 73 65 6e 74 6c 79 20 | 61 6c 77 61 79 73 20 65 |esently |always e|
|00010020| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 |qual to |the numb|
|00010030| 65 72 0d 09 09 09 09 09 | 6f 66 20 72 6f 77 73 20 |er......|of rows |
|00010040| 6f 66 20 74 68 65 20 64 | 61 74 61 20 77 69 6e 64 |of the d|ata wind|
|00010050| 6f 77 0d 09 09 66 6f 72 | 57 72 69 74 69 6e 67 3a |ow...for|Writing:|
|00010060| 20 73 65 74 20 74 6f 20 | 74 72 75 65 20 69 66 20 | set to |true if |
|00010070| 79 6f 75 20 69 6e 74 65 | 6e 64 20 74 6f 20 63 68 |you inte|nd to ch|
|00010080| 61 6e 67 65 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ange the| content|
|00010090| 73 20 6f 66 20 74 68 65 | 20 63 6f 6c 75 6d 6e 2c |s of the| column,|
|000100a0| 0d 09 09 09 09 09 73 65 | 74 20 74 6f 20 66 61 6c |......se|t to fal|
|000100b0| 73 65 20 6f 74 68 65 72 | 77 69 73 65 2e 0d 09 09 |se other|wise....|
|000100c0| 63 6f 6c 54 79 70 65 3a | 09 74 68 65 20 74 79 70 |colType:|.the typ|
|000100d0| 65 20 6f 66 20 74 68 65 | 20 63 6f 6c 75 6d 6e 20 |e of the| column |
|000100e0| 28 74 65 78 74 43 6f 6c | 75 6d 6e 2c 20 66 6c 6f |(textCol|umn, flo|
|000100f0| 61 74 43 6f 6c 75 6d 6e | 2c 20 64 6f 75 62 6c 65 |atColumn|, double|
|00010100| 43 6f 6c 75 6d 6e 29 0d | 09 09 49 66 20 79 6f 75 |Column).|..If you|
|00010110| 20 63 68 61 6e 67 65 20 | 74 68 65 20 64 61 74 61 | change |the data|
|00010120| 20 69 6e 20 74 68 65 20 | 72 65 74 75 72 6e 65 64 | in the |returned|
|00010130| 20 68 61 6e 64 6c 65 2c | 20 79 6f 75 20 6d 75 73 | handle,| you mus|
|00010140| 74 20 73 75 62 73 65 71 | 75 65 6e 74 6c 79 20 63 |t subseq|uently c|
|00010150| 61 6c 6c 0d 09 09 53 65 | 74 43 6f 6c 48 61 6e 64 |all...Se|tColHand|
|00010160| 6c 65 2e 0d 09 09 44 6f | 20 6e 65 76 65 72 20 63 |le....Do| never c|
|00010170| 61 6c 6c 20 44 69 73 70 | 6f 73 65 48 61 6e 64 6c |all Disp|oseHandl|
|00010180| 65 28 63 6f 6c 48 29 20 | d1 20 63 6f 6c 48 20 69 |e(colH) |. colH i|
|00010190| 73 20 61 6c 6c 6f 63 61 | 74 65 64 20 61 6e 64 20 |s alloca|ted and |
|000101a0| 64 65 61 6c 6c 6f 63 61 | 74 65 64 20 62 79 20 70 |dealloca|ted by p|
|000101b0| 72 6f 20 46 69 74 2e 0d | 0d 09 09 69 66 20 63 6f |ro Fit..|...if co|
|000101c0| 6c 54 79 70 65 20 3d 20 | 66 6c 6f 61 74 43 6f 6c |lType = |floatCol|
|000101d0| 75 6d 6e 2c 20 63 6f 6c | 48 20 69 73 20 61 20 68 |umn, col|H is a h|
|000101e0| 61 6e 64 6c 65 20 6f 66 | 20 74 79 70 65 20 46 6c |andle of| type Fl|
|000101f0| 6f 61 74 43 6f 6c 75 6d | 6e 48 61 6e 64 6c 65 0d |oatColum|nHandle.|
|00010200| 20 20 09 09 09 28 68 61 | 6e 64 6c 65 20 74 6f 20 | ...(ha|ndle to |
|00010210| 61 6e 20 61 72 72 61 79 | 20 6f 66 20 34 2d 62 79 |an array| of 4-by|
|00010220| 74 65 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |te float|ing poin|
|00010230| 74 20 76 61 6c 75 65 73 | 29 0d 09 09 69 66 20 63 |t values|)...if c|
|00010240| 6f 6c 54 79 70 65 20 3d | 20 64 6f 75 62 6c 65 43 |olType =| doubleC|
|00010250| 6f 6c 75 6d 6e 2c 20 63 | 6f 6c 48 20 69 73 20 6f |olumn, c|olH is o|
|00010260| 66 20 74 79 70 65 20 44 | 6f 75 62 6c 65 43 6f 6c |f type D|oubleCol|
|00010270| 75 6d 6e 48 61 6e 64 6c | 65 0d 09 09 09 28 68 61 |umnHandl|e....(ha|
|00010280| 6e 64 6c 65 20 74 6f 20 | 61 6e 20 61 72 72 61 79 |ndle to |an array|
|00010290| 20 6f 66 20 38 2d 62 79 | 74 65 20 66 6c 6f 61 74 | of 8-by|te float|
|000102a0| 69 6e 67 20 70 6f 69 6e | 74 20 76 61 6c 75 65 73 |ing poin|t values|
|000102b0| 29 0d 09 09 69 66 20 63 | 6f 6c 54 79 70 65 20 3d |)...if c|olType =|
|000102c0| 20 74 65 78 74 43 6f 6c | 75 6d 6e 2c 20 63 6f 6c | textCol|umn, col|
|000102d0| 48 20 69 73 20 6f 66 20 | 74 79 70 65 20 54 65 78 |H is of |type Tex|
|000102e0| 74 43 6f 6c 75 6d 6e 48 | 61 6e 64 6c 65 2e 0d 20 |tColumnH|andle.. |
|000102f0| 20 09 09 09 20 28 68 61 | 6e 64 6c 65 20 74 6f 20 | ... (ha|ndle to |
|00010300| 61 20 72 65 63 6f 72 64 | 20 6f 66 20 74 79 70 65 |a record| of type|
|00010310| 20 53 74 72 69 6e 67 44 | 61 74 61 29 0d 0d 09 09 | StringD|ata)....|
|00010320| 4e 6f 74 65 3a 20 46 6f | 72 20 63 6f 6c 75 6d 6e |Note: Fo|r column|
|00010330| 73 20 6f 66 20 74 79 70 | 65 20 66 6c 6f 61 74 43 |s of typ|e floatC|
|00010340| 6f 6c 75 6d 6e 20 61 6e | 64 20 64 6f 75 62 6c 65 |olumn an|d double|
|00010350| 43 6f 6c 75 6d 6e 2c 20 | 74 68 65 20 66 69 72 73 |Column, |the firs|
|00010360| 74 20 65 6e 74 72 79 20 | 6f 66 20 74 68 65 0d 09 |t entry |of the..|
|00010370| 09 61 72 72 61 79 20 69 | 73 20 72 65 73 65 72 76 |.array i|s reserv|
|00010380| 65 64 2e 20 54 68 65 20 | 76 61 6c 75 65 20 6f 66 |ed. The |value of|
|00010390| 20 74 68 65 20 66 69 72 | 73 74 20 63 65 6c 6c 20 | the fir|st cell |
|000103a0| 69 73 20 66 6f 75 6e 64 | 20 69 6e 20 74 68 65 20 |is found| in the |
|000103b0| 61 72 72 61 79 20 65 6c | 65 6d 65 6e 74 0d 09 09 |array el|ement...|
|000103c0| 68 61 76 69 6e 67 20 69 | 6e 64 65 78 20 31 2e 0d |having i|ndex 1..|
|000103d0| 0d 09 09 57 61 72 6e 69 | 6e 67 3a 20 54 68 69 73 |...Warni|ng: This|
|000103e0| 20 72 6f 75 74 69 6e 65 | 20 73 68 6f 75 6c 64 20 | routine| should |
|000103f0| 62 79 20 75 73 65 64 20 | 62 79 20 65 78 70 65 72 |by used |by exper|
|00010400| 69 65 6e 63 65 64 20 70 | 72 6f 67 72 61 6d 6d 65 |ienced p|rogramme|
|00010410| 72 73 20 6f 6e 6c 79 2e | 0d 09 09 57 61 72 6e 69 |rs only.|...Warni|
|00010420| 6e 67 3a 20 41 63 63 65 | 73 73 69 6e 67 20 74 65 |ng: Acce|ssing te|
|00010430| 78 74 20 63 6f 6c 75 6d | 6e 73 20 69 6e 20 74 68 |xt colum|ns in th|
|00010440| 69 73 20 77 61 79 20 69 | 73 20 5f 6e 6f 74 5f 20 |is way i|s _not_ |
|00010450| 72 65 63 6f 6d 6d 65 6e | 64 65 64 2e 20 54 68 65 |recommen|ded. The|
|00010460| 20 0d 09 09 09 09 20 64 | 65 66 69 6e 69 74 69 6f | ..... d|efinitio|
|00010470| 6e 20 6f 66 20 74 68 65 | 20 64 61 74 61 20 73 74 |n of the| data st|
|00010480| 72 75 63 74 75 72 65 20 | 6d 61 79 20 63 68 61 6e |ructure |may chan|
|00010490| 67 65 20 69 6e 20 74 68 | 65 20 66 75 74 75 72 65 |ge in th|e future|
|000104a0| 2e 0d 0d 09 09 57 68 69 | 6c 65 20 79 6f 75 20 61 |.....Whi|le you a|
|000104b0| 72 65 20 77 6f 72 6b 69 | 6e 67 20 6f 6e 20 74 68 |re worki|ng on th|
|000104c0| 65 20 64 61 74 61 20 69 | 6e 20 63 6f 6c 48 2c 20 |e data i|n colH, |
|000104d0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 6e 6f 74 20 63 |you shou|ld not c|
|000104e0| 61 6c 6c 20 61 6e 79 20 | 6f 74 68 65 72 0d 09 09 |all any |other...|
|000104f0| 72 6f 75 74 69 6e 65 73 | 20 61 63 63 65 73 73 69 |routines| accessi|
|00010500| 6e 67 20 74 68 65 20 64 | 61 74 61 20 77 69 6e 64 |ng the d|ata wind|
|00010510| 6f 77 20 65 78 63 65 70 | 74 20 47 65 74 43 6f 6c |ow excep|t GetCol|
|00010520| 75 6d 6e 48 61 6e 64 6c | 65 20 61 6e 64 20 53 65 |umnHandl|e and Se|
|00010530| 74 43 6f 6c 75 6d 6e 48 | 61 6e 64 6c 65 2e 0d 09 |tColumnH|andle...|
|00010540| 09 57 68 65 6e 20 79 6f | 75 20 6d 6f 64 69 66 79 |.When yo|u modify|
|00010550| 20 74 68 65 20 64 61 74 | 61 20 69 6e 20 63 6f 6c | the dat|a in col|
|00010560| 48 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 61 76 |H, you s|hould av|
|00010570| 6f 69 64 20 63 61 6c 6c | 69 6e 67 20 61 6e 79 20 |oid call|ing any |
|00010580| 70 72 6f 20 46 69 74 20 | 72 6f 75 74 69 6e 65 73 |pro Fit |routines|
|00010590| 0d 09 09 75 6e 74 69 6c | 20 79 6f 75 20 68 61 76 |...until| you hav|
|000105a0| 65 20 63 61 6c 6c 65 64 | 20 53 65 74 43 6f 6c 48 |e called| SetColH|
|000105b0| 61 6e 64 6c 65 20 d1 20 | 69 66 20 79 6f 75 20 77 |andle . |if you w|
|000105c0| 61 6e 74 20 74 6f 20 63 | 61 6c 6c 20 6f 74 68 65 |ant to c|all othe|
|000105d0| 72 20 70 72 6f 20 46 69 | 74 20 72 6f 75 74 69 6e |r pro Fi|t routin|
|000105e0| 65 73 2c 0d 09 09 66 69 | 72 73 74 20 6d 61 6b 65 |es,...fi|rst make|
|000105f0| 20 61 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 64 | a copy |of the d|
|00010600| 61 74 61 20 62 79 20 75 | 73 69 6e 67 20 48 61 6e |ata by u|sing Han|
|00010610| 64 54 6f 48 61 6e 64 3b | 20 6f 6e 63 65 20 79 6f |dToHand;| once yo|
|00010620| 75 20 68 61 76 65 20 6d | 61 64 65 20 61 6c 6c 0d |u have m|ade all.|
|00010630| 09 09 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 73 20 |..modifi|cations |
|00010640| 74 6f 20 74 68 65 20 64 | 61 74 61 2c 20 63 61 6c |to the d|ata, cal|
|00010650| 6c 20 53 65 74 43 6f 6c | 48 61 6e 64 6c 65 2e 0d |l SetCol|Handle..|
|00010660| 09 2a 2f 0d 0d 76 6f 69 | 64 20 53 65 74 43 6f 6c |.*/..voi|d SetCol|
|00010670| 48 61 6e 64 6c 65 28 6c | 6f 6e 67 20 63 6f 6c 2c |Handle(l|ong col,|
|00010680| 20 48 61 6e 64 6c 65 20 | 63 6f 6c 48 29 3b 0d 09 | Handle |colH);..|
|00010690| 2f 2a 0d 09 09 53 65 74 | 73 20 61 20 67 69 76 65 |/*...Set|s a give|
|000106a0| 6e 20 63 6f 6c 75 6d 6e | 20 74 6f 20 74 68 65 20 |n column| to the |
|000106b0| 64 61 74 61 20 69 6e 20 | 63 6f 6c 48 2e 20 0d 09 |data in |colH. ..|
|000106c0| 09 54 68 65 20 6f 72 67 | 61 6e 69 7a 61 74 69 6f |.The org|anizatio|
|000106d0| 6e 20 6f 66 20 74 68 65 | 20 64 61 74 61 20 69 6e |n of the| data in|
|000106e0| 20 63 6f 6c 48 20 64 65 | 70 65 6e 64 73 20 6f 6e | colH de|pends on|
|000106f0| 20 74 68 65 20 64 61 74 | 61 20 74 79 70 65 20 6f | the dat|a type o|
|00010700| 66 20 74 68 65 20 63 6f | 6c 75 6d 6e 3a 0d 20 09 |f the co|lumn:. .|
|00010710| 09 69 66 20 66 6c 6f 61 | 74 43 6f 6c 75 6d 6e 2c |.if floa|tColumn,|
|00010720| 20 63 6f 6c 48 20 69 73 | 20 61 20 68 61 6e 64 6c | colH is| a handl|
|00010730| 65 20 6f 66 20 74 79 70 | 65 20 46 6c 6f 61 74 43 |e of typ|e FloatC|
|00010740| 6f 6c 75 6d 6e 48 61 6e | 64 6c 65 0d 20 09 09 09 |olumnHan|dle. ...|
|00010750| 20 28 68 61 6e 64 6c 65 | 20 74 6f 20 61 6e 20 61 | (handle| to an a|
|00010760| 72 72 61 79 20 6f 66 20 | 34 2d 62 79 74 65 20 66 |rray of |4-byte f|
|00010770| 6c 6f 61 74 69 6e 67 20 | 70 6f 69 6e 74 20 76 61 |loating |point va|
|00010780| 6c 75 65 73 29 0d 09 09 | 69 66 20 64 6f 75 62 6c |lues)...|if doubl|
|00010790| 65 43 6f 6c 75 6d 6e 2c | 20 63 6f 6c 48 20 69 73 |eColumn,| colH is|
|000107a0| 20 6f 66 20 74 79 70 65 | 20 44 6f 75 62 6c 65 43 | of type| DoubleC|
|000107b0| 6f 6c 75 6d 6e 48 61 6e | 64 6c 65 0d 09 09 09 28 |olumnHan|dle....(|
|000107c0| 68 61 6e 64 6c 65 20 74 | 6f 20 61 6e 20 61 72 72 |handle t|o an arr|
|000107d0| 61 79 20 6f 66 20 38 2d | 62 79 74 65 20 66 6c 6f |ay of 8-|byte flo|
|000107e0| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 76 61 6c 75 |ating po|int valu|
|000107f0| 65 73 29 0d 09 09 69 66 | 20 74 65 78 74 43 6f 6c |es)...if| textCol|
|00010800| 75 6d 6e 2c 20 63 6f 6c | 48 20 69 73 20 6f 66 20 |umn, col|H is of |
|00010810| 74 79 70 65 20 54 65 78 | 74 43 6f 6c 75 6d 6e 48 |type Tex|tColumnH|
|00010820| 61 6e 64 6c 65 2e 0d 09 | 09 09 28 68 61 6e 64 6c |andle...|..(handl|
|00010830| 65 20 74 6f 20 61 20 72 | 65 63 6f 72 64 20 6f 66 |e to a r|ecord of|
|00010840| 20 74 79 70 65 20 53 74 | 72 69 6e 67 44 61 74 61 | type St|ringData|
|00010850| 29 0d 09 09 28 54 6f 20 | 67 65 74 20 61 20 63 6f |)...(To |get a co|
|00010860| 6c 75 6d 6e 27 73 20 74 | 79 70 65 2c 20 63 61 6c |lumn's t|ype, cal|
|00010870| 6c 20 47 65 74 43 6f 6c | 54 79 70 65 29 0d 0d 09 |l GetCol|Type)...|
|00010880| 09 4f 6e 63 65 20 79 6f | 75 20 63 61 6c 6c 20 53 |.Once yo|u call S|
|00010890| 65 74 43 6f 6c 48 61 6e | 64 6c 65 2c 20 74 68 65 |etColHan|dle, the|
|000108a0| 20 68 61 6e 64 6c 65 20 | 62 65 63 6f 6d 65 73 20 | handle |becomes |
|000108b0| 70 72 6f 70 65 72 74 79 | 20 6f 66 20 70 72 6f 20 |property| of pro |
|000108c0| 46 69 74 20 d1 20 64 6f | 0d 09 09 6e 6f 74 20 64 |Fit . do|...not d|
|000108d0| 69 73 70 6f 73 65 20 69 | 74 2e 0d 09 09 63 6f 6c |ispose i|t....col|
|000108e0| 48 20 63 61 6e 20 65 69 | 74 68 65 72 20 62 65 3a |H can ei|ther be:|
|000108f0| 0d 20 09 09 20 2d 20 61 | 20 68 61 6e 64 6c 65 20 |. .. - a| handle |
|00010900| 74 68 61 74 20 79 6f 75 | 20 61 6c 6c 6f 63 61 74 |that you| allocat|
|00010910| 65 64 20 79 6f 75 72 73 | 65 6c 66 2e 20 49 6e 20 |ed yours|elf. In |
|00010920| 74 68 69 73 20 63 61 73 | 65 2c 20 74 68 65 20 48 |this cas|e, the H|
|00010930| 61 6e 64 6c 65 27 73 20 | 73 69 7a 65 20 6d 75 73 |andle's |size mus|
|00010940| 74 20 62 65 3a 0d 09 09 | 09 34 2a 28 6e 72 52 6f |t be:...|.4*(nrRo|
|00010950| 77 73 2b 31 29 20 66 6f | 72 20 63 6f 6c 75 6d 6e |ws+1) fo|r column|
|00010960| 73 20 6f 66 20 74 79 70 | 65 20 66 6c 6f 61 74 43 |s of typ|e floatC|
|00010970| 6f 6c 75 6d 6e 0d 09 09 | 09 38 2a 28 6e 72 52 6f |olumn...|.8*(nrRo|
|00010980| 77 73 2b 31 29 20 66 6f | 72 20 63 6f 6c 75 6d 6e |ws+1) fo|r column|
|00010990| 73 20 6f 66 20 74 79 70 | 65 20 64 6f 75 62 6c 65 |s of typ|e double|
|000109a0| 43 6f 6c 75 6d 6e 0d 09 | 09 09 31 34 20 2b 20 73 |Column..|..14 + s|
|000109b0| 69 7a 65 20 6f 66 20 61 | 6c 6c 20 73 74 72 69 6e |ize of a|ll strin|
|000109c0| 67 73 20 66 6f 72 20 63 | 6f 6c 75 6d 6e 73 20 6f |gs for c|olumns o|
|000109d0| 66 20 74 79 70 65 20 74 | 65 78 74 43 6f 6c 75 6d |f type t|extColum|
|000109e0| 6e 0d 20 09 09 20 2d 20 | 61 20 68 61 6e 64 6c 65 |n. .. - |a handle|
|000109f0| 20 74 68 61 74 20 79 6f | 75 20 6f 62 74 61 69 6e | that yo|u obtain|
|00010a00| 65 64 20 66 72 6f 6d 20 | 47 65 74 43 6f 6c 48 61 |ed from |GetColHa|
|00010a10| 6e 64 6c 65 0d 09 09 20 | 2d 20 6e 69 6c 20 69 66 |ndle... |- nil if|
|00010a20| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 63 6c 65 | you wan|t to cle|
|00010a30| 61 72 20 74 68 65 20 67 | 69 76 65 6e 20 63 6f 6c |ar the g|iven col|
|00010a40| 75 6d 6e 0d 0d 09 09 57 | 61 72 6e 69 6e 67 3a 20 |umn....W|arning: |
|00010a50| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 73 68 6f |This rou|tine sho|
|00010a60| 75 6c 64 20 62 79 20 75 | 73 65 64 20 62 79 20 65 |uld by u|sed by e|
|00010a70| 78 70 65 72 69 65 6e 63 | 65 64 20 70 72 6f 67 72 |xperienc|ed progr|
|00010a80| 61 6d 6d 65 72 73 20 6f | 6e 6c 79 2e 0d 09 09 57 |ammers o|nly....W|
|00010a90| 61 72 6e 69 6e 67 3a 20 | 41 63 63 65 73 73 69 6e |arning: |Accessin|
|00010aa0| 67 20 74 65 78 74 20 63 | 6f 6c 75 6d 6e 73 20 69 |g text c|olumns i|
|00010ab0| 6e 20 74 68 69 73 20 77 | 61 79 20 69 73 20 5f 6e |n this w|ay is _n|
|00010ac0| 6f 74 5f 20 72 65 63 6f | 6d 6d 65 6e 64 65 64 2e |ot_ reco|mmended.|
|00010ad0| 20 54 68 65 20 0d 09 09 | 09 09 20 64 65 66 69 6e | The ...|.. defin|
|00010ae0| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 64 61 74 |ition of| the dat|
|00010af0| 61 20 73 74 72 75 63 74 | 75 72 65 20 6d 61 79 20 |a struct|ure may |
|00010b00| 63 68 61 6e 67 65 20 69 | 6e 20 74 68 65 20 66 75 |change i|n the fu|
|00010b10| 74 75 72 65 2e 0d 09 2a | 2f 0d 0d 0d 0d 23 65 6e |ture...*|/....#en|
|00010b20| 64 69 66 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |dif.....|........|
|00010b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010b80| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00010b90| 00 00 21 74 0d 54 65 73 | 74 50 72 6f 67 72 61 6d |..!t.Tes|tProgram|
|00010ba0| 2e 70 02 00 00 00 54 45 | 58 54 50 4a 4d 4d 01 00 |.p....TE|XTPJMM..|
|00010bb0| 12 70 72 6f 46 69 74 5f | 69 6e 74 65 72 66 61 63 |.proFit_|interfac|
|00010bc0| 65 2e 68 66 02 00 00 00 | 54 45 58 54 4b 41 48 4c |e.hf....|TEXTKAHL|
|00010bd0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ec 00 00 |..TEXTKA|HL......|
|00010be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010bf0| 00 00 a9 31 11 cc 00 01 | 0a a4 00 00 01 c8 00 00 |...1....|........|
|00010c00| 00 00 00 00 00 00 00 00 | 13 00 00 00 21 74 0d 54 |........|....!t.T|
|00010c10| 65 73 74 50 72 6f 67 72 | 61 6d 2e b9 02 00 00 00 |estProgr|am......|
|00010c20| 51 50 52 4a 50 4a 4d 4d | 01 00 00 68 01 40 00 00 |QPRJPJMM|...h.@..|
|00010c30| 00 00 21 7d 00 00 00 00 | 00 00 00 00 00 00 00 00 |..!}....|........|
|00010c40| 00 00 1b dd 00 00 20 00 | a2 70 5a 67 a9 a9 60 20 |...... .|.pZg..` |
|00010c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010c70| 00 00 37 5f 00 01 00 00 | 00 00 00 00 00 00 00 00 |..7_....|........|
|00010c80| 00 00 00 1e 00 3c 00 24 | 03 63 02 3d 00 3c 00 24 |.....<.$|.c.=.<.$|
|00010c90| 03 63 02 3d 00 00 0d d9 | 00 00 00 00 00 00 00 00 |.c.=....|........|
|00010ca0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|00010cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010cc0| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 6a 00 2b |........|.....j.+|
|00010cd0| 02 d4 02 7e 00 6a 00 2b | 02 d4 02 7e ad d6 14 81 |...~.j.+|...~....|
|00010ce0| 00 00 e8 51 00 00 e8 51 | 00 00 e4 2c 00 00 00 00 |...Q...Q|...,....|
|00010cf0| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00010d00| 00 76 00 00 00 52 02 8e | b7 a8 1f 38 00 00 00 1c |.v...R..|...8....|
|00010d10| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|00010d20| 00 00 00 2a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...*....|........|
|00010d30| 03 ed ff ff 00 00 00 22 | 00 00 00 00 03 f0 ff ff |......."|........|
|00010d40| 00 00 00 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|00010d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00010d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+