home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / OTL-BBU1.DMS / in.adf / Includes / dos / rdargs.bb2 < prev    next >
Unknown  |  1994-04-04  |  4.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 00 3b 20 24 56 45 52 | 3a 20 72 64 61 72 67 73 |;.; $VER|: rdargs|
|00000010| 2e 62 62 32 20 34 30 2e | 30 20 28 32 38 2e 30 32 |.bb2 40.|0 (28.02|
|00000020| 2e 39 34 29 00 3b 00 00 | 80 12 20 22 65 78 65 63 |.94).;..|.. "exec|
|00000030| 2f 74 79 70 65 73 2e 62 | 62 32 22 00 00 80 12 20 |/types.b|b2".... |
|00000040| 22 65 78 65 63 2f 6e 6f | 64 65 73 2e 62 62 32 22 |"exec/no|des.bb2"|
|00000050| 00 00 3b 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..;/****|********|
|00000060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000080| 2a 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 00 3b 20 2a 00 3b |********|**.; *.;|
|000000a0| 20 2a 20 54 68 65 20 43 | 53 6f 75 72 63 65 20 64 | * The C|Source d|
|000000b0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 20 64 65 |ata stru|cture de|
|000000c0| 66 69 6e 65 73 20 74 68 | 65 20 69 6e 70 75 74 20 |fines th|e input |
|000000d0| 73 6f 75 72 63 65 20 66 | 6f 72 20 22 52 65 61 64 |source f|or "Read|
|000000e0| 49 74 65 6d 28 29 22 00 | 3b 20 2a 20 61 73 20 77 |Item()".|; * as w|
|000000f0| 65 6c 6c 20 61 73 20 74 | 68 65 20 52 65 61 64 41 |ell as t|he ReadA|
|00000100| 72 67 73 20 63 61 6c 6c | 2e 20 20 49 74 20 69 73 |rgs call|. It is|
|00000110| 20 61 20 70 75 62 6c 69 | 63 6c 79 20 64 65 66 69 | a publi|cly defi|
|00000120| 6e 65 64 20 73 74 72 75 | 63 74 75 72 65 00 3b 20 |ned stru|cture.; |
|00000130| 2a 20 77 68 69 63 68 20 | 6d 61 79 20 62 65 20 75 |* which |may be u|
|00000140| 73 65 64 20 62 79 20 61 | 70 70 6c 69 63 61 74 69 |sed by a|pplicati|
|00000150| 6f 6e 73 20 77 68 69 63 | 68 20 75 73 65 20 63 6f |ons whic|h use co|
|00000160| 64 65 20 74 68 61 74 20 | 66 6f 6c 6c 6f 77 73 20 |de that |follows |
|00000170| 74 68 65 00 3b 20 2a 20 | 63 6f 6e 76 65 6e 74 69 |the.; * |conventi|
|00000180| 6f 6e 73 20 64 65 66 69 | 6e 65 64 20 66 6f 72 20 |ons defi|ned for |
|00000190| 61 63 63 65 73 73 2e 00 | 3b 20 2a 00 3b 20 2a 20 |access..|; *.; * |
|000001a0| 57 68 65 6e 20 70 61 73 | 73 65 64 20 74 6f 20 74 |When pas|sed to t|
|000001b0| 68 65 20 64 6f 73 2e 6c | 69 62 72 61 72 79 20 66 |he dos.l|ibrary f|
|000001c0| 75 6e 63 74 69 6f 6e 73 | 2c 20 74 68 65 20 76 61 |unctions|, the va|
|000001d0| 6c 75 65 20 70 61 73 73 | 65 64 20 61 73 00 3b 20 |lue pass|ed as.; |
|000001e0| 2a 20 73 74 72 75 63 74 | 20 2a 43 53 6f 75 72 63 |* struct| *CSourc|
|000001f0| 65 20 69 73 20 64 65 66 | 69 6e 65 64 20 61 73 20 |e is def|ined as |
|00000200| 66 6f 6c 6c 6f 77 73 3a | 00 3b 20 2a 20 69 66 20 |follows:|.; * if |
|00000210| 28 20 43 53 6f 75 72 63 | 65 20 3d 3d 20 30 29 20 |( CSourc|e == 0) |
|00000220| 20 55 73 65 20 62 75 66 | 66 65 72 65 64 20 49 4f | Use buf|fered IO|
|00000230| 20 22 52 65 61 64 43 68 | 61 72 28 29 22 20 61 73 | "ReadCh|ar()" as|
|00000240| 20 64 61 74 61 20 73 6f | 75 72 63 65 00 3b 20 2a | data so|urce.; *|
|00000250| 20 65 6c 73 65 20 20 20 | 20 20 20 55 73 65 20 43 | else | Use C|
|00000260| 53 6f 75 72 63 65 20 66 | 6f 72 20 69 6e 70 75 74 |Source f|or input|
|00000270| 20 63 68 61 72 61 63 74 | 65 72 20 73 74 72 65 61 | charact|er strea|
|00000280| 6d 00 3b 20 2a 00 3b 20 | 2a 20 54 68 65 20 66 6f |m.; *.; |* The fo|
|00000290| 6c 6c 6f 77 69 6e 67 20 | 74 77 6f 20 70 73 65 75 |llowing |two pseu|
|000002a0| 64 6f 2d 63 6f 64 65 20 | 72 6f 75 74 69 6e 65 73 |do-code |routines|
|000002b0| 20 64 65 66 69 6e 65 20 | 68 6f 77 20 74 68 65 20 | define |how the |
|000002c0| 43 53 6f 75 72 63 65 20 | 73 74 72 75 63 74 75 72 |CSource |structur|
|000002d0| 65 00 3b 20 2a 20 69 73 | 20 75 73 65 64 3a 00 3b |e.; * is| used:.;|
|000002e0| 20 2a 00 3b 20 2a 20 6c | 6f 6e 67 20 43 53 5f 52 | *.; * l|ong CS_R|
|000002f0| 65 61 64 43 68 61 72 28 | 20 73 74 72 75 63 74 20 |eadChar(| struct |
|00000300| 43 53 6f 75 72 63 65 20 | 2a 43 53 6f 75 72 63 65 |CSource |*CSource|
|00000310| 20 29 00 3b 20 2a 20 7b | 00 3b 20 2a 20 69 66 20 | ).; * {|.; * if |
|00000320| 28 20 43 53 6f 75 72 63 | 65 20 3d 3d 20 30 20 29 |( CSourc|e == 0 )|
|00000330| 20 72 65 74 75 72 6e 20 | 52 65 61 64 43 68 61 72 | return |ReadChar|
|00000340| 28 29 3b 00 3b 20 2a 20 | 69 66 20 28 20 43 53 6f |();.; * |if ( CSo|
|00000350| 75 72 63 65 2d 3e 43 75 | 72 43 68 72 20 3e 3d 20 |urce->Cu|rChr >= |
|00000360| 43 53 6f 75 72 63 65 2d | 3e 4c 65 6e 67 74 68 20 |CSource-|>Length |
|00000370| 29 20 72 65 74 75 72 6e | 20 45 4e 44 53 54 52 45 |) return| ENDSTRE|
|00000380| 41 4d 43 48 41 52 3b 00 | 3b 20 2a 20 72 65 74 75 |AMCHAR;.|; * retu|
|00000390| 72 6e 20 43 53 6f 75 72 | 63 65 2d 3e 42 75 66 66 |rn CSour|ce->Buff|
|000003a0| 65 72 5b 20 43 53 6f 75 | 72 63 65 2d 3e 43 75 72 |er[ CSou|rce->Cur|
|000003b0| 43 68 72 2b 2b 20 5d 3b | 00 3b 20 2a 20 7d 00 3b |Chr++ ];|.; * }.;|
|000003c0| 20 2a 00 3b 20 2a 20 42 | 4f 4f 4c 20 43 53 5f 55 | *.; * B|OOL CS_U|
|000003d0| 6e 52 65 61 64 43 68 61 | 72 28 20 73 74 72 75 63 |nReadCha|r( struc|
|000003e0| 74 20 43 53 6f 75 72 63 | 65 20 2a 43 53 6f 75 72 |t CSourc|e *CSour|
|000003f0| 63 65 20 29 00 3b 20 2a | 20 7b 00 3b 20 2a 20 69 |ce ).; *| {.; * i|
|00000400| 66 20 28 20 43 53 6f 75 | 72 63 65 20 3d 3d 20 30 |f ( CSou|rce == 0|
|00000410| 20 29 20 72 65 74 75 72 | 6e 20 55 6e 52 65 61 64 | ) retur|n UnRead|
|00000420| 43 68 61 72 28 29 3b 00 | 3b 20 2a 20 69 66 20 28 |Char();.|; * if (|
|00000430| 20 43 53 6f 75 72 63 65 | 2d 3e 43 75 72 43 68 72 | CSource|->CurChr|
|00000440| 20 3c 3d 20 30 20 29 20 | 72 65 74 75 72 6e 20 46 | <= 0 ) |return F|
|00000450| 41 4c 53 45 3b 00 3b 20 | 2a 20 43 53 6f 75 72 63 |ALSE;.; |* CSourc|
|00000460| 65 2d 3e 43 75 72 43 68 | 72 2d 2d 3b 00 3b 20 2a |e->CurCh|r--;.; *|
|00000470| 20 72 65 74 75 72 6e 20 | 54 52 55 45 3b 00 3b 20 | return |TRUE;.; |
|00000480| 2a 20 7d 00 3b 20 2a 00 | 3b 20 2a 20 54 6f 20 69 |* }.; *.|; * To i|
|00000490| 6e 69 74 69 61 6c 69 7a | 65 20 61 20 73 74 72 75 |nitializ|e a stru|
|000004a0| 63 74 20 43 53 6f 75 72 | 63 65 2c 20 79 6f 75 20 |ct CSour|ce, you |
|000004b0| 73 65 74 20 43 53 6f 75 | 72 63 65 2d 3e 43 53 5f |set CSou|rce->CS_|
|000004c0| 42 75 66 66 65 72 20 74 | 6f 00 3b 20 2a 20 61 20 |Buffer t|o.; * a |
|000004d0| 73 74 72 69 6e 67 20 77 | 68 69 63 68 20 69 73 20 |string w|hich is |
|000004e0| 75 73 65 64 20 61 73 20 | 74 68 65 20 64 61 74 61 |used as |the data|
|000004f0| 20 73 6f 75 72 63 65 2c | 20 61 6e 64 20 73 65 74 | source,| and set|
|00000500| 20 43 53 5f 4c 65 6e 67 | 74 68 20 74 6f 00 3b 20 | CS_Leng|th to.; |
|00000510| 2a 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |* the nu|mber of |
|00000520| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00000530| 65 20 73 74 72 69 6e 67 | 2e 20 20 4e 6f 72 6d 61 |e string|. Norma|
|00000540| 6c 6c 79 20 43 53 5f 43 | 75 72 43 68 72 20 73 68 |lly CS_C|urChr sh|
|00000550| 6f 75 6c 64 00 3b 20 2a | 20 62 65 20 69 6e 69 74 |ould.; *| be init|
|00000560| 69 61 6c 69 7a 65 64 20 | 74 6f 20 5a 45 52 4f 2c |ialized |to ZERO,|
|00000570| 20 6f 72 20 6c 65 66 74 | 20 61 73 20 69 74 20 77 | or left| as it w|
|00000580| 61 73 20 66 72 6f 6d 20 | 70 72 69 6f 72 20 75 73 |as from |prior us|
|00000590| 65 20 61 73 00 3b 20 2a | 20 61 20 43 53 6f 75 72 |e as.; *| a CSour|
|000005a0| 63 65 2e 00 3b 20 2a 00 | 3b 20 2a 2a 2a 2a 2a 2a |ce..; *.|; ******|
|000005b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000005f0| 2f 00 00 80 01 2e 43 53 | 6f 75 72 63 65 00 2a 43 |/.....CS|ource.*C|
|00000600| 53 5f 42 75 66 66 65 72 | 2e 62 00 43 53 5f 4c 65 |S_Buffer|.b.CS_Le|
|00000610| 6e 67 74 68 2e 6c 00 43 | 53 5f 43 75 72 43 68 72 |ngth.l.C|S_CurChr|
|00000620| 2e 6c 00 80 02 20 80 01 | 00 00 3b 2f 2a 2a 2a 2a |.l... ..|..;/****|
|00000630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000640| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000650| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000670| 2a 2a 00 3b 20 2a 00 3b | 20 2a 20 54 68 65 20 52 |**.; *.;| * The R|
|00000680| 44 41 72 67 73 20 64 61 | 74 61 20 73 74 72 75 63 |DArgs da|ta struc|
|00000690| 74 75 72 65 20 69 73 20 | 74 68 65 20 69 6e 70 75 |ture is |the inpu|
|000006a0| 74 20 70 61 72 61 6d 65 | 74 65 72 20 70 61 73 73 |t parame|ter pass|
|000006b0| 65 64 20 74 6f 20 74 68 | 65 20 44 4f 53 00 3b 20 |ed to th|e DOS.; |
|000006c0| 2a 20 52 65 61 64 41 72 | 67 73 28 29 20 66 75 6e |* ReadAr|gs() fun|
|000006d0| 63 74 69 6f 6e 20 63 61 | 6c 6c 2e 00 3b 20 2a 00 |ction ca|ll..; *.|
|000006e0| 3b 20 2a 20 54 68 65 20 | 52 44 41 5f 53 6f 75 72 |; * The |RDA_Sour|
|000006f0| 63 65 20 73 74 72 75 63 | 74 75 72 65 20 69 73 20 |ce struc|ture is |
|00000700| 61 20 43 53 6f 75 72 63 | 65 20 61 73 20 64 65 66 |a CSourc|e as def|
|00000710| 69 6e 65 64 20 61 62 6f | 76 65 3b 00 3b 20 2a 20 |ined abo|ve;.; * |
|00000720| 69 66 20 52 44 41 5f 53 | 6f 75 72 63 65 2e 43 53 |if RDA_S|ource.CS|
|00000730| 5f 42 75 66 66 65 72 20 | 69 73 20 6e 6f 6e 2d 6e |_Buffer |is non-n|
|00000740| 75 6c 6c 2c 20 52 44 41 | 5f 53 6f 75 72 63 65 20 |ull, RDA|_Source |
|00000750| 69 73 20 75 73 65 64 20 | 61 73 20 74 68 65 20 69 |is used |as the i|
|00000760| 6e 70 75 74 00 3b 20 2a | 20 63 68 61 72 61 63 74 |nput.; *| charact|
|00000770| 65 72 20 73 74 72 65 61 | 6d 20 74 6f 20 70 61 72 |er strea|m to par|
|00000780| 73 65 2c 20 65 6c 73 65 | 20 74 68 65 20 69 6e 70 |se, else| the inp|
|00000790| 75 74 20 63 6f 6d 65 73 | 20 66 72 6f 6d 20 74 68 |ut comes| from th|
|000007a0| 65 20 62 75 66 66 65 72 | 65 64 20 53 54 44 49 4e |e buffer|ed STDIN|
|000007b0| 00 3b 20 2a 20 63 61 6c | 6c 73 20 52 65 61 64 43 |.; * cal|ls ReadC|
|000007c0| 68 61 72 2f 55 6e 52 65 | 61 64 43 68 61 72 2e 00 |har/UnRe|adChar..|
|000007d0| 3b 20 2a 00 3b 20 2a 20 | 52 44 41 5f 44 41 4c 69 |; *.; * |RDA_DALi|
|000007e0| 73 74 20 69 73 20 61 20 | 70 72 69 76 61 74 65 20 |st is a |private |
|000007f0| 61 64 64 72 65 73 73 20 | 77 68 69 63 68 20 69 73 |address |which is|
|00000800| 20 75 73 65 64 20 69 6e | 74 65 72 6e 61 6c 6c 79 | used in|ternally|
|00000810| 20 74 6f 20 74 72 61 63 | 6b 00 3b 20 2a 20 61 6c | to trac|k.; * al|
|00000820| 6c 6f 63 61 74 69 6f 6e | 73 20 77 68 69 63 68 20 |location|s which |
|00000830| 61 72 65 20 66 72 65 65 | 64 20 62 79 20 46 72 65 |are free|d by Fre|
|00000840| 65 41 72 67 73 28 29 2e | 20 20 54 68 69 73 20 4d |eArgs().| This M|
|00000850| 55 53 54 20 62 65 20 69 | 6e 69 74 69 61 6c 69 7a |UST be i|nitializ|
|00000860| 65 64 00 3b 20 2a 20 74 | 6f 20 4e 55 4c 4c 20 70 |ed.; * t|o NULL p|
|00000870| 72 69 6f 72 20 74 6f 20 | 74 68 65 20 66 69 72 73 |rior to |the firs|
|00000880| 74 20 63 61 6c 6c 20 74 | 6f 20 52 65 61 64 41 72 |t call t|o ReadAr|
|00000890| 67 73 28 29 2e 00 3b 20 | 2a 00 3b 20 2a 20 54 68 |gs()..; |*.; * Th|
|000008a0| 65 20 52 44 41 5f 42 75 | 66 66 65 72 20 61 6e 64 |e RDA_Bu|ffer and|
|000008b0| 20 52 44 41 5f 42 75 66 | 53 69 7a 20 66 69 65 6c | RDA_Buf|Siz fiel|
|000008c0| 64 73 20 61 6c 6c 6f 77 | 20 74 68 65 20 61 70 70 |ds allow| the app|
|000008d0| 6c 69 63 61 74 69 6f 6e | 20 74 6f 20 73 75 70 70 |lication| to supp|
|000008e0| 6c 79 00 3b 20 2a 20 61 | 20 66 69 78 65 64 2d 73 |ly.; * a| fixed-s|
|000008f0| 69 7a 65 20 62 75 66 66 | 65 72 20 69 6e 20 77 68 |ize buff|er in wh|
|00000900| 69 63 68 20 74 6f 20 73 | 74 6f 72 65 20 74 68 65 |ich to s|tore the|
|00000910| 20 70 61 72 73 65 64 20 | 64 61 74 61 2e 20 20 54 | parsed |data. T|
|00000920| 68 69 73 20 61 6c 6c 6f | 77 73 00 3b 20 2a 20 74 |his allo|ws.; * t|
|00000930| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |he appli|cation t|
|00000940| 6f 20 70 72 65 2d 61 6c | 6c 6f 63 61 74 65 20 61 |o pre-al|locate a|
|00000950| 20 62 75 66 66 65 72 20 | 72 61 74 68 65 72 20 74 | buffer |rather t|
|00000960| 68 61 6e 20 72 65 71 75 | 69 72 69 6e 67 20 62 75 |han requ|iring bu|
|00000970| 66 66 65 72 00 3b 20 2a | 20 73 70 61 63 65 20 74 |ffer.; *| space t|
|00000980| 6f 20 62 65 20 61 6c 6c | 6f 63 61 74 65 64 2e 20 |o be all|ocated. |
|00000990| 20 49 66 20 65 69 74 68 | 65 72 20 52 44 41 5f 42 | If eith|er RDA_B|
|000009a0| 75 66 66 65 72 20 6f 72 | 20 52 44 41 5f 42 75 66 |uffer or| RDA_Buf|
|000009b0| 53 69 7a 20 69 73 20 4e | 55 4c 4c 2c 00 3b 20 2a |Siz is N|ULL,.; *|
|000009c0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000009d0| 20 68 61 73 20 6e 6f 74 | 20 73 75 70 70 6c 69 65 | has not| supplie|
|000009e0| 64 20 61 20 62 75 66 66 | 65 72 2e 00 3b 20 2a 00 |d a buff|er..; *.|
|000009f0| 3b 20 2a 20 52 44 41 5f | 45 78 74 48 65 6c 70 20 |; * RDA_|ExtHelp |
|00000a00| 69 73 20 61 20 74 65 78 | 74 20 73 74 72 69 6e 67 |is a tex|t string|
|00000a10| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 62 65 20 64 | which w|ill be d|
|00000a20| 69 73 70 6c 61 79 65 64 | 20 69 6e 73 74 65 61 64 |isplayed| instead|
|00000a30| 20 6f 66 20 74 68 65 00 | 3b 20 2a 20 74 65 6d 70 | of the.|; * temp|
|00000a40| 6c 61 74 65 20 73 74 72 | 69 6e 67 2c 20 69 66 20 |late str|ing, if |
|00000a50| 74 68 65 20 75 73 65 72 | 20 69 73 20 70 72 6f 6d |the user| is prom|
|00000a60| 70 74 65 64 20 66 6f 72 | 20 69 6e 70 75 74 2e 00 |pted for| input..|
|00000a70| 3b 20 2a 00 3b 20 2a 20 | 52 44 41 5f 46 6c 61 67 |; *.; * |RDA_Flag|
|00000a80| 73 20 62 69 74 73 20 63 | 6f 6e 74 72 6f 6c 20 68 |s bits c|ontrol h|
|00000a90| 6f 77 20 52 65 61 64 41 | 72 67 73 28 29 20 77 6f |ow ReadA|rgs() wo|
|00000aa0| 72 6b 73 2e 20 20 54 68 | 65 20 66 6c 61 67 20 62 |rks. Th|e flag b|
|00000ab0| 69 74 73 20 61 72 65 00 | 3b 20 2a 20 64 65 66 69 |its are.|; * defi|
|00000ac0| 6e 65 64 20 62 65 6c 6f | 77 2e 20 20 44 65 66 61 |ned belo|w. Defa|
|00000ad0| 75 6c 74 73 20 61 72 65 | 20 69 6e 69 74 69 61 6c |ults are| initial|
|00000ae0| 69 7a 65 64 20 74 6f 20 | 5a 45 52 4f 2e 00 3b 20 |ized to |ZERO..; |
|00000af0| 2a 00 3b 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*.; ****|********|
|00000b00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 00 00 80 01 2e |********|**/.....|
|00000b40| 52 44 41 72 67 73 00 52 | 44 41 5f 53 6f 75 72 63 |RDArgs.R|DA_Sourc|
|00000b50| 65 2e 43 53 6f 75 72 63 | 65 3b 2f 2a 20 53 65 6c |e.CSourc|e;/* Sel|
|00000b60| 65 63 74 20 69 6e 70 75 | 74 20 73 6f 75 72 63 65 |ect inpu|t source|
|00000b70| 20 2a 2f 00 52 44 41 5f | 44 41 4c 69 73 74 2e 6c | */.RDA_|DAList.l|
|00000b80| 20 3b 2f 2a 20 50 52 49 | 56 41 54 45 2e 20 2a 2f | ;/* PRI|VATE. */|
|00000b90| 00 2a 52 44 41 5f 42 75 | 66 66 65 72 2e 62 20 3b |.*RDA_Bu|ffer.b ;|
|00000ba0| 2f 2a 20 4f 70 74 69 6f | 6e 61 6c 20 73 74 72 69 |/* Optio|nal stri|
|00000bb0| 6e 67 20 70 61 72 73 69 | 6e 67 20 73 70 61 63 65 |ng parsi|ng space|
|00000bc0| 2e 20 2a 2f 00 52 44 41 | 5f 42 75 66 53 69 7a 2e |. */.RDA|_BufSiz.|
|00000bd0| 6c 20 3b 2f 2a 20 53 69 | 7a 65 20 6f 66 20 52 44 |l ;/* Si|ze of RD|
|00000be0| 41 5f 42 75 66 66 65 72 | 20 28 30 2e 2e 6e 29 20 |A_Buffer| (0..n) |
|00000bf0| 2a 2f 00 2a 52 44 41 5f | 45 78 74 48 65 6c 70 2e |*/.*RDA_|ExtHelp.|
|00000c00| 62 20 3b 2f 2a 20 4f 70 | 74 69 6f 6e 61 6c 20 65 |b ;/* Op|tional e|
|00000c10| 78 74 65 6e 64 65 64 20 | 68 65 6c 70 20 2a 2f 00 |xtended |help */.|
|00000c20| 52 44 41 5f 46 6c 61 67 | 73 2e 6c 20 3b 2f 2a 20 |RDA_Flag|s.l ;/* |
|00000c30| 46 6c 61 67 73 20 66 6f | 72 20 61 6e 79 20 72 65 |Flags fo|r any re|
|00000c40| 71 75 69 72 65 64 20 63 | 6f 6e 74 72 6f 6c 20 2a |quired c|ontrol *|
|00000c50| 2f 00 80 02 20 80 01 00 | 00 23 52 44 41 42 5f 53 |/... ...|.#RDAB_S|
|00000c60| 54 44 49 4e 3d 30 3b 2f | 2a 20 55 73 65 20 22 53 |TDIN=0;/|* Use "S|
|00000c70| 54 44 49 4e 22 20 72 61 | 74 68 65 72 20 74 68 61 |TDIN" ra|ther tha|
|00000c80| 6e 20 22 43 4f 4d 4d 41 | 4e 44 20 4c 49 4e 45 22 |n "COMMA|ND LINE"|
|00000c90| 20 2a 2f 00 23 52 44 41 | 46 5f 53 54 44 49 4e 3d | */.#RDA|F_STDIN=|
|00000ca0| 31 00 23 52 44 41 42 5f | 4e 4f 41 4c 4c 4f 43 3d |1.#RDAB_|NOALLOC=|
|00000cb0| 31 3b 2f 2a 20 49 66 20 | 73 65 74 2c 20 64 6f 20 |1;/* If |set, do |
|00000cc0| 6e 6f 74 20 61 6c 6c 6f | 63 61 74 65 20 65 78 74 |not allo|cate ext|
|00000cd0| 72 61 20 73 74 72 69 6e | 67 20 73 70 61 63 65 2e |ra strin|g space.|
|00000ce0| 2a 2f 00 23 52 44 41 46 | 5f 4e 4f 41 4c 4c 4f 43 |*/.#RDAF|_NOALLOC|
|00000cf0| 3d 32 00 23 52 44 41 42 | 5f 4e 4f 50 52 4f 4d 50 |=2.#RDAB|_NOPROMP|
|00000d00| 54 3d 32 3b 2f 2a 20 44 | 69 73 61 62 6c 65 20 72 |T=2;/* D|isable r|
|00000d10| 65 70 72 6f 6d 70 74 69 | 6e 67 20 66 6f 72 20 73 |eprompti|ng for s|
|00000d20| 74 72 69 6e 67 20 69 6e | 70 75 74 2e 20 2a 2f 00 |tring in|put. */.|
|00000d30| 23 52 44 41 46 5f 4e 4f | 50 52 4f 4d 50 54 3d 34 |#RDAF_NO|PROMPT=4|
|00000d40| 00 00 3b 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..;/****|********|
|00000d50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 00 3b 20 2a 20 4d |********|**.; * M|
|00000d90| 61 78 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |aximum n|umber of|
|00000da0| 20 74 65 6d 70 6c 61 74 | 65 20 6b 65 79 77 6f 72 | templat|e keywor|
|00000db0| 64 73 20 77 68 69 63 68 | 20 63 61 6e 20 62 65 20 |ds which| can be |
|00000dc0| 69 6e 20 61 20 74 65 6d | 70 6c 61 74 65 20 70 61 |in a tem|plate pa|
|00000dd0| 73 73 65 64 00 3b 20 2a | 20 74 6f 20 52 65 61 64 |ssed.; *| to Read|
|00000de0| 41 72 67 73 28 29 2e 20 | 49 4d 50 4c 45 4d 45 4e |Args(). |IMPLEMEN|
|00000df0| 54 4f 52 20 4e 4f 54 45 | 20 2d 20 6d 75 73 74 20 |TOR NOTE| - must |
|00000e00| 62 65 20 61 20 6d 75 6c | 74 69 70 6c 65 20 6f 66 |be a mul|tiple of|
|00000e10| 20 34 2e 00 3b 20 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | 4..; **|********|
|00000e20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 00 23 4d |********|****/.#M|
|00000e60| 41 58 5f 54 45 4d 50 4c | 41 54 45 5f 49 54 45 4d |AX_TEMPL|ATE_ITEM|
|00000e70| 53 3d 31 30 30 00 00 3b | 2f 2a 2a 2a 2a 2a 2a 2a |S=100..;|/*******|
|00000e80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ea0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000eb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 00 |********|*******.|
|00000ec0| 3b 20 2a 20 4d 61 78 69 | 6d 75 6d 20 6e 75 6d 62 |; * Maxi|mum numb|
|00000ed0| 65 72 20 6f 66 20 4d 55 | 4c 54 49 41 52 47 20 69 |er of MU|LTIARG i|
|00000ee0| 74 65 6d 73 20 72 65 74 | 75 72 6e 65 64 20 62 79 |tems ret|urned by|
|00000ef0| 20 52 65 61 64 41 72 67 | 73 28 29 2c 20 62 65 66 | ReadArg|s(), bef|
|00000f00| 6f 72 65 00 3b 20 2a 20 | 61 6e 20 45 52 52 4f 52 |ore.; * |an ERROR|
|00000f10| 5f 4c 49 4e 45 5f 54 4f | 4f 5f 4c 4f 4e 47 2e 20 |_LINE_TO|O_LONG. |
|00000f20| 20 54 68 65 73 65 20 74 | 77 6f 20 6c 69 6d 69 74 | These t|wo limit|
|00000f30| 61 74 69 6f 6e 73 20 61 | 72 65 20 64 75 65 20 74 |ations a|re due t|
|00000f40| 6f 20 73 74 61 63 6b 00 | 3b 20 2a 20 75 73 61 67 |o stack.|; * usag|
|00000f50| 65 2e 20 20 41 70 70 6c | 69 63 61 74 69 6f 6e 73 |e. Appl|ications|
|00000f60| 20 73 68 6f 75 6c 64 20 | 61 6c 6c 6f 77 20 22 61 | should |allow "a|
|00000f70| 20 6c 6f 74 22 20 6f 66 | 20 73 74 61 63 6b 20 74 | lot" of| stack t|
|00000f80| 6f 20 75 73 65 20 52 65 | 61 64 41 72 67 73 28 29 |o use Re|adArgs()|
|00000f90| 2e 00 3b 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..; ****|********|
|00000fa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 00 23 4d 41 58 |********|**/.#MAX|
|00000fe0| 5f 4d 55 4c 54 49 41 52 | 47 53 3d 31 32 38 00 |_MULTIAR|GS=128. |
+--------+-------------------------+-------------------------+--------+--------+