home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Internet / Misc / InternetConfigProgKit1.0.sit / ICProgKit1.0 / Examples / PExample.p < prev    next >
MacBinary  |  1994-03-27  |  2.1 KB  |  [TEXT/PJMM]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Mar 27 00:13:41 1994, modified Sun Mar 27 00:13:41 1994, creator Think Pascal, type ASCII, 1470 bytes "PExample.p" , at 0x63e 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[PJMM]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 50 45 78 61 6d 70 | 6c 65 2e 70 00 00 00 00 |..PExamp|le.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 4a 4d | 4d 01 00 00 00 00 00 00 |.TEXTPJM|M.......|
|00000050| 00 00 00 00 00 05 be 00 | 00 01 ac a9 ba c6 85 a9 |........|........|
|00000060| ba c6 85 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9a d7 00 00 |........|........|
|00000080| 70 72 6f 67 72 61 6d 20 | 50 45 78 61 6d 70 6c 65 |program |PExample|
|00000090| 3b 0d 0d 09 75 73 65 73 | 0d 7b 24 69 66 63 20 75 |;...uses|.{$ifc u|
|000000a0| 6e 64 65 66 69 6e 65 64 | 20 54 48 49 4e 4b 5f 50 |ndefined| THINK_P|
|000000b0| 61 73 63 61 6c 7d 0d 09 | 09 54 79 70 65 73 2c 20 |ascal}..|.Types, |
|000000c0| 46 69 6c 65 73 2c 20 50 | 61 63 6b 61 67 65 73 2c |Files, P|ackages,|
|000000d0| 20 41 6c 69 61 73 65 73 | 2c 20 0d 7b 24 65 6e 64 | Aliases|, .{$end|
|000000e0| 63 7d 0d 09 09 49 43 54 | 79 70 65 73 2c 20 49 43 |c}...ICT|ypes, IC|
|000000f0| 41 50 49 2c 20 49 43 4b | 65 79 73 3b 0d 0d 09 76 |API, ICK|eys;...v|
|00000100| 61 72 0d 09 09 69 6e 73 | 74 3a 20 49 43 49 6e 73 |ar...ins|t: ICIns|
|00000110| 74 61 6e 63 65 3b 0d 0d | 09 70 72 6f 63 65 64 75 |tance;..|.procedu|
|00000120| 72 65 20 44 75 6d 70 50 | 72 65 66 73 3b 0d 09 09 |re DumpP|refs;...|
|00000130| 76 61 72 0d 09 09 09 63 | 6f 75 6e 74 3a 20 6c 6f |var....c|ount: lo|
|00000140| 6e 67 69 6e 74 3b 0d 09 | 09 09 69 3a 20 6c 6f 6e |ngint;..|..i: lon|
|00000150| 67 69 6e 74 3b 0d 09 09 | 09 6b 65 79 3a 20 53 74 |gint;...|.key: St|
|00000160| 72 32 35 35 3b 0d 09 62 | 65 67 69 6e 0d 09 09 77 |r255;..b|egin...w|
|00000170| 72 69 74 65 6c 6e 28 27 | 49 43 43 6f 75 6e 74 50 |riteln('|ICCountP|
|00000180| 72 65 66 3a 20 27 2c 20 | 49 43 43 6f 75 6e 74 50 |ref: ', |ICCountP|
|00000190| 72 65 66 28 69 6e 73 74 | 2c 20 63 6f 75 6e 74 29 |ref(inst|, count)|
|000001a0| 20 3a 20 31 29 3b 0d 09 | 09 66 6f 72 20 69 20 3a | : 1);..|.for i :|
|000001b0| 3d 20 31 20 74 6f 20 63 | 6f 75 6e 74 20 64 6f 20 |= 1 to c|ount do |
|000001c0| 62 65 67 69 6e 0d 09 09 | 09 77 72 69 74 65 28 27 |begin...|.write('|
|000001d0| 20 20 49 43 47 65 74 49 | 6e 64 50 72 65 66 3a 20 | ICGetI|ndPref: |
|000001e0| 27 2c 20 49 43 47 65 74 | 49 6e 64 50 72 65 66 28 |', ICGet|IndPref(|
|000001f0| 69 6e 73 74 2c 20 69 2c | 20 6b 65 79 29 20 3a 20 |inst, i,| key) : |
|00000200| 31 2c 20 27 20 2d 20 27 | 29 3b 0d 09 09 09 77 72 |1, ' - '|);....wr|
|00000210| 69 74 65 6c 6e 28 6b 65 | 79 29 3b 0d 09 09 65 6e |iteln(ke|y);...en|
|00000220| 64 3b 20 28 2a 20 66 6f | 72 20 2a 29 0d 09 65 6e |d; (* fo|r *)..en|
|00000230| 64 3b 20 28 2a 20 44 75 | 6d 70 50 72 65 66 73 20 |d; (* Du|mpPrefs |
|00000240| 2a 29 0d 0d 09 76 61 72 | 0d 09 09 66 6f 6c 64 65 |*)...var|...folde|
|00000250| 72 5f 73 70 65 63 3a 20 | 49 43 44 69 72 53 70 65 |r_spec: |ICDirSpe|
|00000260| 63 41 72 72 61 79 3b 0d | 09 09 65 6d 61 69 6c 5f |cArray;.|..email_|
|00000270| 61 64 64 72 65 73 73 3a | 20 53 74 72 32 35 35 3b |address:| Str255;|
|00000280| 0d 09 09 61 74 74 72 3a | 20 6c 6f 6e 67 69 6e 74 |...attr:| longint|
|00000290| 3b 0d 09 09 73 69 7a 65 | 3a 20 6c 6f 6e 67 69 6e |;...size|: longin|
|000002a0| 74 3b 0d 09 09 73 65 65 | 64 3a 20 6c 6f 6e 67 69 |t;...see|d: longi|
|000002b0| 6e 74 3b 0d 09 09 6d 61 | 70 70 69 6e 67 73 3a 20 |nt;...ma|ppings: |
|000002c0| 68 61 6e 64 6c 65 3b 0d | 09 09 65 6e 74 72 79 3a |handle;.|..entry:|
|000002d0| 20 49 43 4d 61 70 45 6e | 74 72 79 3b 0d 62 65 67 | ICMapEn|try;.beg|
|000002e0| 69 6e 0d 7b 24 69 66 63 | 20 6e 6f 74 20 75 6e 64 |in.{$ifc| not und|
|000002f0| 65 66 69 6e 65 64 20 54 | 48 49 4e 4b 5f 50 61 73 |efined T|HINK_Pas|
|00000300| 63 61 6c 7d 0d 09 53 68 | 6f 77 54 65 78 74 3b 0d |cal}..Sh|owText;.|
|00000310| 7b 24 65 6e 64 63 7d 0d | 09 77 72 69 74 65 6c 6e |{$endc}.|.writeln|
|00000320| 28 27 49 43 53 74 61 72 | 74 3a 20 27 2c 20 49 43 |('ICStar|t: ', IC|
|00000330| 53 74 61 72 74 28 69 6e | 73 74 2c 20 27 43 52 45 |Start(in|st, 'CRE|
|00000340| 41 27 29 20 3a 20 31 29 | 3b 09 09 28 2a 20 74 65 |A') : 1)|;..(* te|
|00000350| 6c 6c 20 69 74 20 79 6f | 75 72 20 61 70 70 6c 69 |ll it yo|ur appli|
|00000360| 63 61 74 69 6f 6e 20 63 | 72 65 61 74 6f 72 20 2a |cation c|reator *|
|00000370| 29 0d 09 66 6f 6c 64 65 | 72 5f 73 70 65 63 5b 30 |)..folde|r_spec[0|
|00000380| 5d 2e 76 52 65 66 4e 75 | 6d 20 3a 3d 20 2d 31 3b |].vRefNu|m := -1;|
|00000390| 09 09 09 09 09 09 09 09 | 28 2a 20 73 65 61 72 63 |........|(* searc|
|000003a0| 68 20 66 6f 72 20 70 72 | 65 66 73 20 69 6e 20 72 |h for pr|efs in r|
|000003b0| 6f 6f 74 20 6f 66 20 74 | 68 65 20 73 79 73 74 65 |oot of t|he syste|
|000003c0| 6d 20 2a 29 0d 09 66 6f | 6c 64 65 72 5f 73 70 65 |m *)..fo|lder_spe|
|000003d0| 63 5b 30 5d 2e 64 69 72 | 49 44 20 3a 3d 20 32 3b |c[0].dir|ID := 2;|
|000003e0| 09 09 09 09 09 09 09 09 | 09 09 28 2a 20 76 6f 6c |........|..(* vol|
|000003f0| 75 6d 65 2c 20 6f 62 76 | 69 6f 75 73 6c 79 20 79 |ume, obv|iously y|
|00000400| 6f 75 27 64 20 75 73 65 | 20 6f 74 68 65 72 20 74 |ou'd use| other t|
|00000410| 68 69 6e 67 73 20 2a 29 | 0d 09 77 72 69 74 65 6c |hings *)|..writel|
|00000420| 6e 28 27 49 43 46 69 6e | 64 43 6f 6e 66 69 67 46 |n('ICFin|dConfigF|
|00000430| 69 6c 65 3a 20 27 2c 20 | 49 43 46 69 6e 64 43 6f |ile: ', |ICFindCo|
|00000440| 6e 66 69 67 46 69 6c 65 | 28 69 6e 73 74 2c 20 31 |nfigFile|(inst, 1|
|00000450| 2c 20 40 66 6f 6c 64 65 | 72 5f 73 70 65 63 29 20 |, @folde|r_spec) |
|00000460| 3a 20 31 29 3b 0d 0d 09 | 77 72 69 74 65 6c 6e 28 |: 1);...|writeln(|
|00000470| 27 49 43 42 65 67 69 6e | 3a 20 27 2c 20 49 43 42 |'ICBegin|: ', ICB|
|00000480| 65 67 69 6e 28 69 6e 73 | 74 2c 20 69 63 52 65 61 |egin(ins|t, icRea|
|00000490| 64 57 72 69 74 65 50 65 | 72 6d 29 20 3a 20 31 29 |dWritePe|rm) : 1)|
|000004a0| 3b 0d 09 73 69 7a 65 20 | 3a 3d 20 73 69 7a 65 6f |;..size |:= sizeo|
|000004b0| 66 28 65 6d 61 69 6c 5f | 61 64 64 72 65 73 73 29 |f(email_|address)|
|000004c0| 3b 0d 09 77 72 69 74 65 | 6c 6e 28 27 49 43 47 65 |;..write|ln('ICGe|
|000004d0| 74 50 72 65 66 3a 20 27 | 2c 20 49 43 47 65 74 50 |tPref: '|, ICGetP|
|000004e0| 72 65 66 28 69 6e 73 74 | 2c 20 6b 49 43 45 6d 61 |ref(inst|, kICEma|
|000004f0| 69 6c 2c 20 61 74 74 72 | 2c 20 40 65 6d 61 69 6c |il, attr|, @email|
|00000500| 5f 61 64 64 72 65 73 73 | 2c 20 73 69 7a 65 29 20 |_address|, size) |
|00000510| 3a 20 31 29 3b 0d 09 77 | 72 69 74 65 6c 6e 28 27 |: 1);..w|riteln('|
|00000520| 59 6f 75 72 20 45 6d 61 | 69 6c 20 61 64 64 72 65 |Your Ema|il addre|
|00000530| 73 73 20 69 73 20 27 2c | 20 65 6d 61 69 6c 5f 61 |ss is ',| email_a|
|00000540| 64 64 72 65 73 73 29 3b | 0d 0d 09 44 75 6d 70 50 |ddress);|...DumpP|
|00000550| 72 65 66 73 3b 0d 09 77 | 72 69 74 65 6c 6e 28 27 |refs;..w|riteln('|
|00000560| 49 43 45 6e 64 3a 20 27 | 2c 20 49 43 45 6e 64 28 |ICEnd: '|, ICEnd(|
|00000570| 69 6e 73 74 29 20 3a 20 | 31 29 3b 0d 0d 09 77 72 |inst) : |1);...wr|
|00000580| 69 74 65 6c 6e 28 27 49 | 43 47 65 74 53 65 65 64 |iteln('I|CGetSeed|
|00000590| 3a 20 27 2c 20 49 43 47 | 65 74 53 65 65 64 28 69 |: ', ICG|etSeed(i|
|000005a0| 6e 73 74 2c 20 73 65 65 | 64 29 20 3a 20 31 2c 20 |nst, see|d) : 1, |
|000005b0| 27 20 3d 20 27 2c 20 73 | 65 65 64 20 3a 20 31 29 |' = ', s|eed : 1)|
|000005c0| 3b 0d 09 28 2a 20 6e 6f | 77 20 6d 6f 6e 69 74 6f |;..(* no|w monito|
|000005d0| 72 20 74 68 69 73 20 73 | 65 65 64 20 74 6f 20 73 |r this s|eed to s|
|000005e0| 65 65 20 69 66 20 61 6e | 79 20 70 72 65 66 65 72 |ee if an|y prefer|
|000005f0| 65 6e 63 65 73 20 68 61 | 76 65 20 63 68 61 6e 67 |ences ha|ve chang|
|00000600| 65 64 20 2a 29 0d 0d 09 | 77 72 69 74 65 6c 6e 28 |ed *)...|writeln(|
|00000610| 27 49 43 53 74 6f 70 3a | 20 27 2c 20 49 43 53 74 |'ICStop:| ', ICSt|
|00000620| 6f 70 28 69 6e 73 74 29 | 29 3b 0d 65 6e 64 2e 20 |op(inst)|);.end. |
|00000630| 28 2a 20 50 45 78 61 6d | 70 6c 65 20 2a 29 00 00 |(* PExam|ple *)..|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000690| 33 45 38 30 3b 0d 46 55 | 4e 43 54 49 4f 4e 20 50 |3E80;.FU|NCTION P|
|000006a0| 42 53 65 74 45 4f 46 28 | 70 61 72 61 6d 42 6c 6f |BSetEOF(|paramBlo|
|000006b0| 0a 50 45 78 61 6d 70 6c | 65 2e 70 00 02 00 00 00 |.PExampl|e.p.....|
|000006c0| 54 45 58 54 50 4a 4d 4d | 01 00 00 14 00 60 00 00 |TEXTPJMM|.....`..|
|000006d0| 00 00 54 45 58 54 50 4a | 4d 4d 01 00 00 14 00 60 |..TEXTPJ|MM.....`|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 a9 a6 e5 13 00 00 | 05 be 00 00 01 ac 6c 6b |........|......lk|
|00000700| 50 74 72 29 3a 20 4f 53 | 45 72 72 3b 0d 20 49 4e |Ptr): OS|Err;. IN|
|00000710| 4c 49 4e 45 20 24 32 30 | 35 46 2c 24 41 30 31 32 |LINE $20|5F,$A012|
|00000720| 2c 24 33 45 38 30 3b 0d | 46 55 4e 43 54 49 4f 4e |,$3E80;.|FUNCTION|
|00000730| 20 50 42 53 65 74 45 4f | 46 41 73 79 6e 63 28 70 | PBSetEO|FAsync(p|
|00000740| 61 72 61 6d 42 6c 6f 63 | 6b 3a 20 50 61 72 6d 42 |aramBloc|k: ParmB|
|00000750| 6c 6b 50 74 72 29 3a 20 | 4f 53 45 72 72 3b 0d 20 |lkPtr): |OSErr;. |
|00000760| 49 4e 4c 49 4e 45 20 24 | 32 30 35 46 2c 24 41 34 |INLINE $|205F,$A4|
|00000770| 31 32 2c 24 33 45 38 30 | 3b 0d 46 55 4e 43 54 49 |12,$3E80|;.FUNCTI|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 54 79 70 |...H..Mo|naco.Typ|
|00000790| 65 73 2c 20 46 69 6c 65 | 73 2c 20 50 61 63 6b 61 |es, File|s, Packa|
|000007a0| 67 65 73 2c 0d 7b 00 06 | 00 02 00 59 02 26 03 29 |ges,.{..|...Y.&.)|
|000007b0| 04 42 00 59 02 26 03 29 | 04 42 a9 ba 80 35 00 00 |.B.Y.&.)|.B...5..|
|000007c0| 04 6a 00 00 04 72 00 00 | 00 00 01 00 00 00 00 1e |.j...r..|........|
|000007d0| 00 59 02 26 03 29 04 42 | 00 59 02 26 03 29 04 42 |.Y.&.).B|.Y.&.).B|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 a4 |.....n..|.n...>..|
|00000800| 24 d8 18 3e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |$..>....|.>..MPSR|
|00000810| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 03 f0 ff ff 00 00 00 4c | 00 aa 62 94 00 00 00 00 |.......L|..b.....|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+