home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-12-31 | 17.0 KB | [ TEXT/MPS ]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sat Aug 31 18:30:08 2024, modified Sat Aug 31 18:30:08 2024, creator 'MPS ', type ASCII, 16654 bytes "preproc.c" , at 0x418e 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 key value macFileType [ TEXT] macFileCreator [ MPS ]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 09 70 72 65 70 72 6f | 63 2e 63 00 00 00 00 00 |..prepro|c.c.....| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......| |00000050| 00 00 00 00 00 41 0e 00 | 00 01 ac e2 f9 49 f0 e2 |.....A..|.....I..| |00000060| f9 49 f0 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.I......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c7 56 00 00 |........|.....V..| |00000080| 2f 2a 0d 20 2a 20 54 68 | 65 20 66 75 6e 63 74 69 |/*. * Th|e functi| |00000090| 6f 6e 73 20 69 6e 20 74 | 68 69 73 20 66 69 6c 65 |ons in t|his file| |000000a0| 20 68 61 6e 64 6c 65 20 | 70 72 65 70 72 6f 63 65 | handle |preproce| |000000b0| 73 73 69 6e 67 20 64 69 | 72 65 63 74 69 76 65 73 |ssing di|rectives| |000000c0| 2c 20 6d 61 63 72 6f 0d | 20 2a 20 20 63 61 6c 6c |, macro.| * call| |000000d0| 73 2c 20 61 6e 64 20 73 | 74 72 69 6e 67 20 63 6f |s, and s|tring co| |000000e0| 6e 63 61 74 65 6e 61 74 | 69 6f 6e 2e 0d 20 2a 2f |ncatenat|ion.. */| |000000f0| 0d 23 69 6e 63 6c 75 64 | 65 20 22 3a 3a 70 72 65 |.#includ|e "::pre| |00000100| 70 72 6f 63 3a 70 72 65 | 70 72 6f 63 2e 68 22 0d |proc:pre|proc.h".| |00000110| 23 69 6e 63 6c 75 64 65 | 20 22 3a 3a 70 72 65 70 |#include| "::prep| |00000120| 72 6f 63 3a 70 74 6f 6b | 65 6e 2e 68 22 0d 23 69 |roc:ptok|en.h".#i| |00000130| 6e 63 6c 75 64 65 20 22 | 3a 3a 70 72 65 70 72 6f |nclude "|::prepro| |00000140| 63 3a 70 70 72 6f 74 6f | 2e 68 22 0d 23 69 6e 63 |c:pproto|.h".#inc| |00000150| 6c 75 64 65 20 3c 63 74 | 79 70 65 2e 68 3e 0d 0d |lude <ct|ype.h>..| |00000160| 2f 2a 0d 20 2a 20 50 72 | 6f 74 6f 74 79 70 65 73 |/*. * Pr|ototypes| |00000170| 20 66 6f 72 20 73 74 61 | 74 69 63 20 66 75 6e 63 | for sta|tic func| |00000180| 74 69 6f 6e 73 2e 0d 20 | 2a 2f 0d 68 69 64 64 65 |tions.. |*/.hidde| |00000190| 6e 20 6e 6f 76 61 6c 75 | 65 20 73 74 61 72 74 5f |n novalu|e start_| |000001a0| 73 65 6c 65 63 74 20 50 | 61 72 61 6d 73 28 28 73 |select P|arams((s| |000001b0| 74 72 75 63 74 20 74 6f | 6b 65 6e 20 2a 74 29 29 |truct to|ken *t))| |000001c0| 3b 0d 68 69 64 64 65 6e | 20 6e 6f 76 61 6c 75 65 |;.hidden| novalue| |000001d0| 20 65 6e 64 5f 73 65 6c | 65 63 74 20 20 20 50 61 | end_sel|ect Pa| |000001e0| 72 61 6d 73 28 28 73 74 | 72 75 63 74 20 74 6f 6b |rams((st|ruct tok| |000001f0| 65 6e 20 2a 74 29 29 3b | 0d 68 69 64 64 65 6e 20 |en *t));|.hidden | |00000200| 6e 6f 76 61 6c 75 65 20 | 69 6e 63 6c 5f 66 69 6c |novalue |incl_fil| |00000210| 65 20 20 20 20 50 61 72 | 61 6d 73 28 28 73 74 72 |e Par|ams((str| |00000220| 75 63 74 20 74 6f 6b 65 | 6e 20 2a 74 29 29 3b 0d |uct toke|n *t));.| |00000230| 68 69 64 64 65 6e 20 6e | 6f 76 61 6c 75 65 20 64 |hidden n|ovalue d| |00000240| 65 66 69 6e 65 20 20 20 | 20 20 20 20 50 61 72 61 |efine | Para| |00000250| 6d 73 28 28 73 74 72 75 | 63 74 20 74 6f 6b 65 6e |ms((stru|ct token| |00000260| 20 2a 74 29 29 3b 0d 68 | 69 64 64 65 6e 20 69 6e | *t));.h|idden in| |00000270| 74 20 20 20 20 20 65 78 | 70 61 6e 64 20 20 20 20 |t ex|pand | |00000280| 20 20 20 50 61 72 61 6d | 73 28 28 73 74 72 75 63 | Param|s((struc| |00000290| 74 20 74 6f 6b 65 6e 20 | 2a 74 2c 20 73 74 72 75 |t token |*t, stru| |000002a0| 63 74 20 6d 61 63 72 6f | 20 2a 6d 29 29 3b 0d 68 |ct macro| *m));.h| |000002b0| 69 64 64 65 6e 20 6e 6f | 76 61 6c 75 65 20 74 6f |idden no|value to| |000002c0| 6b 73 5f 74 6f 5f 73 74 | 72 20 20 50 61 72 61 6d |ks_to_st|r Param| |000002d0| 73 28 28 73 74 72 75 63 | 74 20 73 74 72 5f 62 75 |s((struc|t str_bu| |000002e0| 66 20 2a 73 62 75 66 2c | 20 73 74 72 75 63 74 20 |f *sbuf,| struct | |000002f0| 74 6f 6b 65 6e 20 2a 74 | 29 29 3b 0d 0d 2f 2a 0d |token *t|));../*.| |00000300| 20 2a 20 73 74 61 72 74 | 5f 73 65 6c 65 63 74 20 | * start|_select | |00000310| 2d 20 68 61 6e 64 6c 65 | 20 23 69 66 2c 20 23 69 |- handle| #if, #i| |00000320| 66 64 65 66 2c 20 23 69 | 66 6e 64 65 66 0d 20 2a |fdef, #i|fndef. *| |00000330| 2f 0d 73 74 61 74 69 63 | 20 6e 6f 76 61 6c 75 65 |/.static| novalue| |00000340| 20 73 74 61 72 74 5f 73 | 65 6c 65 63 74 28 74 29 | start_s|elect(t)| |00000350| 0d 73 74 72 75 63 74 20 | 74 6f 6b 65 6e 20 2a 74 |.struct |token *t| |00000360| 3b 0d 20 20 20 7b 0d 20 | 20 20 73 74 72 75 63 74 |;. {. | struct| |00000370| 20 74 6f 6b 65 6e 20 2a | 74 31 3b 0d 20 20 20 73 | token *|t1;. s| |00000380| 74 72 75 63 74 20 74 6f | 6b 5f 6c 73 74 20 2a 74 |truct to|k_lst *t| |00000390| 6c 73 74 3b 0d 20 20 20 | 69 6e 74 20 63 6f 6e 64 |lst;. |int cond| |000003a0| 69 74 69 6f 6e 3b 0d 20 | 20 20 69 6e 74 20 6e 65 |ition;. | int ne| |000003b0| 73 74 69 6e 67 3b 0d 0d | 20 20 20 2f 2a 0d 20 20 |sting;..| /*. | |000003c0| 20 20 2a 20 64 65 74 65 | 72 6d 69 6e 65 20 69 66 | * dete|rmine if| |000003d0| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 73 20 74 72 | conditi|on is tr| |000003e0| 75 65 2e 0d 20 20 20 20 | 2a 2f 0d 20 20 20 69 66 |ue.. |*/. if| |000003f0| 20 28 74 2d 3e 74 6f 6b | 5f 69 64 20 3d 3d 20 50 | (t->tok|_id == P| |00000400| 70 49 66 29 0d 20 20 20 | 20 20 20 63 6f 6e 64 69 |pIf). | condi| |00000410| 74 69 6f 6e 20 3d 20 65 | 76 61 6c 28 74 29 3b 20 |tion = e|val(t); | |00000420| 20 2f 2a 20 23 69 66 20 | 2d 20 65 76 61 6c 75 61 | /* #if |- evalua| |00000430| 74 65 20 65 78 70 72 65 | 73 73 69 6f 6e 20 2a 2f |te expre|ssion */| |00000440| 0d 20 20 20 65 6c 73 65 | 20 7b 0d 20 20 20 20 20 |. else| {. | |00000450| 20 2f 2a 0d 20 20 20 20 | 20 20 20 2a 20 23 69 66 | /*. | * #if| |00000460| 64 65 66 20 6f 72 20 23 | 69 66 6e 64 65 66 20 2d |def or #|ifndef -| |00000470| 20 73 65 65 20 69 66 20 | 61 6e 20 69 64 65 6e 74 | see if |an ident| |00000480| 69 66 69 65 72 20 69 73 | 20 64 65 66 69 6e 65 64 |ifier is| defined| |00000490| 2e 0d 20 20 20 20 20 20 | 20 2a 2f 0d 20 20 20 20 |.. | */. | |000004a0| 20 20 74 31 20 3d 20 4e | 55 4c 4c 3b 0d 20 20 20 | t1 = N|ULL;. | |000004b0| 20 20 20 6e 78 74 5f 6e | 6f 6e 5f 77 68 28 26 74 | nxt_n|on_wh(&t| |000004c0| 31 29 3b 0d 20 20 20 20 | 20 20 69 66 20 28 74 31 |1);. | if (t1| |000004d0| 2d 3e 74 6f 6b 5f 69 64 | 20 21 3d 20 49 64 65 6e |->tok_id| != Iden| |000004e0| 74 69 66 69 65 72 29 0d | 20 20 20 20 20 20 20 20 |tifier).| | |000004f0| 20 65 72 72 74 32 28 74 | 31 2c 20 22 69 64 65 6e | errt2(t|1, "iden| |00000500| 74 69 66 69 65 72 20 6d | 75 73 74 20 66 6f 6c 6c |tifier m|ust foll| |00000510| 6f 77 20 23 22 2c 20 74 | 2d 3e 69 6d 61 67 65 29 |ow #", t|->image)| |00000520| 3b 0d 20 20 20 20 20 20 | 63 6f 6e 64 69 74 69 6f |;. |conditio| |00000530| 6e 20 3d 20 28 6d 5f 6c | 6f 6f 6b 75 70 28 74 31 |n = (m_l|ookup(t1| |00000540| 29 20 3d 3d 20 4e 55 4c | 4c 29 20 3f 20 30 20 3a |) == NUL|L) ? 0 :| |00000550| 20 31 3b 0d 20 20 20 20 | 20 20 69 66 20 28 74 2d | 1;. | if (t-| |00000560| 3e 74 6f 6b 5f 69 64 20 | 3d 3d 20 50 70 49 66 6e |>tok_id |== PpIfn| |00000570| 64 65 66 29 0d 20 20 20 | 20 20 20 20 20 20 63 6f |def). | co| |00000580| 6e 64 69 74 69 6f 6e 20 | 3d 20 21 63 6f 6e 64 69 |ndition |= !condi| |00000590| 74 69 6f 6e 3b 0d 20 20 | 20 20 20 20 66 72 65 65 |tion;. | free| |000005a0| 5f 74 28 74 31 29 3b 0d | 20 20 20 20 20 20 74 31 |_t(t1);.| t1| |000005b0| 20 3d 20 6e 65 78 74 5f | 74 6f 6b 28 29 3b 0d 20 | = next_|tok();. | |000005c0| 20 20 20 20 20 69 66 20 | 28 74 31 2d 3e 74 6f 6b | if |(t1->tok| |000005d0| 5f 69 64 20 21 3d 20 50 | 70 44 69 72 45 6e 64 29 |_id != P|pDirEnd)| |000005e0| 0d 20 20 20 20 20 20 20 | 20 20 65 72 72 74 32 28 |. | errt2(| |000005f0| 74 31 2c 20 22 65 78 70 | 65 63 74 69 6e 67 20 65 |t1, "exp|ecting e| |00000600| 6e 64 20 6f 66 20 6c 69 | 6e 65 20 66 6f 6c 6c 6f |nd of li|ne follo| |00000610| 77 69 6e 67 20 61 72 67 | 75 6d 65 6e 74 20 74 6f |wing arg|ument to| |00000620| 20 23 22 2c 20 74 2d 3e | 69 6d 61 67 65 29 3b 0d | #", t->|image);.| |00000630| 20 20 20 20 20 20 66 72 | 65 65 5f 74 28 74 31 29 | fr|ee_t(t1)| |00000640| 3b 0d 20 20 20 20 20 20 | 7d 0d 20 0d 20 20 20 2f |;. |}. . /| |00000650| 2a 0d 20 20 20 20 2a 20 | 6c 6f 6f 6b 20 66 6f 72 |*. * |look for| |00000660| 20 74 68 65 20 62 72 61 | 6e 63 68 20 6f 66 20 74 | the bra|nch of t| |00000670| 68 65 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 69 |he condi|tional i| |00000680| 6e 63 6c 75 73 69 6f 6e | 20 74 6f 20 74 61 6b 65 |nclusion| to take| |00000690| 20 6f 72 20 23 65 6e 64 | 69 66 2e 0d 20 20 20 20 | or #end|if.. | |000006a0| 2a 2f 0d 20 20 20 6e 65 | 73 74 69 6e 67 20 3d 20 |*/. ne|sting = | |000006b0| 30 3b 0d 20 20 20 77 68 | 69 6c 65 20 28 21 63 6f |0;. wh|ile (!co| |000006c0| 6e 64 69 74 69 6f 6e 29 | 20 7b 0d 20 20 20 20 20 |ndition)| {. | |000006d0| 20 74 31 20 3d 20 6e 65 | 78 74 5f 74 6f 6b 28 29 | t1 = ne|xt_tok()| |000006e0| 3b 0d 20 20 20 20 20 20 | 69 66 20 28 74 31 20 3d |;. |if (t1 =| |000006f0| 3d 20 4e 55 4c 4c 29 0d | 20 20 20 20 20 20 20 20 |= NULL).| | |00000700| 65 72 72 74 32 28 74 2c | 20 22 6e 6f 20 6d 61 74 |errt2(t,| "no mat| |00000710| 63 68 69 6e 67 20 23 65 | 6e 64 69 66 20 66 6f 72 |ching #e|ndif for| |00000720| 20 23 22 2c 20 74 2d 3e | 69 6d 61 67 65 29 3b 0d | #", t->|image);.| |00000730| 20 20 20 20 20 20 73 77 | 69 74 63 68 20 28 74 31 | sw|itch (t1| |00000740| 2d 3e 74 6f 6b 5f 69 64 | 29 20 7b 0d 20 20 20 20 |->tok_id|) {. | |00000750| 20 20 20 20 20 63 61 73 | 65 20 50 70 49 66 3a 0d | cas|e PpIf:.| |00000760| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 50 70 | | case Pp| |00000770| 49 66 64 65 66 3a 0d 20 | 20 20 20 20 20 20 20 20 |Ifdef:. | | |00000780| 63 61 73 65 20 50 70 49 | 66 6e 64 65 66 3a 0d 20 |case PpI|fndef:. | |00000790| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 0d 20 20 | | /*. | |000007a0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 4e 65 73 | | * Nes| |000007b0| 74 65 64 20 23 69 66 2c | 20 23 69 66 64 65 66 2c |ted #if,| #ifdef,| |000007c0| 20 6f 72 20 23 69 66 6e | 64 65 66 20 69 6e 20 61 | or #ifn|def in a| |000007d0| 20 62 72 61 6e 63 68 20 | 6f 66 20 61 20 63 6f 6e | branch |of a con| |000007e0| 64 69 74 69 6f 6e 61 6c | 0d 20 20 20 20 20 20 20 |ditional|. | |000007f0| 20 20 20 20 20 20 2a 20 | 20 74 68 61 74 20 69 73 | * | that is| |00000800| 20 62 65 69 6e 67 20 64 | 69 73 63 61 72 64 65 64 | being d|iscarded| |00000810| 2e 20 43 6f 6e 74 75 6e | 75 65 20 64 69 73 63 61 |. Contun|ue disca| |00000820| 72 64 69 6e 67 20 75 6e | 74 69 6c 20 74 68 65 0d |rding un|til the.| |00000830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 20 20 | | * | |00000840| 6e 65 73 74 69 6e 67 20 | 6c 65 76 65 6c 20 72 65 |nesting |level re| |00000850| 74 75 72 6e 73 20 74 6f | 20 30 2e 0d 20 20 20 20 |turns to| 0.. | |00000860| 20 20 20 20 20 20 20 20 | 20 2a 2f 0d 20 20 20 20 | | */. | |00000870| 20 20 20 20 20 20 20 20 | 2b 2b 6e 65 73 74 69 6e | |++nestin| |00000880| 67 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |g;. | b| |00000890| 72 65 61 6b 3b 0d 20 0d | 20 20 20 20 20 20 20 20 |reak;. .| | |000008a0| 20 63 61 73 65 20 50 70 | 45 6e 64 69 66 3a 0d 20 | case Pp|Endif:. | |000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 0d 20 20 | | /*. | |000008c0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 23 65 6e | | * #en| |000008d0| 64 69 66 20 66 6f 75 6e | 64 2e 20 53 65 65 20 69 |dif foun|d. See i| |000008e0| 66 20 74 68 69 73 20 69 | 73 20 74 68 69 73 20 74 |f this i|s this t| |000008f0| 68 65 20 65 6e 64 20 6f | 66 20 61 20 6e 65 73 74 |he end o|f a nest| |00000900| 65 64 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ed. | | |00000910| 2a 20 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 6f |* condi|tional o| |00000920| 72 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |r the en|d of the| |00000930| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 20 77 65 20 | conditi|onal we | |00000940| 61 72 65 20 70 72 6f 63 | 65 73 73 69 6e 67 2e 0d |are proc|essing..| |00000950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0d | | */.| |00000960| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (| |00000970| 6e 65 73 74 69 6e 67 20 | 3e 20 30 29 0d 20 20 20 |nesting |> 0). | |00000980| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 6e 65 73 | | --nes| |00000990| 74 69 6e 67 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |ting;. | | |000009a0| 20 20 65 6c 73 65 20 7b | 0d 20 20 20 20 20 20 20 | else {|. | |000009b0| 20 20 20 20 20 20 20 20 | 2f 2a 0d 20 20 20 20 20 | |/*. | |000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 44 69 73 | | * Dis| |000009d0| 63 61 72 64 20 61 6e 79 | 20 65 78 74 72 61 6e 65 |card any| extrane| |000009e0| 6f 75 73 20 74 6f 6b 65 | 6e 73 20 6f 6e 20 74 68 |ous toke|ns on th| |000009f0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 64 69 72 |e end of| the dir| |00000a00| 65 63 74 69 76 65 2e 0d | 20 20 20 20 20 20 20 20 |ective..| | |00000a10| 20 20 20 20 20 20 20 20 | 2a 2f 0d 20 20 20 20 20 | |*/. | |00000a20| 20 20 20 20 20 20 20 20 | 20 20 77 68 69 6c 65 20 | | while | |00000a30| 28 74 2d 3e 74 6f 6b 5f | 69 64 20 21 3d 20 50 70 |(t->tok_|id != Pp| |00000a40| 44 69 72 45 6e 64 29 20 | 7b 0d 20 20 20 20 20 20 |DirEnd) |{. | |00000a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 72 65 65 | | free| |00000a60| 5f 74 28 74 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |_t(t);. | | |00000a70| 20 20 20 20 20 20 20 20 | 20 74 20 3d 20 6e 65 78 | | t = nex| |00000a80| 74 5f 74 6f 6b 28 29 3b | 0d 20 20 20 20 20 20 20 |t_tok();|. | |00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0d 20 20 20 | | }. | |00000aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 72 65 65 | | free| |00000ab0| 5f 74 28 74 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |_t(t);. | | |00000ac0| 20 20 20 20 20 20 66 72 | 65 65 5f 74 28 74 31 29 | fr|ee_t(t1)| |00000ad0| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | | |00000ae0| 20 72 65 74 75 72 6e 3b | 0d 20 20 20 20 20 20 20 | return;|. | |00000af0| 20 20 20 20 20 20 20 20 | 7d 0d 20 20 20 20 20 20 | |}. | |00000b00| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0d 20 20 0d | br|eak;. .| |00000b10| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 50 70 | | case Pp| |00000b20| 45 6c 69 66 3a 0d 20 20 | 20 20 20 20 20 20 20 20 |Elif:. | | |00000b30| 20 20 2f 2a 0d 20 20 20 | 20 20 20 20 20 20 20 20 | /*. | | |00000b40| 20 20 2a 20 23 65 6c 69 | 66 20 66 6f 75 6e 64 2e | * #eli|f found.| |00000b50| 20 49 66 20 74 68 69 73 | 20 69 73 20 6e 6f 74 20 | If this| is not | |00000b60| 61 20 6e 65 73 74 65 64 | 20 63 6f 6e 64 69 74 69 |a nested| conditi| |00000b70| 6f 6e 61 6c 2c 20 73 65 | 65 20 69 66 0d 20 20 20 |onal, se|e if. | |00000b80| 20 20 20 20 20 20 20 20 | 20 20 2a 20 20 20 69 74 | | * it| |00000b90| 20 68 61 73 20 61 20 74 | 72 75 65 20 63 6f 6e 64 | has a t|rue cond| |00000ba0| 69 74 69 6f 6e 2e 0d 20 | 20 20 20 20 20 20 20 20 |ition.. | | |00000bb0| 20 20 20 20 2a 2f 0d 20 | 20 20 20 20 20 20 20 20 | */. | | |00000bc0| 20 20 20 69 66 20 28 6e | 65 73 74 69 6e 67 20 3d | if (n|esting =| |00000bd0| 3d 20 30 29 20 7b 0d 20 | 20 20 20 20 20 20 20 20 |= 0) {. | | |00000be0| 20 20 20 20 20 20 66 72 | 65 65 5f 74 28 74 29 3b | fr|ee_t(t);| |00000bf0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00000c00| 74 20 3d 20 74 31 3b 0d | 20 20 20 20 20 20 20 20 |t = t1;.| | |00000c10| 20 20 20 20 20 20 20 74 | 31 20 3d 20 4e 55 4c 4c | t|1 = NULL| |00000c20| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | | |00000c30| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 3d 20 65 76 61 | conditi|on = eva| |00000c40| 6c 28 74 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |l(t);. | | |00000c50| 20 20 20 20 20 7d 0d 20 | 20 20 20 20 20 20 20 20 | }. | | |00000c60| 20 20 20 62 72 65 61 6b | 3b 0d 20 0d 20 20 20 20 | break|;. . | |00000c70| 20 20 20 20 20 63 61 73 | 65 20 50 70 45 6c 73 65 | cas|e PpElse| |00000c80| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2a |:. | /*| |00000c90| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 |. | * | |00000ca0| 23 65 6c 73 65 20 66 6f | 75 6e 64 2e 20 49 66 20 |#else fo|und. If | |00000cb0| 74 68 69 73 20 69 73 20 | 6e 6f 74 20 61 20 6e 65 |this is |not a ne| |00000cc0| 73 74 65 64 20 63 6f 6e | 64 69 74 69 6f 6e 61 6c |sted con|ditional| |00000cd0| 2c 20 74 61 6b 65 0d 20 | 20 20 20 20 20 20 20 20 |, take. | | |00000ce0| 20 20 20 20 2a 20 20 74 | 68 69 73 20 62 72 61 6e | * t|his bran| |00000cf0| 63 68 2e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ch.. | | |00000d00| 20 2a 2f 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | */. | | |00000d10| 69 66 20 28 6e 65 73 74 | 69 6e 67 20 3d 3d 20 30 |if (nest|ing == 0| |00000d20| 29 20 7b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |00000d30| 20 20 20 66 72 65 65 5f | 74 28 74 29 3b 0d 20 20 | free_|t(t);. | |00000d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 20 3d | | t =| |00000d50| 20 74 31 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 | t1;. | | |00000d60| 20 20 20 20 74 31 20 3d | 20 6e 65 78 74 5f 74 6f | t1 =| next_to| |00000d70| 6b 28 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |k();. | | |00000d80| 20 20 20 20 2f 2a 0d 20 | 20 20 20 20 20 20 20 20 | /*. | | |00000d90| 20 20 20 20 20 20 20 2a | 20 44 69 73 63 61 72 64 | *| Discard| |00000da0| 20 61 6e 79 20 65 78 74 | 72 61 6e 65 6f 75 73 20 | any ext|raneous | |00000db0| 74 6f 6b 65 6e 73 20 6f | 6e 20 74 68 65 20 65 6e |tokens o|n the en| |00000dc0| 64 20 6f 66 20 74 68 65 | 20 64 69 72 65 63 74 69 |d of the| directi| |00000dd0| 76 65 2e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ve.. | | |00000de0| 20 20 20 20 2a 2f 0d 20 | 20 20 20 20 20 20 20 20 | */. | | |00000df0| 20 20 20 20 20 20 77 68 | 69 6c 65 20 28 74 31 2d | wh|ile (t1-| |00000e00| 3e 74 6f 6b 5f 69 64 20 | 21 3d 20 50 70 44 69 72 |>tok_id |!= PpDir| |00000e10| 45 6e 64 29 20 7b 0d 20 | 20 20 20 20 20 20 20 20 |End) {. | | |00000e20| 20 20 20 20 20 20 20 20 | 20 66 72 65 65 5f 74 28 | | free_t(| |00000e30| 74 31 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |t1);. | | |00000e40| 20 20 20 20 20 20 20 74 | 31 20 3d 20 6e 65 78 74 | t|1 = next| |00000e50| 5f 74 6f 6b 28 29 3b 0d | 20 20 20 20 20 20 20 20 |_tok();.| | |00000e60| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 | | }. | |00000e70| 20 20 20 20 20 20 20 20 | 20 20 20 63 6f 6e 64 69 | | condi| |00000e80| 74 69 6f 6e 20 3d 20 31 | 3b 0d 20 20 20 20 20 20 |tion = 1|;. | |00000e90| 20 20 20 20 20 20 20 20 | 20 7d 0d 20 20 20 20 20 | | }. | |00000ea0| 20 20 20 20 7d 0d 20 20 | 20 20 20 20 66 72 65 65 | }. | free| |00000eb0| 5f 74 28 74 31 29 3b 0d | 20 20 20 20 20 20 7d 0d |_t(t1);.| }.| |00000ec0| 20 20 20 74 6c 73 74 20 | 3d 20 6e 65 77 5f 74 5f | tlst |= new_t_| |00000ed0| 6c 73 74 28 74 29 3b 0d | 20 20 20 74 6c 73 74 2d |lst(t);.| tlst-| |00000ee0| 3e 6e 65 78 74 20 3d 20 | 73 72 63 5f 73 74 61 63 |>next = |src_stac| |00000ef0| 6b 2d 3e 63 6f 6e 64 3b | 0d 20 20 20 73 72 63 5f |k->cond;|. src_| |00000f00| 73 74 61 63 6b 2d 3e 63 | 6f 6e 64 20 3d 20 74 6c |stack->c|ond = tl| |00000f10| 73 74 3b 0d 20 20 20 7d | 0d 0c 0d 2f 2a 0d 20 2a |st;. }|.../*. *| |00000f20| 20 65 6e 64 5f 73 65 6c | 65 63 74 20 2d 20 68 61 | end_sel|ect - ha| |00000f30| 6e 64 6c 65 20 23 65 6c | 69 66 2c 20 23 65 6c 73 |ndle #el|if, #els| |00000f40| 65 2c 20 61 6e 64 20 23 | 65 6e 64 69 66 0d 20 2a |e, and #|endif. *| |00000f50| 2f 0d 73 74 61 74 69 63 | 20 6e 6f 76 61 6c 75 65 |/.static| novalue| |00000f60| 20 65 6e 64 5f 73 65 6c | 65 63 74 28 74 29 0d 73 | end_sel|ect(t).s| |00000f70| 74 72 75 63 74 20 74 6f | 6b 65 6e 20 2a 74 3b 0d |truct to|ken *t;.| |00000f80| 20 20 20 7b 0d 20 20 20 | 73 74 72 75 63 74 20 74 | {. |struct t| |00000f90| 6f 6b 5f 6c 73 74 20 2a | 74 6c 73 74 3b 0d 20 20 |ok_lst *|tlst;. | |00000fa0| 20 73 74 72 75 63 74 20 | 74 6f 6b 65 6e 20 2a 74 | struct |token *t| |00000fb0| 31 3b 0d 20 20 20 69 6e | 74 20 6e 65 73 74 69 6e |1;. in|t nestin| |00000fc0| 67 3b 0d 0d 20 20 20 2f | 2a 0d 20 20 20 20 2a 20 |g;.. /|*. * | |00000fd0| 4d 61 6b 65 20 73 75 72 | 65 20 77 65 20 61 72 65 |Make sur|e we are| |00000fe0| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 63 6f 6e 64 | process|ing cond| |00000ff0| 69 74 69 6f 6e 61 6c 20 | 63 6f 6d 70 69 6c 61 74 |itional |compilat| |00001000| 69 6f 6e 20 61 6e 64 20 | 70 6f 70 20 69 74 0d 20 |ion and |pop it. | |00001010| 20 20 20 2a 20 20 66 72 | 6f 6d 20 74 68 65 20 6c | * fr|om the l| |00001020| 69 73 74 20 6f 66 20 63 | 6f 6e 64 69 74 69 6f 6e |ist of c|ondition| |00001030| 61 6c 20 6e 65 73 74 69 | 6e 67 2e 0d 20 20 20 20 |al nesti|ng.. | |00001040| 2a 2f 0d 20 20 20 74 6c | 73 74 20 3d 20 73 72 63 |*/. tl|st = src| |00001050| 5f 73 74 61 63 6b 2d 3e | 63 6f 6e 64 3b 0d 20 20 |_stack->|cond;. | |00001060| 20 69 66 20 28 74 6c 73 | 74 20 3d 3d 20 4e 55 4c | if (tls|t == NUL| |00001070| 4c 29 0d 20 20 20 20 20 | 20 65 72 72 74 32 28 74 |L). | errt2(t| |00001080| 2c 20 22 69 6e 76 61 6c | 69 64 20 63 6f 6e 74 65 |, "inval|id conte| |00001090| 78 74 20 66 6f 72 20 23 | 22 2c 20 74 2d 3e 69 6d |xt for #|", t->im| |000010a0| 61 67 65 29 3b 0d 20 20 | 20 73 72 63 5f 73 74 61 |age);. | src_sta| |000010b0| 63 6b 2d 3e 63 6f 6e 64 | 20 3d 20 74 6c 73 74 2d |ck->cond| = tlst-| |000010c0| 3e 6e 65 78 74 3b 0d 20 | 20 20 74 6c 73 74 2d 3e |>next;. | tlst->| |000010d0| 6e 65 78 74 20 3d 20 4e | 55 4c 4c 3b 0d 20 20 20 |next = N|ULL;. | |000010e0| 66 72 65 65 5f 74 5f 6c | 73 74 28 74 6c 73 74 29 |free_t_l|st(tlst)| |000010f0| 3b 0d 0d 20 20 20 2f 2a | 0d 20 20 20 20 2a 20 57 |;.. /*|. * W| |00001100| 65 20 61 72 65 20 64 6f | 6e 65 20 77 69 74 68 20 |e are do|ne with | |00001110| 74 68 65 20 73 65 6c 65 | 63 74 65 64 20 62 72 61 |the sele|cted bra| |00001120| 6e 63 68 20 66 6f 72 20 | 74 68 65 20 63 6f 6e 64 |nch for |the cond| |00001130| 69 74 69 6f 6e 61 6c 20 | 63 6f 6d 70 69 6c 61 74 |itional |compilat| |00001140| 69 6f 6e 2e 0d 20 20 20 | 20 2a 20 20 53 6b 69 70 |ion.. | * Skip| |00001150| 20 74 6f 20 74 68 65 20 | 6d 61 74 63 68 69 6e 67 | to the |matching| |00001160| 20 23 65 6e 64 69 66 20 | 28 69 66 20 77 65 20 61 | #endif |(if we a| |00001170| 72 65 20 6e 6f 74 20 61 | 6c 72 65 61 64 79 20 74 |re not a|lready t| |00001180| 68 65 72 65 29 2e 20 44 | 6f 6e 27 74 0d 20 20 20 |here). D|on't. | |00001190| 20 2a 20 20 62 65 20 63 | 6f 6e 66 75 73 65 64 20 | * be c|onfused | |000011a0| 62 79 20 6e 65 73 74 65 | 64 20 63 6f 6e 64 69 74 |by neste|d condit| |000011b0| 69 6f 6e 61 6c 73 2e 0d | 20 20 20 20 2a 2f 0d 20 |ionals..| */. | |000011c0| 20 20 6e 65 73 74 69 6e | 67 20 3d 20 30 3b 0d 20 | nestin|g = 0;. | |000011d0| 20 20 74 31 20 3d 20 63 | 6f 70 79 5f 74 28 74 29 | t1 = c|opy_t(t)| |000011e0| 3b 0d 20 20 20 77 68 69 | 6c 65 20 28 74 31 2d 3e |;. whi|le (t1->| |000011f0| 74 6f 6b 5f 69 64 20 21 | 3d 20 50 70 45 6e 64 69 |tok_id !|= PpEndi| |00001200| 66 20 7c 7c 20 6e 65 73 | 74 69 6e 67 20 3e 20 30 |f || nes|ting > 0| |00001210| 29 20 7b 0d 20 20 20 20 | 20 20 73 77 69 74 63 68 |) {. | switch| |00001220| 20 28 74 31 2d 3e 74 6f | 6b 5f 69 64 29 20 7b 0d | (t1->to|k_id) {.| |00001230| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 50 70 | | case Pp| |00001240| 49 66 3a 0d 20 20 20 20 | 20 20 20 20 20 63 61 73 |If:. | cas| |00001250| 65 20 50 70 49 66 64 65 | 66 3a 0d 20 20 20 20 20 |e PpIfde|f:. | |00001260| 20 20 20 20 63 61 73 65 | 20 50 70 49 66 6e 64 65 | case| PpIfnde| |00001270| 66 3a 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 2b |f:. | +| |00001280| 2b 6e 65 73 74 69 6e 67 | 3b 0d 20 20 20 20 20 20 |+nesting|;. | |00001290| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0d 0d 20 20 | br|eak;.. | |000012a0| 20 20 20 20 20 20 20 63 | 61 73 65 20 50 70 45 6e | c|ase PpEn| |000012b0| 64 69 66 3a 0d 20 20 20 | 20 20 20 20 20 20 20 20 |dif:. | | |000012c0| 20 2d 2d 6e 65 73 74 69 | 6e 67 3b 0d 20 20 20 20 | --nesti|ng;. | |000012d0| 20 20 20 20 20 7d 0d 20 | 20 20 20 20 20 66 72 65 | }. | fre| |000012e0| 65 5f 74 28 74 31 29 3b | 0d 20 20 20 20 20 20 74 |e_t(t1);|. t| |000012f0| 31 20 3d 20 6e 65 78 74 | 5f 74 6f 6b 28 29 3b 0d |1 = next|_tok();.| |00001300| 20 20 20 20 20 20 69 66 | 20 28 74 31 20 3d 3d 20 | if| (t1 == | |00001310| 4e 55 4c 4c 29 0d 20 20 | 20 20 20 20 20 20 65 72 |NULL). | er| |00001320| 72 74 32 28 74 2c 20 22 | 6e 6f 20 6d 61 74 63 68 |rt2(t, "|no match| |00001330| 69 6e 67 20 23 65 6e 64 | 69 66 20 66 6f 72 20 23 |ing #end|if for #| |00001340| 22 2c 20 74 2d 3e 69 6d | 61 67 65 29 3b 0d 20 20 |", t->im|age);. | |00001350| 20 20 20 20 7d 0d 20 20 | 20 66 72 65 65 5f 74 28 | }. | free_t(| |00001360| 74 29 3b 0d 0d 20 20 20 | 2f 2a 0d 20 20 20 20 2a |t);.. |/*. *| |00001370| 20 44 69 73 63 61 72 64 | 20 61 6e 79 20 65 78 74 | Discard| any ext| |00001380| 72 61 6e 65 6f 75 73 20 | 74 6f 6b 65 6e 73 20 6f |raneous |tokens o| |00001390| 6e 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |n the en|d of the| |000013a0| 20 23 65 6e 64 69 66 20 | 64 69 72 65 63 74 69 76 | #endif |directiv| |000013b0| 65 2e 0d 20 20 20 20 2a | 2f 0d 20 20 20 77 68 69 |e.. *|/. whi| |000013c0| 6c 65 20 28 74 31 2d 3e | 74 6f 6b 5f 69 64 20 21 |le (t1->|tok_id !| |000013d0| 3d 20 50 70 44 69 72 45 | 6e 64 29 20 7b 0d 20 20 |= PpDirE|nd) {. | |000013e0| 20 20 20 20 66 72 65 65 | 5f 74 28 74 31 29 3b 0d | free|_t(t1);.| |000013f0| 20 20 20 20 20 20 74 31 | 20 3d 20 6e 65 78 74 5f | t1| = next_| |00001400| 74 6f 6b 28 29 3b 0d 20 | 20 20 20 20 20 7d 0d 20 |tok();. | }. | |00001410| 20 20 66 72 65 65 5f 74 | 28 74 31 29 3b 0d 20 20 | free_t|(t1);. | |00001420| 20 72 65 74 75 72 6e 3b | 0d 20 20 20 7d 0d 0c 0d | return;|. }...| |00001430| 2f 2a 0d 20 2a 20 69 6e | 63 6c 5f 66 69 6c 65 20 |/*. * in|cl_file | |00001440| 2d 20 68 61 6e 64 6c 65 | 20 23 69 6e 63 6c 75 64 |- handle| #includ| |00001450| 65 0d 20 2a 2f 0d 73 74 | 61 74 69 63 20 6e 6f 76 |e. */.st|atic nov| |00001460| 61 6c 75 65 20 69 6e 63 | 6c 5f 66 69 6c 65 28 74 |alue inc|l_file(t| |00001470| 29 0d 73 74 72 75 63 74 | 20 74 6f 6b 65 6e 20 2a |).struct| token *| |00001480| 74 3b 0d 20 20 20 7b 0d | 20 20 20 73 74 72 75 63 |t;. {.| struc| |00001490| 74 20 74 6f 6b 65 6e 20 | 2a 66 69 6c 65 5f 74 6f |t token |*file_to| |000014a0| 6b 2c 20 2a 74 31 3b 0d | 20 20 20 73 74 72 75 63 |k, *t1;.| struc| |000014b0| 74 20 73 74 72 5f 62 75 | 66 20 2a 73 62 75 66 3b |t str_bu|f *sbuf;| |000014c0| 0d 20 20 20 63 68 61 72 | 20 2a 73 3b 0d 20 20 20 |. char| *s;. | |000014d0| 63 68 61 72 20 2a 66 6e | 61 6d 65 3b 0d 20 20 20 |char *fn|ame;. | |000014e0| 69 6e 74 20 6c 69 6e 65 | 3b 0d 0d 20 20 20 66 69 |int line|;.. fi| |000014f0| 6c 65 5f 74 6f 6b 20 3d | 20 4e 55 4c 4c 3b 0d 20 |le_tok =| NULL;. | |00001500| 20 20 61 64 76 61 6e 63 | 65 5f 74 6f 6b 28 26 66 | advanc|e_tok(&f| |00001510| 69 6c 65 5f 74 6f 6b 29 | 3b 0d 0d 20 20 20 2f 2a |ile_tok)|;.. /*| |00001520| 0d 20 20 20 20 2a 20 44 | 65 74 65 72 6d 69 6e 65 |. * D|etermine| |00001530| 20 77 68 61 74 20 66 6f | 72 6d 20 74 68 65 20 68 | what fo|rm the h| |00001540| 65 61 64 20 66 69 6c 65 | 20 6e 61 6d 65 20 74 61 |ead file| name ta| |00001550| 6b 65 73 2e 0d 20 20 20 | 20 2a 2f 0d 20 20 20 69 |kes.. | */. i| |00001560| 66 20 28 66 69 6c 65 5f | 74 6f 6b 2d 3e 74 6f 6b |f (file_|tok->tok| |00001570| 5f 69 64 20 21 3d 20 53 | 74 72 4c 69 74 20 26 26 |_id != S|trLit &&| |00001580| 20 66 69 6c 65 5f 74 6f | 6b 2d 3e 74 6f 6b 5f 69 | file_to|k->tok_i| |00001590| 64 20 21 3d 20 50 70 48 | 65 61 64 65 72 29 20 7b |d != PpH|eader) {| |000015a0| 0d 20 20 20 20 20 20 2f | 2a 0d 20 20 20 20 20 20 |. /|*. | |000015b0| 20 2a 20 73 65 65 20 69 | 66 20 6d 61 63 72 6f 20 | * see i|f macro | |000015c0| 65 78 70 61 6e 73 69 6f | 6e 20 63 72 65 61 74 65 |expansio|n create| |000015d0| 64 20 61 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |d a name| of the | |000015e0| 66 6f 72 6d 20 3c 2e 2e | 2e 3e 0d 20 20 20 20 20 |form <..|.>. | |000015f0| 20 20 2a 2f 0d 20 20 20 | 20 20 20 74 31 20 3d 20 | */. | t1 = | |00001600| 66 69 6c 65 5f 74 6f 6b | 3b 0d 20 20 20 20 20 20 |file_tok|;. | |00001610| 73 20 3d 20 74 31 2d 3e | 69 6d 61 67 65 3b 0d 20 |s = t1->|image;. | |00001620| 20 20 20 20 20 66 6e 61 | 6d 65 20 3d 20 74 31 2d | fna|me = t1-| |00001630| 3e 66 6e 61 6d 65 3b 0d | 20 20 20 20 20 20 6c 69 |>fname;.| li| |00001640| 6e 65 20 3d 20 74 31 2d | 3e 6c 69 6e 65 3b 0d 20 |ne = t1-|>line;. | |00001650| 20 20 20 20 20 69 66 20 | 28 2a 73 20 21 3d 20 27 | if |(*s != '| |00001660| 3c 27 29 0d 20 20 20 20 | 20 20 20 20 20 65 72 72 |<'). | err| |00001670| 74 31 28 74 31 2c 20 22 | 69 6e 76 61 6c 69 64 20 |t1(t1, "|invalid | |00001680| 69 6e 63 6c 75 64 65 20 | 66 69 6c 65 20 73 79 6e |include |file syn| |00001690| 74 61 78 22 29 3b 0d 20 | 20 20 20 20 20 2b 2b 73 |tax");. | ++s| |000016a0| 3b 0d 0d 20 20 20 20 20 | 20 2f 2a 0d 20 20 20 20 |;.. | /*. | |000016b0| 20 20 20 2a 20 47 61 74 | 68 65 72 20 69 6e 74 6f | * Gat|her into| |000016c0| 20 61 20 73 74 72 69 6e | 67 20 62 75 66 66 65 72 | a strin|g buffer| |000016d0| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 73 20 | the cha|racters | |000016e0| 66 72 6f 6d 20 73 75 62 | 73 65 71 75 65 6e 74 20 |from sub|sequent | |000016f0| 74 6f 6b 65 6e 73 0d 20 | 20 20 20 20 20 20 2a 20 |tokens. | * | |00001700| 20 75 6e 74 69 6c 20 74 | 68 65 20 63 6c 6f 73 69 | until t|he closi| |00001710| 6e 67 20 27 3e 27 20 69 | 73 20 66 6f 75 6e 64 2c |ng '>' i|s found,| |00001720| 20 74 68 65 6e 20 63 72 | 65 61 74 65 20 61 20 22 | then cr|eate a "| |00001730| 68 65 61 64 65 72 22 20 | 74 6f 6b 65 6e 0d 20 20 |header" |token. | |00001740| 20 20 20 20 20 2a 20 20 | 66 72 6f 6d 20 69 74 2e | * |from it.| |00001750| 0d 20 20 20 20 20 20 20 | 2a 2f 0d 20 20 20 20 20 |. |*/. | |00001760| 20 73 62 75 66 20 3d 20 | 67 65 74 5f 73 62 75 66 | sbuf = |get_sbuf| |00001770| 28 29 3b 0d 20 20 20 20 | 20 20 77 68 69 6c 65 20 |();. | while | |00001780| 28 2a 73 20 21 3d 20 27 | 3e 27 29 20 7b 0d 20 20 |(*s != '|>') {. | |00001790| 20 20 20 20 20 20 20 77 | 68 69 6c 65 20 28 2a 73 | w|hile (*s| |000017a0| 20 21 3d 20 27 5c 30 27 | 20 26 26 20 2a 73 20 21 | != '\0'| && *s !| |000017b0| 3d 20 27 3e 27 29 0d 20 | 20 20 20 20 20 20 20 20 |= '>'). | | |000017c0| 20 20 20 41 70 70 43 68 | 61 72 28 2a 73 62 75 66 | AppCh|ar(*sbuf| |000017d0| 2c 20 2a 73 2b 2b 29 3b | 0d 20 20 20 20 20 20 20 |, *s++);|. | |000017e0| 20 20 69 66 20 28 2a 73 | 20 3d 3d 20 27 5c 30 27 | if (*s| == '\0'| |000017f0| 29 20 7b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | | |00001800| 73 77 69 74 63 68 20 28 | 74 31 2d 3e 74 6f 6b 5f |switch (|t1->tok_| |00001810| 69 64 29 20 7b 0d 20 20 | 20 20 20 20 20 20 20 20 |id) {. | | |00001820| 20 20 20 20 20 63 61 73 | 65 20 53 74 72 4c 69 74 | cas|e StrLit| |00001830| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:. | | |00001840| 20 63 61 73 65 20 4c 53 | 74 72 4c 69 74 3a 0d 20 | case LS|trLit:. | |00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001860| 20 41 70 70 43 68 61 72 | 28 2a 73 62 75 66 2c 20 | AppChar|(*sbuf, | |00001870| 27 22 27 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |'"');. | | |00001880| 20 20 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0d 20 | |break;. | |00001890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca| |000018a0| 73 65 20 43 68 61 72 43 | 6f 6e 73 74 3a 0d 20 20 |se CharC|onst:. | |000018b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 73 | | cas| |000018c0| 65 20 4c 43 68 61 72 43 | 6f 6e 73 74 3a 0d 20 20 |e LCharC|onst:. | |000018d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |000018e0| 41 70 70 43 68 61 72 28 | 2a 73 62 75 66 2c 20 27 |AppChar(|*sbuf, '| |000018f0| 5c 27 27 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |\'');. | | |00001900| 20 20 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0d 20 | |break;. | |00001910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0d | | }.| |00001920| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 72 65 65 | | free| |00001930| 5f 74 28 74 31 29 3b 0d | 20 20 20 20 20 20 20 20 |_t(t1);.| | |00001940| 20 20 20 20 74 31 20 3d | 20 69 6e 74 65 72 70 5f | t1 =| interp_| |00001950| 64 69 72 28 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |dir();. | | |00001960| 20 20 20 73 77 69 74 63 | 68 20 28 74 31 2d 3e 74 | switc|h (t1->t| |00001970| 6f 6b 5f 69 64 29 20 7b | 0d 20 20 20 20 20 20 20 |ok_id) {|. | |00001980| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 53 74 72 | |case Str| |00001990| 4c 69 74 3a 0d 20 20 20 | 20 20 20 20 20 20 20 20 |Lit:. | | |000019a0| 20 20 20 20 20 20 20 41 | 70 70 43 68 61 72 28 2a | A|ppChar(*| |000019b0| 73 62 75 66 2c 20 27 22 | 27 29 3b 0d 20 20 20 20 |sbuf, '"|');. | |000019c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 | | br| |000019d0| 65 61 6b 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |eak;. | | |000019e0| 20 20 20 20 63 61 73 65 | 20 4c 53 74 72 4c 69 74 | case| LStrLit| |000019f0| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:. | | |00001a00| 20 20 20 20 41 70 70 43 | 68 61 72 28 2a 73 62 75 | AppC|har(*sbu| |00001a10| 66 2c 20 27 4c 27 29 3b | 0d 20 20 20 20 20 20 20 |f, 'L');|. | |00001a20| 20 20 20 20 20 20 20 20 | 20 20 20 41 70 70 43 68 | | AppCh| |00001a30| 61 72 28 2a 73 62 75 66 | 2c 20 27 22 27 29 3b 0d |ar(*sbuf|, '"');.| |00001a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001a50| 20 20 62 72 65 61 6b 3b | 0d 20 20 20 20 20 20 20 | break;|. | |00001a60| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 43 68 61 | |case Cha| |00001a70| 72 43 6f 6e 73 74 3a 0d | 20 20 20 20 20 20 20 20 |rConst:.| | |00001a80| 20 20 20 20 20 20 20 20 | 20 20 41 70 70 43 68 61 | | AppCha| |00001a90| 72 28 2a 73 62 75 66 2c | 20 27 5c 27 27 29 3b 0d |r(*sbuf,| '\'');.| |00001aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001ab0| 20 20 62 72 65 61 6b 3b | 0d 20 20 20 20 20 20 20 | break;|. | |00001ac0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 4c 43 68 | |case LCh| |00001ad0| 61 72 43 6f 6e 73 74 3a | 0d 20 20 20 20 20 20 20 |arConst:|. | |00001ae0| 20 20 20 20 20 20 20 20 | 20 20 20 41 70 70 43 68 | | AppCh| |00001af0| 61 72 28 2a 73 62 75 66 | 2c 20 27 4c 27 29 3b 0d |ar(*sbuf|, 'L');.| |00001b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001b10| 20 20 41 70 70 43 68 61 | 72 28 2a 73 62 75 66 2c | AppCha|r(*sbuf,| |00001b20| 20 27 5c 27 27 29 3b 0d | 20 20 20 20 20 20 20 20 | '\'');.| | |00001b30| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;| |00001b40| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |00001b50| 63 61 73 65 20 50 70 44 | 69 72 45 6e 64 3a 0d 20 |case PpD|irEnd:. | |00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00001b70| 20 65 72 72 74 31 28 74 | 31 2c 20 22 69 6e 76 61 | errt1(t|1, "inva| |00001b80| 6c 69 64 20 69 6e 63 6c | 75 64 65 20 66 69 6c 65 |lid incl|ude file| |00001b90| 20 73 79 6e 74 61 78 22 | 29 3b 0d 20 20 20 20 20 | syntax"|);. | |00001ba0| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 | | }. | |00001bb0| 20 20 20 20 20 20 20 20 | 69 66 20 28 74 31 2d 3e | |if (t1->| |00001bc0| 74 6f 6b 5f 69 64 20 3d | 3d 20 57 68 69 74 65 53 |tok_id =|= WhiteS| |00001bd0| 70 61 63 65 29 0d 20 20 | 20 20 20 20 20 20 20 20 |pace). | | |00001be0| 20 20 20 20 20 41 70 70 | 43 68 61 72 28 2a 73 62 | App|Char(*sb| |00001bf0| 75 66 2c 20 27 20 27 29 | 0d 20 20 20 20 20 20 20 |uf, ' ')|. | |00001c00| 20 20 20 20 20 65 6c 73 | 65 0d 20 20 20 20 20 20 | els|e. | |00001c10| 20 20 20 20 20 20 20 20 | 20 73 20 3d 20 74 31 2d | | s = t1-| |00001c20| 3e 69 6d 61 67 65 3b 0d | 20 20 20 20 20 20 20 20 |>image;.| | |00001c30| 20 20 20 20 7d 0d 20 20 | 20 20 20 20 20 20 20 7d | }. | }| |00001c40| 0d 20 20 20 20 20 20 69 | 66 20 28 2a 2b 2b 73 20 |. i|f (*++s | |00001c50| 21 3d 20 27 5c 30 27 29 | 0d 20 20 20 20 20 20 20 |!= '\0')|. | |00001c60| 20 20 65 72 72 74 31 28 | 74 31 2c 20 22 69 6e 76 | errt1(|t1, "inv| |00001c70| 61 6c 69 64 20 69 6e 63 | 6c 75 64 65 20 66 69 6c |alid inc|lude fil| |00001c80| 65 20 73 79 6e 74 61 78 | 22 29 3b 0d 20 20 20 20 |e syntax|");. | |00001c90| 20 20 66 72 65 65 5f 74 | 28 74 31 29 3b 0d 20 20 | free_t|(t1);. | |00001ca0| 20 20 20 20 66 69 6c 65 | 5f 74 6f 6b 20 3d 20 6e | file|_tok = n| |00001cb0| 65 77 5f 74 6f 6b 65 6e | 28 50 70 48 65 61 64 65 |ew_token|(PpHeade| |00001cc0| 72 2c 20 73 74 72 5f 69 | 6e 73 74 61 6c 6c 28 73 |r, str_i|nstall(s| |00001cd0| 62 75 66 29 2c 20 66 6e | 61 6d 65 2c 20 6c 69 6e |buf), fn|ame, lin| |00001ce0| 65 29 3b 0d 20 20 20 20 | 20 20 72 65 6c 5f 73 62 |e);. | rel_sb| |00001cf0| 75 66 28 73 62 75 66 29 | 3b 0d 20 20 20 20 20 20 |uf(sbuf)|;. | |00001d00| 7d 0d 0d 20 20 20 74 31 | 20 3d 20 69 6e 74 65 72 |}.. t1| = inter| |00001d10| 70 5f 64 69 72 28 29 3b | 0d 20 20 20 69 66 20 28 |p_dir();|. if (| |00001d20| 74 31 2d 3e 74 6f 6b 5f | 69 64 20 21 3d 20 50 70 |t1->tok_|id != Pp| |00001d30| 44 69 72 45 6e 64 29 0d | 20 20 20 20 20 20 65 72 |DirEnd).| er| |00001d40| 72 74 31 28 74 31 2c 20 | 22 69 6e 76 61 6c 69 64 |rt1(t1, |"invalid| |00001d50| 20 69 6e 63 6c 75 64 65 | 20 66 69 6c 65 20 73 79 | include| file sy| |00001d60| 6e 74 61 78 22 29 3b 0d | 20 20 20 66 72 65 65 5f |ntax");.| free_| |00001d70| 74 28 74 31 29 3b 0d 0d | 20 20 20 2f 2a 0d 20 20 |t(t1);..| /*. | |00001d80| 20 20 2a 20 41 64 64 20 | 74 68 65 20 66 69 6c 65 | * Add |the file| |00001d90| 20 74 6f 20 74 68 65 20 | 74 6f 70 20 6f 66 20 74 | to the |top of t| |00001da0| 68 65 20 74 6f 6b 65 6e | 20 73 6f 75 72 63 65 20 |he token| source | |00001db0| 73 74 61 63 6b 2e 0d 20 | 20 20 20 2a 2f 0d 20 20 |stack.. | */. | |00001dc0| 20 69 66 20 28 66 69 6c | 65 5f 74 6f 6b 2d 3e 74 | if (fil|e_tok->t| |00001dd0| 6f 6b 5f 69 64 20 3d 3d | 20 53 74 72 4c 69 74 29 |ok_id ==| StrLit)| |00001de0| 0d 20 20 20 20 20 20 69 | 6e 63 6c 75 64 65 28 74 |. i|nclude(t| |00001df0| 2c 20 66 69 6c 65 5f 74 | 6f 6b 2d 3e 69 6d 61 67 |, file_t|ok->imag| |00001e00| 65 2c 20 30 29 3b 0d 20 | 20 20 65 6c 73 65 0d 20 |e, 0);. | else. | |00001e10| 20 20 20 20 20 69 6e 63 | 6c 75 64 65 28 74 2c 20 | inc|lude(t, | |00001e20| 66 69 6c 65 5f 74 6f 6b | 2d 3e 69 6d 61 67 65 2c |file_tok|->image,| |00001e30| 20 31 29 3b 0d 20 20 20 | 66 72 65 65 5f 74 28 66 | 1);. |free_t(f| |00001e40| 69 6c 65 5f 74 6f 6b 29 | 3b 0d 20 20 20 66 72 65 |ile_tok)|;. fre| |00001e50| 65 5f 74 28 74 29 3b 0d | 20 20 20 7d 0d 0c 0d 2f |e_t(t);.| }.../| |00001e60| 2a 0d 20 2a 20 64 65 66 | 69 6e 65 20 2d 20 68 61 |*. * def|ine - ha| |00001e70| 6e 64 6c 65 20 23 64 65 | 66 69 6e 65 20 61 6e 64 |ndle #de|fine and| |00001e80| 20 23 62 65 67 64 65 66 | 0d 20 2a 2f 0d 73 74 61 | #begdef|. */.sta| |00001e90| 74 69 63 20 6e 6f 76 61 | 6c 75 65 20 64 65 66 69 |tic nova|lue defi| |00001ea0| 6e 65 28 74 29 0d 73 74 | 72 75 63 74 20 74 6f 6b |ne(t).st|ruct tok| |00001eb0| 65 6e 20 2a 74 3b 0d 20 | 20 20 7b 0d 20 20 20 73 |en *t;. | {. s| |00001ec0| 74 72 75 63 74 20 74 6f | 6b 65 6e 20 2a 6d 6e 61 |truct to|ken *mna| |00001ed0| 6d 65 3b 20 20 20 2f 2a | 20 6e 61 6d 65 20 6f 66 |me; /*| name of| |00001ee0| 20 6d 61 63 72 6f 20 2a | 2f 0d 20 20 20 69 6e 74 | macro *|/. int| |00001ef0| 20 63 61 74 65 67 6f 72 | 79 3b 09 20 20 2f 2a 20 | categor|y;. /* | |00001f00| 4e 6f 41 72 67 73 20 66 | 6f 72 20 6f 62 6a 65 63 |NoArgs f|or objec| |00001f10| 74 2d 6c 69 6b 65 20 6d | 61 63 72 6f 2c 20 65 6c |t-like m|acro, el| |00001f20| 73 65 20 6e 75 6d 62 65 | 72 20 70 61 72 61 6d 73 |se numbe|r params| |00001f30| 20 2a 2f 0d 20 20 20 69 | 6e 74 20 6d 75 6c 74 69 | */. i|nt multi| |00001f40| 5f 6c 69 6e 65 3b 0d 20 | 20 20 73 74 72 75 63 74 |_line;. | struct| |00001f50| 20 69 64 5f 6c 73 74 20 | 2a 70 72 6d 6c 73 74 3b | id_lst |*prmlst;| |00001f60| 20 2f 2a 20 70 61 72 61 | 6d 65 74 65 72 20 6c 69 | /* para|meter li| |00001f70| 73 74 20 2a 2f 0d 20 20 | 20 73 74 72 75 63 74 20 |st */. | struct | |00001f80| 74 6f 6b 5f 6c 73 74 20 | 2a 62 6f 64 79 3b 20 20 |tok_lst |*body; | |00001f90| 2f 2a 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 20 6c |/* repla|cement l| |00001fa0| 69 73 74 20 2a 2f 0d 20 | 20 20 73 74 72 75 63 74 |ist */. | struct| |00001fb0| 20 74 6f 6b 65 6e 20 2a | 74 31 3b 0d 20 20 20 73 | token *|t1;. s| |00001fc0| 74 72 75 63 74 20 69 64 | 5f 6c 73 74 20 2a 2a 70 |truct id|_lst **p| |00001fd0| 69 6c 73 74 3b 0d 20 20 | 20 73 74 72 75 63 74 20 |ilst;. | struct | |00001fe0| 74 6f 6b 5f 6c 73 74 20 | 2a 2a 70 74 6c 73 74 3b |tok_lst |**ptlst;| |00001ff0| 0d 20 20 20 69 6e 74 20 | 6e 65 73 74 69 6e 67 3b |. int |nesting;| |00002000| 0d 0d 20 20 20 2f 2a 0d | 20 20 20 20 2a 20 47 65 |.. /*.| * Ge| |00002010| 74 20 74 68 65 20 6d 61 | 63 72 6f 20 6e 61 6d 65 |t the ma|cro name| |00002020| 2e 0d 20 20 20 20 2a 2f | 0d 20 20 20 6d 6e 61 6d |.. */|. mnam| |00002030| 65 20 3d 20 4e 55 4c 4c | 3b 0d 20 20 20 6e 78 74 |e = NULL|;. nxt| |00002040| 5f 6e 6f 6e 5f 77 68 28 | 26 6d 6e 61 6d 65 29 3b |_non_wh(|&mname);| |00002050| 0d 20 20 20 69 66 20 28 | 6d 6e 61 6d 65 2d 3e 74 |. if (|mname->t| |00002060| 6f 6b 5f 69 64 20 21 3d | 20 49 64 65 6e 74 69 66 |ok_id !=| Identif| |00002070| 69 65 72 29 0d 20 20 20 | 20 20 20 65 72 72 74 32 |ier). | errt2| |00002080| 28 6d 6e 61 6d 65 2c 20 | 22 73 79 6e 74 61 78 20 |(mname, |"syntax | |00002090| 65 72 72 6f 72 20 69 6e | 20 23 22 2c 20 74 2d 3e |error in| #", t->| |000020a0| 69 6d 61 67 65 29 3b 0d | 20 20 20 0d 20 20 20 2f |image);.| . /| |000020b0| 2a 0d 20 20 20 20 2a 20 | 44 65 74 65 72 6d 69 6e |*. * |Determin| |000020c0| 65 20 69 66 20 74 68 69 | 73 20 6d 61 63 72 6f 20 |e if thi|s macro | |000020d0| 74 61 6b 65 73 20 61 72 | 67 75 6d 65 6e 74 73 2e |takes ar|guments.| |000020e0| 0d 20 20 20 20 2a 2f 0d | 20 20 20 70 72 6d 6c 73 |. */.| prmls| |000020f0| 74 20 3d 20 4e 55 4c 4c | 3b 0d 20 20 20 74 31 20 |t = NULL|;. t1 | |00002100| 3d 20 6e 65 78 74 5f 74 | 6f 6b 28 29 3b 0d 20 20 |= next_t|ok();. | |00002110| 20 69 66 20 28 74 31 2d | 3e 74 6f 6b 5f 69 64 20 | if (t1-|>tok_id | |00002120| 3d 3d 20 27 28 27 29 20 | 7b 0d 20 20 20 20 20 20 |== '(') |{. | |00002130| 2f 2a 0d 20 20 20 20 20 | 20 20 2a 20 66 75 6e 63 |/*. | * func| |00002140| 74 69 6f 6e 20 6c 69 6b | 65 20 6d 61 63 72 6f 20 |tion lik|e macro | |00002150| 2d 20 67 61 74 68 65 72 | 20 70 61 72 61 6d 65 74 |- gather| paramet| |00002160| 65 72 20 6c 69 73 74 0d | 20 20 20 20 20 20 20 2a |er list.| *| |00002170| 2f 0d 20 20 20 20 20 20 | 70 69 6c 73 74 20 3d 20 |/. |pilst = | |00002180| 26 70 72 6d 6c 73 74 3b | 0d 20 20 20 20 20 20 6e |&prmlst;|. n| |00002190| 78 74 5f 6e 6f 6e 5f 77 | 68 28 26 74 31 29 3b 0d |xt_non_w|h(&t1);.| |000021a0| 20 20 20 20 20 20 69 66 | 20 28 74 31 2d 3e 74 6f | if| (t1->to| |000021b0| 6b 5f 69 64 20 3d 3d 20 | 49 64 65 6e 74 69 66 69 |k_id == |Identifi| |000021c0| 65 72 29 20 7b 0d 20 20 | 20 20 20 20 20 20 20 63 |er) {. | c| |000021d0| 61 74 65 67 6f 72 79 20 | 3d 20 31 3b 0d 20 20 20 |ategory |= 1;. | |000021e0| 20 20 20 20 20 20 28 2a | 70 69 6c 73 74 29 20 3d | (*|pilst) =| |000021f0| 20 6e 65 77 5f 69 64 5f | 6c 73 74 28 74 31 2d 3e | new_id_|lst(t1->| |00002200| 69 6d 61 67 65 29 3b 0d | 20 20 20 20 20 20 20 20 |image);.| | |00002210| 20 70 69 6c 73 74 20 3d | 20 26 28 2a 70 69 6c 73 | pilst =| &(*pils| |00002220| 74 29 2d 3e 6e 65 78 74 | 3b 0d 20 20 20 20 20 20 |t)->next|;. | |00002230| 20 20 20 6e 78 74 5f 6e | 6f 6e 5f 77 68 28 26 74 | nxt_n|on_wh(&t| |00002240| 31 29 3b 0d 20 20 20 20 | 20 20 20 20 20 77 68 69 |1);. | whi| |00002250| 6c 65 20 28 74 31 2d 3e | 74 6f 6b 5f 69 64 20 3d |le (t1->|tok_id =| |00002260| 3d 20 27 2c 27 29 20 7b | 0d 20 20 20 20 20 20 20 |= ',') {|. | |00002270| 20 20 20 20 20 6e 78 74 | 5f 6e 6f 6e 5f 77 68 28 | nxt|_non_wh(| |00002280| 26 74 31 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |&t1);. | | |00002290| 20 20 69 66 20 28 74 31 | 2d 3e 74 6f 6b 5f 69 64 | if (t1|->tok_id| |000022a0| 20 21 3d 20 49 64 65 6e | 74 69 66 69 65 72 29 0d | != Iden|tifier).| |000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e| |000022c0| 72 72 74 31 28 74 31 2c | 20 22 61 20 70 61 72 61 |rrt1(t1,| "a para| |000022d0| 6d 65 74 65 72 20 74 6f | 20 61 20 6d 61 63 72 6f |meter to| a macro| |000022e0| 20 6d 75 73 74 20 62 65 | 20 61 6e 20 69 64 65 6e | must be| an iden| |000022f0| 74 69 66 69 65 72 22 29 | 3b 0d 20 20 20 20 20 20 |tifier")|;. | |00002300| 20 20 20 20 20 20 2b 2b | 63 61 74 65 67 6f 72 79 | ++|category| |00002310| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 28 2a |;. | (*| |00002320| 70 69 6c 73 74 29 20 3d | 20 6e 65 77 5f 69 64 5f |pilst) =| new_id_| |00002330| 6c 73 74 28 74 31 2d 3e | 69 6d 61 67 65 29 3b 0d |lst(t1->|image);.| |00002340| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 69 6c 73 | | pils| |00002350| 74 20 3d 20 26 28 2a 70 | 69 6c 73 74 29 2d 3e 6e |t = &(*p|ilst)->n| |00002360| 65 78 74 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ext;. | | |00002370| 20 6e 78 74 5f 6e 6f 6e | 5f 77 68 28 26 74 31 29 | nxt_non|_wh(&t1)| |00002380| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0d |;. | }.| |00002390| 20 20 20 20 20 20 20 20 | 20 7d 0d 20 20 20 20 20 | | }. | |000023a0| 20 65 6c 73 65 0d 20 20 | 20 20 20 20 20 20 20 63 | else. | c| |000023b0| 61 74 65 67 6f 72 79 20 | 3d 20 30 3b 0d 20 20 20 |ategory |= 0;. | |000023c0| 20 20 20 69 66 20 28 74 | 31 2d 3e 74 6f 6b 5f 69 | if (t|1->tok_i| |000023d0| 64 20 21 3d 20 27 29 27 | 29 0d 20 20 20 20 20 20 |d != ')'|). | |000023e0| 20 20 20 65 72 72 74 32 | 28 74 31 2c 20 22 73 79 | errt2|(t1, "sy| |000023f0| 6e 74 61 78 20 65 72 72 | 6f 72 20 69 6e 20 23 22 |ntax err|or in #"| |00002400| 2c 20 74 2d 3e 69 6d 61 | 67 65 29 3b 0d 20 20 20 |, t->ima|ge);. | |00002410| 20 20 20 66 72 65 65 5f | 74 28 74 31 29 3b 0d 20 | free_|t(t1);. | |00002420| 20 20 20 20 20 74 31 20 | 3d 20 6e 65 78 74 5f 74 | t1 |= next_t| |00002430| 6f 6b 28 29 3b 0d 20 20 | 20 20 20 20 7d 0d 20 20 |ok();. | }. | |00002440| 20 65 6c 73 65 0d 20 20 | 20 20 20 20 63 61 74 65 | else. | cate| |00002450| 67 6f 72 79 20 3d 20 4e | 6f 41 72 67 73 3b 20 2f |gory = N|oArgs; /| |00002460| 2a 20 6f 62 6a 65 63 74 | 2d 6c 69 6b 65 20 6d 61 |* object|-like ma| |00002470| 63 72 6f 20 2a 2f 0d 0d | 20 20 20 2f 2a 0d 20 20 |cro */..| /*. | |00002480| 20 20 2a 20 47 61 74 68 | 65 72 20 74 68 65 20 62 | * Gath|er the b| |00002490| 6f 64 79 20 6f 66 20 74 | 68 65 20 6d 61 63 72 6f |ody of t|he macro| |000024a0| 2e 0d 20 20 20 20 2a 2f | 0d 20 20 20 62 6f 64 79 |.. */|. body| |000024b0| 20 3d 20 4e 55 4c 4c 3b | 0d 20 20 20 70 74 6c 73 | = NULL;|. ptls| |000024c0| 74 20 3d 20 26 62 6f 64 | 79 3b 0d 20 20 20 69 66 |t = &bod|y;. if| |000024d0| 20 28 74 2d 3e 74 6f 6b | 5f 69 64 20 3d 3d 20 50 | (t->tok|_id == P| |000024e0| 70 44 65 66 69 6e 65 29 | 20 7b 20 20 2f 2a 20 23 |pDefine)| { /* #| |000024f0| 64 65 66 69 6e 65 20 2a | 2f 0d 20 20 20 20 20 20 |define *|/. | |00002500| 6d 75 6c 74 69 5f 6c 69 | 6e 65 20 3d 20 30 3b 0d |multi_li|ne = 0;.| |00002510| 20 20 20 20 20 20 2f 2a | 0d 20 20 20 20 20 20 20 | /*|. | |00002520| 2a 20 73 74 72 69 70 20 | 6c 65 61 64 69 6e 67 20 |* strip |leading | |00002530| 77 68 69 74 65 20 73 70 | 61 63 65 0d 20 20 20 20 |white sp|ace. | |00002540| 20 20 20 2a 2f 0d 20 20 | 20 20 20 20 77 68 69 6c | */. | whil| |00002550| 65 20 28 74 31 2d 3e 74 | 6f 6b 5f 69 64 20 3d 3d |e (t1->t|ok_id ==| |00002560| 20 57 68 69 74 65 53 70 | 61 63 65 29 20 7b 0d 20 | WhiteSp|ace) {. | |00002570| 20 20 20 20 20 20 20 20 | 66 72 65 65 5f 74 28 74 | |free_t(t| |00002580| 31 29 3b 0d 20 20 20 20 | 20 20 20 20 20 74 31 20 |1);. | t1 | |00002590| 3d 20 6e 65 78 74 5f 74 | 6f 6b 28 29 3b 0d 20 20 |= next_t|ok();. | |000025a0| 20 20 20 20 20 20 20 7d | 0d 0d 20 20 20 20 20 20 | }|.. | |000025b0| 77 68 69 6c 65 20 28 74 | 31 2d 3e 74 6f 6b 5f 69 |while (t|1->tok_i| |000025c0| 64 20 21 3d 20 50 70 44 | 69 72 45 6e 64 29 20 7b |d != PpD|irEnd) {| |000025d0| 0d 20 20 20 20 20 20 20 | 20 20 2f 2a 0d 20 20 20 |. | /*. | |000025e0| 20 20 20 20 20 20 20 2a | 20 45 78 70 61 6e 73 69 | *| Expansi| |000025f0| 6f 6e 20 6f 66 20 74 68 | 69 73 20 74 79 70 65 20 |on of th|is type | |00002600| 6f 66 20 6d 61 63 72 6f | 20 64 6f 65 73 20 6e 6f |of macro| does no| |00002610| 74 20 74 72 69 67 67 65 | 72 20 23 6c 69 6e 65 20 |t trigge|r #line | |00002620| 64 69 72 65 63 74 69 76 | 65 73 2e 0d 20 20 20 20 |directiv|es.. | |00002630| 20 20 20 20 20 20 2a 2f | 0d 20 20 20 20 20 20 20 | */|. | |00002640| 20 20 74 31 2d 3e 66 6c | 61 67 20 26 3d 20 7e 4c | t1->fl|ag &= ~L| |00002650| 69 6e 65 43 68 6b 3b 0d | 0d 20 20 20 20 20 20 20 |ineChk;.|. | |00002660| 20 20 28 2a 70 74 6c 73 | 74 29 20 3d 20 6e 65 77 | (*ptls|t) = new| |00002670| 5f 74 5f 6c 73 74 28 74 | 31 29 3b 0d 20 20 20 20 |_t_lst(t|1);. | |00002680| 20 20 20 20 20 70 74 6c | 73 74 20 3d 20 26 28 2a | ptl|st = &(*| |00002690| 70 74 6c 73 74 29 2d 3e | 6e 65 78 74 3b 0d 20 20 |ptlst)->|next;. | |000026a0| 20 20 20 20 20 20 20 74 | 31 20 3d 20 6e 65 78 74 | t|1 = next| |000026b0| 5f 74 6f 6b 28 29 3b 0d | 20 20 20 20 20 20 20 20 |_tok();.| | |000026c0| 20 7d 0d 20 20 20 20 20 | 20 7d 0d 20 20 20 65 6c | }. | }. el| |000026d0| 73 65 20 7b 0d 20 20 20 | 20 20 20 2f 2a 0d 20 20 |se {. | /*. | |000026e0| 20 20 20 20 20 2a 20 20 | 23 62 65 67 64 65 66 0d | * |#begdef.| |000026f0| 20 20 20 20 20 20 20 2a | 2f 0d 20 20 20 20 20 20 | *|/. | |00002700| 6d 75 6c 74 69 5f 6c 69 | 6e 65 20 3d 20 31 3b 0d |multi_li|ne = 1;.| |00002710| 20 20 20 20 20 20 69 66 | 20 28 74 31 2d 3e 74 6f | if| (t1->to| |00002720| 6b 5f 69 64 20 21 3d 20 | 50 70 44 69 72 45 6e 64 |k_id != |PpDirEnd| |00002730| 29 0d 20 20 20 20 20 20 | 20 20 20 65 72 72 74 31 |). | errt1| |00002740| 28 74 31 2c 20 22 65 78 | 70 65 63 74 69 6e 67 20 |(t1, "ex|pecting | |00002750| 6e 65 77 2d 6c 69 6e 65 | 20 61 74 20 65 6e 64 20 |new-line| at end | |00002760| 6f 66 20 23 62 65 67 64 | 65 66 22 29 3b 0d 20 20 |of #begd|ef");. | |00002770| 20 20 20 20 66 72 65 65 | 5f 74 28 74 31 29 3b 0d | free|_t(t1);.| |00002780| 0d 20 20 20 20 20 20 2f | 2a 0d 20 20 20 20 20 20 |. /|*. | |00002790| 20 2a 20 47 61 74 68 65 | 72 20 74 6f 6b 65 6e 73 | * Gathe|r tokens| |000027a0| 20 75 6e 74 69 6c 20 23 | 65 6e 64 64 65 66 2e 20 | until #|enddef. | |000027b0| 4e 65 73 74 65 64 20 23 | 62 65 67 64 65 66 2d 23 |Nested #|begdef-#| |000027c0| 65 6e 64 64 65 66 73 20 | 61 72 65 20 70 75 74 0d |enddefs |are put.| |000027d0| 20 20 20 20 20 20 20 2a | 20 20 69 6e 20 74 68 69 | *| in thi| |000027e0| 73 20 6d 61 63 72 6f 20 | 61 6e 64 20 6e 6f 74 20 |s macro |and not | |000027f0| 70 72 6f 63 65 73 73 65 | 64 20 75 6e 74 69 6c 20 |processe|d until | |00002800| 74 68 65 20 6d 61 63 72 | 6f 20 69 73 20 65 78 70 |the macr|o is exp| |00002810| 61 6e 64 65 64 2e 0d 20 | 20 20 20 20 20 20 2a 2f |anded.. | */| |00002820| 0d 20 20 20 20 20 20 6e | 65 73 74 69 6e 67 20 3d |. n|esting =| |00002830| 20 30 3b 0d 20 20 20 20 | 20 20 74 31 20 3d 20 6e | 0;. | t1 = n| |00002840| 65 78 74 5f 74 6f 6b 28 | 29 3b 0d 20 20 20 20 20 |ext_tok(|);. | |00002850| 20 77 68 69 6c 65 20 28 | 74 31 20 21 3d 20 4e 55 | while (|t1 != NU| |00002860| 4c 4c 20 26 26 20 28 6e | 65 73 74 69 6e 67 20 3e |LL && (n|esting >| |00002870| 20 30 20 7c 7c 20 74 31 | 2d 3e 74 6f 6b 5f 69 64 | 0 || t1|->tok_id| |00002880| 20 21 3d 20 50 70 45 6e | 64 64 65 66 29 29 20 7b | != PpEn|ddef)) {| |00002890| 0d 20 20 20 20 20 20 20 | 20 20 69 66 20 28 74 31 |. | if (t1| |000028a0| 2d 3e 74 6f 6b 5f 69 64 | 20 3d 3d 20 50 70 42 65 |->tok_id| == PpBe| |000028b0| 67 64 65 66 29 0d 20 20 | 20 20 20 20 20 20 20 20 |gdef). | | |000028c0| 20 20 2b 2b 6e 65 73 74 | 69 6e 67 3b 0d 20 20 20 | ++nest|ing;. | |000028d0| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 74 | el|se if (t| |000028e0| 31 2d 3e 74 6f 6b 5f 69 | 64 20 3d 3d 20 50 70 45 |1->tok_i|d == PpE| |000028f0| 6e 64 64 65 66 29 0d 20 | 20 20 20 20 20 20 20 20 |nddef). | | |00002900| 20 20 20 2d 2d 6e 65 73 | 74 69 6e 67 3b 0d 20 20 | --nes|ting;. | |00002910| 20 20 20 20 20 20 20 28 | 2a 70 74 6c 73 74 29 20 | (|*ptlst) | |00002920| 3d 20 6e 65 77 5f 74 5f | 6c 73 74 28 74 31 29 3b |= new_t_|lst(t1);| |00002930| 0d 20 20 20 20 20 20 20 | 20 20 70 74 6c 73 74 20 |. | ptlst | |00002940| 3d 20 26 28 2a 70 74 6c | 73 74 29 2d 3e 6e 65 78 |= &(*ptl|st)->nex| |00002950| 74 3b 0d 20 20 20 20 20 | 20 20 20 20 74 31 20 3d |t;. | t1 =| |00002960| 20 6e 65 78 74 5f 74 6f | 6b 28 29 3b 0d 20 20 20 | next_to|k();. | |00002970| 20 20 20 20 20 20 7d 0d | 20 20 20 20 20 20 69 66 | }.| if| |00002980| 20 28 74 31 20 3d 3d 20 | 4e 55 4c 4c 29 0d 20 20 | (t1 == |NULL). | |00002990| 20 20 20 20 20 20 20 65 | 72 72 74 31 28 74 2c 20 | e|rrt1(t, | |000029a0| 22 75 6e 65 78 70 65 63 | 74 65 64 20 65 6e 64 2d |"unexpec|ted end-| |000029b0| 6f 66 2d 66 69 6c 65 20 | 69 6e 20 23 62 65 67 64 |of-file |in #begd| |000029c0| 65 66 22 29 3b 0d 20 20 | 20 20 20 20 66 72 65 65 |ef");. | free| |000029d0| 5f 74 28 74 31 29 3b 0d | 20 20 20 20 20 20 74 31 |_t(t1);.| t1| |000029e0| 20 3d 20 6e 65 78 74 5f | 74 6f 6b 28 29 3b 0d 20 | = next_|tok();. | |000029f0| 20 20 20 20 20 69 66 20 | 28 74 31 2d 3e 74 6f 6b | if |(t1->tok| |00002a00| 5f 69 64 20 21 3d 20 50 | 70 44 69 72 45 6e 64 29 |_id != P|pDirEnd)| |00002a10| 0d 20 20 20 20 20 20 20 | 20 20 65 72 72 74 31 28 |. | errt1(| |00002a20| 74 31 2c 20 22 65 78 70 | 65 63 74 69 6e 67 20 6e |t1, "exp|ecting n| |00002a30| 65 77 2d 6c 69 6e 65 20 | 61 74 20 65 6e 64 20 6f |ew-line |at end o| |00002a40| 66 20 23 65 6e 64 64 65 | 66 22 29 3b 0d 20 20 20 |f #endde|f");. | |00002a50| 20 20 20 7d 0d 20 20 20 | 66 72 65 65 5f 74 28 74 | }. |free_t(t| |00002a60| 31 29 3b 0d 20 20 20 66 | 72 65 65 5f 74 28 74 29 |1);. f|ree_t(t)| |00002a70| 3b 0d 0d 20 20 20 2f 2a | 0d 20 20 20 20 2a 20 49 |;.. /*|. * I| |00002a80| 6e 73 74 61 6c 6c 20 74 | 68 65 20 6d 61 63 72 6f |nstall t|he macro| |00002a90| 20 69 6e 20 74 68 65 20 | 6d 61 63 72 6f 20 73 79 | in the |macro sy| |00002aa0| 6d 62 6f 6c 20 74 61 62 | 6c 65 2e 0d 20 20 20 20 |mbol tab|le.. | |00002ab0| 2a 2f 0d 20 20 20 6d 5f | 69 6e 73 74 61 6c 6c 28 |*/. m_|install(| |00002ac0| 6d 6e 61 6d 65 2c 20 63 | 61 74 65 67 6f 72 79 2c |mname, c|ategory,| |00002ad0| 20 6d 75 6c 74 69 5f 6c | 69 6e 65 2c 20 70 72 6d | multi_l|ine, prm| |00002ae0| 6c 73 74 2c 20 62 6f 64 | 79 29 3b 0d 20 20 20 66 |lst, bod|y);. f| |00002af0| 72 65 65 5f 74 28 6d 6e | 61 6d 65 29 3b 0d 20 20 |ree_t(mn|ame);. | |00002b00| 20 7d 0d 0c 0d 2f 2a 0d | 20 2a 20 65 78 70 61 6e | }.../*.| * expan| |00002b10| 64 20 2d 20 61 64 64 20 | 65 78 70 61 6e 73 69 6f |d - add |expansio| |00002b20| 6e 20 6f 66 20 6d 61 63 | 72 6f 20 74 6f 20 73 6f |n of mac|ro to so| |00002b30| 75 72 63 65 20 73 74 61 | 63 6b 2e 0d 20 2a 2f 0d |urce sta|ck.. */.| |00002b40| 73 74 61 74 69 63 20 69 | 6e 74 20 65 78 70 61 6e |static i|nt expan| |00002b50| 64 28 74 2c 20 6d 29 0d | 73 74 72 75 63 74 20 74 |d(t, m).|struct t| |00002b60| 6f 6b 65 6e 20 2a 74 3b | 0d 73 74 72 75 63 74 20 |oken *t;|.struct | |00002b70| 6d 61 63 72 6f 20 2a 6d | 3b 0d 20 20 20 7b 0d 20 |macro *m|;. {. | |00002b80| 20 20 73 74 72 75 63 74 | 20 74 6f 6b 65 6e 20 2a | struct| token *| |00002b90| 74 31 20 3d 20 4e 55 4c | 4c 3b 0d 20 20 20 73 74 |t1 = NUL|L;. st| |00002ba0| 72 75 63 74 20 74 6f 6b | 65 6e 20 2a 74 32 3b 0d |ruct tok|en *t2;.| |00002bb0| 20 20 20 73 74 72 75 63 | 74 20 74 6f 6b 65 6e 20 | struc|t token | |00002bc0| 2a 77 68 73 70 20 3d 20 | 4e 55 4c 4c 3b 0d 20 20 |*whsp = |NULL;. | |00002bd0| 20 75 6e 69 6f 6e 20 73 | 72 63 5f 72 65 66 20 72 | union s|rc_ref r| |00002be0| 65 66 3b 0d 20 20 20 73 | 74 72 75 63 74 20 74 6f |ef;. s|truct to| |00002bf0| 6b 5f 6c 73 74 20 2a 2a | 61 72 67 73 2c 20 2a 2a |k_lst **|args, **| |00002c00| 65 78 70 5f 61 72 67 73 | 3b 0d 20 20 20 73 74 72 |exp_args|;. str| |00002c10| 75 63 74 20 74 6f 6b 5f | 6c 73 74 20 2a 2a 74 6c |uct tok_|lst **tl| |00002c20| 70 2c 20 2a 2a 74 72 61 | 69 6c 5f 77 68 73 70 3b |p, **tra|il_whsp;| |00002c30| 0d 20 20 20 73 74 72 75 | 63 74 20 73 72 63 20 2a |. stru|ct src *| |00002c40| 73 74 61 63 6b 5f 73 61 | 76 3b 0d 20 20 20 69 6e |stack_sa|v;. in| |00002c50| 74 20 6e 70 61 72 6d 3b | 0d 20 20 20 69 6e 74 20 |t nparm;|. int | |00002c60| 6e 61 72 67 3b 0d 20 20 | 20 69 6e 74 20 70 61 72 |narg;. | int par| |00002c70| 65 6e 5f 6e 65 73 74 3b | 0d 20 20 20 69 6e 74 20 |en_nest;|. int | |00002c80| 6c 69 6e 65 3b 0d 20 20 | 20 63 68 61 72 20 2a 66 |line;. | char *f| |00002c90| 6e 61 6d 65 3b 0d 0d 20 | 20 20 2b 2b 6d 2d 3e 72 |name;.. | ++m->r| |00002ca0| 65 66 5f 63 6e 74 3b 0d | 0d 20 20 20 61 72 67 73 |ef_cnt;.|. args| |00002cb0| 20 3d 20 4e 55 4c 4c 3b | 0d 20 20 20 65 78 70 5f | = NULL;|. exp_| |00002cc0| 61 72 67 73 20 3d 20 4e | 55 4c 4c 3b 0d 20 20 20 |args = N|ULL;. | |00002cd0| 69 66 20 28 6d 2d 3e 63 | 61 74 65 67 6f 72 79 20 |if (m->c|ategory | |00002ce0| 3e 3d 20 30 29 20 7b 0d | 20 20 20 20 20 20 2f 2a |>= 0) {.| /*| |00002cf0| 0d 20 20 20 20 20 20 20 | 2a 20 54 68 69 73 20 6d |. |* This m| |00002d00| 61 63 72 6f 20 72 65 71 | 75 69 72 65 73 20 61 6e |acro req|uires an| |00002d10| 20 61 72 67 75 6d 65 6e | 74 20 6c 69 73 74 2e 20 | argumen|t list. | |00002d20| 47 61 74 68 65 72 20 69 | 74 2c 20 69 66 20 74 68 |Gather i|t, if th| |00002d30| 65 72 65 20 69 73 20 6f | 6e 65 2e 0d 20 20 20 20 |ere is o|ne.. | |00002d40| 20 20 20 2a 2f 0d 20 20 | 20 20 20 20 6e 70 61 72 | */. | npar| |00002d50| 6d 20 3d 20 6d 2d 3e 63 | 61 74 65 67 6f 72 79 3b |m = m->c|ategory;| |00002d60| 0d 20 20 20 20 20 20 6e | 61 72 67 20 3d 20 30 3b |. n|arg = 0;| |00002d70| 0d 20 20 20 20 20 20 6d | 65 72 67 65 5f 77 68 73 |. m|erge_whs| |00002d80| 70 28 26 77 68 73 70 2c | 20 26 74 31 2c 20 6e 65 |p(&whsp,| &t1, ne| |00002d90| 78 74 5f 74 6f 6b 29 3b | 0d 20 20 20 20 20 20 69 |xt_tok);|. i| |00002da0| 66 20 28 74 31 20 3d 3d | 20 4e 55 4c 4c 20 7c 7c |f (t1 ==| NULL ||| |00002db0| 20 74 31 2d 3e 74 6f 6b | 5f 69 64 20 21 3d 20 27 | t1->tok|_id != '| |00002dc0| 28 27 29 20 7b 0d 20 20 | 20 20 20 20 20 20 20 2f |(') {. | /| |00002dd0| 2a 0d 20 20 20 20 20 20 | 20 20 20 20 2a 20 54 68 |*. | * Th| |00002de0| 65 72 65 20 69 73 20 6e | 6f 20 61 72 67 75 6d 65 |ere is n|o argume| |00002df0| 6e 74 20 6c 69 73 74 2e | 20 44 6f 20 6e 6f 74 20 |nt list.| Do not | |00002e00| 65 78 70 61 6e 64 20 74 | 68 65 20 6d 61 63 72 6f |expand t|he macro| |00002e10| 2c 20 6a 75 73 74 20 70 | 75 73 68 0d 20 20 20 20 |, just p|ush. | |00002e20| 20 20 20 20 20 20 2a 20 | 20 62 61 63 6b 20 74 68 | * | back th| |00002e30| 65 20 74 6f 6b 65 6e 73 | 20 77 65 20 72 65 61 64 |e tokens| we read| |00002e40| 20 61 68 65 61 64 2e 0d | 20 20 20 20 20 20 20 20 | ahead..| | |00002e50| 20 20 2a 2f 0d 20 20 20 | 20 20 20 20 20 20 69 66 | */. | if| |00002e60| 20 28 74 31 20 21 3d 20 | 4e 55 4c 4c 29 0d 20 20 | (t1 != |NULL). | |00002e70| 20 20 20 20 20 20 20 20 | 20 20 73 72 63 5f 73 74 | | src_st| |00002e80| 61 63 6b 2d 3e 74 6f 6b | 73 5b 73 72 63 5f 73 74 |ack->tok|s[src_st| |00002e90| 61 63 6b 2d 3e 6e 74 6f | 6b 73 2b 2b 5d 20 3d 20 |ack->nto|ks++] = | |00002ea0| 74 31 3b 0d 20 20 20 20 | 20 20 20 20 20 69 66 20 |t1;. | if | |00002eb0| 28 77 68 73 70 20 21 3d | 20 4e 55 4c 4c 29 0d 20 |(whsp !=| NULL). | |00002ec0| 20 20 20 20 20 20 20 20 | 20 20 20 73 72 63 5f 73 | | src_s| |00002ed0| 74 61 63 6b 2d 3e 74 6f | 6b 73 5b 73 72 63 5f 73 |tack->to|ks[src_s| |00002ee0| 74 61 63 6b 2d 3e 6e 74 | 6f 6b 73 2b 2b 5d 20 3d |tack->nt|oks++] =| |00002ef0| 20 77 68 73 70 3b 0d 20 | 20 20 20 20 20 20 20 20 | whsp;. | | |00002f00| 2d 2d 6d 2d 3e 72 65 66 | 5f 63 6e 74 3b 0d 20 20 |--m->ref|_cnt;. | |00002f10| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 30 3b | r|eturn 0;| |00002f20| 0d 20 20 20 20 20 20 20 | 20 20 7d 0d 20 20 20 20 |. | }. | |00002f30| 20 20 66 72 65 65 5f 74 | 28 77 68 73 70 29 3b 0d | free_t|(whsp);.| |00002f40| 0d 20 20 20 20 20 20 2f | 2a 0d 20 20 20 20 20 20 |. /|*. | |00002f50| 20 2a 20 53 65 65 20 68 | 6f 77 20 6d 61 6e 79 20 | * See h|ow many | |00002f60| 61 72 67 75 6d 65 6e 74 | 73 20 77 65 20 65 78 70 |argument|s we exp| |00002f70| 65 63 74 2e 0d 20 20 20 | 20 20 20 20 2a 2f 0d 20 |ect.. | */. | |00002f80| 20 20 20 20 20 69 66 20 | 28 6e 70 61 72 6d 20 3d | if |(nparm =| |00002f90| 3d 20 30 29 0d 20 20 20 | 20 20 20 20 20 20 6e 78 |= 0). | nx| |00002fa0| 74 5f 6e 6f 6e 5f 77 68 | 28 26 74 31 29 3b 0d 20 |t_non_wh|(&t1);. | |00002fb0| 20 20 20 20 20 65 6c 73 | 65 20 7b 0d 20 20 20 20 | els|e {. | |00002fc0| 20 20 20 20 20 2f 2a 0d | 20 20 20 20 20 20 20 20 | /*.| | |00002fd0| 20 20 2a 20 41 6c 6c 6f | 63 61 74 65 20 61 6e 20 | * Allo|cate an | |00002fe0| 61 72 72 61 79 20 66 6f | 72 20 62 6f 74 68 20 72 |array fo|r both r| |00002ff0| 61 77 20 61 6e 64 20 6d | 61 63 72 6f 2d 65 78 70 |aw and m|acro-exp| |00003000| 61 6e 64 65 64 20 74 6f | 6b 65 6e 20 6c 69 73 74 |anded to|ken list| |00003010| 73 0d 20 20 20 20 20 20 | 20 20 20 20 2a 00 00 00 |s. | *...| |00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00003a10| 00 00 00 00 00 00 00 20 | 20 20 20 20 20 20 20 20 |....... | | |00003a20| 20 20 20 20 20 20 63 61 | 73 65 20 27 00 00 3a 20 | ca|se '..: | |00003a30| 63 61 73 65 20 27 41 27 | 00 00 20 20 20 20 20 20 |case 'A'|.. | |00003a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 00 00 20 3d | | .. =| |00003a50| 20 28 00 00 20 00 00 20 | 00 00 20 7c 20 31 30 3b | (.. .. |.. | 10;| |00003a60| 0d 20 00 00 00 00 00 00 | 00 00 20 20 20 20 20 20 |. ......|.. | |00003a70| 20 20 63 61 73 65 20 27 | 62 27 00 00 00 65 20 27 | case '|b'...e '| |00003a80| 42 27 00 00 00 20 20 20 | 20 20 20 20 20 20 00 00 |B'... | ..| |00003a90| 20 3d 20 28 00 00 20 00 | 00 00 00 00 20 31 00 00 | = (.. .|.... 1..| |00003aa0| 00 00 00 20 20 20 62 00 | 00 00 00 00 20 20 20 20 |... b.|.... | |00003ab0| 20 63 61 73 65 20 27 63 | 27 00 00 63 61 73 65 20 | case 'c|'..case | |00003ac0| 27 43 27 00 00 00 00 00 | 20 20 20 20 20 20 20 20 |'C'.....| | |00003ad0| 00 00 20 3d 00 00 00 00 | 63 68 61 72 20 00 00 20 |.. =....|char .. | |00003ae0| 00 00 20 7c 20 00 00 00 | 00 20 00 00 00 00 00 00 |.. | ...|. ......| |00003af0| 00 20 20 20 63 61 73 65 | 20 27 64 27 00 00 63 61 |. case| 'd'..ca| |00003b00| 73 65 20 27 44 27 00 00 | 00 00 00 00 20 20 20 20 |se 'D'..|.... | |00003b10| 20 20 20 00 00 20 3d 00 | 28 00 00 00 63 00 00 00 | .. =.|(...c...| |00003b20| 00 20 00 00 00 20 31 33 | 00 00 20 00 00 00 00 00 |. ... 13|.. .....| |00003b30| 00 00 00 00 20 20 20 20 | 63 61 73 65 20 27 65 27 |.... |case 'e'| |00003b40| 00 00 63 61 73 65 20 27 | 45 27 00 00 00 00 00 00 |..case '|E'......| |00003b50| 00 20 20 20 20 20 20 00 | 00 20 3d 00 28 00 00 20 |. .|. =.(.. | |00003b60| 00 00 20 00 00 00 20 31 | 34 00 00 20 00 00 00 00 |.. ... 1|4.. ....| |00003b70| 00 61 6b 3b 0d 00 00 00 | 20 20 20 20 20 63 61 73 |.ak;....| cas| |00003b80| 65 20 27 66 27 00 00 63 | 61 73 65 20 27 46 27 00 |e 'f'..c|ase 'F'.| |00003b90| 00 00 00 00 00 00 00 20 | 20 20 20 20 00 00 20 3d |....... | .. =| |00003ba0| 00 28 00 00 00 63 00 61 | 72 20 00 00 20 00 00 20 |.(...c.a|r .. .. | |00003bb0| 7c 20 31 35 00 00 20 00 | 00 00 20 20 20 20 20 20 || 15.. .|.. | |00003bc0| 20 00 00 00 00 00 20 00 | 00 00 00 3a 20 00 00 00 | ..... .|...: ...| |00003bd0| 00 63 00 61 72 20 3d 20 | 30 3b 0d 00 00 00 20 20 |.c.ar = |0;.... | |00003be0| 20 20 20 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .....|........| |00003bf0| 20 20 20 20 20 20 00 00 | 00 00 00 00 00 00 00 00 | ..|........| |00003c00| 00 00 2a 20 49 66 20 74 | 68 69 73 20 00 00 00 00 |..* If t|his ....| |00003c10| 00 00 00 00 65 20 69 73 | 20 00 00 68 65 20 65 6e |....e is| ..he en| |00003c20| 64 20 6f 00 00 00 00 20 | 2a 20 20 00 00 00 00 00 |d o.... |* .....| |00003c30| 00 00 00 00 00 00 00 00 | 00 74 68 20 61 00 00 20 |........|.th a.. | |00003c40| 2a 20 20 00 65 78 20 64 | 69 00 00 2c 20 00 00 20 |* .ex d|i.., .. | |00003c50| 74 68 65 20 63 61 6e 6f | 6e 00 00 20 66 6f 72 6d |the cano|n.. form| |00003c60| 2c 20 6f 74 68 65 72 77 | 69 73 65 00 00 20 2a 20 |, otherw|ise.. * | |00003c70| 20 00 00 20 69 74 20 00 | 00 69 73 00 00 20 20 20 | .. it .|.is.. | |00003c80| 20 20 20 20 2a 2f 0d 20 | 20 00 00 00 00 00 00 00 | */. | .......| |00003c90| 00 26 20 69 73 78 00 00 | 74 28 74 00 00 69 6d 61 |.& isx..|t(t..ima| |00003ca0| 67 65 5b 30 5d 00 00 00 | 00 00 00 00 28 28 00 00 |ge[0]...|....((..| |00003cb0| 20 00 00 20 00 00 00 00 | 30 00 00 00 00 00 00 00 | .. ....|0.......| |00003cc0| 00 20 00 00 00 20 00 00 | 28 28 00 00 00 00 00 61 |. ... ..|((.....a| |00003cd0| 72 20 00 00 20 00 00 00 | 26 20 30 00 00 00 00 00 |r .. ...|& 0.....| |00003ce0| 00 00 00 00 20 00 00 00 | 20 00 00 00 00 00 28 00 |.... ...| .....(.| |00003cf0| 00 00 00 00 20 20 20 20 | 20 20 20 26 20 30 00 00 |.... | & 0..| |00003d00| 00 00 00 00 00 00 00 00 | 20 20 20 7d 0d 20 00 00 |........| }. ..| |00003d10| 00 00 00 00 77 68 69 6c | 65 20 28 00 00 00 00 00 |....whil|e (.....| |00003d20| 71 20 21 3d 20 00 00 00 | 00 00 20 20 20 20 20 00 |q != ...|.. .| |00003d30| 00 00 00 00 00 5f 73 65 | 71 2b 2b 29 00 00 20 00 |....._se|q++).. .| |00003d40| 00 00 00 00 00 00 73 65 | 20 00 00 00 00 20 27 00 |......se| .... '.| |00003d50| 00 26 20 2a 73 20 00 00 | 20 27 37 00 00 20 20 20 |.& *s ..| '7.. | |00003d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 00 00 | | ..| |00003d70| 20 20 20 20 20 20 20 20 | 2a 20 4f 00 00 6c 20 00 | |* O..l .| |00003d80| 00 00 00 00 00 00 00 65 | 00 00 20 20 20 20 20 20 |.......e|.. | |00003d90| 20 2a 2f 0d 00 00 00 00 | 00 00 5f 73 65 71 00 00 | */.....|.._seq..| |00003da0| 00 00 69 20 3d 20 31 00 | 00 20 00 00 00 20 3c 3d |..i = 1.|. ... <=| |00003db0| 20 33 00 00 2a 73 20 00 | 00 20 00 00 00 00 2a 73 | 3..*s .|. ....*s| |00003dc0| 20 00 00 20 27 37 00 29 | 20 7b 20 00 00 20 20 20 | .. '7.)| { .. | |00003dd0| 2b 2b 69 00 00 20 00 00 | 00 20 00 00 00 00 00 00 |++i.. ..|. ......| |00003de0| 00 00 00 00 00 00 00 00 | 20 2a 20 49 66 20 74 68 |........| * If th| |00003df0| 69 73 20 65 73 63 61 00 | 00 00 00 00 6e 63 65 20 |is esca.|....nce | |00003e00| 69 73 20 00 00 68 65 20 | 65 6e 64 20 6f 66 20 74 |is ..he |end of t| |00003e10| 68 65 00 00 20 2a 20 20 | 00 00 00 6e 64 20 00 00 |he.. * |...nd ..| |00003e20| 00 00 00 00 00 00 00 00 | 00 00 20 61 6e 00 00 20 |........|.. an.. | |00003e30| 2a 20 20 00 00 6c 20 00 | 00 74 00 00 00 00 64 20 |* ..l .|.t....d | |00003e40| 69 74 20 74 6f 20 33 00 | 00 00 74 73 2c 20 6f 74 |it to 3.|..ts, ot| |00003e50| 68 65 72 77 69 73 65 0d | 20 00 00 2a 20 20 75 73 |herwise.| ..* us| |00003e60| 65 20 00 74 20 61 73 20 | 69 73 00 00 20 20 00 00 |e .t as |is.. ..| |00003e70| 00 00 00 00 00 00 00 00 | 27 20 26 26 20 00 00 3e |........|' && ..>| |00003e80| 69 6d 61 67 65 5b 30 5d | 20 00 00 20 00 00 00 26 |image[0]| .. ...&| |00003e90| 00 00 20 20 20 20 20 20 | 74 00 00 69 6d 61 67 65 |.. |t..image| |00003ea0| 5b 30 5d 20 3c 3d 20 27 | 37 27 20 26 26 20 69 20 |[0] <= '|7' && i | |00003eb0| 3c 3d 20 00 00 00 00 00 | 20 20 20 20 20 20 20 20 |<= .....| | |00003ec0| 20 20 20 20 20 20 20 20 | 00 00 00 00 00 00 00 20 | |....... | |00003ed0| 20 20 69 66 20 28 69 20 | 3c 3d 20 00 00 00 00 20 | if (i |<= .... | |00003ee0| 20 20 20 20 20 00 00 00 | 27 29 3b 0d 20 20 20 00 | ...|');. .| |00003ef0| 00 00 00 00 77 68 69 6c | 65 20 28 00 73 63 61 00 |....whil|e (.sca.| |00003f00| 00 00 71 20 21 3d 20 00 | 00 00 00 00 00 00 00 00 |..q != .|........| |00003f10| 20 2a 00 00 00 00 5f 73 | 00 00 2b 2b 29 00 00 00 | *...._s|..++)...| |00003f20| 00 00 00 00 00 00 00 00 | 20 20 20 20 20 20 20 20 |........| | |00003f30| 20 20 20 20 20 20 65 6c | 73 65 20 7b 0d 00 00 00 | el|se {....| |00003f40| 00 20 20 20 20 20 20 20 | 20 20 2a 20 00 00 74 20 |. | * ..t | |00003f50| 61 00 00 73 63 61 00 00 | 00 00 00 00 00 65 2c 20 |a..sca..|.....e, | |00003f60| 6a 75 73 74 20 00 00 20 | 74 68 65 20 63 00 00 63 |just .. |the c..c| |00003f70| 74 65 72 00 00 68 65 00 | 00 2a 20 20 62 75 66 66 |ter..he.|.* buff| |00003f80| 65 00 00 00 00 2a 00 00 | 00 20 20 20 20 20 20 20 |e....*..|. | |00003f90| 20 00 00 00 00 00 00 00 | 00 00 00 0d 20 20 20 20 | .......|.... | |00003fa0| 20 20 20 20 20 20 20 20 | 20 20 20 00 00 00 00 20 | | .... | |00003fb0| 20 20 20 20 20 20 74 31 | 20 3d 20 74 32 00 00 00 | t1| = t2...| |00003fc0| 00 00 00 00 20 00 00 20 | 74 68 65 20 00 00 6f 6e |.... .. |the ..on| |00003fd0| 2d 00 00 00 00 63 65 20 | 74 6f 6b 65 6e 2c 20 73 |-....ce |token, s| |00003fe0| 61 76 69 6e 67 20 61 6e | 79 20 73 6b 69 70 70 65 |aving an|y skippe| |00003ff0| 64 0d 00 00 00 00 00 00 | 70 61 63 65 00 00 20 20 |d.......|pace.. | |00004000| 20 20 20 20 20 20 20 20 | 20 20 00 00 65 5f 77 00 | | ..e_w.| |00004010| 00 00 00 00 00 2c 20 26 | 74 32 2c 20 00 00 00 00 |....., &|t2, ....| |00004020| 00 00 0d 0d 20 20 20 00 | 00 00 20 20 20 20 20 20 |.... .|.. | |00004030| 20 20 20 20 2a 20 43 6f | 70 79 20 74 68 65 20 00 | * Co|py the .| |00004040| 00 00 00 00 00 00 00 6e | 74 6f 20 74 68 65 20 62 |.......n|to the b| |00004050| 75 66 66 65 72 2c 20 63 | 00 00 00 00 20 20 20 20 |uffer, c|.... | |00004060| 20 20 20 20 20 20 2a 20 | 20 74 68 65 20 00 6d 61 | * | the .ma| |00004070| 67 65 00 00 68 65 20 63 | 6f 6e 63 61 74 65 00 00 |ge..he c|oncate..| |00004080| 00 00 65 6e 2e 0d 20 20 | 20 20 20 20 20 20 20 20 |..en.. | | |00004090| 2a 00 00 00 00 20 3d 20 | 74 31 00 00 00 00 00 00 |*.... = |t1......| |000040a0| 27 00 00 00 00 00 00 75 | 66 2c 20 00 00 00 00 74 |'......u|f, ....t| |000040b0| 72 00 00 00 00 00 00 69 | 6e 73 74 61 6c 6c 00 00 |r......i|nstall..| |000040c0| 0d 20 20 20 20 20 20 20 | 20 20 00 00 20 20 20 20 |. | .. | |000040d0| 74 31 20 00 00 00 00 00 | 0d 20 20 20 20 20 20 20 |t1 .....|. | |000040e0| 20 20 00 00 00 00 00 00 | 20 20 20 20 20 20 20 20 | ......| | |000040f0| 20 7d 0d 0d 20 20 20 20 | 20 20 2f 2a 0d 20 20 20 | }.. | /*. | |00004100| 20 20 20 20 2a 20 50 75 | 73 68 20 62 00 00 6e 79 | * Pu|sh b..ny| |00004110| 20 6c 6f 6f 6b 2d 61 68 | 65 61 64 20 74 6f 6b 65 | look-ah|ead toke| |00004120| 6e 73 00 00 00 00 20 28 | 74 00 00 20 4e 55 4c 4c |ns.... (|t.. NULL| |00004130| 29 0d 20 20 20 20 20 20 | 20 20 20 00 00 74 6f 6b |). | ..tok| |00004140| 73 00 00 00 00 6b 2d 3e | 00 00 00 00 5d 20 3d 00 |s....k->|....] =.| |00004150| 00 00 00 77 68 73 70 20 | 00 00 29 0d 20 20 20 20 |...whsp |..). | |00004160| 20 20 20 20 20 00 00 00 | 6b 2d 3e 74 00 00 00 00 | ...|k->t....| |00004170| 00 00 00 00 00 00 00 2b | 2b 5d 20 3d 20 77 68 73 |.......+|+] = whs| |00004180| 70 3b 00 00 00 00 00 00 | 6e 20 74 00 00 0d 00 00 |p;......|n t.....| |00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00004200| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>| |00004210| 20 7d 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | | |00004220| 20 20 20 20 20 20 64 65 | 66 69 6e 65 5f 6f 70 74 | de|fine_opt| |00004230| 09 70 72 65 70 72 6f 63 | 2e 63 02 00 00 00 54 45 |.preproc|.c....TE| |00004240| 58 54 4d 50 53 20 00 00 | 00 00 00 00 00 00 00 00 |XTMPS ..|........| |00004250| 00 00 54 45 58 54 4d 50 | 53 20 00 00 00 00 00 00 |..TEXTMP|S ......| |00004260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00004270| 00 00 a6 e0 05 12 00 00 | 6f c6 00 00 01 ac 20 20 |........|o..... | |00004280| 20 20 20 20 20 20 20 63 | 61 73 65 20 27 6d 27 3a | c|ase 'm':| |00004290| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | | |000042a0| 20 20 20 20 2f 2a 0d 20 | 20 20 20 20 20 20 20 20 | /*. | | |000042b0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 4d 65 6d | | * Mem| |000042c0| 6f 72 79 20 6d 6f 64 65 | 6c 2e 20 44 65 66 69 6e |ory mode|l. Defin| |000042d0| 65 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |e the ap|propriat| |000042e0| 65 20 6d 61 63 72 6f 20 | 61 66 74 65 72 0d 20 20 |e macro |after. | |000042f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |00004300| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00004320| 00 00 00 00 00 00 00 06 | 00 08 00 2a 00 03 01 53 |........|...*...S| |00004330| 01 fd 00 f1 00 00 01 53 | 01 bd a6 e0 05 13 00 00 |.......S|........| |00004340| 23 6e 00 00 23 7a 00 00 | 22 30 01 00 00 00 00 1e |#n..#z..|"0......| |00004350| 00 2a 00 03 01 53 01 fd | 00 f1 00 00 01 53 01 bd |.*...S..|.....S..| |00004360| 00 00 22 30 00 00 00 00 | 00 00 00 00 00 00 00 00 |.."0....|........| |00004370| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 57 |.....n..|.n...>.W| |00004380| 1a 60 06 fc 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.`......|.>..MPSR| |00004390| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........| |000043a0| 03 f0 ff ff 00 00 00 4c | 00 59 15 d4 00 00 00 00 |.......L|.Y......| |000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+