home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / languages / stronghlp / gcc-docs / cpp < prev    next >
Unknown  |  1995-07-02  |  693.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
100% gt2 Kopftext: 'HELP(' default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | c9 00 00 00 a4 6b 01 00 |HELP(...|.....k..|
|00000010| 40 b9 01 00 00 fd ff ff | 00 00 00 00 00 07 00 00 |@.......|........|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 46 52 45 45 |........|$...FREE|
|00000030| 54 00 00 00 ff ff ff ff | 80 00 00 00 46 ff ff ff |T.......|....F...|
|00000040| f8 0b e8 2a aa 0a 00 00 | 13 00 00 00 00 00 00 00 |...*....|........|
|00000050| 21 52 6f 6f 74 00 00 00 | 2c 0b 00 00 46 ff ff ff |!Root...|,...F...|
|00000060| 72 18 e8 2a 16 19 00 00 | 13 00 00 00 00 00 00 00 |r..*....|........|
|00000070| 41 72 67 75 6d 65 6e 74 | 4d 61 00 00 02 ec 8e e3 |Argument|Ma......|
|00000080| 44 41 54 41 aa 0a 00 00 | 54 6f 70 0a 4e 65 78 74 |DATA....|Top.Next|
|00000090| 3a 20 3c 47 6c 6f 62 61 | 6c 20 41 63 74 69 6f 6e |: <Globa|l Action|
|000000a0| 73 3d 3e 47 6c 6f 62 61 | 6c 41 63 74 69 3e 20 2a |s=>Globa|lActi> *|
|000000b0| 20 55 70 3a 20 3c 28 44 | 49 52 29 3d 3e 44 49 52 | Up: <(D|IR)=>DIR|
|000000c0| 3e 0a 0a 23 57 72 61 70 | 20 6f 6e 0a 7b 66 48 32 |>..#Wrap| on.{fH2|
|000000d0| 7d 54 68 65 20 43 20 50 | 72 65 70 72 6f 63 65 73 |}The C P|reproces|
|000000e0| 73 6f 72 7b 66 7d 0a 0a | 54 68 65 20 43 20 70 72 |sor{f}..|The C pr|
|000000f0| 65 70 72 6f 63 65 73 73 | 6f 72 20 69 73 20 61 20 |eprocess|or is a |
|00000100| 7b 66 55 6e 64 65 72 6c | 69 6e 65 7d 6d 61 63 72 |{fUnderl|ine}macr|
|00000110| 6f 20 70 72 6f 63 65 73 | 73 6f 72 7b 66 7d 20 74 |o proces|sor{f} t|
|00000120| 68 61 74 20 69 73 20 75 | 73 65 64 20 61 75 74 6f |hat is u|sed auto|
|00000130| 6d 61 74 69 63 61 6c 6c | 79 20 62 79 0a 74 68 65 |maticall|y by.the|
|00000140| 20 43 20 63 6f 6d 70 69 | 6c 65 72 20 74 6f 20 74 | C compi|ler to t|
|00000150| 72 61 6e 73 66 6f 72 6d | 20 79 6f 75 72 20 70 72 |ransform| your pr|
|00000160| 6f 67 72 61 6d 20 62 65 | 66 6f 72 65 20 61 63 74 |ogram be|fore act|
|00000170| 75 61 6c 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 2e |ual comp|ilation.|
|00000180| 20 20 49 74 20 69 73 0a | 63 61 6c 6c 65 64 20 61 | It is.|called a|
|00000190| 20 6d 61 63 72 6f 20 70 | 72 6f 63 65 73 73 6f 72 | macro p|rocessor|
|000001a0| 20 62 65 63 61 75 73 65 | 20 69 74 20 61 6c 6c 6f | because| it allo|
|000001b0| 77 73 20 79 6f 75 20 74 | 6f 20 64 65 66 69 6e 65 |ws you t|o define|
|000001c0| 20 7b 66 55 6e 64 65 72 | 6c 69 6e 65 7d 6d 61 63 | {fUnder|line}mac|
|000001d0| 72 6f 73 7b 66 7d 2c 0a | 77 68 69 63 68 20 61 72 |ros{f},.|which ar|
|000001e0| 65 20 62 72 69 65 66 20 | 61 62 62 72 65 76 69 61 |e brief |abbrevia|
|000001f0| 74 69 6f 6e 73 20 66 6f | 72 20 6c 6f 6e 67 65 72 |tions fo|r longer|
|00000200| 20 63 6f 6e 73 74 72 75 | 63 74 73 2e 0a 0a 54 68 | constru|cts...Th|
|00000210| 65 20 43 20 70 72 65 70 | 72 6f 63 65 73 73 6f 72 |e C prep|rocessor|
|00000220| 20 70 72 6f 76 69 64 65 | 73 20 66 6f 75 72 20 73 | provide|s four s|
|00000230| 65 70 61 72 61 74 65 20 | 66 61 63 69 6c 69 74 69 |eparate |faciliti|
|00000240| 65 73 20 74 68 61 74 20 | 79 6f 75 20 63 61 6e 20 |es that |you can |
|00000250| 75 73 65 20 61 73 0a 79 | 6f 75 20 73 65 65 20 66 |use as.y|ou see f|
|00000260| 69 74 3a 0a 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |it:..#In|dent +4.|
|00000270| 0a 20 8f 20 49 6e 63 6c | 75 73 69 6f 6e 20 6f 66 |. . Incl|usion of|
|00000280| 20 68 65 61 64 65 72 20 | 66 69 6c 65 73 2e 20 20 | header |files. |
|00000290| 54 68 65 73 65 20 61 72 | 65 20 66 69 6c 65 73 20 |These ar|e files |
|000002a0| 6f 66 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 73 20 |of decla|rations |
|000002b0| 74 68 61 74 20 63 61 6e | 20 62 65 0a 73 75 62 73 |that can| be.subs|
|000002c0| 74 69 74 75 74 65 64 20 | 69 6e 74 6f 20 79 6f 75 |tituted |into you|
|000002d0| 72 20 70 72 6f 67 72 61 | 6d 2e 0a 0a 0a 20 8f 20 |r progra|m.... . |
|000002e0| 4d 61 63 72 6f 20 65 78 | 70 61 6e 73 69 6f 6e 2e |Macro ex|pansion.|
|000002f0| 20 20 59 6f 75 20 63 61 | 6e 20 64 65 66 69 6e 65 | You ca|n define|
|00000300| 20 7b 66 55 6e 64 65 72 | 6c 69 6e 65 7d 6d 61 63 | {fUnder|line}mac|
|00000310| 72 6f 73 7b 66 7d 2c 20 | 77 68 69 63 68 20 61 72 |ros{f}, |which ar|
|00000320| 65 20 61 62 62 72 65 76 | 69 61 74 69 6f 6e 73 0a |e abbrev|iations.|
|00000330| 66 6f 72 20 61 72 62 69 | 74 72 61 72 79 20 66 72 |for arbi|trary fr|
|00000340| 61 67 6d 65 6e 74 73 20 | 6f 66 20 43 20 63 6f 64 |agments |of C cod|
|00000350| 65 2c 20 61 6e 64 20 74 | 68 65 6e 20 74 68 65 20 |e, and t|hen the |
|00000360| 43 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 20 77 |C prepro|cessor w|
|00000370| 69 6c 6c 0a 72 65 70 6c | 61 63 65 20 74 68 65 20 |ill.repl|ace the |
|00000380| 6d 61 63 72 6f 73 20 77 | 69 74 68 20 74 68 65 69 |macros w|ith thei|
|00000390| 72 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 20 74 68 |r defini|tions th|
|000003a0| 72 6f 75 67 68 6f 75 74 | 20 74 68 65 20 70 72 6f |roughout| the pro|
|000003b0| 67 72 61 6d 2e 0a 0a 0a | 20 8f 20 43 6f 6e 64 69 |gram....| . Condi|
|000003c0| 74 69 6f 6e 61 6c 20 63 | 6f 6d 70 69 6c 61 74 69 |tional c|ompilati|
|000003d0| 6f 6e 2e 20 20 55 73 69 | 6e 67 20 73 70 65 63 69 |on. Usi|ng speci|
|000003e0| 61 6c 20 70 72 65 70 72 | 6f 63 65 73 73 6f 72 20 |al prepr|ocessor |
|000003f0| 63 6f 6d 6d 61 6e 64 73 | 2c 20 79 6f 75 0a 63 61 |commands|, you.ca|
|00000400| 6e 20 69 6e 63 6c 75 64 | 65 20 6f 72 20 65 78 63 |n includ|e or exc|
|00000410| 6c 75 64 65 20 70 61 72 | 74 73 20 6f 66 20 74 68 |lude par|ts of th|
|00000420| 65 20 70 72 6f 67 72 61 | 6d 20 61 63 63 6f 72 64 |e progra|m accord|
|00000430| 69 6e 67 20 74 6f 20 76 | 61 72 69 6f 75 73 0a 63 |ing to v|arious.c|
|00000440| 6f 6e 64 69 74 69 6f 6e | 73 2e 0a 0a 0a 20 8f 20 |ondition|s.... . |
|00000450| 4c 69 6e 65 20 63 6f 6e | 74 72 6f 6c 2e 20 20 49 |Line con|trol. I|
|00000460| 66 20 79 6f 75 20 75 73 | 65 20 61 20 70 72 6f 67 |f you us|e a prog|
|00000470| 72 61 6d 20 74 6f 20 63 | 6f 6d 62 69 6e 65 20 6f |ram to c|ombine o|
|00000480| 72 20 72 65 61 72 72 61 | 6e 67 65 20 73 6f 75 72 |r rearra|nge sour|
|00000490| 63 65 20 66 69 6c 65 73 | 20 69 6e 74 6f 0a 61 6e |ce files| into.an|
|000004a0| 20 69 6e 74 65 72 6d 65 | 64 69 61 74 65 20 66 69 | interme|diate fi|
|000004b0| 6c 65 20 77 68 69 63 68 | 20 69 73 20 74 68 65 6e |le which| is then|
|000004c0| 20 63 6f 6d 70 69 6c 65 | 64 2c 20 79 6f 75 20 63 | compile|d, you c|
|000004d0| 61 6e 20 75 73 65 20 6c | 69 6e 65 20 63 6f 6e 74 |an use l|ine cont|
|000004e0| 72 6f 6c 0a 74 6f 20 69 | 6e 66 6f 72 6d 20 74 68 |rol.to i|nform th|
|000004f0| 65 20 63 6f 6d 70 69 6c | 65 72 20 6f 66 20 77 68 |e compil|er of wh|
|00000500| 65 72 65 20 65 61 63 68 | 20 73 6f 75 72 63 65 20 |ere each| source |
|00000510| 6c 69 6e 65 20 6f 72 69 | 67 69 6e 61 6c 6c 79 20 |line ori|ginally |
|00000520| 63 61 6d 65 20 66 72 6f | 6d 2e 0a 0a 23 49 6e 64 |came fro|m...#Ind|
|00000530| 65 6e 74 0a 0a 43 20 70 | 72 65 70 72 6f 63 65 73 |ent..C p|reproces|
|00000540| 73 6f 72 73 20 76 61 72 | 79 20 69 6e 20 73 6f 6d |sors var|y in som|
|00000550| 65 20 64 65 74 61 69 6c | 73 2e 20 20 54 68 69 73 |e detail|s. This|
|00000560| 20 6d 61 6e 75 61 6c 20 | 64 69 73 63 75 73 73 65 | manual |discusse|
|00000570| 73 20 74 68 65 20 47 4e | 55 20 43 0a 70 72 65 70 |s the GN|U C.prep|
|00000580| 72 6f 63 65 73 73 6f 72 | 2c 20 74 68 65 20 43 20 |rocessor|, the C |
|00000590| 43 6f 6d 70 61 74 69 62 | 6c 65 20 43 6f 6d 70 69 |Compatib|le Compi|
|000005a0| 6c 65 72 20 50 72 65 70 | 72 6f 63 65 73 73 6f 72 |ler Prep|rocessor|
|000005b0| 2e 20 20 54 68 65 20 47 | 4e 55 20 43 0a 70 72 65 |. The G|NU C.pre|
|000005c0| 70 72 6f 63 65 73 73 6f | 72 20 70 72 6f 76 69 64 |processo|r provid|
|000005d0| 65 73 20 61 20 73 75 70 | 65 72 73 65 74 20 6f 66 |es a sup|erset of|
|000005e0| 20 74 68 65 20 66 65 61 | 74 75 72 65 73 20 6f 66 | the fea|tures of|
|000005f0| 20 41 4e 53 49 20 53 74 | 61 6e 64 61 72 64 20 43 | ANSI St|andard C|
|00000600| 2e 0a 0a 41 4e 53 49 20 | 53 74 61 6e 64 61 72 64 |...ANSI |Standard|
|00000610| 20 43 20 72 65 71 75 69 | 72 65 73 20 74 68 65 20 | C requi|res the |
|00000620| 72 65 6a 65 63 74 69 6f | 6e 20 6f 66 20 6d 61 6e |rejectio|n of man|
|00000630| 79 20 68 61 72 6d 6c 65 | 73 73 20 63 6f 6e 73 74 |y harmle|ss const|
|00000640| 72 75 63 74 73 20 63 6f | 6d 6d 6f 6e 6c 79 0a 75 |ructs co|mmonly.u|
|00000650| 73 65 64 20 62 79 20 74 | 6f 64 61 79 27 73 20 43 |sed by t|oday's C|
|00000660| 20 70 72 6f 67 72 61 6d | 73 2e 20 20 53 75 63 68 | program|s. Such|
|00000670| 20 69 6e 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 | incompa|tibility|
|00000680| 20 77 6f 75 6c 64 20 62 | 65 20 69 6e 63 6f 6e 76 | would b|e inconv|
|00000690| 65 6e 69 65 6e 74 20 66 | 6f 72 0a 75 73 65 72 73 |enient f|or.users|
|000006a0| 2c 20 73 6f 20 74 68 65 | 20 47 4e 55 20 43 20 70 |, so the| GNU C p|
|000006b0| 72 65 70 72 6f 63 65 73 | 73 6f 72 20 69 73 20 63 |reproces|sor is c|
|000006c0| 6f 6e 66 69 67 75 72 65 | 64 20 74 6f 20 61 63 63 |onfigure|d to acc|
|000006d0| 65 70 74 20 74 68 65 73 | 65 20 63 6f 6e 73 74 72 |ept thes|e constr|
|000006e0| 75 63 74 73 0a 62 79 20 | 64 65 66 61 75 6c 74 2e |ucts.by |default.|
|000006f0| 20 20 53 74 72 69 63 74 | 6c 79 20 73 70 65 61 6b | Strict|ly speak|
|00000700| 69 6e 67 2c 20 74 6f 20 | 67 65 74 20 41 4e 53 49 |ing, to |get ANSI|
|00000710| 20 53 74 61 6e 64 61 72 | 64 20 43 2c 20 79 6f 75 | Standar|d C, you|
|00000720| 20 6d 75 73 74 20 75 73 | 65 20 74 68 65 0a 6f 70 | must us|e the.op|
|00000730| 74 69 6f 6e 73 20 7b 66 | 45 6d 70 68 61 73 69 73 |tions {f|Emphasis|
|00000740| 7d 2d 74 72 69 67 72 61 | 70 68 73 7b 66 7d 2c 20 |}-trigra|phs{f}, |
|00000750| 7b 66 45 6d 70 68 61 73 | 69 73 7d 2d 75 6e 64 65 |{fEmphas|is}-unde|
|00000760| 66 7b 66 7d 20 61 6e 64 | 20 7b 66 45 6d 70 68 61 |f{f} and| {fEmpha|
|00000770| 73 69 73 7d 2d 70 65 64 | 61 6e 74 69 63 7b 66 7d |sis}-ped|antic{f}|
|00000780| 2c 20 62 75 74 20 69 6e | 0a 70 72 61 63 74 69 63 |, but in|.practic|
|00000790| 65 20 74 68 65 20 63 6f | 6e 73 65 71 75 65 6e 63 |e the co|nsequenc|
|000007a0| 65 73 20 6f 66 20 68 61 | 76 69 6e 67 20 73 74 72 |es of ha|ving str|
|000007b0| 69 63 74 20 41 4e 53 49 | 20 53 74 61 6e 64 61 72 |ict ANSI| Standar|
|000007c0| 64 20 43 20 6d 61 6b 65 | 20 69 74 0a 75 6e 64 65 |d C make| it.unde|
|000007d0| 73 69 72 61 62 6c 65 20 | 74 6f 20 64 6f 20 74 68 |sirable |to do th|
|000007e0| 69 73 2e 20 20 5c 2a 4e | 6f 74 65 20 3c 49 6e 76 |is. \*N|ote <Inv|
|000007f0| 6f 63 61 74 69 6f 6e 3d | 3e 49 6e 76 6f 63 61 74 |ocation=|>Invocat|
|00000800| 69 6f 6e 3e 2e 0a 0a 23 | 57 72 61 70 20 6f 66 66 |ion>...#|Wrap off|
|00000810| 0a 3c 47 6c 6f 62 61 6c | 20 41 63 74 69 6f 6e 73 |.<Global| Actions|
|00000820| 3d 3e 47 6c 6f 62 61 6c | 41 63 74 69 3e 3a 20 20 |=>Global|Acti>: |
|00000830| 20 20 41 63 74 69 6f 6e | 73 20 6d 61 64 65 20 75 | Action|s made u|
|00000840| 6e 69 66 6f 72 6d 6c 79 | 20 6f 6e 20 61 6c 6c 20 |niformly| on all |
|00000850| 69 6e 70 75 74 20 66 69 | 6c 65 73 2e 0a 3c 43 6f |input fi|les..<Co|
|00000860| 6d 6d 61 6e 64 73 3d 3e | 43 6f 6d 6d 61 6e 64 73 |mmands=>|Commands|
|00000870| 3e 3a 20 20 20 20 20 20 | 20 20 20 20 47 65 6e 65 |>: | Gene|
|00000880| 72 61 6c 20 73 79 6e 74 | 61 78 20 6f 66 20 70 72 |ral synt|ax of pr|
|00000890| 65 70 72 6f 63 65 73 73 | 6f 72 20 63 6f 6d 6d 61 |eprocess|or comma|
|000008a0| 6e 64 73 2e 0a 3c 48 65 | 61 64 65 72 20 46 69 6c |nds..<He|ader Fil|
|000008b0| 65 73 3d 3e 48 65 61 64 | 65 72 46 69 6c 65 3e 3a |es=>Head|erFile>:|
|000008c0| 20 20 20 20 20 20 48 6f | 77 20 61 6e 64 20 77 68 | Ho|w and wh|
|000008d0| 79 20 74 6f 20 75 73 65 | 20 68 65 61 64 65 72 20 |y to use| header |
|000008e0| 66 69 6c 65 73 2e 0a 3c | 4d 61 63 72 6f 73 3d 3e |files..<|Macros=>|
|000008f0| 4d 61 63 72 6f 73 3e 3a | 20 20 20 20 20 20 20 20 |Macros>:| |
|00000900| 20 20 20 20 48 6f 77 20 | 61 6e 64 20 77 68 79 20 | How |and why |
|00000910| 74 6f 20 75 73 65 20 6d | 61 63 72 6f 73 2e 0a 3c |to use m|acros..<|
|00000920| 43 6f 6e 64 69 74 69 6f | 6e 61 6c 73 3d 3e 43 6f |Conditio|nals=>Co|
|00000930| 6e 64 69 74 69 6f 6e 61 | 3e 3a 20 20 20 20 20 20 |nditiona|>: |
|00000940| 48 6f 77 20 61 6e 64 20 | 77 68 79 20 74 6f 20 75 |How and |why to u|
|00000950| 73 65 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 73 2e |se condi|tionals.|
|00000960| 0a 3c 43 6f 6d 62 69 6e | 69 6e 67 20 53 6f 75 72 |.<Combin|ing Sour|
|00000970| 63 65 73 3d 3e 43 6f 6d | 62 69 6e 69 6e 67 53 3e |ces=>Com|biningS>|
|00000980| 3a 20 55 73 65 20 6f 66 | 20 6c 69 6e 65 20 63 6f |: Use of| line co|
|00000990| 6e 74 72 6f 6c 20 77 68 | 65 6e 20 79 6f 75 20 63 |ntrol wh|en you c|
|000009a0| 6f 6d 62 69 6e 65 20 73 | 6f 75 72 63 65 20 66 69 |ombine s|ource fi|
|000009b0| 6c 65 73 2e 0a 3c 4f 74 | 68 65 72 20 43 6f 6d 6d |les..<Ot|her Comm|
|000009c0| 61 6e 64 73 3d 3e 4f 74 | 68 65 72 43 6f 6d 6d 61 |ands=>Ot|herComma|
|000009d0| 3e 3a 20 20 20 20 4d 69 | 73 63 65 6c 6c 61 6e 65 |>: Mi|scellane|
|000009e0| 6f 75 73 20 70 72 65 70 | 72 6f 63 65 73 73 6f 72 |ous prep|rocessor|
|000009f0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0a 3c 4f 75 74 70 | command|s..<Outp|
|00000a00| 75 74 3d 3e 4f 75 74 70 | 75 74 3e 3a 20 20 20 20 |ut=>Outp|ut>: |
|00000a10| 20 20 20 20 20 20 20 20 | 46 6f 72 6d 61 74 20 6f | |Format o|
|00000a20| 66 20 6f 75 74 70 75 74 | 20 66 72 6f 6d 20 74 68 |f output| from th|
|00000a30| 65 20 43 20 70 72 65 70 | 72 6f 63 65 73 73 6f 72 |e C prep|rocessor|
|00000a40| 2e 0a 3c 49 6e 76 6f 63 | 61 74 69 6f 6e 3d 3e 49 |..<Invoc|ation=>I|
|00000a50| 6e 76 6f 63 61 74 69 6f | 6e 3e 3a 20 20 20 20 20 |nvocatio|n>: |
|00000a60| 20 20 20 48 6f 77 20 74 | 6f 20 69 6e 76 6f 6b 65 | How t|o invoke|
|00000a70| 20 74 68 65 20 70 72 65 | 70 72 6f 63 65 73 73 6f | the pre|processo|
|00000a80| 72 3b 20 63 6f 6d 6d 61 | 6e 64 20 6f 70 74 69 6f |r; comma|nd optio|
|00000a90| 6e 73 2e 0a 3c 43 6f 6e | 63 65 70 74 20 49 6e 64 |ns..<Con|cept Ind|
|00000aa0| 65 78 3d 3e 43 6f 6e 63 | 65 70 74 49 6e 64 3e 3a |ex=>Conc|eptInd>:|
|00000ab0| 20 20 20 20 20 49 6e 64 | 65 78 20 6f 66 20 63 6f | Ind|ex of co|
|00000ac0| 6e 63 65 70 74 73 20 61 | 6e 64 20 74 65 72 6d 73 |ncepts a|nd terms|
|00000ad0| 2e 0a 3c 49 6e 64 65 78 | 3d 3e 49 6e 64 65 78 3e |..<Index|=>Index>|
|00000ae0| 3a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 49 6e |: | In|
|00000af0| 64 65 78 20 6f 66 20 63 | 6f 6d 6d 61 6e 64 73 2c |dex of c|ommands,|
|00000b00| 20 70 72 65 64 65 66 69 | 6e 65 64 20 6d 61 63 72 | predefi|ned macr|
|00000b10| 6f 73 20 61 6e 64 20 6f | 70 74 69 6f 6e 73 2e 0a |os and o|ptions..|
|00000b20| 23 57 72 61 70 20 6f 6e | 0a 0a 00 00 44 41 54 41 |#Wrap on|....DATA|
|00000b30| 16 19 00 00 41 72 67 75 | 6d 65 6e 74 20 4d 61 63 |....Argu|ment Mac|
|00000b40| 72 6f 73 0a 50 72 65 76 | 69 6f 75 73 3a 20 3c 53 |ros.Prev|ious: <S|
|00000b50| 69 6d 70 6c 65 20 4d 61 | 63 72 6f 73 3d 3e 53 69 |imple Ma|cros=>Si|
|00000b60| 6d 70 6c 65 4d 61 63 72 | 3e 20 2a 20 4e 65 78 74 |mpleMacr|> * Next|
|00000b70| 3a 20 3c 50 72 65 64 65 | 66 69 6e 65 64 3d 3e 50 |: <Prede|fined=>P|
|00000b80| 72 65 64 65 66 69 6e 65 | 64 3e 20 2a 20 55 70 3a |redefine|d> * Up:|
|00000b90| 20 3c 4d 61 63 72 6f 73 | 3d 3e 4d 61 63 72 6f 73 | <Macros|=>Macros|
|00000ba0| 3e 0a 0a 23 57 72 61 70 | 20 6f 6e 0a 7b 66 48 34 |>..#Wrap| on.{fH4|
|00000bb0| 7d 4d 61 63 72 6f 73 20 | 77 69 74 68 20 41 72 67 |}Macros |with Arg|
|00000bc0| 75 6d 65 6e 74 73 7b 66 | 7d 0a 0a 41 20 73 69 6d |uments{f|}..A sim|
|00000bd0| 70 6c 65 20 6d 61 63 72 | 6f 20 61 6c 77 61 79 73 |ple macr|o always|
|00000be0| 20 73 74 61 6e 64 73 20 | 66 6f 72 20 65 78 61 63 | stands |for exac|
|00000bf0| 74 6c 79 20 74 68 65 20 | 73 61 6d 65 20 74 65 78 |tly the |same tex|
|00000c00| 74 2c 20 65 61 63 68 20 | 74 69 6d 65 20 69 74 20 |t, each |time it |
|00000c10| 69 73 0a 75 73 65 64 2e | 20 20 4d 61 63 72 6f 73 |is.used.| Macros|
|00000c20| 20 63 61 6e 20 62 65 20 | 6d 6f 72 65 20 66 6c 65 | can be |more fle|
|00000c30| 78 69 62 6c 65 20 77 68 | 65 6e 20 74 68 65 79 20 |xible wh|en they |
|00000c40| 61 63 63 65 70 74 20 7b | 66 55 6e 64 65 72 6c 69 |accept {|fUnderli|
|00000c50| 6e 65 7d 61 72 67 75 6d | 65 6e 74 73 7b 66 7d 2e |ne}argum|ents{f}.|
|00000c60| 0a 41 72 67 75 6d 65 6e | 74 73 20 61 72 65 20 66 |.Argumen|ts are f|
|00000c70| 72 61 67 6d 65 6e 74 73 | 20 6f 66 20 63 6f 64 65 |ragments| of code|
|00000c80| 20 74 68 61 74 20 79 6f | 75 20 73 75 70 70 6c 79 | that yo|u supply|
|00000c90| 20 65 61 63 68 20 74 69 | 6d 65 20 74 68 65 20 6d | each ti|me the m|
|00000ca0| 61 63 72 6f 20 69 73 0a | 75 73 65 64 2e 20 20 54 |acro is.|used. T|
|00000cb0| 68 65 73 65 20 66 72 61 | 67 6d 65 6e 74 73 20 61 |hese fra|gments a|
|00000cc0| 72 65 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 74 |re inclu|ded in t|
|00000cd0| 68 65 20 65 78 70 61 6e | 73 69 6f 6e 20 6f 66 20 |he expan|sion of |
|00000ce0| 74 68 65 20 6d 61 63 72 | 6f 0a 61 63 63 6f 72 64 |the macr|o.accord|
|00000cf0| 69 6e 67 20 74 6f 20 74 | 68 65 20 64 69 72 65 63 |ing to t|he direc|
|00000d00| 74 69 6f 6e 73 20 69 6e | 20 74 68 65 20 6d 61 63 |tions in| the mac|
|00000d10| 72 6f 20 64 65 66 69 6e | 69 74 69 6f 6e 2e 20 20 |ro defin|ition. |
|00000d20| 41 20 6d 61 63 72 6f 20 | 74 68 61 74 0a 61 63 63 |A macro |that.acc|
|00000d30| 65 70 74 73 20 61 72 67 | 75 6d 65 6e 74 73 20 69 |epts arg|uments i|
|00000d40| 73 20 63 61 6c 6c 65 64 | 20 61 20 7b 66 55 6e 64 |s called| a {fUnd|
|00000d50| 65 72 6c 69 6e 65 7d 66 | 75 6e 63 74 69 6f 6e 2d |erline}f|unction-|
|00000d60| 6c 69 6b 65 20 6d 61 63 | 72 6f 7b 66 7d 20 62 65 |like mac|ro{f} be|
|00000d70| 63 61 75 73 65 20 74 68 | 65 0a 73 79 6e 74 61 78 |cause th|e.syntax|
|00000d80| 20 66 6f 72 20 75 73 69 | 6e 67 20 69 74 20 6c 6f | for usi|ng it lo|
|00000d90| 6f 6b 73 20 6c 69 6b 65 | 20 61 20 66 75 6e 63 74 |oks like| a funct|
|00000da0| 69 6f 6e 20 63 61 6c 6c | 2e 0a 0a 54 6f 20 64 65 |ion call|...To de|
|00000db0| 66 69 6e 65 20 61 20 6d | 61 63 72 6f 20 74 68 61 |fine a m|acro tha|
|00000dc0| 74 20 75 73 65 73 20 61 | 72 67 75 6d 65 6e 74 73 |t uses a|rguments|
|00000dd0| 2c 20 79 6f 75 20 77 72 | 69 74 65 20 61 20 7b 66 |, you wr|ite a {f|
|00000de0| 45 6d 70 68 61 73 69 73 | 7d 5c 23 64 65 66 69 6e |Emphasis|}\#defin|
|00000df0| 65 7b 66 7d 20 63 6f 6d | 6d 61 6e 64 0a 77 69 74 |e{f} com|mand.wit|
|00000e00| 68 20 61 20 6c 69 73 74 | 20 6f 66 20 7b 66 55 6e |h a list| of {fUn|
|00000e10| 64 65 72 6c 69 6e 65 7d | 61 72 67 75 6d 65 6e 74 |derline}|argument|
|00000e20| 20 6e 61 6d 65 73 7b 66 | 7d 20 69 6e 20 70 61 72 | names{f|} in par|
|00000e30| 65 6e 74 68 65 73 65 73 | 20 61 66 74 65 72 20 74 |entheses| after t|
|00000e40| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 0a 6d |he name |of the.m|
|00000e50| 61 63 72 6f 2e 20 20 54 | 68 65 20 61 72 67 75 6d |acro. T|he argum|
|00000e60| 65 6e 74 20 6e 61 6d 65 | 73 20 6d 61 79 20 62 65 |ent name|s may be|
|00000e70| 20 61 6e 79 20 76 61 6c | 69 64 20 43 20 69 64 65 | any val|id C ide|
|00000e80| 6e 74 69 66 69 65 72 73 | 2c 20 73 65 70 61 72 61 |ntifiers|, separa|
|00000e90| 74 65 64 20 62 79 0a 63 | 6f 6d 6d 61 73 20 61 6e |ted by.c|ommas an|
|00000ea0| 64 20 6f 70 74 69 6f 6e | 61 6c 6c 79 20 77 68 69 |d option|ally whi|
|00000eb0| 74 65 73 70 61 63 65 2e | 20 20 54 68 65 20 6f 70 |tespace.| The op|
|00000ec0| 65 6e 2d 70 61 72 65 6e | 74 68 65 73 69 73 20 6d |en-paren|thesis m|
|00000ed0| 75 73 74 20 66 6f 6c 6c | 6f 77 20 74 68 65 0a 6d |ust foll|ow the.m|
|00000ee0| 61 63 72 6f 20 6e 61 6d | 65 20 69 6d 6d 65 64 69 |acro nam|e immedi|
|00000ef0| 61 74 65 6c 79 2c 20 77 | 69 74 68 20 6e 6f 20 73 |ately, w|ith no s|
|00000f00| 70 61 63 65 20 69 6e 20 | 62 65 74 77 65 65 6e 2e |pace in |between.|
|00000f10| 0a 0a 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 68 |..For ex|ample, h|
|00000f20| 65 72 65 20 69 73 20 61 | 20 6d 61 63 72 6f 20 74 |ere is a| macro t|
|00000f30| 68 61 74 20 63 6f 6d 70 | 75 74 65 73 20 74 68 65 |hat comp|utes the|
|00000f40| 20 6d 69 6e 69 6d 75 6d | 20 6f 66 20 74 77 6f 20 | minimum| of two |
|00000f50| 6e 75 6d 65 72 69 63 0a | 76 61 6c 75 65 73 2c 20 |numeric.|values, |
|00000f60| 61 73 20 69 74 20 69 73 | 20 64 65 66 69 6e 65 64 |as it is| defined|
|00000f70| 20 69 6e 20 6d 61 6e 79 | 20 43 20 70 72 6f 67 72 | in many| C progr|
|00000f80| 61 6d 73 3a 0a 0a 23 57 | 72 61 70 20 6f 66 66 0a |ams:..#W|rap off.|
|00000f90| 23 66 43 6f 64 65 0a 5c | 23 64 65 66 69 6e 65 20 |#fCode.\|#define |
|00000fa0| 6d 69 6e 28 58 2c 20 59 | 29 20 20 28 28 58 29 20 |min(X, Y|) ((X) |
|00000fb0| 5c 3c 20 28 59 29 20 3f | 20 28 58 29 20 3a 20 28 |\< (Y) ?| (X) : (|
|00000fc0| 59 29 29 0a 23 66 0a 23 | 57 72 61 70 20 6f 6e 0a |Y)).#f.#|Wrap on.|
|00000fd0| 0a 28 54 68 69 73 20 69 | 73 20 6e 6f 74 20 74 68 |.(This i|s not th|
|00000fe0| 65 20 62 65 73 74 20 77 | 61 79 20 74 6f 20 64 65 |e best w|ay to de|
|00000ff0| 66 69 6e 65 20 61 20 60 | 60 6d 69 6e 69 6d 75 6d |fine a `|`minimum|
|00001000| 27 27 20 6d 61 63 72 6f | 20 69 6e 20 47 4e 55 20 |'' macro| in GNU |
|00001010| 43 2e 0a 5c 2a 4e 6f 74 | 65 20 3c 53 69 64 65 20 |C..\*Not|e <Side |
|00001020| 45 66 66 65 63 74 73 3d | 3e 53 69 64 65 45 66 66 |Effects=|>SideEff|
|00001030| 65 63 74 3e 2c 20 66 6f | 72 20 6d 6f 72 65 20 69 |ect>, fo|r more i|
|00001040| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 29 0a 0a 54 6f |nformati|on.)..To|
|00001050| 20 75 73 65 20 61 20 6d | 61 63 72 6f 20 74 68 61 | use a m|acro tha|
|00001060| 74 20 65 78 70 65 63 74 | 73 20 61 72 67 75 6d 65 |t expect|s argume|
|00001070| 6e 74 73 2c 20 79 6f 75 | 20 77 72 69 74 65 20 74 |nts, you| write t|
|00001080| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 6d |he name |of the m|
|00001090| 61 63 72 6f 0a 66 6f 6c | 6c 6f 77 65 64 20 62 79 |acro.fol|lowed by|
|000010a0| 20 61 20 6c 69 73 74 20 | 6f 66 20 7b 66 55 6e 64 | a list |of {fUnd|
|000010b0| 65 72 6c 69 6e 65 7d 61 | 63 74 75 61 6c 20 61 72 |erline}a|ctual ar|
|000010c0| 67 75 6d 65 6e 74 73 7b | 66 7d 20 69 6e 20 70 61 |guments{|f} in pa|
|000010d0| 72 65 6e 74 68 65 73 65 | 73 2c 20 73 65 70 61 72 |renthese|s, separ|
|000010e0| 61 74 65 64 20 62 79 0a | 63 6f 6d 6d 61 73 2e 20 |ated by.|commas. |
|000010f0| 20 54 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 61 | The num|ber of a|
|00001100| 63 74 75 61 6c 20 61 72 | 67 75 6d 65 6e 74 73 20 |ctual ar|guments |
|00001110| 79 6f 75 20 67 69 76 65 | 20 6d 75 73 74 20 6d 61 |you give| must ma|
|00001120| 74 63 68 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |tch the |number o|
|00001130| 66 0a 61 72 67 75 6d 65 | 6e 74 73 20 74 68 65 20 |f.argume|nts the |
|00001140| 6d 61 63 72 6f 20 65 78 | 70 65 63 74 73 2e 20 20 |macro ex|pects. |
|00001150| 20 45 78 61 6d 70 6c 65 | 73 20 6f 66 20 75 73 65 | Example|s of use|
|00001160| 20 6f 66 20 74 68 65 20 | 6d 61 63 72 6f 20 7b 66 | of the |macro {f|
|00001170| 45 6d 70 68 61 73 69 73 | 7d 6d 69 6e 7b 66 7d 0a |Emphasis|}min{f}.|
|00001180| 69 6e 63 6c 75 64 65 20 | 7b 66 45 6d 70 68 61 73 |include |{fEmphas|
|00001190| 69 73 7d 6d 69 6e 20 28 | 31 2c 20 32 29 7b 66 7d |is}min (|1, 2){f}|
|000011a0| 20 61 6e 64 20 7b 66 45 | 6d 70 68 61 73 69 73 7d | and {fE|mphasis}|
|000011b0| 6d 69 6e 20 28 78 20 2b | 20 32 38 2c 20 5c 2a 70 |min (x +| 28, \*p|
|000011c0| 29 7b 66 7d 2e 0a 0a 54 | 68 65 20 65 78 70 61 6e |){f}...T|he expan|
|000011d0| 73 69 6f 6e 20 74 65 78 | 74 20 6f 66 20 74 68 65 |sion tex|t of the|
|000011e0| 20 6d 61 63 72 6f 20 64 | 65 70 65 6e 64 73 20 6f | macro d|epends o|
|000011f0| 6e 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 73 20 |n the ar|guments |
|00001200| 79 6f 75 20 75 73 65 2e | 0a 45 61 63 68 20 6f 66 |you use.|.Each of|
|00001210| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 20 6e 61 | the arg|ument na|
|00001220| 6d 65 73 20 6f 66 20 74 | 68 65 20 6d 61 63 72 6f |mes of t|he macro|
|00001230| 20 69 73 20 72 65 70 6c | 61 63 65 64 2c 20 74 68 | is repl|aced, th|
|00001240| 72 6f 75 67 68 6f 75 74 | 20 74 68 65 0a 6d 61 63 |roughout| the.mac|
|00001250| 72 6f 20 64 65 66 69 6e | 69 74 69 6f 6e 2c 20 77 |ro defin|ition, w|
|00001260| 69 74 68 20 74 68 65 20 | 63 6f 72 72 65 73 70 6f |ith the |correspo|
|00001270| 6e 64 69 6e 67 20 61 63 | 74 75 61 6c 20 61 72 67 |nding ac|tual arg|
|00001280| 75 6d 65 6e 74 2e 20 20 | 55 73 69 6e 67 20 74 68 |ument. |Using th|
|00001290| 65 0a 73 61 6d 65 20 6d | 61 63 72 6f 20 7b 66 45 |e.same m|acro {fE|
|000012a0| 6d 70 68 61 73 69 73 7d | 6d 69 6e 7b 66 7d 20 64 |mphasis}|min{f} d|
|000012b0| 65 66 69 6e 65 64 20 61 | 62 6f 76 65 2c 20 7b 66 |efined a|bove, {f|
|000012c0| 45 6d 70 68 61 73 69 73 | 7d 6d 69 6e 20 28 31 2c |Emphasis|}min (1,|
|000012d0| 20 32 29 7b 66 7d 20 65 | 78 70 61 6e 64 73 20 69 | 2){f} e|xpands i|
|000012e0| 6e 74 6f 0a 0a 23 57 72 | 61 70 20 6f 66 66 0a 23 |nto..#Wr|ap off.#|
|000012f0| 66 43 6f 64 65 0a 28 28 | 31 29 20 5c 3c 20 28 32 |fCode.((|1) \< (2|
|00001300| 29 20 3f 20 28 31 29 20 | 3a 20 28 32 29 29 0a 23 |) ? (1) |: (2)).#|
|00001310| 66 0a 23 57 72 61 70 20 | 6f 6e 0a 0a 77 68 65 72 |f.#Wrap |on..wher|
|00001320| 65 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 31 7b 66 |e {fEmph|asis}1{f|
|00001330| 7d 20 68 61 73 20 62 65 | 65 6e 20 73 75 62 73 74 |} has be|en subst|
|00001340| 69 74 75 74 65 64 20 66 | 6f 72 20 7b 66 45 6d 70 |ituted f|or {fEmp|
|00001350| 68 61 73 69 73 7d 58 7b | 66 7d 20 61 6e 64 20 7b |hasis}X{|f} and {|
|00001360| 66 45 6d 70 68 61 73 69 | 73 7d 32 7b 66 7d 20 66 |fEmphasi|s}2{f} f|
|00001370| 6f 72 20 7b 66 45 6d 70 | 68 61 73 69 73 7d 59 7b |or {fEmp|hasis}Y{|
|00001380| 66 7d 2e 0a 0a 4c 69 6b | 65 77 69 73 65 2c 20 7b |f}...Lik|ewise, {|
|00001390| 66 45 6d 70 68 61 73 69 | 73 7d 6d 69 6e 20 28 78 |fEmphasi|s}min (x|
|000013a0| 20 2b 20 32 38 2c 20 5c | 2a 70 29 7b 66 7d 20 65 | + 28, \|*p){f} e|
|000013b0| 78 70 61 6e 64 73 20 69 | 6e 74 6f 0a 0a 23 57 72 |xpands i|nto..#Wr|
|000013c0| 61 70 20 6f 66 66 0a 23 | 66 43 6f 64 65 0a 28 28 |ap off.#|fCode.((|
|000013d0| 78 20 2b 20 32 38 29 20 | 5c 3c 20 28 5c 2a 70 29 |x + 28) |\< (\*p)|
|000013e0| 20 3f 20 28 78 20 2b 20 | 32 38 29 20 3a 20 28 5c | ? (x + |28) : (\|
|000013f0| 2a 70 29 29 0a 23 66 0a | 23 57 72 61 70 20 6f 6e |*p)).#f.|#Wrap on|
|00001400| 0a 0a 50 61 72 65 6e 74 | 68 65 73 65 73 20 69 6e |..Parent|heses in|
|00001410| 20 74 68 65 20 61 63 74 | 75 61 6c 20 61 72 67 75 | the act|ual argu|
|00001420| 6d 65 6e 74 73 20 6d 75 | 73 74 20 62 61 6c 61 6e |ments mu|st balan|
|00001430| 63 65 3b 20 61 20 63 6f | 6d 6d 61 20 77 69 74 68 |ce; a co|mma with|
|00001440| 69 6e 0a 70 61 72 65 6e | 74 68 65 73 65 73 20 64 |in.paren|theses d|
|00001450| 6f 65 73 20 6e 6f 74 20 | 65 6e 64 20 61 6e 20 61 |oes not |end an a|
|00001460| 72 67 75 6d 65 6e 74 2e | 20 20 48 6f 77 65 76 65 |rgument.| Howeve|
|00001470| 72 2c 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 72 |r, there| is no r|
|00001480| 65 71 75 69 72 65 6d 65 | 6e 74 0a 66 6f 72 20 62 |equireme|nt.for b|
|00001490| 72 61 63 6b 65 74 73 20 | 6f 72 20 62 72 61 63 65 |rackets |or brace|
|000014a0| 73 20 74 6f 20 62 61 6c | 61 6e 63 65 2c 20 61 6e |s to bal|ance, an|
|000014b0| 64 20 74 68 65 79 20 64 | 6f 20 6e 6f 74 20 70 72 |d they d|o not pr|
|000014c0| 65 76 65 6e 74 20 61 20 | 63 6f 6d 6d 61 20 66 72 |event a |comma fr|
|000014d0| 6f 6d 0a 73 65 70 61 72 | 61 74 69 6e 67 20 61 72 |om.separ|ating ar|
|000014e0| 67 75 6d 65 6e 74 73 2e | 20 20 54 68 75 73 2c 0a |guments.| Thus,.|
|000014f0| 0a 23 57 72 61 70 20 6f | 66 66 0a 23 66 43 6f 64 |.#Wrap o|ff.#fCod|
|00001500| 65 0a 6d 61 63 72 6f 20 | 28 61 72 72 61 79 5b 78 |e.macro |(array[x|
|00001510| 20 3d 20 79 2c 20 78 20 | 2b 20 31 5d 29 0a 23 66 | = y, x |+ 1]).#f|
|00001520| 0a 23 57 72 61 70 20 6f | 6e 0a 0a 70 61 73 73 65 |.#Wrap o|n..passe|
|00001530| 73 20 74 77 6f 20 61 72 | 67 75 6d 65 6e 74 73 20 |s two ar|guments |
|00001540| 74 6f 20 7b 66 43 6f 64 | 65 7d 6d 61 63 72 6f 7b |to {fCod|e}macro{|
|00001550| 66 7d 3a 20 7b 66 45 6d | 70 68 61 73 69 73 7d 61 |f}: {fEm|phasis}a|
|00001560| 72 72 61 79 5b 78 20 3d | 20 79 7b 66 7d 20 61 6e |rray[x =| y{f} an|
|00001570| 64 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 78 20 2b |d {fEmph|asis}x +|
|00001580| 0a 31 5d 7b 66 7d 2e 20 | 20 49 66 20 79 6f 75 20 |.1]{f}. | If you |
|00001590| 77 61 6e 74 20 74 6f 20 | 73 75 70 70 6c 79 20 7b |want to |supply {|
|000015a0| 66 45 6d 70 68 61 73 69 | 73 7d 61 72 72 61 79 5b |fEmphasi|s}array[|
|000015b0| 78 20 3d 20 79 2c 20 78 | 20 2b 20 31 5d 7b 66 7d |x = y, x| + 1]{f}|
|000015c0| 20 61 73 20 61 6e 20 61 | 72 67 75 6d 65 6e 74 2c | as an a|rgument,|
|000015d0| 0a 79 6f 75 20 6d 75 73 | 74 20 77 72 69 74 65 20 |.you mus|t write |
|000015e0| 69 74 20 61 73 20 7b 66 | 45 6d 70 68 61 73 69 73 |it as {f|Emphasis|
|000015f0| 7d 61 72 72 61 79 5b 28 | 78 20 3d 20 79 2c 20 78 |}array[(|x = y, x|
|00001600| 20 2b 20 31 29 5d 7b 66 | 7d 2c 20 77 68 69 63 68 | + 1)]{f|}, which|
|00001610| 20 69 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 43 | is equi|valent C|
|00001620| 0a 63 6f 64 65 2e 0a 0a | 41 66 74 65 72 20 74 68 |.code...|After th|
|00001630| 65 20 61 63 74 75 61 6c | 20 61 72 67 75 6d 65 6e |e actual| argumen|
|00001640| 74 73 20 61 72 65 20 73 | 75 62 73 74 69 74 75 74 |ts are s|ubstitut|
|00001650| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 6d 61 63 72 |ed into |the macr|
|00001660| 6f 20 62 6f 64 79 2c 20 | 74 68 65 20 65 6e 74 69 |o body, |the enti|
|00001670| 72 65 0a 72 65 73 75 6c | 74 20 69 73 20 61 70 70 |re.resul|t is app|
|00001680| 65 6e 64 65 64 20 74 6f | 20 74 68 65 20 66 72 6f |ended to| the fro|
|00001690| 6e 74 20 6f 66 20 74 68 | 65 20 72 65 6d 61 69 6e |nt of th|e remain|
|000016a0| 69 6e 67 20 69 6e 70 75 | 74 2c 20 61 6e 64 20 74 |ing inpu|t, and t|
|000016b0| 68 65 20 63 68 65 63 6b | 20 66 6f 72 0a 6d 61 63 |he check| for.mac|
|000016c0| 72 6f 20 63 61 6c 6c 73 | 20 63 6f 6e 74 69 6e 75 |ro calls| continu|
|000016d0| 65 73 2e 20 20 54 68 65 | 72 65 66 6f 72 65 2c 20 |es. The|refore, |
|000016e0| 74 68 65 20 61 63 74 75 | 61 6c 20 61 72 67 75 6d |the actu|al argum|
|000016f0| 65 6e 74 73 20 63 61 6e | 20 63 6f 6e 74 61 69 6e |ents can| contain|
|00001700| 20 63 61 6c 6c 73 0a 74 | 6f 20 6f 74 68 65 72 20 | calls.t|o other |
|00001710| 6d 61 63 72 6f 73 2c 20 | 65 69 74 68 65 72 20 77 |macros, |either w|
|00001720| 69 74 68 20 6f 72 20 77 | 69 74 68 6f 75 74 20 61 |ith or w|ithout a|
|00001730| 72 67 75 6d 65 6e 74 73 | 2c 20 6f 72 20 65 76 65 |rguments|, or eve|
|00001740| 6e 20 74 6f 20 74 68 65 | 20 73 61 6d 65 0a 6d 61 |n to the| same.ma|
|00001750| 63 72 6f 2e 20 20 54 68 | 65 20 6d 61 63 72 6f 20 |cro. Th|e macro |
|00001760| 62 6f 64 79 20 63 61 6e | 20 61 6c 73 6f 20 63 6f |body can| also co|
|00001770| 6e 74 61 69 6e 20 63 61 | 6c 6c 73 20 74 6f 20 6f |ntain ca|lls to o|
|00001780| 74 68 65 72 20 6d 61 63 | 72 6f 73 2e 20 20 46 6f |ther mac|ros. Fo|
|00001790| 72 0a 65 78 61 6d 70 6c | 65 2c 20 7b 66 45 6d 70 |r.exampl|e, {fEmp|
|000017a0| 68 61 73 69 73 7d 6d 69 | 6e 20 28 6d 69 6e 20 28 |hasis}mi|n (min (|
|000017b0| 61 2c 20 62 29 2c 20 63 | 29 7b 66 7d 20 65 78 70 |a, b), c|){f} exp|
|000017c0| 61 6e 64 73 20 69 6e 74 | 6f 20 74 68 69 73 20 74 |ands int|o this t|
|000017d0| 65 78 74 3a 0a 0a 23 57 | 72 61 70 20 6f 66 66 0a |ext:..#W|rap off.|
|000017e0| 23 66 43 6f 64 65 0a 28 | 28 28 28 61 29 20 5c 3c |#fCode.(|(((a) \<|
|000017f0| 20 28 62 29 20 3f 20 28 | 61 29 20 3a 20 28 62 29 | (b) ? (|a) : (b)|
|00001800| 29 29 20 5c 3c 20 28 63 | 29 0a 20 3f 20 28 28 28 |)) \< (c|). ? (((|
|00001810| 61 29 20 5c 3c 20 28 62 | 29 20 3f 20 28 61 29 20 |a) \< (b|) ? (a) |
|00001820| 3a 20 28 62 29 29 29 0a | 20 3a 20 28 63 29 29 0a |: (b))).| : (c)).|
|00001830| 23 66 0a 23 57 72 61 70 | 20 6f 6e 0a 0a 28 4c 69 |#f.#Wrap| on..(Li|
|00001840| 6e 65 20 62 72 65 61 6b | 73 20 73 68 6f 77 6e 20 |ne break|s shown |
|00001850| 68 65 72 65 20 66 6f 72 | 20 63 6c 61 72 69 74 79 |here for| clarity|
|00001860| 20 77 6f 75 6c 64 20 6e | 6f 74 20 61 63 74 75 61 | would n|ot actua|
|00001870| 6c 6c 79 20 62 65 20 67 | 65 6e 65 72 61 74 65 64 |lly be g|enerated|
|00001880| 2e 29 0a 0a 49 66 20 61 | 20 6d 61 63 72 6f 20 7b |.)..If a| macro {|
|00001890| 66 43 6f 64 65 7d 66 6f | 6f 7b 66 7d 20 74 61 6b |fCode}fo|o{f} tak|
|000018a0| 65 73 20 6f 6e 65 20 61 | 72 67 75 6d 65 6e 74 2c |es one a|rgument,|
|000018b0| 20 61 6e 64 20 79 6f 75 | 20 77 61 6e 74 20 74 6f | and you| want to|
|000018c0| 20 73 75 70 70 6c 79 20 | 61 6e 0a 65 6d 70 74 79 | supply |an.empty|
|000018d0| 20 61 72 67 75 6d 65 6e | 74 2c 20 79 6f 75 20 6d | argumen|t, you m|
|000018e0| 75 73 74 20 77 72 69 74 | 65 20 61 74 20 6c 65 61 |ust writ|e at lea|
|000018f0| 73 74 20 73 6f 6d 65 20 | 77 68 69 74 65 73 70 61 |st some |whitespa|
|00001900| 63 65 20 62 65 74 77 65 | 65 6e 20 74 68 65 0a 70 |ce betwe|en the.p|
|00001910| 61 72 65 6e 74 68 65 73 | 65 73 2c 20 6c 69 6b 65 |arenthes|es, like|
|00001920| 20 74 68 69 73 3a 20 7b | 66 45 6d 70 68 61 73 69 | this: {|fEmphasi|
|00001930| 73 7d 66 6f 6f 20 28 20 | 29 7b 66 7d 2e 20 20 4a |s}foo ( |){f}. J|
|00001940| 75 73 74 20 7b 66 45 6d | 70 68 61 73 69 73 7d 66 |ust {fEm|phasis}f|
|00001950| 6f 6f 20 28 29 7b 66 7d | 20 69 73 20 70 72 6f 76 |oo (){f}| is prov|
|00001960| 69 64 69 6e 67 0a 6e 6f | 20 61 72 67 75 6d 65 6e |iding.no| argumen|
|00001970| 74 73 2c 20 77 68 69 63 | 68 20 69 73 20 61 6e 20 |ts, whic|h is an |
|00001980| 65 72 72 6f 72 20 69 66 | 20 7b 66 43 6f 64 65 7d |error if| {fCode}|
|00001990| 66 6f 6f 7b 66 7d 20 65 | 78 70 65 63 74 73 20 61 |foo{f} e|xpects a|
|000019a0| 6e 20 61 72 67 75 6d 65 | 6e 74 2e 20 20 42 75 74 |n argume|nt. But|
|000019b0| 0a 7b 66 45 6d 70 68 61 | 73 69 73 7d 66 6f 6f 30 |.{fEmpha|sis}foo0|
|000019c0| 20 28 29 7b 66 7d 20 69 | 73 20 74 68 65 20 63 6f | (){f} i|s the co|
|000019d0| 72 72 65 63 74 20 77 61 | 79 20 74 6f 20 63 61 6c |rrect wa|y to cal|
|000019e0| 6c 20 61 20 6d 61 63 72 | 6f 20 64 65 66 69 6e 65 |l a macr|o define|
|000019f0| 64 20 74 6f 20 74 61 6b | 65 20 7a 65 72 6f 0a 61 |d to tak|e zero.a|
|00001a00| 72 67 75 6d 65 6e 74 73 | 2c 20 6c 69 6b 65 20 74 |rguments|, like t|
|00001a10| 68 69 73 3a 0a 0a 23 57 | 72 61 70 20 6f 66 66 0a |his:..#W|rap off.|
|00001a20| 23 66 43 6f 64 65 0a 5c | 23 64 65 66 69 6e 65 20 |#fCode.\|#define |
|00001a30| 66 6f 6f 30 28 29 20 8c | 0a 23 66 0a 23 57 72 61 |foo0() .|.#f.#Wra|
|00001a40| 70 20 6f 6e 0a 0a 49 66 | 20 79 6f 75 20 75 73 65 |p on..If| you use|
|00001a50| 20 74 68 65 20 6d 61 63 | 72 6f 20 6e 61 6d 65 20 | the mac|ro name |
|00001a60| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 73 6f 6d 65 |followed| by some|
|00001a70| 74 68 69 6e 67 20 6f 74 | 68 65 72 20 74 68 61 6e |thing ot|her than|
|00001a80| 20 61 6e 0a 6f 70 65 6e | 2d 70 61 72 65 6e 74 68 | an.open|-parenth|
|00001a90| 65 73 69 73 20 28 61 66 | 74 65 72 20 69 67 6e 6f |esis (af|ter igno|
|00001aa0| 72 69 6e 67 20 61 6e 79 | 20 73 70 61 63 65 73 2c |ring any| spaces,|
|00001ab0| 20 74 61 62 73 20 61 6e | 64 20 63 6f 6d 6d 65 6e | tabs an|d commen|
|00001ac0| 74 73 20 74 68 61 74 0a | 66 6f 6c 6c 6f 77 29 2c |ts that.|follow),|
|00001ad0| 20 69 74 20 69 73 20 6e | 6f 74 20 61 20 63 61 6c | it is n|ot a cal|
|00001ae0| 6c 20 74 6f 20 74 68 65 | 20 6d 61 63 72 6f 2c 20 |l to the| macro, |
|00001af0| 61 6e 64 20 74 68 65 20 | 70 72 65 70 72 6f 63 65 |and the |preproce|
|00001b00| 73 73 6f 72 20 64 6f 65 | 73 20 6e 6f 74 0a 63 68 |ssor doe|s not.ch|
|00001b10| 61 6e 67 65 20 77 68 61 | 74 20 79 6f 75 20 68 61 |ange wha|t you ha|
|00001b20| 76 65 20 77 72 69 74 74 | 65 6e 2e 20 20 54 68 65 |ve writt|en. The|
|00001b30| 72 65 66 6f 72 65 2c 20 | 69 74 20 69 73 20 70 6f |refore, |it is po|
|00001b40| 73 73 69 62 6c 65 20 66 | 6f 72 20 74 68 65 20 73 |ssible f|or the s|
|00001b50| 61 6d 65 20 6e 61 6d 65 | 0a 74 6f 20 62 65 20 61 |ame name|.to be a|
|00001b60| 20 76 61 72 69 61 62 6c | 65 20 6f 72 20 66 75 6e | variabl|e or fun|
|00001b70| 63 74 69 6f 6e 20 69 6e | 20 79 6f 75 72 20 70 72 |ction in| your pr|
|00001b80| 6f 67 72 61 6d 20 61 73 | 20 77 65 6c 6c 20 61 73 |ogram as| well as|
|00001b90| 20 61 20 6d 61 63 72 6f | 2c 20 61 6e 64 20 79 6f | a macro|, and yo|
|00001ba0| 75 0a 63 61 6e 20 63 68 | 6f 6f 73 65 20 69 6e 20 |u.can ch|oose in |
|00001bb0| 65 61 63 68 20 69 6e 73 | 74 61 6e 63 65 20 77 68 |each ins|tance wh|
|00001bc0| 65 74 68 65 72 20 74 6f | 20 72 65 66 65 72 20 74 |ether to| refer t|
|00001bd0| 6f 20 74 68 65 20 6d 61 | 63 72 6f 20 28 69 66 20 |o the ma|cro (if |
|00001be0| 61 6e 20 61 63 74 75 61 | 6c 0a 61 72 67 75 6d 65 |an actua|l.argume|
|00001bf0| 6e 74 20 6c 69 73 74 20 | 66 6f 6c 6c 6f 77 73 29 |nt list |follows)|
|00001c00| 20 6f 72 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | or the |variable|
|00001c10| 20 6f 72 20 66 75 6e 63 | 74 69 6f 6e 20 28 69 66 | or func|tion (if|
|00001c20| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 20 6c 69 73 | an argu|ment lis|
|00001c30| 74 0a 64 6f 65 73 20 6e | 6f 74 20 66 6f 6c 6c 6f |t.does n|ot follo|
|00001c40| 77 29 2e 0a 0a 53 75 63 | 68 20 64 75 61 6c 20 75 |w)...Suc|h dual u|
|00001c50| 73 65 20 6f 66 20 6f 6e | 65 20 6e 61 6d 65 20 63 |se of on|e name c|
|00001c60| 6f 75 6c 64 20 62 65 20 | 63 6f 6e 66 75 73 69 6e |ould be |confusin|
|00001c70| 67 20 61 6e 64 20 73 68 | 6f 75 6c 64 20 62 65 20 |g and sh|ould be |
|00001c80| 61 76 6f 69 64 65 64 0a | 65 78 63 65 70 74 20 77 |avoided.|except w|
|00001c90| 68 65 6e 20 74 68 65 20 | 74 77 6f 20 6d 65 61 6e |hen the |two mean|
|00001ca0| 69 6e 67 73 20 61 72 65 | 20 65 66 66 65 63 74 69 |ings are| effecti|
|00001cb0| 76 65 6c 79 20 73 79 6e | 6f 6e 79 6d 6f 75 73 3a |vely syn|onymous:|
|00001cc0| 20 74 68 61 74 20 69 73 | 2c 20 77 68 65 6e 20 74 | that is|, when t|
|00001cd0| 68 65 0a 6e 61 6d 65 20 | 69 73 20 62 6f 74 68 20 |he.name |is both |
|00001ce0| 61 20 6d 61 63 72 6f 20 | 61 6e 64 20 61 20 66 75 |a macro |and a fu|
|00001cf0| 6e 63 74 69 6f 6e 20 61 | 6e 64 20 74 68 65 20 74 |nction a|nd the t|
|00001d00| 77 6f 20 68 61 76 65 20 | 73 69 6d 69 6c 61 72 20 |wo have |similar |
|00001d10| 65 66 66 65 63 74 73 2e | 20 20 59 6f 75 0a 63 61 |effects.| You.ca|
|00001d20| 6e 20 74 68 69 6e 6b 20 | 6f 66 20 74 68 65 20 6e |n think |of the n|
|00001d30| 61 6d 65 20 73 69 6d 70 | 6c 79 20 61 73 20 61 20 |ame simp|ly as a |
|00001d40| 66 75 6e 63 74 69 6f 6e | 3b 20 75 73 65 20 6f 66 |function|; use of|
|00001d50| 20 74 68 65 20 6e 61 6d | 65 20 66 6f 72 20 70 75 | the nam|e for pu|
|00001d60| 72 70 6f 73 65 73 0a 6f | 74 68 65 72 20 74 68 61 |rposes.o|ther tha|
|00001d70| 6e 20 63 61 6c 6c 69 6e | 67 20 69 74 20 28 73 75 |n callin|g it (su|
|00001d80| 63 68 20 61 73 2c 20 74 | 6f 20 74 61 6b 65 20 74 |ch as, t|o take t|
|00001d90| 68 65 20 61 64 64 72 65 | 73 73 29 20 77 69 6c 6c |he addre|ss) will|
|00001da0| 20 72 65 66 65 72 20 74 | 6f 20 74 68 65 0a 66 75 | refer t|o the.fu|
|00001db0| 6e 63 74 69 6f 6e 2c 20 | 77 68 69 6c 65 20 63 61 |nction, |while ca|
|00001dc0| 6c 6c 73 20 77 69 6c 6c | 20 65 78 70 61 6e 64 20 |lls will| expand |
|00001dd0| 74 68 65 20 6d 61 63 72 | 6f 20 61 6e 64 20 67 65 |the macr|o and ge|
|00001de0| 6e 65 72 61 74 65 20 62 | 65 74 74 65 72 20 62 75 |nerate b|etter bu|
|00001df0| 74 0a 65 71 75 69 76 61 | 6c 65 6e 74 20 63 6f 64 |t.equiva|lent cod|
|00001e00| 65 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |e. For |example,|
|00001e10| 20 79 6f 75 20 63 61 6e | 20 75 73 65 20 61 20 66 | you can| use a f|
|00001e20| 75 6e 63 74 69 6f 6e 20 | 6e 61 6d 65 64 20 7b 66 |unction |named {f|
|00001e30| 45 6d 70 68 61 73 69 73 | 7d 6d 69 6e 7b 66 7d 20 |Emphasis|}min{f} |
|00001e40| 69 6e 0a 74 68 65 20 73 | 61 6d 65 20 73 6f 75 72 |in.the s|ame sour|
|00001e50| 63 65 20 66 69 6c 65 20 | 74 68 61 74 20 64 65 66 |ce file |that def|
|00001e60| 69 6e 65 73 20 74 68 65 | 20 6d 61 63 72 6f 2e 20 |ines the| macro. |
|00001e70| 20 49 66 20 79 6f 75 20 | 77 72 69 74 65 20 7b 66 | If you |write {f|
|00001e80| 45 6d 70 68 61 73 69 73 | 7d 26 6d 69 6e 7b 66 7d |Emphasis|}&min{f}|
|00001e90| 20 77 69 74 68 0a 6e 6f | 20 61 72 67 75 6d 65 6e | with.no| argumen|
|00001ea0| 74 20 6c 69 73 74 2c 20 | 79 6f 75 20 72 65 66 65 |t list, |you refe|
|00001eb0| 72 20 74 6f 20 74 68 65 | 20 66 75 6e 63 74 69 6f |r to the| functio|
|00001ec0| 6e 2e 20 20 49 66 20 79 | 6f 75 20 77 72 69 74 65 |n. If y|ou write|
|00001ed0| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 6d 69 6e 20 | {fEmpha|sis}min |
|00001ee0| 28 78 2c 0a 62 62 29 7b | 66 7d 2c 20 77 69 74 68 |(x,.bb){|f}, with|
|00001ef0| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 20 6c 69 73 | an argu|ment lis|
|00001f00| 74 2c 20 74 68 65 20 6d | 61 63 72 6f 20 69 73 20 |t, the m|acro is |
|00001f10| 65 78 70 61 6e 64 65 64 | 2e 20 20 49 66 20 79 6f |expanded|. If yo|
|00001f20| 75 20 77 72 69 74 65 0a | 7b 66 45 6d 70 68 61 73 |u write.|{fEmphas|
|00001f30| 69 73 7d 28 6d 69 6e 29 | 20 28 61 2c 20 62 62 29 |is}(min)| (a, bb)|
|00001f40| 7b 66 7d 2c 20 77 68 65 | 72 65 20 74 68 65 20 6e |{f}, whe|re the n|
|00001f50| 61 6d 65 20 7b 66 45 6d | 70 68 61 73 69 73 7d 6d |ame {fEm|phasis}m|
|00001f60| 69 6e 7b 66 7d 20 69 73 | 20 6e 6f 74 20 66 6f 6c |in{f} is| not fol|
|00001f70| 6c 6f 77 65 64 20 62 79 | 20 61 6e 0a 6f 70 65 6e |lowed by| an.open|
|00001f80| 2d 70 61 72 65 6e 74 68 | 65 73 69 73 2c 20 74 68 |-parenth|esis, th|
|00001f90| 65 20 6d 61 63 72 6f 20 | 69 73 20 6e 6f 74 20 65 |e macro |is not e|
|00001fa0| 78 70 61 6e 64 65 64 2c | 20 73 6f 20 79 6f 75 20 |xpanded,| so you |
|00001fb0| 77 69 6e 64 20 75 70 20 | 77 69 74 68 20 61 20 63 |wind up |with a c|
|00001fc0| 61 6c 6c 20 74 6f 0a 74 | 68 65 20 66 75 6e 63 74 |all to.t|he funct|
|00001fd0| 69 6f 6e 20 7b 66 45 6d | 70 68 61 73 69 73 7d 6d |ion {fEm|phasis}m|
|00001fe0| 69 6e 7b 66 7d 2e 0a 0a | 59 6f 75 20 6d 61 79 20 |in{f}...|You may |
|00001ff0| 6e 6f 74 20 64 65 66 69 | 6e 65 20 74 68 65 20 73 |not defi|ne the s|
|00002000| 61 6d 65 20 6e 61 6d 65 | 20 61 73 20 62 6f 74 68 |ame name| as both|
|00002010| 20 61 20 73 69 6d 70 6c | 65 20 6d 61 63 72 6f 20 | a simpl|e macro |
|00002020| 61 6e 64 20 61 20 6d 61 | 63 72 6f 20 77 69 74 68 |and a ma|cro with|
|00002030| 0a 61 72 67 75 6d 65 6e | 74 73 2e 0a 0a 49 6e 20 |.argumen|ts...In |
|00002040| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |the defi|nition o|
|00002050| 66 20 61 20 6d 61 63 72 | 6f 20 77 69 74 68 20 61 |f a macr|o with a|
|00002060| 72 67 75 6d 65 6e 74 73 | 2c 20 74 68 65 20 6c 69 |rguments|, the li|
|00002070| 73 74 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 20 6e |st of ar|gument n|
|00002080| 61 6d 65 73 0a 6d 75 73 | 74 20 66 6f 6c 6c 6f 77 |ames.mus|t follow|
|00002090| 20 74 68 65 20 6d 61 63 | 72 6f 20 6e 61 6d 65 20 | the mac|ro name |
|000020a0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 77 69 74 68 |immediat|ely with|
|000020b0| 20 6e 6f 20 73 70 61 63 | 65 20 69 6e 20 62 65 74 | no spac|e in bet|
|000020c0| 77 65 65 6e 2e 20 20 49 | 66 20 74 68 65 72 65 0a |ween. I|f there.|
|000020d0| 69 73 20 61 20 73 70 61 | 63 65 20 61 66 74 65 72 |is a spa|ce after|
|000020e0| 20 74 68 65 20 6d 61 63 | 72 6f 20 6e 61 6d 65 2c | the mac|ro name,|
|000020f0| 20 74 68 65 20 6d 61 63 | 72 6f 20 69 73 20 64 65 | the mac|ro is de|
|00002100| 66 69 6e 65 64 20 61 73 | 20 74 61 6b 69 6e 67 20 |fined as| taking |
|00002110| 6e 6f 0a 61 72 67 75 6d | 65 6e 74 73 2c 20 61 6e |no.argum|ents, an|
|00002120| 64 20 61 6c 6c 20 74 68 | 65 20 72 65 73 74 20 6f |d all th|e rest o|
|00002130| 66 20 74 68 65 20 6c 69 | 6e 65 20 69 73 20 74 61 |f the li|ne is ta|
|00002140| 6b 65 6e 20 74 6f 20 62 | 65 20 74 68 65 20 65 78 |ken to b|e the ex|
|00002150| 70 61 6e 73 69 6f 6e 2e | 20 20 54 68 65 0a 72 65 |pansion.| The.re|
|00002160| 61 73 6f 6e 20 66 6f 72 | 20 74 68 69 73 20 69 73 |ason for| this is|
|00002170| 20 74 68 61 74 20 69 74 | 20 69 73 20 6f 66 74 65 | that it| is ofte|
|00002180| 6e 20 75 73 65 66 75 6c | 20 74 6f 20 64 65 66 69 |n useful| to defi|
|00002190| 6e 65 20 61 20 6d 61 63 | 72 6f 20 74 68 61 74 20 |ne a mac|ro that |
|000021a0| 74 61 6b 65 73 20 6e 6f | 0a 61 72 67 75 6d 65 6e |takes no|.argumen|
|000021b0| 74 73 20 61 6e 64 20 77 | 68 6f 73 65 20 64 65 66 |ts and w|hose def|
|000021c0| 69 6e 69 74 69 6f 6e 20 | 62 65 67 69 6e 73 20 77 |inition |begins w|
|000021d0| 69 74 68 20 61 6e 20 69 | 64 65 6e 74 69 66 69 65 |ith an i|dentifie|
|000021e0| 72 20 69 6e 20 70 61 72 | 65 6e 74 68 65 73 65 73 |r in par|entheses|
|000021f0| 2e 0a 54 68 69 73 20 72 | 75 6c 65 20 61 62 6f 75 |..This r|ule abou|
|00002200| 74 20 73 70 61 63 65 73 | 20 6d 61 6b 65 73 20 69 |t spaces| makes i|
|00002210| 74 20 70 6f 73 73 69 62 | 6c 65 20 66 6f 72 20 79 |t possib|le for y|
|00002220| 6f 75 20 74 6f 20 64 6f | 20 65 69 74 68 65 72 20 |ou to do| either |
|00002230| 74 68 69 73 3a 0a 0a 23 | 57 72 61 70 20 6f 66 66 |this:..#|Wrap off|
|00002240| 0a 23 66 43 6f 64 65 0a | 5c 23 64 65 66 69 6e 65 |.#fCode.|\#define|
|00002250| 20 46 4f 4f 28 78 29 20 | 2d 20 31 20 5c 2f 20 28 | FOO(x) |- 1 \/ (|
|00002260| 78 29 0a 23 66 0a 23 57 | 72 61 70 20 6f 6e 0a 0a |x).#f.#W|rap on..|
|00002270| 28 77 68 69 63 68 20 64 | 65 66 69 6e 65 73 20 7b |(which d|efines {|
|00002280| 66 45 6d 70 68 61 73 69 | 73 7d 46 4f 4f 7b 66 7d |fEmphasi|s}FOO{f}|
|00002290| 20 74 6f 20 74 61 6b 65 | 20 61 6e 20 61 72 67 75 | to take| an argu|
|000022a0| 6d 65 6e 74 20 61 6e 64 | 20 65 78 70 61 6e 64 20 |ment and| expand |
|000022b0| 69 6e 74 6f 20 6d 69 6e | 75 73 20 74 68 65 0a 72 |into min|us the.r|
|000022c0| 65 63 69 70 72 6f 63 61 | 6c 20 6f 66 20 74 68 61 |eciproca|l of tha|
|000022d0| 74 20 61 72 67 75 6d 65 | 6e 74 29 20 6f 72 20 74 |t argume|nt) or t|
|000022e0| 68 69 73 3a 0a 0a 23 57 | 72 61 70 20 6f 66 66 0a |his:..#W|rap off.|
|000022f0| 23 66 43 6f 64 65 0a 5c | 23 64 65 66 69 6e 65 20 |#fCode.\|#define |
|00002300| 42 41 52 20 28 78 29 20 | 2d 20 31 20 5c 2f 20 28 |BAR (x) |- 1 \/ (|
|00002310| 78 29 0a 23 66 0a 23 57 | 72 61 70 20 6f 6e 0a 0a |x).#f.#W|rap on..|
|00002320| 28 77 68 69 63 68 20 64 | 65 66 69 6e 65 73 20 7b |(which d|efines {|
|00002330| 66 45 6d 70 68 61 73 69 | 73 7d 42 41 52 7b 66 7d |fEmphasi|s}BAR{f}|
|00002340| 20 74 6f 20 74 61 6b 65 | 20 6e 6f 20 61 72 67 75 | to take| no argu|
|00002350| 6d 65 6e 74 20 61 6e 64 | 20 61 6c 77 61 79 73 20 |ment and| always |
|00002360| 65 78 70 61 6e 64 20 69 | 6e 74 6f 0a 7b 66 45 6d |expand i|nto.{fEm|
|00002370| 70 68 61 73 69 73 7d 28 | 78 29 20 2d 20 31 20 5c |phasis}(|x) - 1 \|
|00002380| 2f 20 28 78 29 7b 66 7d | 29 2e 0a 0a 4e 6f 74 65 |/ (x){f}|)...Note|
|00002390| 20 74 68 61 74 20 74 68 | 65 20 7b 66 45 6d 70 68 | that th|e {fEmph|
|000023a0| 61 73 69 73 7d 75 73 65 | 73 7b 66 7d 20 6f 66 20 |asis}use|s{f} of |
|000023b0| 61 20 6d 61 63 72 6f 20 | 77 69 74 68 20 61 72 67 |a macro |with arg|
|000023c0| 75 6d 65 6e 74 73 20 63 | 61 6e 20 68 61 76 65 20 |uments c|an have |
|000023d0| 73 70 61 63 65 73 20 62 | 65 66 6f 72 65 0a 74 68 |spaces b|efore.th|
|000023e0| 65 20 6c 65 66 74 20 70 | 61 72 65 6e 74 68 65 73 |e left p|arenthes|
|000023f0| 69 73 3b 20 69 74 27 73 | 20 74 68 65 20 7b 66 45 |is; it's| the {fE|
|00002400| 6d 70 68 61 73 69 73 7d | 64 65 66 69 6e 69 74 69 |mphasis}|definiti|
|00002410| 6f 6e 7b 66 7d 20 77 68 | 65 72 65 20 69 74 20 6d |on{f} wh|ere it m|
|00002420| 61 74 74 65 72 73 20 77 | 68 65 74 68 65 72 0a 74 |atters w|hether.t|
|00002430| 68 65 72 65 20 69 73 20 | 61 20 73 70 61 63 65 2e |here is |a space.|
|00002440| 0a 0a 00 00 46 52 45 45 | 60 01 00 00 2c 00 00 00 |....FREE|`...,...|
|00002450| 80 00 00 00 46 ff ff ff | f8 0b e8 2a aa 0a 00 00 |....F...|...*....|
|00002460| 33 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |3.......|!Root...|
|00002470| 2c 0b 00 00 46 ff ff ff | 72 18 e8 2a 16 19 00 00 |,...F...|r..*....|
|00002480| 33 00 00 00 00 00 00 00 | 41 72 67 75 6d 65 6e 74 |3.......|Argument|
|00002490| 4d 61 00 00 a4 25 00 00 | 46 ff ff ff 03 29 e8 2a |Ma...%..|F....).*|
|000024a0| 4c 15 00 00 13 00 00 00 | 00 00 00 00 41 72 67 75 |L.......|....Argu|
|000024b0| 6d 65 6e 74 50 72 00 00 | f0 3a 00 00 46 ff ff ff |mentPr..|.:..F...|
|000024c0| dd 34 e8 2a 5a 14 00 00 | 13 00 00 00 00 00 00 00 |.4.*Z...|........|
|000024d0| 41 73 73 65 72 74 69 6f | 6e 73 00 00 4c 4f 00 00 |Assertio|ns..LO..|
|000024e0| 46 ff ff ff f1 29 e8 2a | 59 05 00 00 13 00 00 00 |F....).*|Y.......|
|000024f0| 00 00 00 00 43 61 73 63 | 61 64 65 64 4d 61 00 00 |....Casc|adedMa..|
|00002500| a8 54 00 00 46 ff ff ff | e5 36 e8 2a e9 0c 00 00 |.T..F...|.6.*....|
|00002510| 13 00 00 00 00 00 00 00 | 43 6f 6d 62 69 6e 69 6e |........|Combinin|
|00002520| 67 53 00 00 94 61 00 00 | 46 ff ff ff 37 0e e8 2a |gS...a..|F...7..*|
|00002530| f6 06 00 00 13 00 00 00 | 00 00 00 00 43 6f 6d 6d |........|....Comm|
|00002540| 61 6e 64 73 00 00 00 00 | 8c 68 00 00 46 ff ff ff |ands....|.h..F...|
|00002550| f6 1e e8 2a 88 0d 00 00 | 13 00 00 00 00 00 00 00 |...*....|........|
|00002560| 43 6f 6e 63 61 74 65 6e | 61 74 00 00 14 76 00 00 |Concaten|at...v..|
|00002570| 46 ff ff ff 9b 3d e8 2a | db 06 00 00 13 00 00 00 |F....=.*|........|
|00002580| 00 00 00 00 43 6f 6e 63 | 65 70 74 49 6e 64 00 00 |....Conc|eptInd..|
|00002590| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|000025a0| ff ff ff ff 44 41 54 41 | 4c 15 00 00 41 72 67 75 |....DATA|L...Argu|
|000025b0| 6d 65 6e 74 20 50 72 65 | 73 63 61 6e 0a 50 72 65 |ment Pre|scan.Pre|
|000025c0| 76 69 6f 75 73 3a 20 3c | 53 65 6c 66 2d 52 65 66 |vious: <|Self-Ref|
|000025d0| 65 72 65 6e 63 65 3d 3e | 53 65 6c 66 52 65 66 65 |erence=>|SelfRefe|
|000025e0| 72 65 3e 20 2a 20 4e 65 | 78 74 3a 20 3c 43 61 73 |re> * Ne|xt: <Cas|
|000025f0| 63 61 64 65 64 20 4d 61 | 63 72 6f 73 3d 3e 43 61 |caded Ma|cros=>Ca|
|00002600| 73 63 61 64 65 64 4d 61 | 3e 20 2a 20 55 70 3a 20 |scadedMa|> * Up: |
|00002610| 3c 4d 61 63 72 6f 20 50 | 69 74 66 61 6c 6c 73 3d |<Macro P|itfalls=|
|00002620| 3e 4d 61 63 72 6f 50 69 | 74 66 61 3e 0a 0a 23 57 |>MacroPi|tfa>..#W|
|00002630| 72 61 70 20 6f 6e 0a 7b | 66 48 35 7d 53 65 70 61 |rap on.{|fH5}Sepa|
|00002640| 72 61 74 65 20 45 78 70 | 61 6e 73 69 6f 6e 20 6f |rate Exp|ansion o|
|00002650| 66 20 4d 61 63 72 6f 20 | 41 72 67 75 6d 65 6e 74 |f Macro |Argument|
|00002660| 73 7b 66 7d 0a 0a 57 65 | 20 68 61 76 65 20 65 78 |s{f}..We| have ex|
|00002670| 70 6c 61 69 6e 65 64 20 | 74 68 61 74 20 74 68 65 |plained |that the|
|00002680| 20 65 78 70 61 6e 73 69 | 6f 6e 20 6f 66 20 61 20 | expansi|on of a |
|00002690| 6d 61 63 72 6f 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |macro, i|ncluding|
|000026a0| 20 74 68 65 20 73 75 62 | 73 74 69 74 75 74 65 64 | the sub|stituted|
|000026b0| 0a 61 63 74 75 61 6c 20 | 61 72 67 75 6d 65 6e 74 |.actual |argument|
|000026c0| 73 2c 20 69 73 20 73 63 | 61 6e 6e 65 64 20 6f 76 |s, is sc|anned ov|
|000026d0| 65 72 20 61 67 61 69 6e | 20 66 6f 72 20 6d 61 63 |er again| for mac|
|000026e0| 72 6f 20 63 61 6c 6c 73 | 20 74 6f 20 62 65 20 65 |ro calls| to be e|
|000026f0| 78 70 61 6e 64 65 64 2e | 0a 0a 57 68 61 74 20 72 |xpanded.|..What r|
|00002700| 65 61 6c 6c 79 20 68 61 | 70 70 65 6e 73 20 69 73 |eally ha|ppens is|
|00002710| 20 6d 6f 72 65 20 73 75 | 62 74 6c 65 3a 20 66 69 | more su|btle: fi|
|00002720| 72 73 74 20 65 61 63 68 | 20 61 63 74 75 61 6c 20 |rst each| actual |
|00002730| 61 72 67 75 6d 65 6e 74 | 20 74 65 78 74 20 69 73 |argument| text is|
|00002740| 20 73 63 61 6e 6e 65 64 | 0a 73 65 70 61 72 61 74 | scanned|.separat|
|00002750| 65 6c 79 20 66 6f 72 20 | 6d 61 63 72 6f 20 63 61 |ely for |macro ca|
|00002760| 6c 6c 73 2e 20 20 54 68 | 65 6e 20 74 68 65 20 72 |lls. Th|en the r|
|00002770| 65 73 75 6c 74 73 20 6f | 66 20 74 68 69 73 20 61 |esults o|f this a|
|00002780| 72 65 20 73 75 62 73 74 | 69 74 75 74 65 64 20 69 |re subst|ituted i|
|00002790| 6e 74 6f 0a 74 68 65 20 | 6d 61 63 72 6f 20 62 6f |nto.the |macro bo|
|000027a0| 64 79 20 74 6f 20 70 72 | 6f 64 75 63 65 20 74 68 |dy to pr|oduce th|
|000027b0| 65 20 6d 61 63 72 6f 20 | 65 78 70 61 6e 73 69 6f |e macro |expansio|
|000027c0| 6e 2c 20 61 6e 64 20 74 | 68 65 20 6d 61 63 72 6f |n, and t|he macro|
|000027d0| 20 65 78 70 61 6e 73 69 | 6f 6e 0a 69 73 20 73 63 | expansi|on.is sc|
|000027e0| 61 6e 6e 65 64 20 61 67 | 61 69 6e 20 66 6f 72 20 |anned ag|ain for |
|000027f0| 6d 61 63 72 6f 73 20 74 | 6f 20 65 78 70 61 6e 64 |macros t|o expand|
|00002800| 2e 0a 0a 54 68 65 20 72 | 65 73 75 6c 74 20 69 73 |...The r|esult is|
|00002810| 20 74 68 61 74 20 74 68 | 65 20 61 63 74 75 61 6c | that th|e actual|
|00002820| 20 61 72 67 75 6d 65 6e | 74 73 20 61 72 65 20 73 | argumen|ts are s|
|00002830| 63 61 6e 6e 65 64 20 7b | 66 45 6d 70 68 61 73 69 |canned {|fEmphasi|
|00002840| 73 7d 74 77 69 63 65 7b | 66 7d 20 74 6f 20 65 78 |s}twice{|f} to ex|
|00002850| 70 61 6e 64 0a 6d 61 63 | 72 6f 20 63 61 6c 6c 73 |pand.mac|ro calls|
|00002860| 20 69 6e 20 74 68 65 6d | 2e 0a 0a 4d 6f 73 74 20 | in them|...Most |
|00002870| 6f 66 20 74 68 65 20 74 | 69 6d 65 2c 20 74 68 69 |of the t|ime, thi|
|00002880| 73 20 68 61 73 20 6e 6f | 20 65 66 66 65 63 74 2e |s has no| effect.|
|00002890| 20 20 49 66 20 74 68 65 | 20 61 63 74 75 61 6c 20 | If the| actual |
|000028a0| 61 72 67 75 6d 65 6e 74 | 20 63 6f 6e 74 61 69 6e |argument| contain|
|000028b0| 65 64 0a 61 6e 79 20 6d | 61 63 72 6f 20 63 61 6c |ed.any m|acro cal|
|000028c0| 6c 73 2c 20 74 68 65 79 | 20 61 72 65 20 65 78 70 |ls, they| are exp|
|000028d0| 61 6e 64 65 64 20 64 75 | 72 69 6e 67 20 74 68 65 |anded du|ring the|
|000028e0| 20 66 69 72 73 74 20 73 | 63 61 6e 2e 20 20 54 68 | first s|can. Th|
|000028f0| 65 20 72 65 73 75 6c 74 | 0a 74 68 65 72 65 66 6f |e result|.therefo|
|00002900| 72 65 20 63 6f 6e 74 61 | 69 6e 73 20 6e 6f 20 6d |re conta|ins no m|
|00002910| 61 63 72 6f 20 63 61 6c | 6c 73 2c 20 73 6f 20 74 |acro cal|ls, so t|
|00002920| 68 65 20 73 65 63 6f 6e | 64 20 73 63 61 6e 20 64 |he secon|d scan d|
|00002930| 6f 65 73 20 6e 6f 74 20 | 63 68 61 6e 67 65 20 69 |oes not |change i|
|00002940| 74 2e 0a 49 66 20 74 68 | 65 20 61 63 74 75 61 6c |t..If th|e actual|
|00002950| 20 61 72 67 75 6d 65 6e | 74 20 77 65 72 65 20 73 | argumen|t were s|
|00002960| 75 62 73 74 69 74 75 74 | 65 64 20 61 73 20 67 69 |ubstitut|ed as gi|
|00002970| 76 65 6e 2c 20 77 69 74 | 68 20 6e 6f 20 70 72 65 |ven, wit|h no pre|
|00002980| 73 63 61 6e 2c 0a 74 68 | 65 20 73 69 6e 67 6c 65 |scan,.th|e single|
|00002990| 20 72 65 6d 61 69 6e 69 | 6e 67 20 73 63 61 6e 20 | remaini|ng scan |
|000029a0| 77 6f 75 6c 64 20 66 69 | 6e 64 20 74 68 65 20 73 |would fi|nd the s|
|000029b0| 61 6d 65 20 6d 61 63 72 | 6f 20 63 61 6c 6c 73 20 |ame macr|o calls |
|000029c0| 61 6e 64 20 70 72 6f 64 | 75 63 65 0a 74 68 65 20 |and prod|uce.the |
|000029d0| 73 61 6d 65 20 72 65 73 | 75 6c 74 73 2e 0a 0a 59 |same res|ults...Y|
|000029e0| 6f 75 20 6d 69 67 68 74 | 20 65 78 70 65 63 74 20 |ou might| expect |
|000029f0| 74 68 65 20 64 6f 75 62 | 6c 65 20 73 63 61 6e 20 |the doub|le scan |
|00002a00| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 72 65 |to chang|e the re|
|00002a10| 73 75 6c 74 73 20 77 68 | 65 6e 20 61 0a 73 65 6c |sults wh|en a.sel|
|00002a20| 66 2d 72 65 66 65 72 65 | 6e 74 69 61 6c 20 6d 61 |f-refere|ntial ma|
|00002a30| 63 72 6f 20 69 73 20 75 | 73 65 64 20 69 6e 20 61 |cro is u|sed in a|
|00002a40| 6e 20 61 63 74 75 61 6c | 20 61 72 67 75 6d 65 6e |n actual| argumen|
|00002a50| 74 20 6f 66 20 61 6e 6f | 74 68 65 72 20 6d 61 63 |t of ano|ther mac|
|00002a60| 72 6f 0a 28 5c 2a 4e 6f | 74 65 20 3c 53 65 6c 66 |ro.(\*No|te <Self|
|00002a70| 2d 52 65 66 65 72 65 6e | 63 65 3d 3e 53 65 6c 66 |-Referen|ce=>Self|
|00002a80| 52 65 66 65 72 65 3e 29 | 3a 20 74 68 65 20 73 65 |Refere>)|: the se|
|00002a90| 6c 66 2d 72 65 66 65 72 | 65 6e 74 69 61 6c 20 6d |lf-refer|ential m|
|00002aa0| 61 63 72 6f 20 77 6f 75 | 6c 64 20 62 65 20 65 78 |acro wou|ld be ex|
|00002ab0| 70 61 6e 64 65 64 20 6f | 6e 63 65 0a 69 6e 20 74 |panded o|nce.in t|
|00002ac0| 68 65 20 66 69 72 73 74 | 20 73 63 61 6e 2c 20 61 |he first| scan, a|
|00002ad0| 6e 64 20 61 20 73 65 63 | 6f 6e 64 20 74 69 6d 65 |nd a sec|ond time|
|00002ae0| 20 69 6e 20 74 68 65 20 | 73 65 63 6f 6e 64 20 73 | in the |second s|
|00002af0| 63 61 6e 2e 20 20 42 75 | 74 20 74 68 69 73 20 69 |can. Bu|t this i|
|00002b00| 73 20 6e 6f 74 0a 77 68 | 61 74 20 68 61 70 70 65 |s not.wh|at happe|
|00002b10| 6e 73 2e 20 20 54 68 65 | 20 73 65 6c 66 2d 72 65 |ns. The| self-re|
|00002b20| 66 65 72 65 6e 63 65 73 | 20 74 68 61 74 20 64 6f |ferences| that do|
|00002b30| 20 6e 6f 74 20 65 78 70 | 61 6e 64 20 69 6e 20 74 | not exp|and in t|
|00002b40| 68 65 20 66 69 72 73 74 | 20 73 63 61 6e 20 61 72 |he first| scan ar|
|00002b50| 65 0a 6d 61 72 6b 65 64 | 20 73 6f 20 74 68 61 74 |e.marked| so that|
|00002b60| 20 74 68 65 79 20 77 69 | 6c 6c 20 6e 6f 74 20 65 | they wi|ll not e|
|00002b70| 78 70 61 6e 64 20 69 6e | 20 74 68 65 20 73 65 63 |xpand in| the sec|
|00002b80| 6f 6e 64 20 73 63 61 6e | 20 65 69 74 68 65 72 2e |ond scan| either.|
|00002b90| 0a 0a 54 68 65 20 70 72 | 65 73 63 61 6e 20 69 73 |..The pr|escan is|
|00002ba0| 20 6e 6f 74 20 64 6f 6e | 65 20 77 68 65 6e 20 61 | not don|e when a|
|00002bb0| 6e 20 61 72 67 75 6d 65 | 6e 74 20 69 73 20 73 74 |n argume|nt is st|
|00002bc0| 72 69 6e 67 69 66 69 65 | 64 20 6f 72 20 63 6f 6e |ringifie|d or con|
|00002bd0| 63 61 74 65 6e 61 74 65 | 64 2e 0a 54 68 75 73 2c |catenate|d..Thus,|
|00002be0| 0a 0a 23 57 72 61 70 20 | 6f 66 66 0a 23 66 43 6f |..#Wrap |off.#fCo|
|00002bf0| 64 65 0a 5c 23 64 65 66 | 69 6e 65 20 73 74 72 28 |de.\#def|ine str(|
|00002c00| 73 29 20 5c 23 73 0a 5c | 23 64 65 66 69 6e 65 20 |s) \#s.\|#define |
|00002c10| 66 6f 6f 20 34 0a 73 74 | 72 20 28 66 6f 6f 29 0a |foo 4.st|r (foo).|
|00002c20| 23 66 0a 23 57 72 61 70 | 20 6f 6e 0a 0a 65 78 70 |#f.#Wrap| on..exp|
|00002c30| 61 6e 64 73 20 74 6f 20 | 7b 66 45 6d 70 68 61 73 |ands to |{fEmphas|
|00002c40| 69 73 7d 22 66 6f 6f 22 | 7b 66 7d 2e 20 20 4f 6e |is}"foo"|{f}. On|
|00002c50| 63 65 20 6d 6f 72 65 2c | 20 70 72 65 73 63 61 6e |ce more,| prescan|
|00002c60| 20 68 61 73 20 62 65 65 | 6e 20 70 72 65 76 65 6e | has bee|n preven|
|00002c70| 74 65 64 20 66 72 6f 6d | 0a 68 61 76 69 6e 67 20 |ted from|.having |
|00002c80| 61 6e 79 20 6e 6f 74 69 | 63 65 61 62 6c 65 20 65 |any noti|ceable e|
|00002c90| 66 66 65 63 74 2e 0a 0a | 4d 6f 72 65 20 70 72 65 |ffect...|More pre|
|00002ca0| 63 69 73 65 6c 79 2c 20 | 73 74 72 69 6e 67 69 66 |cisely, |stringif|
|00002cb0| 69 63 61 74 69 6f 6e 20 | 61 6e 64 20 63 6f 6e 63 |ication |and conc|
|00002cc0| 61 74 65 6e 61 74 69 6f | 6e 20 75 73 65 20 74 68 |atenatio|n use th|
|00002cd0| 65 20 61 72 67 75 6d 65 | 6e 74 20 61 73 0a 77 72 |e argume|nt as.wr|
|00002ce0| 69 74 74 65 6e 2c 20 69 | 6e 20 75 6e 2d 70 72 65 |itten, i|n un-pre|
|00002cf0| 73 63 61 6e 6e 65 64 20 | 66 6f 72 6d 2e 20 20 54 |scanned |form. T|
|00002d00| 68 65 20 73 61 6d 65 20 | 61 63 74 75 61 6c 20 61 |he same |actual a|
|00002d10| 72 67 75 6d 65 6e 74 20 | 77 6f 75 6c 64 20 62 65 |rgument |would be|
|00002d20| 20 75 73 65 64 20 69 6e | 0a 70 72 65 73 63 61 6e | used in|.prescan|
|00002d30| 6e 65 64 20 66 6f 72 6d | 20 69 66 20 69 74 20 69 |ned form| if it i|
|00002d40| 73 20 73 75 62 73 74 69 | 74 75 74 65 64 20 65 6c |s substi|tuted el|
|00002d50| 73 65 77 68 65 72 65 20 | 77 69 74 68 6f 75 74 20 |sewhere |without |
|00002d60| 73 74 72 69 6e 67 69 66 | 69 63 61 74 69 6f 6e 20 |stringif|ication |
|00002d70| 6f 72 0a 63 6f 6e 63 61 | 74 65 6e 61 74 69 6f 6e |or.conca|tenation|
|00002d80| 2e 0a 0a 23 57 72 61 70 | 20 6f 66 66 0a 23 66 43 |...#Wrap| off.#fC|
|00002d90| 6f 64 65 0a 5c 23 64 65 | 66 69 6e 65 20 73 74 72 |ode.\#de|fine str|
|00002da0| 28 73 29 20 5c 23 73 20 | 6c 6f 73 65 28 73 29 0a |(s) \#s |lose(s).|
|00002db0| 5c 23 64 65 66 69 6e 65 | 20 66 6f 6f 20 34 0a 73 |\#define| foo 4.s|
|00002dc0| 74 72 20 28 66 6f 6f 29 | 0a 23 66 0a 23 57 72 61 |tr (foo)|.#f.#Wra|
|00002dd0| 70 20 6f 6e 0a 0a 65 78 | 70 61 6e 64 73 20 74 6f |p on..ex|pands to|
|00002de0| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 22 66 6f 6f | {fEmpha|sis}"foo|
|00002df0| 22 20 6c 6f 73 65 28 34 | 29 7b 66 7d 2e 0a 0a 59 |" lose(4|){f}...Y|
|00002e00| 6f 75 20 6d 69 67 68 74 | 20 6e 6f 77 20 61 73 6b |ou might| now ask|
|00002e10| 2c 20 60 60 57 68 79 20 | 6d 65 6e 74 69 6f 6e 20 |, ``Why |mention |
|00002e20| 74 68 65 20 70 72 65 73 | 63 61 6e 2c 20 69 66 20 |the pres|can, if |
|00002e30| 69 74 20 6d 61 6b 65 73 | 20 6e 6f 20 64 69 66 66 |it makes| no diff|
|00002e40| 65 72 65 6e 63 65 3f 0a | 41 6e 64 20 77 68 79 20 |erence?.|And why |
|00002e50| 6e 6f 74 20 73 6b 69 70 | 20 69 74 20 61 6e 64 20 |not skip| it and |
|00002e60| 6d 61 6b 65 20 74 68 65 | 20 70 72 65 70 72 6f 63 |make the| preproc|
|00002e70| 65 73 73 6f 72 20 66 61 | 73 74 65 72 3f 27 27 20 |essor fa|ster?'' |
|00002e80| 20 54 68 65 20 61 6e 73 | 77 65 72 20 69 73 0a 74 | The ans|wer is.t|
|00002e90| 68 61 74 20 74 68 65 20 | 70 72 65 73 63 61 6e 20 |hat the |prescan |
|00002ea0| 64 6f 65 73 20 6d 61 6b | 65 20 61 20 64 69 66 66 |does mak|e a diff|
|00002eb0| 65 72 65 6e 63 65 20 69 | 6e 20 74 68 72 65 65 20 |erence i|n three |
|00002ec0| 73 70 65 63 69 61 6c 20 | 63 61 73 65 73 3a 0a 0a |special |cases:..|
|00002ed0| 23 49 6e 64 65 6e 74 20 | 2b 34 0a 0a 20 8f 20 4e |#Indent |+4.. . N|
|00002ee0| 65 73 74 65 64 20 63 61 | 6c 6c 73 20 74 6f 20 61 |ested ca|lls to a|
|00002ef0| 20 6d 61 63 72 6f 2e 0a | 0a 0a 20 8f 20 4d 61 63 | macro..|.. . Mac|
|00002f00| 72 6f 73 20 74 68 61 74 | 20 63 61 6c 6c 20 6f 74 |ros that| call ot|
|00002f10| 68 65 72 20 6d 61 63 72 | 6f 73 20 74 68 61 74 20 |her macr|os that |
|00002f20| 73 74 72 69 6e 67 69 66 | 79 20 6f 72 20 63 6f 6e |stringif|y or con|
|00002f30| 63 61 74 65 6e 61 74 65 | 2e 0a 0a 0a 20 8f 20 4d |catenate|.... . M|
|00002f40| 61 63 72 6f 73 20 77 68 | 6f 73 65 20 65 78 70 61 |acros wh|ose expa|
|00002f50| 6e 73 69 6f 6e 73 20 63 | 6f 6e 74 61 69 6e 20 75 |nsions c|ontain u|
|00002f60| 6e 73 68 69 65 6c 64 65 | 64 20 63 6f 6d 6d 61 73 |nshielde|d commas|
|00002f70| 2e 0a 0a 23 49 6e 64 65 | 6e 74 0a 0a 57 65 20 73 |...#Inde|nt..We s|
|00002f80| 61 79 20 74 68 61 74 20 | 7b 66 55 6e 64 65 72 6c |ay that |{fUnderl|
|00002f90| 69 6e 65 7d 6e 65 73 74 | 65 64 7b 66 7d 20 63 61 |ine}nest|ed{f} ca|
|00002fa0| 6c 6c 73 20 74 6f 20 61 | 20 6d 61 63 72 6f 20 6f |lls to a| macro o|
|00002fb0| 63 63 75 72 20 77 68 65 | 6e 20 61 20 6d 61 63 72 |ccur whe|n a macr|
|00002fc0| 6f 27 73 20 61 63 74 75 | 61 6c 0a 61 72 67 75 6d |o's actu|al.argum|
|00002fd0| 65 6e 74 20 63 6f 6e 74 | 61 69 6e 73 20 61 20 63 |ent cont|ains a c|
|00002fe0| 61 6c 6c 20 74 6f 20 74 | 68 61 74 20 76 65 72 79 |all to t|hat very|
|00002ff0| 20 6d 61 63 72 6f 2e 20 | 20 46 6f 72 20 65 78 61 | macro. | For exa|
|00003000| 6d 70 6c 65 2c 20 69 66 | 20 7b 66 45 6d 70 68 61 |mple, if| {fEmpha|
|00003010| 73 69 73 7d 66 7b 66 7d | 0a 69 73 20 61 20 6d 61 |sis}f{f}|.is a ma|
|00003020| 63 72 6f 20 74 68 61 74 | 20 65 78 70 65 63 74 73 |cro that| expects|
|00003030| 20 6f 6e 65 20 61 72 67 | 75 6d 65 6e 74 2c 20 7b | one arg|ument, {|
|00003040| 66 45 6d 70 68 61 73 69 | 73 7d 66 20 28 66 20 28 |fEmphasi|s}f (f (|
|00003050| 31 29 29 7b 66 7d 20 69 | 73 20 61 20 6e 65 73 74 |1)){f} i|s a nest|
|00003060| 65 64 0a 70 61 69 72 20 | 6f 66 20 63 61 6c 6c 73 |ed.pair |of calls|
|00003070| 20 74 6f 20 7b 66 45 6d | 70 68 61 73 69 73 7d 66 | to {fEm|phasis}f|
|00003080| 7b 66 7d 2e 20 20 54 68 | 65 20 64 65 73 69 72 65 |{f}. Th|e desire|
|00003090| 64 20 65 78 70 61 6e 73 | 69 6f 6e 20 69 73 20 6d |d expans|ion is m|
|000030a0| 61 64 65 20 62 79 0a 65 | 78 70 61 6e 64 69 6e 67 |ade by.e|xpanding|
|000030b0| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 66 20 28 31 | {fEmpha|sis}f (1|
|000030c0| 29 7b 66 7d 20 61 6e 64 | 20 73 75 62 73 74 69 74 |){f} and| substit|
|000030d0| 75 74 69 6e 67 20 74 68 | 61 74 20 69 6e 74 6f 20 |uting th|at into |
|000030e0| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |the defi|nition o|
|000030f0| 66 0a 7b 66 45 6d 70 68 | 61 73 69 73 7d 66 7b 66 |f.{fEmph|asis}f{f|
|00003100| 7d 2e 20 20 54 68 65 20 | 70 72 65 73 63 61 6e 20 |}. The |prescan |
|00003110| 63 61 75 73 65 73 20 74 | 68 65 20 65 78 70 65 63 |causes t|he expec|
|00003120| 74 65 64 20 72 65 73 75 | 6c 74 20 74 6f 20 68 61 |ted resu|lt to ha|
|00003130| 70 70 65 6e 2e 0a 57 69 | 74 68 6f 75 74 20 74 68 |ppen..Wi|thout th|
|00003140| 65 20 70 72 65 73 63 61 | 6e 2c 20 7b 66 45 6d 70 |e presca|n, {fEmp|
|00003150| 68 61 73 69 73 7d 66 20 | 28 31 29 7b 66 7d 20 69 |hasis}f |(1){f} i|
|00003160| 74 73 65 6c 66 20 77 6f | 75 6c 64 20 62 65 20 73 |tself wo|uld be s|
|00003170| 75 62 73 74 69 74 75 74 | 65 64 20 61 73 0a 61 6e |ubstitut|ed as.an|
|00003180| 20 61 63 74 75 61 6c 20 | 61 72 67 75 6d 65 6e 74 | actual |argument|
|00003190| 2c 20 61 6e 64 20 74 68 | 65 20 69 6e 6e 65 72 20 |, and th|e inner |
|000031a0| 75 73 65 20 6f 66 20 7b | 66 45 6d 70 68 61 73 69 |use of {|fEmphasi|
|000031b0| 73 7d 66 7b 66 7d 20 77 | 6f 75 6c 64 20 61 70 70 |s}f{f} w|ould app|
|000031c0| 65 61 72 0a 64 75 72 69 | 6e 67 20 74 68 65 20 6d |ear.duri|ng the m|
|000031d0| 61 69 6e 20 73 63 61 6e | 20 61 73 20 61 6e 20 69 |ain scan| as an i|
|000031e0| 6e 64 69 72 65 63 74 20 | 73 65 6c 66 2d 72 65 66 |ndirect |self-ref|
|000031f0| 65 72 65 6e 63 65 20 61 | 6e 64 20 77 6f 75 6c 64 |erence a|nd would|
|00003200| 20 6e 6f 74 0a 62 65 20 | 65 78 70 61 6e 64 65 64 | not.be |expanded|
|00003210| 2e 20 20 48 65 72 65 2c | 20 74 68 65 20 70 72 65 |. Here,| the pre|
|00003220| 73 63 61 6e 20 63 61 6e | 63 65 6c 73 20 61 6e 20 |scan can|cels an |
|00003230| 75 6e 64 65 73 69 72 61 | 62 6c 65 20 73 69 64 65 |undesira|ble side|
|00003240| 20 65 66 66 65 63 74 0a | 28 69 6e 20 74 68 65 20 | effect.|(in the |
|00003250| 6d 65 64 69 63 61 6c 2c | 20 6e 6f 74 20 63 6f 6d |medical,| not com|
|00003260| 70 75 74 61 74 69 6f 6e | 61 6c 2c 20 73 65 6e 73 |putation|al, sens|
|00003270| 65 20 6f 66 20 74 68 65 | 20 74 65 72 6d 29 20 6f |e of the| term) o|
|00003280| 66 20 74 68 65 20 73 70 | 65 63 69 61 6c 0a 72 75 |f the sp|ecial.ru|
|00003290| 6c 65 20 66 6f 72 20 73 | 65 6c 66 2d 72 65 66 65 |le for s|elf-refe|
|000032a0| 72 65 6e 74 69 61 6c 20 | 6d 61 63 72 6f 73 2e 0a |rential |macros..|
|000032b0| 0a 42 75 74 20 70 72 65 | 73 63 61 6e 20 63 61 75 |.But pre|scan cau|
|000032c0| 73 65 73 20 74 72 6f 75 | 62 6c 65 20 69 6e 20 63 |ses trou|ble in c|
|000032d0| 65 72 74 61 69 6e 20 6f | 74 68 65 72 20 63 61 73 |ertain o|ther cas|
|000032e0| 65 73 20 6f 66 20 6e 65 | 73 74 65 64 20 6d 61 63 |es of ne|sted mac|
|000032f0| 72 6f 20 63 61 6c 6c 73 | 2e 0a 48 65 72 65 20 69 |ro calls|..Here i|
|00003300| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 3a 0a 0a 23 |s an exa|mple:..#|
|00003310| 57 72 61 70 20 6f 66 66 | 0a 23 66 43 6f 64 65 0a |Wrap off|.#fCode.|
|00003320| 5c 23 64 65 66 69 6e 65 | 20 66 6f 6f 20 20 61 2c |\#define| foo a,|
|00003330| 62 0a 5c 23 64 65 66 69 | 6e 65 20 62 61 72 28 78 |b.\#defi|ne bar(x|
|00003340| 29 20 6c 6f 73 65 28 78 | 29 0a 5c 23 64 65 66 69 |) lose(x|).\#defi|
|00003350| 6e 65 20 6c 6f 73 65 28 | 78 29 20 28 31 20 2b 20 |ne lose(|x) (1 + |
|00003360| 28 78 29 29 0a 0a 62 61 | 72 28 66 6f 6f 29 0a 23 |(x))..ba|r(foo).#|
|00003370| 66 0a 23 57 72 61 70 20 | 6f 6e 0a 0a 57 65 20 77 |f.#Wrap |on..We w|
|00003380| 6f 75 6c 64 20 6c 69 6b | 65 20 7b 66 45 6d 70 68 |ould lik|e {fEmph|
|00003390| 61 73 69 73 7d 62 61 72 | 28 66 6f 6f 29 7b 66 7d |asis}bar|(foo){f}|
|000033a0| 20 74 6f 20 74 75 72 6e | 20 69 6e 74 6f 20 7b 66 | to turn| into {f|
|000033b0| 45 6d 70 68 61 73 69 73 | 7d 28 31 20 2b 20 28 66 |Emphasis|}(1 + (f|
|000033c0| 6f 6f 29 29 7b 66 7d 2c | 20 77 68 69 63 68 0a 77 |oo)){f},| which.w|
|000033d0| 6f 75 6c 64 20 74 68 65 | 6e 20 74 75 72 6e 20 69 |ould the|n turn i|
|000033e0| 6e 74 6f 20 7b 66 45 6d | 70 68 61 73 69 73 7d 28 |nto {fEm|phasis}(|
|000033f0| 31 20 2b 20 28 61 2c 62 | 29 29 7b 66 7d 2e 20 20 |1 + (a,b|)){f}. |
|00003400| 42 75 74 20 69 6e 73 74 | 65 61 64 2c 20 7b 66 45 |But inst|ead, {fE|
|00003410| 6d 70 68 61 73 69 73 7d | 62 61 72 28 66 6f 6f 29 |mphasis}|bar(foo)|
|00003420| 7b 66 7d 0a 65 78 70 61 | 6e 64 73 20 69 6e 74 6f |{f}.expa|nds into|
|00003430| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 6c 6f 73 65 | {fEmpha|sis}lose|
|00003440| 28 61 2c 62 29 7b 66 7d | 2c 20 61 6e 64 20 79 6f |(a,b){f}|, and yo|
|00003450| 75 20 67 65 74 20 61 6e | 20 65 72 72 6f 72 20 62 |u get an| error b|
|00003460| 65 63 61 75 73 65 20 7b | 66 43 6f 64 65 7d 6c 6f |ecause {|fCode}lo|
|00003470| 73 65 7b 66 7d 0a 72 65 | 71 75 69 72 65 73 20 61 |se{f}.re|quires a|
|00003480| 20 73 69 6e 67 6c 65 20 | 61 72 67 75 6d 65 6e 74 | single |argument|
|00003490| 2e 20 20 49 6e 20 74 68 | 69 73 20 63 61 73 65 2c |. In th|is case,|
|000034a0| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 20 69 73 20 | the pro|blem is |
|000034b0| 65 61 73 69 6c 79 20 73 | 6f 6c 76 65 64 0a 62 79 |easily s|olved.by|
|000034c0| 20 74 68 65 20 73 61 6d | 65 20 70 61 72 65 6e 74 | the sam|e parent|
|000034d0| 68 65 73 65 73 20 74 68 | 61 74 20 6f 75 67 68 74 |heses th|at ought|
|000034e0| 20 74 6f 20 62 65 20 75 | 73 65 64 20 74 6f 20 70 | to be u|sed to p|
|000034f0| 72 65 76 65 6e 74 20 6d | 69 73 6e 65 73 74 69 6e |revent m|isnestin|
|00003500| 67 20 6f 66 0a 61 72 69 | 74 68 6d 65 74 69 63 20 |g of.ari|thmetic |
|00003510| 6f 70 65 72 61 74 69 6f | 6e 73 3a 0a 0a 23 57 72 |operatio|ns:..#Wr|
|00003520| 61 70 20 6f 66 66 0a 23 | 66 43 6f 64 65 0a 5c 23 |ap off.#|fCode.\#|
|00003530| 64 65 66 69 6e 65 20 66 | 6f 6f 20 28 61 2c 62 29 |define f|oo (a,b)|
|00003540| 0a 5c 23 64 65 66 69 6e | 65 20 62 61 72 28 78 29 |.\#defin|e bar(x)|
|00003550| 20 6c 6f 73 65 28 28 78 | 29 29 0a 23 66 0a 23 57 | lose((x|)).#f.#W|
|00003560| 72 61 70 20 6f 6e 0a 0a | 54 68 65 20 70 72 6f 62 |rap on..|The prob|
|00003570| 6c 65 6d 20 69 73 20 6d | 6f 72 65 20 73 65 72 69 |lem is m|ore seri|
|00003580| 6f 75 73 20 77 68 65 6e | 20 74 68 65 20 6f 70 65 |ous when| the ope|
|00003590| 72 61 6e 64 73 20 6f 66 | 20 74 68 65 20 6d 61 63 |rands of| the mac|
|000035a0| 72 6f 20 61 72 65 20 6e | 6f 74 0a 65 78 70 72 65 |ro are n|ot.expre|
|000035b0| 73 73 69 6f 6e 73 3b 20 | 66 6f 72 20 65 78 61 6d |ssions; |for exam|
|000035c0| 70 6c 65 2c 20 77 68 65 | 6e 20 74 68 65 79 20 61 |ple, whe|n they a|
|000035d0| 72 65 20 73 74 61 74 65 | 6d 65 6e 74 73 2e 20 20 |re state|ments. |
|000035e0| 54 68 65 6e 20 70 61 72 | 65 6e 74 68 65 73 65 73 |Then par|entheses|
|000035f0| 0a 61 72 65 20 75 6e 61 | 63 63 65 70 74 61 62 6c |.are una|cceptabl|
|00003600| 65 20 62 65 63 61 75 73 | 65 20 74 68 65 79 20 77 |e becaus|e they w|
|00003610| 6f 75 6c 64 20 6d 61 6b | 65 20 66 6f 72 20 69 6e |ould mak|e for in|
|00003620| 76 61 6c 69 64 20 43 20 | 63 6f 64 65 3a 0a 0a 23 |valid C |code:..#|
|00003630| 57 72 61 70 20 6f 66 66 | 0a 23 66 43 6f 64 65 0a |Wrap off|.#fCode.|
|00003640| 5c 23 64 65 66 69 6e 65 | 20 66 6f 6f 20 5c 7b 20 |\#define| foo \{ |
|00003650| 69 6e 74 20 61 2c 20 62 | 3b 20 8c 20 5c 7d 0a 23 |int a, b|; . \}.#|
|00003660| 66 0a 23 57 72 61 70 20 | 6f 6e 0a 0a 49 6e 20 47 |f.#Wrap |on..In G|
|00003670| 4e 55 20 43 20 79 6f 75 | 20 63 61 6e 20 73 68 69 |NU C you| can shi|
|00003680| 65 6c 64 20 74 68 65 20 | 63 6f 6d 6d 61 73 20 75 |eld the |commas u|
|00003690| 73 69 6e 67 20 74 68 65 | 20 7b 66 45 6d 70 68 61 |sing the| {fEmpha|
|000036a0| 73 69 73 7d 28 5c 7b 8c | 5c 7d 29 7b 66 7d 0a 63 |sis}(\{.|\}){f}.c|
|000036b0| 6f 6e 73 74 72 75 63 74 | 20 77 68 69 63 68 20 74 |onstruct| which t|
|000036c0| 75 72 6e 73 20 61 20 63 | 6f 6d 70 6f 75 6e 64 20 |urns a c|ompound |
|000036d0| 73 74 61 74 65 6d 65 6e | 74 20 69 6e 74 6f 20 61 |statemen|t into a|
|000036e0| 6e 20 65 78 70 72 65 73 | 73 69 6f 6e 3a 0a 0a 23 |n expres|sion:..#|
|000036f0| 57 72 61 70 20 6f 66 66 | 0a 23 66 43 6f 64 65 0a |Wrap off|.#fCode.|
|00003700| 5c 23 64 65 66 69 6e 65 | 20 66 6f 6f 20 28 5c 7b |\#define| foo (\{|
|00003710| 20 69 6e 74 20 61 2c 20 | 62 3b 20 8c 20 5c 7d 29 | int a, |b; . \})|
|00003720| 0a 23 66 0a 23 57 72 61 | 70 20 6f 6e 0a 0a 4f 72 |.#f.#Wra|p on..Or|
|00003730| 20 79 6f 75 20 63 61 6e | 20 72 65 77 72 69 74 65 | you can| rewrite|
|00003740| 20 74 68 65 20 6d 61 63 | 72 6f 20 64 65 66 69 6e | the mac|ro defin|
|00003750| 69 74 69 6f 6e 20 74 6f | 20 61 76 6f 69 64 20 73 |ition to| avoid s|
|00003760| 75 63 68 20 63 6f 6d 6d | 61 73 3a 0a 0a 23 57 72 |uch comm|as:..#Wr|
|00003770| 61 70 20 6f 66 66 0a 23 | 66 43 6f 64 65 0a 5c 23 |ap off.#|fCode.\#|
|00003780| 64 65 66 69 6e 65 20 66 | 6f 6f 20 5c 7b 20 69 6e |define f|oo \{ in|
|00003790| 74 20 61 3b 20 69 6e 74 | 20 62 3b 20 8c 20 5c 7d |t a; int| b; . \}|
|000037a0| 0a 23 66 0a 23 57 72 61 | 70 20 6f 6e 0a 0a 54 68 |.#f.#Wra|p on..Th|
|000037b0| 65 72 65 20 69 73 20 61 | 6c 73 6f 20 6f 6e 65 20 |ere is a|lso one |
|000037c0| 63 61 73 65 20 77 68 65 | 72 65 20 70 72 65 73 63 |case whe|re presc|
|000037d0| 61 6e 20 69 73 20 75 73 | 65 66 75 6c 2e 20 20 49 |an is us|eful. I|
|000037e0| 74 20 69 73 20 70 6f 73 | 73 69 62 6c 65 0a 74 6f |t is pos|sible.to|
|000037f0| 20 75 73 65 20 70 72 65 | 73 63 61 6e 20 74 6f 20 | use pre|scan to |
|00003800| 65 78 70 61 6e 64 20 61 | 6e 20 61 72 67 75 6d 65 |expand a|n argume|
|00003810| 6e 74 20 61 6e 64 20 74 | 68 65 6e 20 73 74 72 69 |nt and t|hen stri|
|00003820| 6e 67 69 66 79 20 69 74 | 2d 2d 2d 69 66 20 79 6f |ngify it|---if yo|
|00003830| 75 20 75 73 65 0a 74 77 | 6f 20 6c 65 76 65 6c 73 |u use.tw|o levels|
|00003840| 20 6f 66 20 6d 61 63 72 | 6f 73 2e 20 20 4c 65 74 | of macr|os. Let|
|00003850| 27 73 20 61 64 64 20 61 | 20 6e 65 77 20 6d 61 63 |'s add a| new mac|
|00003860| 72 6f 20 7b 66 45 6d 70 | 68 61 73 69 73 7d 78 73 |ro {fEmp|hasis}xs|
|00003870| 74 72 7b 66 7d 20 74 6f | 20 74 68 65 0a 65 78 61 |tr{f} to| the.exa|
|00003880| 6d 70 6c 65 20 73 68 6f | 77 6e 20 61 62 6f 76 65 |mple sho|wn above|
|00003890| 3a 0a 0a 23 57 72 61 70 | 20 6f 66 66 0a 23 66 43 |:..#Wrap| off.#fC|
|000038a0| 6f 64 65 0a 5c 23 64 65 | 66 69 6e 65 20 78 73 74 |ode.\#de|fine xst|
|000038b0| 72 28 73 29 20 73 74 72 | 28 73 29 0a 5c 23 64 65 |r(s) str|(s).\#de|
|000038c0| 66 69 6e 65 20 73 74 72 | 28 73 29 20 5c 23 73 0a |fine str|(s) \#s.|
|000038d0| 5c 23 64 65 66 69 6e 65 | 20 66 6f 6f 20 34 0a 78 |\#define| foo 4.x|
|000038e0| 73 74 72 20 28 66 6f 6f | 29 0a 23 66 0a 23 57 72 |str (foo|).#f.#Wr|
|000038f0| 61 70 20 6f 6e 0a 0a 54 | 68 69 73 20 65 78 70 61 |ap on..T|his expa|
|00003900| 6e 64 73 20 69 6e 74 6f | 20 7b 66 45 6d 70 68 61 |nds into| {fEmpha|
|00003910| 73 69 73 7d 22 34 22 7b | 66 7d 2c 20 6e 6f 74 20 |sis}"4"{|f}, not |
|00003920| 7b 66 45 6d 70 68 61 73 | 69 73 7d 22 66 6f 6f 22 |{fEmphas|is}"foo"|
|00003930| 7b 66 7d 2e 20 20 54 68 | 65 20 72 65 61 73 6f 6e |{f}. Th|e reason|
|00003940| 20 66 6f 72 20 74 68 65 | 0a 64 69 66 66 65 72 65 | for the|.differe|
|00003950| 6e 63 65 20 69 73 20 74 | 68 61 74 20 74 68 65 20 |nce is t|hat the |
|00003960| 61 72 67 75 6d 65 6e 74 | 20 6f 66 20 7b 66 45 6d |argument| of {fEm|
|00003970| 70 68 61 73 69 73 7d 78 | 73 74 72 7b 66 7d 20 69 |phasis}x|str{f} i|
|00003980| 73 20 65 78 70 61 6e 64 | 65 64 20 61 74 20 70 72 |s expand|ed at pr|
|00003990| 65 73 63 61 6e 0a 28 62 | 65 63 61 75 73 65 20 7b |escan.(b|ecause {|
|000039a0| 66 45 6d 70 68 61 73 69 | 73 7d 78 73 74 72 7b 66 |fEmphasi|s}xstr{f|
|000039b0| 7d 20 64 6f 65 73 20 6e | 6f 74 20 73 70 65 63 69 |} does n|ot speci|
|000039c0| 66 79 20 73 74 72 69 6e | 67 69 66 69 63 61 74 69 |fy strin|gificati|
|000039d0| 6f 6e 20 6f 72 20 63 6f | 6e 63 61 74 65 6e 61 74 |on or co|ncatenat|
|000039e0| 69 6f 6e 20 6f 66 0a 74 | 68 65 20 61 72 67 75 6d |ion of.t|he argum|
|000039f0| 65 6e 74 29 2e 20 20 54 | 68 65 20 72 65 73 75 6c |ent). T|he resul|
|00003a00| 74 20 6f 66 20 70 72 65 | 73 63 61 6e 20 74 68 65 |t of pre|scan the|
|00003a10| 6e 20 66 6f 72 6d 73 20 | 74 68 65 20 61 63 74 75 |n forms |the actu|
|00003a20| 61 6c 20 61 72 67 75 6d | 65 6e 74 20 66 6f 72 0a |al argum|ent for.|
|00003a30| 7b 66 45 6d 70 68 61 73 | 69 73 7d 73 74 72 7b 66 |{fEmphas|is}str{f|
|00003a40| 7d 2e 20 20 7b 66 45 6d | 70 68 61 73 69 73 7d 73 |}. {fEm|phasis}s|
|00003a50| 74 72 7b 66 7d 20 75 73 | 65 73 20 69 74 73 20 61 |tr{f} us|es its a|
|00003a60| 72 67 75 6d 65 6e 74 20 | 77 69 74 68 6f 75 74 20 |rgument |without |
|00003a70| 70 72 65 73 63 61 6e 20 | 62 65 63 61 75 73 65 20 |prescan |because |
|00003a80| 69 74 0a 70 65 72 66 6f | 72 6d 73 20 73 74 72 69 |it.perfo|rms stri|
|00003a90| 6e 67 69 66 69 63 61 74 | 69 6f 6e 3b 20 62 75 74 |ngificat|ion; but|
|00003aa0| 20 69 74 20 63 61 6e 6e | 6f 74 20 70 72 65 76 65 | it cann|ot preve|
|00003ab0| 6e 74 20 6f 72 20 75 6e | 64 6f 20 74 68 65 20 70 |nt or un|do the p|
|00003ac0| 72 65 73 63 61 6e 6e 69 | 6e 67 0a 61 6c 72 65 61 |rescanni|ng.alrea|
|00003ad0| 64 79 20 64 6f 6e 65 20 | 62 79 20 7b 66 45 6d 70 |dy done |by {fEmp|
|00003ae0| 68 61 73 69 73 7d 78 73 | 74 72 7b 66 7d 2e 0a 0a |hasis}xs|tr{f}...|
|00003af0| 44 41 54 41 5a 14 00 00 | 41 73 73 65 72 74 69 6f |DATAZ...|Assertio|
|00003b00| 6e 73 0a 50 72 65 76 69 | 6f 75 73 3a 20 3c 43 6f |ns.Previ|ous: <Co|
|00003b10| 6e 64 69 74 69 6f 6e 61 | 6c 73 2d 4d 61 63 72 6f |nditiona|ls-Macro|
|00003b20| 73 3d 3e 43 6f 6e 64 69 | 74 69 6f 6e 64 3e 20 2a |s=>Condi|tiond> *|
|00003b30| 20 4e 65 78 74 3a 20 3c | 5c 23 65 72 72 6f 72 20 | Next: <|\#error |
|00003b40| 43 6f 6d 6d 61 6e 64 3d | 3e 65 72 72 6f 72 43 6f |Command=|>errorCo|
|00003b50| 6d 6d 61 3e 20 2a 20 55 | 70 3a 20 3c 43 6f 6e 64 |mma> * U|p: <Cond|
|00003b60| 69 74 69 6f 6e 61 6c 73 | 3d 3e 43 6f 6e 64 69 74 |itionals|=>Condit|
|00003b70| 69 6f 6e 61 3e 0a 0a 23 | 57 72 61 70 20 6f 6e 0a |iona>..#|Wrap on.|
|00003b80| 7b 66 48 34 7d 41 73 73 | 65 72 74 69 6f 6e 73 7b |{fH4}Ass|ertions{|
|00003b90| 66 7d 0a 0a 7b 66 55 6e | 64 65 72 6c 69 6e 65 7d |f}..{fUn|derline}|
|00003ba0| 41 73 73 65 72 74 69 6f | 6e 73 7b 66 7d 20 61 72 |Assertio|ns{f} ar|
|00003bb0| 65 20 61 20 6d 6f 72 65 | 20 73 79 73 74 65 6d 61 |e a more| systema|
|00003bc0| 74 69 63 20 61 6c 74 65 | 72 6e 61 74 69 76 65 20 |tic alte|rnative |
|00003bd0| 74 6f 20 6d 61 63 72 6f | 73 20 69 6e 20 77 72 69 |to macro|s in wri|
|00003be0| 74 69 6e 67 0a 63 6f 6e | 64 69 74 69 6f 6e 61 6c |ting.con|ditional|
|00003bf0| 73 20 74 6f 20 74 65 73 | 74 20 77 68 61 74 20 73 |s to tes|t what s|
|00003c00| 6f 72 74 20 6f 66 20 63 | 6f 6d 70 75 74 65 72 20 |ort of c|omputer |
|00003c10| 6f 72 20 73 79 73 74 65 | 6d 20 74 68 65 20 63 6f |or syste|m the co|
|00003c20| 6d 70 69 6c 65 64 0a 70 | 72 6f 67 72 61 6d 20 77 |mpiled.p|rogram w|
|00003c30| 69 6c 6c 20 72 75 6e 20 | 6f 6e 2e 20 20 41 73 73 |ill run |on. Ass|
|00003c40| 65 72 74 69 6f 6e 73 20 | 61 72 65 20 75 73 75 61 |ertions |are usua|
|00003c50| 6c 6c 79 20 70 72 65 64 | 65 66 69 6e 65 64 2c 20 |lly pred|efined, |
|00003c60| 62 75 74 20 79 6f 75 20 | 63 61 6e 0a 64 65 66 69 |but you |can.defi|
|00003c70| 6e 65 20 74 68 65 6d 20 | 77 69 74 68 20 70 72 65 |ne them |with pre|
|00003c80| 70 72 6f 63 65 73 73 6f | 72 20 63 6f 6d 6d 61 6e |processo|r comman|
|00003c90| 64 73 20 6f 72 20 63 6f | 6d 6d 61 6e 64 2d 6c 69 |ds or co|mmand-li|
|00003ca0| 6e 65 20 6f 70 74 69 6f | 6e 73 2e 0a 0a 54 68 65 |ne optio|ns...The|
|00003cb0| 20 6d 61 63 72 6f 73 20 | 74 72 61 64 69 74 69 6f | macros |traditio|
|00003cc0| 6e 61 6c 6c 79 20 75 73 | 65 64 20 74 6f 20 64 65 |nally us|ed to de|
|00003cd0| 73 63 72 69 62 65 20 74 | 68 65 20 74 79 70 65 20 |scribe t|he type |
|00003ce0| 6f 66 20 74 61 72 67 65 | 74 20 61 72 65 20 6e 6f |of targe|t are no|
|00003cf0| 74 0a 63 6c 61 73 73 69 | 66 69 65 64 20 69 6e 20 |t.classi|fied in |
|00003d00| 61 6e 79 20 77 61 79 20 | 61 63 63 6f 72 64 69 6e |any way |accordin|
|00003d10| 67 20 74 6f 20 77 68 69 | 63 68 20 71 75 65 73 74 |g to whi|ch quest|
|00003d20| 69 6f 6e 20 74 68 65 79 | 20 61 6e 73 77 65 72 3b |ion they| answer;|
|00003d30| 20 74 68 65 79 20 6d 61 | 79 0a 69 6e 64 69 63 61 | they ma|y.indica|
|00003d40| 74 65 20 61 20 68 61 72 | 64 77 61 72 65 20 61 72 |te a har|dware ar|
|00003d50| 63 68 69 74 65 63 74 75 | 72 65 2c 20 61 20 70 61 |chitectu|re, a pa|
|00003d60| 72 74 69 63 75 6c 61 72 | 20 68 61 72 64 77 61 72 |rticular| hardwar|
|00003d70| 65 20 6d 6f 64 65 6c 2c | 20 61 6e 0a 6f 70 65 72 |e model,| an.oper|
|00003d80| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 2c 20 61 20 |ating sy|stem, a |
|00003d90| 70 61 72 74 69 63 75 6c | 61 72 20 76 65 72 73 69 |particul|ar versi|
|00003da0| 6f 6e 20 6f 66 20 61 6e | 20 6f 70 65 72 61 74 69 |on of an| operati|
|00003db0| 6e 67 20 73 79 73 74 65 | 6d 2c 20 6f 72 0a 73 70 |ng syste|m, or.sp|
|00003dc0| 65 63 69 66 69 63 20 63 | 6f 6e 66 69 67 75 72 61 |ecific c|onfigura|
|00003dd0| 74 69 6f 6e 20 6f 70 74 | 69 6f 6e 73 2e 20 20 54 |tion opt|ions. T|
|00003de0| 68 65 73 65 20 61 72 65 | 20 6a 75 6d 62 6c 65 64 |hese are| jumbled|
|00003df0| 20 74 6f 67 65 74 68 65 | 72 20 69 6e 20 61 20 73 | togethe|r in a s|
|00003e00| 69 6e 67 6c 65 0a 6e 61 | 6d 65 73 70 61 63 65 2e |ingle.na|mespace.|
|00003e10| 20 20 49 6e 20 63 6f 6e | 74 72 61 73 74 2c 20 65 | In con|trast, e|
|00003e20| 61 63 68 20 61 73 73 65 | 72 74 69 6f 6e 20 63 6f |ach asse|rtion co|
|00003e30| 6e 73 69 73 74 73 20 6f | 66 20 61 20 6e 61 6d 65 |nsists o|f a name|
|00003e40| 64 20 71 75 65 73 74 69 | 6f 6e 20 61 6e 64 0a 61 |d questi|on and.a|
|00003e50| 6e 20 61 6e 73 77 65 72 | 2e 20 20 54 68 65 20 71 |n answer|. The q|
|00003e60| 75 65 73 74 69 6f 6e 20 | 69 73 20 75 73 75 61 6c |uestion |is usual|
|00003e70| 6c 79 20 63 61 6c 6c 65 | 64 20 74 68 65 20 7b 66 |ly calle|d the {f|
|00003e80| 55 6e 64 65 72 6c 69 6e | 65 7d 70 72 65 64 69 63 |Underlin|e}predic|
|00003e90| 61 74 65 7b 66 7d 2e 0a | 41 6e 20 61 73 73 65 72 |ate{f}..|An asser|
|00003ea0| 74 69 6f 6e 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 20 |tion loo|ks like |
|00003eb0| 74 68 69 73 3a 0a 0a 23 | 57 72 61 70 20 6f 66 66 |this:..#|Wrap off|
|00003ec0| 0a 23 66 43 6f 64 65 0a | 5c 23 7b 66 53 74 72 6f |.#fCode.|\#{fStro|
|00003ed0| 6e 67 7d 70 72 65 64 69 | 63 61 74 65 7b 66 7d 20 |ng}predi|cate{f} |
|00003ee0| 28 7b 66 53 74 72 6f 6e | 67 7d 61 6e 73 77 65 72 |({fStron|g}answer|
|00003ef0| 7b 66 7d 29 0a 23 66 0a | 23 57 72 61 70 20 6f 6e |{f}).#f.|#Wrap on|
|00003f00| 0a 0a 59 6f 75 20 6d 75 | 73 74 20 75 73 65 20 61 |..You mu|st use a|
|00003f10| 20 70 72 6f 70 65 72 6c | 79 20 66 6f 72 6d 65 64 | properl|y formed|
|00003f20| 20 69 64 65 6e 74 69 66 | 69 65 72 20 66 6f 72 20 | identif|ier for |
|00003f30| 7b 66 53 74 72 6f 6e 67 | 7d 70 72 65 64 69 63 61 |{fStrong|}predica|
|00003f40| 74 65 7b 66 7d 2e 20 20 | 54 68 65 0a 76 61 6c 75 |te{f}. |The.valu|
|00003f50| 65 20 6f 66 20 7b 66 53 | 74 72 6f 6e 67 7d 61 6e |e of {fS|trong}an|
|00003f60| 73 77 65 72 7b 66 7d 20 | 63 61 6e 20 62 65 20 61 |swer{f} |can be a|
|00003f70| 6e 79 20 73 65 71 75 65 | 6e 63 65 20 6f 66 20 77 |ny seque|nce of w|
|00003f80| 6f 72 64 73 3b 20 61 6c | 6c 20 63 68 61 72 61 63 |ords; al|l charac|
|00003f90| 74 65 72 73 20 61 72 65 | 0a 73 69 67 6e 69 66 69 |ters are|.signifi|
|00003fa0| 63 61 6e 74 20 65 78 63 | 65 70 74 20 66 6f 72 20 |cant exc|ept for |
|00003fb0| 6c 65 61 64 69 6e 67 20 | 61 6e 64 20 74 72 61 69 |leading |and trai|
|00003fc0| 6c 69 6e 67 20 77 68 69 | 74 65 73 70 61 63 65 2c |ling whi|tespace,|
|00003fd0| 20 61 6e 64 20 64 69 66 | 66 65 72 65 6e 63 65 73 | and dif|ferences|
|00003fe0| 0a 69 6e 20 69 6e 74 65 | 72 6e 61 6c 20 77 68 69 |.in inte|rnal whi|
|00003ff0| 74 65 73 70 61 63 65 20 | 73 65 71 75 65 6e 63 65 |tespace |sequence|
|00004000| 73 20 61 72 65 20 69 67 | 6e 6f 72 65 64 2e 20 20 |s are ig|nored. |
|00004010| 54 68 75 73 2c 20 7b 66 | 45 6d 70 68 61 73 69 73 |Thus, {f|Emphasis|
|00004020| 7d 78 20 2b 20 79 7b 66 | 7d 20 69 73 0a 64 69 66 |}x + y{f|} is.dif|
|00004030| 66 65 72 65 6e 74 20 66 | 72 6f 6d 20 7b 66 45 6d |ferent f|rom {fEm|
|00004040| 70 68 61 73 69 73 7d 78 | 2b 79 7b 66 7d 20 62 75 |phasis}x|+y{f} bu|
|00004050| 74 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |t equiva|lent to |
|00004060| 7b 66 45 6d 70 68 61 73 | 69 73 7d 78 20 2b 20 79 |{fEmphas|is}x + y|
|00004070| 7b 66 7d 2e 20 20 7b 66 | 45 6d 70 68 61 73 69 73 |{f}. {f|Emphasis|
|00004080| 7d 29 7b 66 7d 20 69 73 | 0a 6e 6f 74 20 61 6c 6c |}){f} is|.not all|
|00004090| 6f 77 65 64 20 69 6e 20 | 61 6e 20 61 6e 73 77 65 |owed in |an answe|
|000040a0| 72 2e 0a 0a 48 65 72 65 | 20 69 73 20 61 20 63 6f |r...Here| is a co|
|000040b0| 6e 64 69 74 69 6f 6e 61 | 6c 20 74 6f 20 74 65 73 |nditiona|l to tes|
|000040c0| 74 20 77 68 65 74 68 65 | 72 20 74 68 65 20 61 6e |t whethe|r the an|
|000040d0| 73 77 65 72 20 7b 66 53 | 74 72 6f 6e 67 7d 61 6e |swer {fS|trong}an|
|000040e0| 73 77 65 72 7b 66 7d 20 | 69 73 20 61 73 73 65 72 |swer{f} |is asser|
|000040f0| 74 65 64 0a 66 6f 72 20 | 74 68 65 20 70 72 65 64 |ted.for |the pred|
|00004100| 69 63 61 74 65 20 7b 66 | 53 74 72 6f 6e 67 7d 70 |icate {f|Strong}p|
|00004110| 72 65 64 69 63 61 74 65 | 7b 66 7d 3a 0a 0a 23 57 |redicate|{f}:..#W|
|00004120| 72 61 70 20 6f 66 66 0a | 23 66 43 6f 64 65 0a 5c |rap off.|#fCode.\|
|00004130| 23 69 66 20 5c 23 7b 66 | 53 74 72 6f 6e 67 7d 70 |#if \#{f|Strong}p|
|00004140| 72 65 64 69 63 61 74 65 | 7b 66 7d 20 28 7b 66 53 |redicate|{f} ({fS|
|00004150| 74 72 6f 6e 67 7d 61 6e | 73 77 65 72 7b 66 7d 29 |trong}an|swer{f})|
|00004160| 0a 23 66 0a 23 57 72 61 | 70 20 6f 6e 0a 0a 54 68 |.#f.#Wra|p on..Th|
|00004170| 65 72 65 20 6d 61 79 20 | 62 65 20 6d 6f 72 65 20 |ere may |be more |
|00004180| 74 68 61 6e 20 6f 6e 65 | 20 61 6e 73 77 65 72 20 |than one| answer |
|00004190| 61 73 73 65 72 74 65 64 | 20 66 6f 72 20 61 20 67 |asserted| for a g|
|000041a0| 69 76 65 6e 20 70 72 65 | 64 69 63 61 74 65 2e 20 |iven pre|dicate. |
|000041b0| 20 49 66 0a 79 6f 75 20 | 6f 6d 69 74 20 74 68 65 | If.you |omit the|
|000041c0| 20 61 6e 73 77 65 72 2c | 20 79 6f 75 20 63 61 6e | answer,| you can|
|000041d0| 20 74 65 73 74 20 77 68 | 65 74 68 65 72 20 7b 66 | test wh|ether {f|
|000041e0| 45 6d 70 68 61 73 69 73 | 7d 61 6e 79 7b 66 7d 20 |Emphasis|}any{f} |
|000041f0| 61 6e 73 77 65 72 20 69 | 73 20 61 73 73 65 72 74 |answer i|s assert|
|00004200| 65 64 0a 66 6f 72 20 7b | 66 53 74 72 6f 6e 67 7d |ed.for {|fStrong}|
|00004210| 70 72 65 64 69 63 61 74 | 65 7b 66 7d 3a 0a 0a 23 |predicat|e{f}:..#|
|00004220| 57 72 61 70 20 6f 66 66 | 0a 23 66 43 6f 64 65 0a |Wrap off|.#fCode.|
|00004230| 5c 23 69 66 20 5c 23 7b | 66 53 74 72 6f 6e 67 7d |\#if \#{|fStrong}|
|00004240| 70 72 65 64 69 63 61 74 | 65 7b 66 7d 0a 23 66 0a |predicat|e{f}.#f.|
|00004250| 23 57 72 61 70 20 6f 6e | 0a 0a 4d 6f 73 74 20 6f |#Wrap on|..Most o|
|00004260| 66 20 74 68 65 20 74 69 | 6d 65 2c 20 74 68 65 20 |f the ti|me, the |
|00004270| 61 73 73 65 72 74 69 6f | 6e 73 20 79 6f 75 20 74 |assertio|ns you t|
|00004280| 65 73 74 20 77 69 6c 6c | 20 62 65 20 70 72 65 64 |est will| be pred|
|00004290| 65 66 69 6e 65 64 20 61 | 73 73 65 72 74 69 6f 6e |efined a|ssertion|
|000042a0| 73 2e 0a 47 4e 55 20 43 | 20 70 72 6f 76 69 64 65 |s..GNU C| provide|
|000042b0| 73 20 74 68 72 65 65 20 | 70 72 65 64 65 66 69 6e |s three |predefin|
|000042c0| 65 64 20 70 72 65 64 69 | 63 61 74 65 73 3a 20 7b |ed predi|cates: {|
|000042d0| 66 43 6f 64 65 7d 73 79 | 73 74 65 6d 7b 66 7d 2c |fCode}sy|stem{f},|
|000042e0| 20 7b 66 43 6f 64 65 7d | 63 70 75 7b 66 7d 2c 0a | {fCode}|cpu{f},.|
|000042f0| 61 6e 64 20 7b 66 43 6f | 64 65 7d 6d 61 63 68 69 |and {fCo|de}machi|
|00004300| 6e 65 7b 66 7d 2e 20 20 | 7b 66 43 6f 64 65 7d 73 |ne{f}. |{fCode}s|
|00004310| 79 73 74 65 6d 7b 66 7d | 20 69 73 20 66 6f 72 20 |ystem{f}| is for |
|00004320| 61 73 73 65 72 74 69 6f | 6e 73 20 61 62 6f 75 74 |assertio|ns about|
|00004330| 20 74 68 65 20 74 79 70 | 65 20 6f 66 0a 73 6f 66 | the typ|e of.sof|
|00004340| 74 77 61 72 65 2c 20 7b | 66 43 6f 64 65 7d 63 70 |tware, {|fCode}cp|
|00004350| 75 7b 66 7d 20 64 65 73 | 63 72 69 62 65 73 20 74 |u{f} des|cribes t|
|00004360| 68 65 20 74 79 70 65 20 | 6f 66 20 63 6f 6d 70 75 |he type |of compu|
|00004370| 74 65 72 20 61 72 63 68 | 69 74 65 63 74 75 72 65 |ter arch|itecture|
|00004380| 2c 20 61 6e 64 0a 7b 66 | 43 6f 64 65 7d 6d 61 63 |, and.{f|Code}mac|
|00004390| 68 69 6e 65 7b 66 7d 20 | 67 69 76 65 73 20 6d 6f |hine{f} |gives mo|
|000043a0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |re infor|mation a|
|000043b0| 62 6f 75 74 20 74 68 65 | 20 63 6f 6d 70 75 74 65 |bout the| compute|
|000043c0| 72 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |r. For |example,|
|000043d0| 0a 6f 6e 20 61 20 47 4e | 55 20 73 79 73 74 65 6d |.on a GN|U system|
|000043e0| 2c 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |, the fo|llowing |
|000043f0| 61 73 73 65 72 74 69 6f | 6e 73 20 77 6f 75 6c 64 |assertio|ns would|
|00004400| 20 62 65 20 74 72 75 65 | 3a 0a 0a 23 57 72 61 70 | be true|:..#Wrap|
|00004410| 20 6f 66 66 0a 23 66 43 | 6f 64 65 0a 5c 23 73 79 | off.#fC|ode.\#sy|
|00004420| 73 74 65 6d 20 28 67 6e | 75 29 0a 5c 23 73 79 73 |stem (gn|u).\#sys|
|00004430| 74 65 6d 20 28 6d 61 63 | 68 29 0a 5c 23 73 79 73 |tem (mac|h).\#sys|
|00004440| 74 65 6d 20 28 6d 61 63 | 68 20 33 29 0a 5c 23 73 |tem (mac|h 3).\#s|
|00004450| 79 73 74 65 6d 20 28 6d | 61 63 68 20 33 2e 7b 66 |ystem (m|ach 3.{f|
|00004460| 53 74 72 6f 6e 67 7d 73 | 75 62 76 65 72 73 69 6f |Strong}s|ubversio|
|00004470| 6e 7b 66 7d 29 0a 5c 23 | 73 79 73 74 65 6d 20 28 |n{f}).\#|system (|
|00004480| 68 75 72 64 29 0a 5c 23 | 73 79 73 74 65 6d 20 28 |hurd).\#|system (|
|00004490| 68 75 72 64 20 7b 66 53 | 74 72 6f 6e 67 7d 76 65 |hurd {fS|trong}ve|
|000044a0| 72 73 69 6f 6e 7b 66 7d | 29 0a 23 66 0a 23 57 72 |rsion{f}|).#f.#Wr|
|000044b0| 61 70 20 6f 6e 0a 0a 61 | 6e 64 20 70 65 72 68 61 |ap on..a|nd perha|
|000044c0| 70 73 20 6f 74 68 65 72 | 73 2e 20 20 54 68 65 20 |ps other|s. The |
|000044d0| 61 6c 74 65 72 6e 61 74 | 69 76 65 73 20 77 69 74 |alternat|ives wit|
|000044e0| 68 0a 6d 6f 72 65 20 6f | 72 20 6c 65 73 73 20 76 |h.more o|r less v|
|000044f0| 65 72 73 69 6f 6e 20 69 | 6e 66 6f 72 6d 61 74 69 |ersion i|nformati|
|00004500| 6f 6e 20 6c 65 74 20 79 | 6f 75 20 61 73 6b 20 6d |on let y|ou ask m|
|00004510| 6f 72 65 20 6f 72 20 6c | 65 73 73 20 64 65 74 61 |ore or l|ess deta|
|00004520| 69 6c 65 64 0a 71 75 65 | 73 74 69 6f 6e 73 20 61 |iled.que|stions a|
|00004530| 62 6f 75 74 20 74 68 65 | 20 74 79 70 65 20 6f 66 |bout the| type of|
|00004540| 20 73 79 73 74 65 6d 20 | 73 6f 66 74 77 61 72 65 | system |software|
|00004550| 2e 0a 0a 4f 6e 20 61 20 | 55 6e 69 78 20 73 79 73 |...On a |Unix sys|
|00004560| 74 65 6d 2c 20 79 6f 75 | 20 77 6f 75 6c 64 20 66 |tem, you| would f|
|00004570| 69 6e 64 20 7b 66 43 6f | 64 65 7d 5c 23 73 79 73 |ind {fCo|de}\#sys|
|00004580| 74 65 6d 20 28 75 6e 69 | 78 29 7b 66 7d 20 61 6e |tem (uni|x){f} an|
|00004590| 64 20 70 65 72 68 61 70 | 73 20 6f 6e 65 20 6f 66 |d perhap|s one of|
|000045a0| 3a 0a 7b 66 43 6f 64 65 | 7d 5c 23 73 79 73 74 65 |:.{fCode|}\#syste|
|000045b0| 6d 20 28 61 69 78 29 7b | 66 7d 2c 20 7b 66 43 6f |m (aix){|f}, {fCo|
|000045c0| 64 65 7d 5c 23 73 79 73 | 74 65 6d 20 28 62 73 64 |de}\#sys|tem (bsd|
|000045d0| 29 7b 66 7d 2c 20 7b 66 | 43 6f 64 65 7d 5c 23 73 |){f}, {f|Code}\#s|
|000045e0| 79 73 74 65 6d 20 28 68 | 70 75 78 29 7b 66 7d 2c |ystem (h|pux){f},|
|000045f0| 0a 7b 66 43 6f 64 65 7d | 5c 23 73 79 73 74 65 6d |.{fCode}|\#system|
|00004600| 20 28 6c 79 6e 78 29 7b | 66 7d 2c 20 7b 66 43 6f | (lynx){|f}, {fCo|
|00004610| 64 65 7d 5c 23 73 79 73 | 74 65 6d 20 28 6d 61 63 |de}\#sys|tem (mac|
|00004620| 68 29 7b 66 7d 2c 20 7b | 66 43 6f 64 65 7d 5c 23 |h){f}, {|fCode}\#|
|00004630| 73 79 73 74 65 6d 20 28 | 70 6f 73 69 78 29 7b 66 |system (|posix){f|
|00004640| 7d 2c 0a 7b 66 43 6f 64 | 65 7d 5c 23 73 79 73 74 |},.{fCod|e}\#syst|
|00004650| 65 6d 20 28 73 76 72 33 | 29 7b 66 7d 2c 20 7b 66 |em (svr3|){f}, {f|
|00004660| 43 6f 64 65 7d 5c 23 73 | 79 73 74 65 6d 20 28 73 |Code}\#s|ystem (s|
|00004670| 76 72 34 29 7b 66 7d 2c | 20 6f 72 20 7b 66 43 6f |vr4){f},| or {fCo|
|00004680| 64 65 7d 5c 23 73 79 73 | 74 65 6d 20 28 78 70 67 |de}\#sys|tem (xpg|
|00004690| 34 29 7b 66 7d 0a 77 69 | 74 68 20 70 6f 73 73 69 |4){f}.wi|th possi|
|000046a0| 62 6c 65 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |ble vers|ion numb|
|000046b0| 65 72 73 20 66 6f 6c 6c | 6f 77 69 6e 67 2e 0a 0a |ers foll|owing...|
|000046c0| 4f 74 68 65 72 20 76 61 | 6c 75 65 73 20 66 6f 72 |Other va|lues for|
|000046d0| 20 7b 66 43 6f 64 65 7d | 73 79 73 74 65 6d 7b 66 | {fCode}|system{f|
|000046e0| 7d 20 61 72 65 20 7b 66 | 43 6f 64 65 7d 5c 23 73 |} are {f|Code}\#s|
|000046f0| 79 73 74 65 6d 20 28 6d | 76 73 29 7b 66 7d 0a 61 |ystem (m|vs){f}.a|
|00004700| 6e 64 20 7b 66 43 6f 64 | 65 7d 5c 23 73 79 73 74 |nd {fCod|e}\#syst|
|00004710| 65 6d 20 28 76 6d 73 29 | 7b 66 7d 2e 0a 0a 7b 66 |em (vms)|{f}...{f|
|00004720| 53 74 72 6f 6e 67 7d 50 | 6f 72 74 61 62 69 6c 69 |Strong}P|ortabili|
|00004730| 74 79 20 6e 6f 74 65 3a | 7b 66 7d 20 4d 61 6e 79 |ty note:|{f} Many|
|00004740| 20 55 6e 69 78 20 43 20 | 63 6f 6d 70 69 6c 65 72 | Unix C |compiler|
|00004750| 73 20 70 72 6f 76 69 64 | 65 20 6f 6e 6c 79 20 6f |s provid|e only o|
|00004760| 6e 65 20 61 6e 73 77 65 | 72 0a 66 6f 72 20 74 68 |ne answe|r.for th|
|00004770| 65 20 7b 66 43 6f 64 65 | 7d 73 79 73 74 65 6d 7b |e {fCode|}system{|
|00004780| 66 7d 20 61 73 73 65 72 | 74 69 6f 6e 3a 20 7b 66 |f} asser|tion: {f|
|00004790| 43 6f 64 65 7d 5c 23 73 | 79 73 74 65 6d 20 28 75 |Code}\#s|ystem (u|
|000047a0| 6e 69 78 29 7b 66 7d 2c | 20 69 66 20 74 68 65 79 |nix){f},| if they|
|000047b0| 20 73 75 70 70 6f 72 74 | 0a 61 73 73 65 72 74 69 | support|.asserti|
|000047c0| 6f 6e 73 20 61 74 20 61 | 6c 6c 2e 20 20 54 68 69 |ons at a|ll. Thi|
|000047d0| 73 20 69 73 20 6c 65 73 | 73 20 74 68 61 6e 20 75 |s is les|s than u|
|000047e0| 73 65 66 75 6c 2e 0a 0a | 41 6e 20 61 73 73 65 72 |seful...|An asser|
|000047f0| 74 69 6f 6e 20 77 69 74 | 68 20 61 20 6d 75 6c 74 |tion wit|h a mult|
|00004800| 69 2d 77 6f 72 64 20 61 | 6e 73 77 65 72 20 69 73 |i-word a|nswer is|
|00004810| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 64 69 66 66 | complet|ely diff|
|00004820| 65 72 65 6e 74 20 66 72 | 6f 6d 20 73 65 76 65 72 |erent fr|om sever|
|00004830| 61 6c 0a 61 73 73 65 72 | 74 69 6f 6e 73 20 77 69 |al.asser|tions wi|
|00004840| 74 68 20 69 6e 64 69 76 | 69 64 75 61 6c 20 73 69 |th indiv|idual si|
|00004850| 6e 67 6c 65 2d 77 6f 72 | 64 20 61 6e 73 77 65 72 |ngle-wor|d answer|
|00004860| 73 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |s. For |example,|
|00004870| 20 74 68 65 20 70 72 65 | 73 65 6e 63 65 0a 6f 66 | the pre|sence.of|
|00004880| 20 7b 66 43 6f 64 65 7d | 73 79 73 74 65 6d 20 28 | {fCode}|system (|
|00004890| 6d 61 63 68 20 33 2e 30 | 29 7b 66 7d 20 64 6f 65 |mach 3.0|){f} doe|
|000048a0| 73 20 6e 6f 74 20 6d 65 | 61 6e 20 74 68 61 74 20 |s not me|an that |
|000048b0| 7b 66 43 6f 64 65 7d 73 | 79 73 74 65 6d 20 28 33 |{fCode}s|ystem (3|
|000048c0| 2e 30 29 7b 66 7d 20 69 | 73 20 74 72 75 65 2e 0a |.0){f} i|s true..|
|000048d0| 49 74 20 61 6c 73 6f 20 | 64 6f 65 73 20 6e 6f 74 |It also |does not|
|000048e0| 20 64 69 72 65 63 74 6c | 79 20 69 6d 70 6c 79 20 | directl|y imply |
|000048f0| 7b 66 43 6f 64 65 7d 73 | 79 73 74 65 6d 20 28 6d |{fCode}s|ystem (m|
|00004900| 61 63 68 29 7b 66 7d 2c | 20 62 75 74 20 69 6e 20 |ach){f},| but in |
|00004910| 47 4e 55 20 43 2c 20 74 | 68 61 74 0a 6c 61 73 74 |GNU C, t|hat.last|
|00004920| 20 77 69 6c 6c 20 6e 6f | 72 6d 61 6c 6c 79 20 62 | will no|rmally b|
|00004930| 65 20 61 73 73 65 72 74 | 65 64 20 61 73 20 77 65 |e assert|ed as we|
|00004940| 6c 6c 2e 0a 0a 54 68 65 | 20 63 75 72 72 65 6e 74 |ll...The| current|
|00004950| 20 6c 69 73 74 20 6f 66 | 20 70 6f 73 73 69 62 6c | list of| possibl|
|00004960| 65 20 61 73 73 65 72 74 | 69 6f 6e 20 76 61 6c 75 |e assert|ion valu|
|00004970| 65 73 20 66 6f 72 20 7b | 66 43 6f 64 65 7d 63 70 |es for {|fCode}cp|
|00004980| 75 7b 66 7d 20 69 73 3a | 0a 7b 66 43 6f 64 65 7d |u{f} is:|.{fCode}|
|00004990| 5c 23 63 70 75 20 28 61 | 32 39 6b 29 7b 66 7d 2c |\#cpu (a|29k){f},|
|000049a0| 20 7b 66 43 6f 64 65 7d | 5c 23 63 70 75 20 28 61 | {fCode}|\#cpu (a|
|000049b0| 6c 70 68 61 29 7b 66 7d | 2c 20 7b 66 43 6f 64 65 |lpha){f}|, {fCode|
|000049c0| 7d 5c 23 63 70 75 20 28 | 61 72 6d 29 7b 66 7d 2c |}\#cpu (|arm){f},|
|000049d0| 20 7b 66 43 6f 64 65 7d | 5c 23 63 70 75 0a 28 63 | {fCode}|\#cpu.(c|
|000049e0| 6c 69 70 70 65 72 29 7b | 66 7d 2c 20 7b 66 43 6f |lipper){|f}, {fCo|
|000049f0| 64 65 7d 5c 23 63 70 75 | 20 28 63 6f 6e 76 65 78 |de}\#cpu| (convex|
|00004a00| 29 7b 66 7d 2c 20 7b 66 | 43 6f 64 65 7d 5c 23 63 |){f}, {f|Code}\#c|
|00004a10| 70 75 20 28 65 6c 78 73 | 69 29 7b 66 7d 2c 20 7b |pu (elxs|i){f}, {|
|00004a20| 66 43 6f 64 65 7d 5c 23 | 63 70 75 0a 28 74 72 6f |fCode}\#|cpu.(tro|
|00004a30| 6e 29 7b 66 7d 2c 20 7b | 66 43 6f 64 65 7d 5c 23 |n){f}, {|fCode}\#|
|00004a40| 63 70 75 20 28 68 38 33 | 30 30 29 7b 66 7d 2c 20 |cpu (h83|00){f}, |
|00004a50| 7b 66 43 6f 64 65 7d 5c | 23 63 70 75 20 28 69 33 |{fCode}\|#cpu (i3|
|00004a60| 37 30 29 7b 66 7d 2c 20 | 7b 66 43 6f 64 65 7d 5c |70){f}, |{fCode}\|
|00004a70| 23 63 70 75 20 28 69 33 | 38 36 29 7b 66 7d 2c 0a |#cpu (i3|86){f},.|
|00004a80| 7b 66 43 6f 64 65 7d 5c | 23 63 70 75 20 28 69 38 |{fCode}\|#cpu (i8|
|00004a90| 36 30 29 7b 66 7d 2c 20 | 7b 66 43 6f 64 65 7d 5c |60){f}, |{fCode}\|
|00004aa0| 23 63 70 75 20 28 69 39 | 36 30 29 7b 66 7d 2c 20 |#cpu (i9|60){f}, |
|00004ab0| 7b 66 43 6f 64 65 7d 5c | 23 63 70 75 20 28 6d 36 |{fCode}\|#cpu (m6|
|00004ac0| 38 6b 29 7b 66 7d 2c 20 | 7b 66 43 6f 64 65 7d 5c |8k){f}, |{fCode}\|
|00004ad0| 23 63 70 75 0a 28 6d 38 | 38 6b 29 7b 66 7d 2c 20 |#cpu.(m8|8k){f}, |
|00004ae0| 7b 66 43 6f 64 65 7d 5c | 23 63 70 75 20 28 6d 69 |{fCode}\|#cpu (mi|
|00004af0| 70 73 29 7b 66 7d 2c 20 | 7b 66 43 6f 64 65 7d 5c |ps){f}, |{fCode}\|
|00004b00| 23 63 70 75 20 28 6e 73 | 33 32 6b 29 7b 66 7d 2c |#cpu (ns|32k){f},|
|00004b10| 20 7b 66 43 6f 64 65 7d | 5c 23 63 70 75 20 28 68 | {fCode}|\#cpu (h|
|00004b20| 70 70 61 29 7b 66 7d 2c | 0a 7b 66 43 6f 64 65 7d |ppa){f},|.{fCode}|
|00004b30| 5c 23 63 70 75 20 28 70 | 79 72 29 7b 66 7d 2c 20 |\#cpu (p|yr){f}, |
|00004b40| 7b 66 43 6f 64 65 7d 5c | 23 63 70 75 20 28 69 62 |{fCode}\|#cpu (ib|
|00004b50| 6d 30 33 32 29 7b 66 7d | 2c 20 7b 66 43 6f 64 65 |m032){f}|, {fCode|
|00004b60| 7d 5c 23 63 70 75 20 28 | 72 73 36 30 30 30 29 7b |}\#cpu (|rs6000){|
|00004b70| 66 7d 2c 0a 7b 66 43 6f | 64 65 7d 5c 23 63 70 75 |f},.{fCo|de}\#cpu|
|00004b80| 20 28 73 68 29 7b 66 7d | 2c 20 7b 66 43 6f 64 65 | (sh){f}|, {fCode|
|00004b90| 7d 5c 23 63 70 75 20 28 | 73 70 61 72 63 29 7b 66 |}\#cpu (|sparc){f|
|00004ba0| 7d 2c 20 7b 66 43 6f 64 | 65 7d 5c 23 63 70 75 20 |}, {fCod|e}\#cpu |
|00004bb0| 28 73 70 75 72 29 7b 66 | 7d 2c 20 7b 66 43 6f 64 |(spur){f|}, {fCod|
|00004bc0| 65 7d 5c 23 63 70 75 0a | 28 74 61 68 6f 65 29 7b |e}\#cpu.|(tahoe){|
|00004bd0| 66 7d 2c 20 7b 66 43 6f | 64 65 7d 5c 23 63 70 75 |f}, {fCo|de}\#cpu|
|00004be0| 20 28 76 61 78 29 7b 66 | 7d 2c 20 7b 66 43 6f 64 | (vax){f|}, {fCod|
|00004bf0| 65 7d 5c 23 63 70 75 20 | 28 77 65 33 32 30 30 30 |e}\#cpu |(we32000|
|00004c00| 29 7b 66 7d 2e 0a 0a 59 | 6f 75 20 63 61 6e 20 63 |){f}...Y|ou can c|
|00004c10| 72 65 61 74 65 20 61 73 | 73 65 72 74 69 6f 6e 73 |reate as|sertions|
|00004c20| 20 77 69 74 68 69 6e 20 | 61 20 43 20 70 72 6f 67 | within |a C prog|
|00004c30| 72 61 6d 20 75 73 69 6e | 67 20 7b 66 45 6d 70 68 |ram usin|g {fEmph|
|00004c40| 61 73 69 73 7d 5c 23 61 | 73 73 65 72 74 7b 66 7d |asis}\#a|ssert{f}|
|00004c50| 2c 20 6c 69 6b 65 0a 74 | 68 69 73 3a 0a 0a 23 57 |, like.t|his:..#W|
|00004c60| 72 61 70 20 6f 66 66 0a | 23 66 43 6f 64 65 0a 5c |rap off.|#fCode.\|
|00004c70| 23 61 73 73 65 72 74 20 | 7b 66 53 74 72 6f 6e 67 |#assert |{fStrong|
|00004c80| 7d 70 72 65 64 69 63 61 | 74 65 7b 66 7d 20 28 7b |}predica|te{f} ({|
|00004c90| 66 53 74 72 6f 6e 67 7d | 61 6e 73 77 65 72 7b 66 |fStrong}|answer{f|
|00004ca0| 7d 29 0a 23 66 0a 23 57 | 72 61 70 20 6f 6e 0a 0a |}).#f.#W|rap on..|
|00004cb0| 28 4e 6f 74 65 20 74 68 | 65 20 61 62 73 65 6e 63 |(Note th|e absenc|
|00004cc0| 65 20 6f 66 20 61 20 7b | 66 45 6d 70 68 61 73 69 |e of a {|fEmphasi|
|00004cd0| 73 7d 5c 23 7b 66 7d 20 | 62 65 66 6f 72 65 20 7b |s}\#{f} |before {|
|00004ce0| 66 53 74 72 6f 6e 67 7d | 70 72 65 64 69 63 61 74 |fStrong}|predicat|
|00004cf0| 65 7b 66 7d 2e 29 0a 0a | 45 61 63 68 20 74 69 6d |e{f}.)..|Each tim|
|00004d00| 65 20 79 6f 75 20 64 6f | 20 74 68 69 73 2c 20 79 |e you do| this, y|
|00004d10| 6f 75 20 61 73 73 65 72 | 74 20 61 20 6e 65 77 20 |ou asser|t a new |
|00004d20| 74 72 75 65 20 61 6e 73 | 77 65 72 20 66 6f 72 20 |true ans|wer for |
|00004d30| 7b 66 53 74 72 6f 6e 67 | 7d 70 72 65 64 69 63 61 |{fStrong|}predica|
|00004d40| 74 65 7b 66 7d 2e 0a 41 | 73 73 65 72 74 69 6e 67 |te{f}..A|sserting|
|00004d50| 20 6f 6e 65 20 61 6e 73 | 77 65 72 20 64 6f 65 73 | one ans|wer does|
|00004d60| 20 6e 6f 74 20 69 6e 76 | 61 6c 69 64 61 74 65 20 | not inv|alidate |
|00004d70| 70 72 65 76 69 6f 75 73 | 6c 79 20 61 73 73 65 72 |previous|ly asser|
|00004d80| 74 65 64 20 61 6e 73 77 | 65 72 73 3b 0a 74 68 65 |ted answ|ers;.the|
|00004d90| 79 20 61 6c 6c 20 72 65 | 6d 61 69 6e 20 74 72 75 |y all re|main tru|
|00004da0| 65 2e 20 20 54 68 65 20 | 6f 6e 6c 79 20 77 61 79 |e. The |only way|
|00004db0| 20 74 6f 20 72 65 6d 6f | 76 65 20 61 6e 20 61 73 | to remo|ve an as|
|00004dc0| 73 65 72 74 69 6f 6e 20 | 69 73 20 77 69 74 68 0a |sertion |is with.|
|00004dd0| 7b 66 45 6d 70 68 61 73 | 69 73 7d 5c 23 75 6e 61 |{fEmphas|is}\#una|
|00004de0| 73 73 65 72 74 7b 66 7d | 2e 20 20 7b 66 45 6d 70 |ssert{f}|. {fEmp|
|00004df0| 68 61 73 69 73 7d 5c 23 | 75 6e 61 73 73 65 72 74 |hasis}\#|unassert|
|00004e00| 7b 66 7d 20 68 61 73 20 | 74 68 65 20 73 61 6d 65 |{f} has |the same|
|00004e10| 20 73 79 6e 74 61 78 20 | 61 73 0a 7b 66 45 6d 70 | syntax |as.{fEmp|
|00004e20| 68 61 73 69 73 7d 5c 23 | 61 73 73 65 72 74 7b 66 |hasis}\#|assert{f|
|00004e30| 7d 2e 20 20 59 6f 75 20 | 63 61 6e 20 61 6c 73 6f |}. You |can also|
|00004e40| 20 72 65 6d 6f 76 65 20 | 61 6c 6c 20 61 73 73 65 | remove |all asse|
|00004e50| 72 74 69 6f 6e 73 20 61 | 62 6f 75 74 0a 7b 66 53 |rtions a|bout.{fS|
|00004e60| 74 72 6f 6e 67 7d 70 72 | 65 64 69 63 61 74 65 7b |trong}pr|edicate{|
|00004e70| 66 7d 20 6c 69 6b 65 20 | 74 68 69 73 3a 0a 0a 23 |f} like |this:..#|
|00004e80| 57 72 61 70 20 6f 66 66 | 0a 23 66 43 6f 64 65 0a |Wrap off|.#fCode.|
|00004e90| 5c 23 75 6e 61 73 73 65 | 72 74 20 7b 66 53 74 72 |\#unasse|rt {fStr|
|00004ea0| 6f 6e 67 7d 70 72 65 64 | 69 63 61 74 65 7b 66 7d |ong}pred|icate{f}|
|00004eb0| 0a 23 66 0a 23 57 72 61 | 70 20 6f 6e 0a 0a 59 6f |.#f.#Wra|p on..Yo|
|00004ec0| 75 20 63 61 6e 20 61 6c | 73 6f 20 61 64 64 20 6f |u can al|so add o|
|00004ed0| 72 20 63 61 6e 63 65 6c | 20 61 73 73 65 72 74 69 |r cancel| asserti|
|00004ee0| 6f 6e 73 20 75 73 69 6e | 67 20 63 6f 6d 6d 61 6e |ons usin|g comman|
|00004ef0| 64 20 6f 70 74 69 6f 6e | 73 0a 77 68 65 6e 20 79 |d option|s.when y|
|00004f00| 6f 75 20 72 75 6e 20 7b | 66 43 6f 64 65 7d 67 63 |ou run {|fCode}gc|
|00004f10| 63 7b 66 7d 20 6f 72 20 | 7b 66 43 6f 64 65 7d 63 |c{f} or |{fCode}c|
|00004f20| 70 70 7b 66 7d 2e 20 20 | 5c 2a 4e 6f 74 65 20 3c |pp{f}. |\*Note <|
|00004f30| 49 6e 76 6f 63 61 74 69 | 6f 6e 3d 3e 49 6e 76 6f |Invocati|on=>Invo|
|00004f40| 63 61 74 69 6f 6e 3e 2e | 0a 0a 00 00 44 41 54 41 |cation>.|....DATA|
|00004f50| 59 05 00 00 43 61 73 63 | 61 64 65 64 20 4d 61 63 |Y...Casc|aded Mac|
|00004f60| 72 6f 73 0a 50 72 65 76 | 69 6f 75 73 3a 20 3c 41 |ros.Prev|ious: <A|
|00004f70| 72 67 75 6d 65 6e 74 20 | 50 72 65 73 63 61 6e 3d |rgument |Prescan=|
|00004f80| 3e 41 72 67 75 6d 65 6e | 74 50 72 3e 20 2a 20 4e |>Argumen|tPr> * N|
|00004f90| 65 78 74 3a 20 3c 4e 65 | 77 6c 69 6e 65 73 20 69 |ext: <Ne|wlines i|
|00004fa0| 6e 20 41 72 67 73 3d 3e | 4e 65 77 6c 69 6e 65 73 |n Args=>|Newlines|
|00004fb0| 69 6e 3e 20 2a 20 55 70 | 3a 20 3c 4d 61 63 72 6f |in> * Up|: <Macro|
|00004fc0| 20 50 69 74 66 61 6c 6c | 73 3d 3e 4d 61 63 72 6f | Pitfall|s=>Macro|
|00004fd0| 50 69 74 66 61 3e 0a 0a | 23 57 72 61 70 20 6f 6e |Pitfa>..|#Wrap on|
|00004fe0| 0a 7b 66 48 35 7d 43 61 | 73 63 61 64 65 64 20 55 |.{fH5}Ca|scaded U|
|00004ff0| 73 65 20 6f 66 20 4d 61 | 63 72 6f 73 7b 66 7d 0a |se of Ma|cros{f}.|
|00005000| 0a 41 20 7b 66 55 6e 64 | 65 72 6c 69 6e 65 7d 63 |.A {fUnd|erline}c|
|00005010| 61 73 63 61 64 65 7b 66 | 7d 20 6f 66 20 6d 61 63 |ascade{f|} of mac|
|00005020| 72 6f 73 20 69 73 20 77 | 68 65 6e 20 6f 6e 65 20 |ros is w|hen one |
|00005030| 6d 61 63 72 6f 27 73 20 | 62 6f 64 79 20 63 6f 6e |macro's |body con|
|00005040| 74 61 69 6e 73 20 61 20 | 72 65 66 65 72 65 6e 63 |tains a |referenc|
|00005050| 65 0a 74 6f 20 61 6e 6f | 74 68 65 72 20 6d 61 63 |e.to ano|ther mac|
|00005060| 72 6f 2e 20 20 54 68 69 | 73 20 69 73 20 76 65 72 |ro. Thi|s is ver|
|00005070| 79 20 63 6f 6d 6d 6f 6e | 20 70 72 61 63 74 69 63 |y common| practic|
|00005080| 65 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |e. For |example,|
|00005090| 0a 0a 23 57 72 61 70 20 | 6f 66 66 0a 23 66 43 6f |..#Wrap |off.#fCo|
|000050a0| 64 65 0a 5c 23 64 65 66 | 69 6e 65 20 42 55 46 53 |de.\#def|ine BUFS|
|000050b0| 49 5a 45 20 31 30 32 30 | 0a 5c 23 64 65 66 69 6e |IZE 1020|.\#defin|
|000050c0| 65 20 54 41 42 4c 45 53 | 49 5a 45 20 42 55 46 53 |e TABLES|IZE BUFS|
|000050d0| 49 5a 45 0a 23 66 0a 23 | 57 72 61 70 20 6f 6e 0a |IZE.#f.#|Wrap on.|
|000050e0| 0a 54 68 69 73 20 69 73 | 20 6e 6f 74 20 61 74 20 |.This is| not at |
|000050f0| 61 6c 6c 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |all the |same as |
|00005100| 64 65 66 69 6e 69 6e 67 | 20 7b 66 45 6d 70 68 61 |defining| {fEmpha|
|00005110| 73 69 73 7d 54 41 42 4c | 45 53 49 5a 45 7b 66 7d |sis}TABL|ESIZE{f}|
|00005120| 20 74 6f 20 62 65 20 7b | 66 45 6d 70 68 61 73 69 | to be {|fEmphasi|
|00005130| 73 7d 31 30 32 30 7b 66 | 7d 2e 0a 54 68 65 20 7b |s}1020{f|}..The {|
|00005140| 66 45 6d 70 68 61 73 69 | 73 7d 5c 23 64 65 66 69 |fEmphasi|s}\#defi|
|00005150| 6e 65 7b 66 7d 20 66 6f | 72 20 7b 66 45 6d 70 68 |ne{f} fo|r {fEmph|
|00005160| 61 73 69 73 7d 54 41 42 | 4c 45 53 49 5a 45 7b 66 |asis}TAB|LESIZE{f|
|00005170| 7d 20 75 73 65 73 20 65 | 78 61 63 74 6c 79 20 74 |} uses e|xactly t|
|00005180| 68 65 20 62 6f 64 79 20 | 79 6f 75 0a 73 70 65 63 |he body |you.spec|
|00005190| 69 66 79 2d 2d 2d 69 6e | 20 74 68 69 73 20 63 61 |ify---in| this ca|
|000051a0| 73 65 2c 20 7b 66 45 6d | 70 68 61 73 69 73 7d 42 |se, {fEm|phasis}B|
|000051b0| 55 46 53 49 5a 45 7b 66 | 7d 2d 2d 2d 61 6e 64 20 |UFSIZE{f|}---and |
|000051c0| 64 6f 65 73 20 6e 6f 74 | 20 63 68 65 63 6b 20 74 |does not| check t|
|000051d0| 6f 20 73 65 65 20 77 68 | 65 74 68 65 72 0a 69 74 |o see wh|ether.it|
|000051e0| 20 74 6f 6f 20 69 73 20 | 74 68 65 20 6e 61 6d 65 | too is |the name|
|000051f0| 20 6f 66 20 61 20 6d 61 | 63 72 6f 2e 0a 0a 49 74 | of a ma|cro...It|
|00005200| 27 73 20 6f 6e 6c 79 20 | 77 68 65 6e 20 79 6f 75 |'s only |when you|
|00005210| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 75 73 65 7b | {fEmpha|sis}use{|
|00005220| 66 7d 20 7b 66 45 6d 70 | 68 61 73 69 73 7d 54 41 |f} {fEmp|hasis}TA|
|00005230| 42 4c 45 53 49 5a 45 7b | 66 7d 20 74 68 61 74 20 |BLESIZE{|f} that |
|00005240| 74 68 65 20 72 65 73 75 | 6c 74 20 6f 66 20 69 74 |the resu|lt of it|
|00005250| 73 20 65 78 70 61 6e 73 | 69 6f 6e 0a 69 73 20 63 |s expans|ion.is c|
|00005260| 68 65 63 6b 65 64 20 66 | 6f 72 20 6d 6f 72 65 20 |hecked f|or more |
|00005270| 6d 61 63 72 6f 20 6e 61 | 6d 65 73 2e 0a 0a 54 68 |macro na|mes...Th|
|00005280| 69 73 20 6d 61 6b 65 73 | 20 61 20 64 69 66 66 65 |is makes| a diffe|
|00005290| 72 65 6e 63 65 20 69 66 | 20 79 6f 75 20 63 68 61 |rence if| you cha|
|000052a0| 6e 67 65 20 74 68 65 20 | 64 65 66 69 6e 69 74 69 |nge the |definiti|
|000052b0| 6f 6e 20 6f 66 20 7b 66 | 45 6d 70 68 61 73 69 73 |on of {f|Emphasis|
|000052c0| 7d 42 55 46 53 49 5a 45 | 7b 66 7d 0a 61 74 20 73 |}BUFSIZE|{f}.at s|
|000052d0| 6f 6d 65 20 70 6f 69 6e | 74 20 69 6e 20 74 68 65 |ome poin|t in the|
|000052e0| 20 73 6f 75 72 63 65 20 | 66 69 6c 65 2e 20 20 7b | source |file. {|
|000052f0| 66 45 6d 70 68 61 73 69 | 73 7d 54 41 42 4c 45 53 |fEmphasi|s}TABLES|
|00005300| 49 5a 45 7b 66 7d 2c 20 | 64 65 66 69 6e 65 64 20 |IZE{f}, |defined |
|00005310| 61 73 20 73 68 6f 77 6e | 2c 0a 77 69 6c 6c 20 61 |as shown|,.will a|
|00005320| 6c 77 61 79 73 20 65 78 | 70 61 6e 64 20 75 73 69 |lways ex|pand usi|
|00005330| 6e 67 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |ng the d|efinitio|
|00005340| 6e 20 6f 66 20 7b 66 45 | 6d 70 68 61 73 69 73 7d |n of {fE|mphasis}|
|00005350| 42 55 46 53 49 5a 45 7b | 66 7d 20 74 68 61 74 20 |BUFSIZE{|f} that |
|00005360| 69 73 0a 63 75 72 72 65 | 6e 74 6c 79 20 69 6e 20 |is.curre|ntly in |
|00005370| 65 66 66 65 63 74 3a 0a | 0a 23 57 72 61 70 20 6f |effect:.|.#Wrap o|
|00005380| 66 66 0a 23 66 43 6f 64 | 65 0a 5c 23 64 65 66 69 |ff.#fCod|e.\#defi|
|00005390| 6e 65 20 42 55 46 53 49 | 5a 45 20 31 30 32 30 0a |ne BUFSI|ZE 1020.|
|000053a0| 5c 23 64 65 66 69 6e 65 | 20 54 41 42 4c 45 53 49 |\#define| TABLESI|
|000053b0| 5a 45 20 42 55 46 53 49 | 5a 45 0a 5c 23 75 6e 64 |ZE BUFSI|ZE.\#und|
|000053c0| 65 66 20 42 55 46 53 49 | 5a 45 0a 5c 23 64 65 66 |ef BUFSI|ZE.\#def|
|000053d0| 69 6e 65 20 42 55 46 53 | 49 5a 45 20 33 37 0a 23 |ine BUFS|IZE 37.#|
|000053e0| 66 0a 23 57 72 61 70 20 | 6f 6e 0a 0a 4e 6f 77 20 |f.#Wrap |on..Now |
|000053f0| 7b 66 45 6d 70 68 61 73 | 69 73 7d 54 41 42 4c 45 |{fEmphas|is}TABLE|
|00005400| 53 49 5a 45 7b 66 7d 20 | 65 78 70 61 6e 64 73 20 |SIZE{f} |expands |
|00005410| 28 69 6e 20 74 77 6f 20 | 73 74 61 67 65 73 29 20 |(in two |stages) |
|00005420| 74 6f 20 7b 66 45 6d 70 | 68 61 73 69 73 7d 33 37 |to {fEmp|hasis}37|
|00005430| 7b 66 7d 2e 20 20 28 54 | 68 65 0a 7b 66 45 6d 70 |{f}. (T|he.{fEmp|
|00005440| 68 61 73 69 73 7d 5c 23 | 75 6e 64 65 66 7b 66 7d |hasis}\#|undef{f}|
|00005450| 20 69 73 20 74 6f 20 70 | 72 65 76 65 6e 74 20 61 | is to p|revent a|
|00005460| 6e 79 20 77 61 72 6e 69 | 6e 67 20 61 62 6f 75 74 |ny warni|ng about|
|00005470| 20 74 68 65 20 6e 6f 6e | 74 72 69 76 69 61 6c 0a | the non|trivial.|
|00005480| 72 65 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |redefini|tion of |
|00005490| 7b 66 43 6f 64 65 7d 42 | 55 46 53 49 5a 45 7b 66 |{fCode}B|UFSIZE{f|
|000054a0| 7d 2e 29 0a 0a 00 00 00 | 44 41 54 41 e9 0c 00 00 |}.).....|DATA....|
|000054b0| 43 6f 6d 62 69 6e 69 6e | 67 20 53 6f 75 72 63 65 |Combinin|g Source|
|000054c0| 73 0a 50 72 65 76 69 6f | 75 73 3a 20 3c 43 6f 6e |s.Previo|us: <Con|
|000054d0| 64 69 74 69 6f 6e 61 6c | 73 3d 3e 43 6f 6e 64 69 |ditional|s=>Condi|
|000054e0| 74 69 6f 6e 61 3e 20 2a | 20 4e 65 78 74 3a 20 3c |tiona> *| Next: <|
|000054f0| 4f 74 68 65 72 20 43 6f | 6d 6d 61 6e 64 73 3d 3e |Other Co|mmands=>|
|00005500| 4f 74 68 65 72 43 6f 6d | 6d 61 3e 20 2a 20 55 70 |OtherCom|ma> * Up|
|00005510| 3a 20 3c 54 6f 70 3d 3e | 21 52 6f 6f 74 3e 0a 0a |: <Top=>|!Root>..|
|00005520| 23 57 72 61 70 20 6f 6e | 0a 7b 66 48 33 7d 43 6f |#Wrap on|.{fH3}Co|
|00005530| 6d 62 69 6e 69 6e 67 20 | 53 6f 75 72 63 65 20 46 |mbining |Source F|
|00005540| 69 6c 65 73 7b 66 7d 0a | 0a 4f 6e 65 20 6f 66 20 |iles{f}.|.One of |
|00005550| 74 68 65 20 6a 6f 62 73 | 20 6f 66 20 74 68 65 20 |the jobs| of the |
|00005560| 43 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 20 69 |C prepro|cessor i|
|00005570| 73 20 74 6f 20 69 6e 66 | 6f 72 6d 20 74 68 65 20 |s to inf|orm the |
|00005580| 43 20 63 6f 6d 70 69 6c | 65 72 20 6f 66 20 77 68 |C compil|er of wh|
|00005590| 65 72 65 0a 65 61 63 68 | 20 6c 69 6e 65 20 6f 66 |ere.each| line of|
|000055a0| 20 43 20 63 6f 64 65 20 | 63 61 6d 65 20 66 72 6f | C code |came fro|
|000055b0| 6d 3a 20 77 68 69 63 68 | 20 73 6f 75 72 63 65 20 |m: which| source |
|000055c0| 66 69 6c 65 20 61 6e 64 | 20 77 68 69 63 68 20 6c |file and| which l|
|000055d0| 69 6e 65 20 6e 75 6d 62 | 65 72 2e 0a 0a 43 20 63 |ine numb|er...C c|
|000055e0| 6f 64 65 20 63 61 6e 20 | 63 6f 6d 65 20 66 72 6f |ode can |come fro|
|000055f0| 6d 20 6d 75 6c 74 69 70 | 6c 65 20 73 6f 75 72 63 |m multip|le sourc|
|00005600| 65 20 66 69 6c 65 73 20 | 69 66 20 79 6f 75 20 75 |e files |if you u|
|00005610| 73 65 20 7b 66 45 6d 70 | 68 61 73 69 73 7d 5c 23 |se {fEmp|hasis}\#|
|00005620| 69 6e 63 6c 75 64 65 7b | 66 7d 3b 0a 62 6f 74 68 |include{|f};.both|
|00005630| 20 7b 66 45 6d 70 68 61 | 73 69 73 7d 5c 23 69 6e | {fEmpha|sis}\#in|
|00005640| 63 6c 75 64 65 7b 66 7d | 20 61 6e 64 20 74 68 65 |clude{f}| and the|
|00005650| 20 75 73 65 20 6f 66 20 | 63 6f 6e 64 69 74 69 6f | use of |conditio|
|00005660| 6e 61 6c 73 20 61 6e 64 | 20 6d 61 63 72 6f 73 20 |nals and| macros |
|00005670| 63 61 6e 20 63 61 75 73 | 65 0a 74 68 65 20 6c 69 |can caus|e.the li|
|00005680| 6e 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 61 20 6c |ne numbe|r of a l|
|00005690| 69 6e 65 20 69 6e 20 74 | 68 65 20 70 72 65 70 72 |ine in t|he prepr|
|000056a0| 6f 63 65 73 73 6f 72 20 | 6f 75 74 70 75 74 20 74 |ocessor |output t|
|000056b0| 6f 20 62 65 20 64 69 66 | 66 65 72 65 6e 74 0a 66 |o be dif|ferent.f|
|000056c0| 72 6f 6d 20 74 68 65 20 | 6c 69 6e 65 27 73 20 6e |rom the |line's n|
|000056d0| 75 6d 62 65 72 20 69 6e | 20 74 68 65 20 6f 72 69 |umber in| the ori|
|000056e0| 67 69 6e 61 6c 20 73 6f | 75 72 63 65 20 66 69 6c |ginal so|urce fil|
|000056f0| 65 2e 20 20 59 6f 75 20 | 77 69 6c 6c 20 61 70 70 |e. You |will app|
|00005700| 72 65 63 69 61 74 65 0a | 74 68 65 20 76 61 6c 75 |reciate.|the valu|
|00005710| 65 20 6f 66 20 6d 61 6b | 69 6e 67 20 62 6f 74 68 |e of mak|ing both|
|00005720| 20 74 68 65 20 43 20 63 | 6f 6d 70 69 6c 65 72 20 | the C c|ompiler |
|00005730| 28 69 6e 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |(in erro|r messag|
|00005740| 65 73 29 20 61 6e 64 20 | 73 79 6d 62 6f 6c 69 63 |es) and |symbolic|
|00005750| 0a 64 65 62 75 67 67 65 | 72 73 20 73 75 63 68 20 |.debugge|rs such |
|00005760| 61 73 20 47 44 42 20 75 | 73 65 20 74 68 65 20 6c |as GDB u|se the l|
|00005770| 69 6e 65 20 6e 75 6d 62 | 65 72 73 20 69 6e 20 79 |ine numb|ers in y|
|00005780| 6f 75 72 20 73 6f 75 72 | 63 65 20 66 69 6c 65 2e |our sour|ce file.|
|00005790| 0a 0a 54 68 65 20 43 20 | 70 72 65 70 72 6f 63 65 |..The C |preproce|
|000057a0| 73 73 6f 72 20 62 75 69 | 6c 64 73 20 6f 6e 20 74 |ssor bui|lds on t|
|000057b0| 68 69 73 20 66 65 61 74 | 75 72 65 20 62 79 20 6f |his feat|ure by o|
|000057c0| 66 66 65 72 69 6e 67 20 | 61 20 63 6f 6d 6d 61 6e |ffering |a comman|
|000057d0| 64 20 62 79 20 77 68 69 | 63 68 0a 79 6f 75 20 63 |d by whi|ch.you c|
|000057e0| 61 6e 20 63 6f 6e 74 72 | 6f 6c 20 74 68 65 20 66 |an contr|ol the f|
|000057f0| 65 61 74 75 72 65 20 65 | 78 70 6c 69 63 69 74 6c |eature e|xplicitl|
|00005800| 79 2e 20 20 54 68 69 73 | 20 69 73 20 75 73 65 66 |y. This| is usef|
|00005810| 75 6c 20 77 68 65 6e 20 | 61 20 66 69 6c 65 20 66 |ul when |a file f|
|00005820| 6f 72 0a 69 6e 70 75 74 | 20 74 6f 20 74 68 65 20 |or.input| to the |
|00005830| 43 20 70 72 65 70 72 6f | 63 65 73 73 6f 72 20 69 |C prepro|cessor i|
|00005840| 73 20 74 68 65 20 6f 75 | 74 70 75 74 20 66 72 6f |s the ou|tput fro|
|00005850| 6d 20 61 6e 6f 74 68 65 | 72 20 70 72 6f 67 72 61 |m anothe|r progra|
|00005860| 6d 20 73 75 63 68 20 61 | 73 20 74 68 65 0a 7b 66 |m such a|s the.{f|
|00005870| 43 6f 64 65 7d 62 69 73 | 6f 6e 7b 66 7d 20 70 61 |Code}bis|on{f} pa|
|00005880| 72 73 65 72 20 67 65 6e | 65 72 61 74 6f 72 2c 20 |rser gen|erator, |
|00005890| 77 68 69 63 68 20 6f 70 | 65 72 61 74 65 73 20 6f |which op|erates o|
|000058a0| 6e 20 61 6e 6f 74 68 65 | 72 20 66 69 6c 65 20 74 |n anothe|r file t|
|000058b0| 68 61 74 20 69 73 20 74 | 68 65 0a 74 72 75 65 20 |hat is t|he.true |
|000058c0| 73 6f 75 72 63 65 20 66 | 69 6c 65 2e 20 20 50 61 |source f|ile. Pa|
|000058d0| 72 74 73 20 6f 66 20 74 | 68 65 20 6f 75 74 70 75 |rts of t|he outpu|
|000058e0| 74 20 66 72 6f 6d 20 7b | 66 43 6f 64 65 7d 62 69 |t from {|fCode}bi|
|000058f0| 73 6f 6e 7b 66 7d 20 61 | 72 65 20 67 65 6e 65 72 |son{f} a|re gener|
|00005900| 61 74 65 64 20 66 72 6f | 6d 0a 73 63 72 61 74 63 |ated fro|m.scratc|
|00005910| 68 2c 20 6f 74 68 65 72 | 20 70 61 72 74 73 20 63 |h, other| parts c|
|00005920| 6f 6d 65 20 66 72 6f 6d | 20 61 20 73 74 61 6e 64 |ome from| a stand|
|00005930| 61 72 64 20 70 61 72 73 | 65 72 20 66 69 6c 65 2e |ard pars|er file.|
|00005940| 20 20 54 68 65 20 72 65 | 73 74 20 61 72 65 20 63 | The re|st are c|
|00005950| 6f 70 69 65 64 0a 6e 65 | 61 72 6c 79 20 76 65 72 |opied.ne|arly ver|
|00005960| 62 61 74 69 6d 20 66 72 | 6f 6d 20 74 68 65 20 73 |batim fr|om the s|
|00005970| 6f 75 72 63 65 20 66 69 | 6c 65 2c 20 62 75 74 20 |ource fi|le, but |
|00005980| 74 68 65 69 72 20 6c 69 | 6e 65 20 6e 75 6d 62 65 |their li|ne numbe|
|00005990| 72 73 20 69 6e 20 74 68 | 65 0a 7b 66 43 6f 64 65 |rs in th|e.{fCode|
|000059a0| 7d 62 69 73 6f 6e 7b 66 | 7d 20 6f 75 74 70 75 74 |}bison{f|} output|
|000059b0| 20 61 72 65 20 6e 6f 74 | 20 74 68 65 20 73 61 6d | are not| the sam|
|000059c0| 65 20 61 73 20 74 68 65 | 69 72 20 6f 72 69 67 69 |e as the|ir origi|
|000059d0| 6e 61 6c 20 6c 69 6e 65 | 20 6e 75 6d 62 65 72 73 |nal line| numbers|
|000059e0| 2e 0a 4e 61 74 75 72 61 | 6c 6c 79 20 79 6f 75 20 |..Natura|lly you |
|000059f0| 77 6f 75 6c 64 20 6c 69 | 6b 65 20 63 6f 6d 70 69 |would li|ke compi|
|00005a00| 6c 65 72 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |ler erro|r messag|
|00005a10| 65 73 20 61 6e 64 20 73 | 79 6d 62 6f 6c 69 63 20 |es and s|ymbolic |
|00005a20| 64 65 62 75 67 67 65 72 | 73 20 74 6f 0a 6b 6e 6f |debugger|s to.kno|
|00005a30| 77 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 73 |w the or|iginal s|
|00005a40| 6f 75 72 63 65 20 66 69 | 6c 65 20 61 6e 64 20 6c |ource fi|le and l|
|00005a50| 69 6e 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 65 61 |ine numb|er of ea|
|00005a60| 63 68 20 6c 69 6e 65 20 | 69 6e 20 74 68 65 0a 7b |ch line |in the.{|
|00005a70| 66 43 6f 64 65 7d 62 69 | 73 6f 6e 7b 66 7d 20 69 |fCode}bi|son{f} i|
|00005a80| 6e 70 75 74 2e 0a 0a 7b | 66 43 6f 64 65 7d 62 69 |nput...{|fCode}bi|
|00005a90| 73 6f 6e 7b 66 7d 20 61 | 72 72 61 6e 67 65 73 20 |son{f} a|rranges |
|00005aa0| 74 68 69 73 20 62 79 20 | 77 72 69 74 69 6e 67 20 |this by |writing |
|00005ab0| 7b 66 45 6d 70 68 61 73 | 69 73 7d 5c 23 6c 69 6e |{fEmphas|is}\#lin|
|00005ac0| 65 7b 66 7d 20 63 6f 6d | 6d 61 6e 64 73 20 69 6e |e{f} com|mands in|
|00005ad0| 74 6f 20 74 68 65 20 6f | 75 74 70 75 74 0a 66 69 |to the o|utput.fi|
|00005ae0| 6c 65 2e 20 20 7b 66 45 | 6d 70 68 61 73 69 73 7d |le. {fE|mphasis}|
|00005af0| 5c 23 6c 69 6e 65 7b 66 | 7d 20 69 73 20 61 20 63 |\#line{f|} is a c|
|00005b00| 6f 6d 6d 61 6e 64 20 74 | 68 61 74 20 73 70 65 63 |ommand t|hat spec|
|00005b10| 69 66 69 65 73 20 74 68 | 65 20 6f 72 69 67 69 6e |ifies th|e origin|
|00005b20| 61 6c 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 0a 61 |al line |number.a|
|00005b30| 6e 64 20 73 6f 75 72 63 | 65 20 66 69 6c 65 20 6e |nd sourc|e file n|
|00005b40| 61 6d 65 20 66 6f 72 20 | 73 75 62 73 65 71 75 65 |ame for |subseque|
|00005b50| 6e 74 20 69 6e 70 75 74 | 20 69 6e 20 74 68 65 20 |nt input| in the |
|00005b60| 63 75 72 72 65 6e 74 20 | 70 72 65 70 72 6f 63 65 |current |preproce|
|00005b70| 73 73 6f 72 20 69 6e 70 | 75 74 0a 66 69 6c 65 2e |ssor inp|ut.file.|
|00005b80| 20 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 5c 23 6c | {fEmph|asis}\#l|
|00005b90| 69 6e 65 7b 66 7d 20 68 | 61 73 20 74 68 72 65 65 |ine{f} h|as three|
|00005ba0| 20 76 61 72 69 61 6e 74 | 73 3a 0a 0a 23 49 6e 64 | variant|s:..#Ind|
|00005bb0| 65 6e 74 20 2b 34 0a 23 | 49 6e 64 65 6e 74 0a 7b |ent +4.#|Indent.{|
|00005bc0| 66 43 6f 64 65 7d 5c 23 | 6c 69 6e 65 20 7b 66 53 |fCode}\#|line {fS|
|00005bd0| 74 72 6f 6e 67 7d 6c 69 | 6e 65 6e 75 6d 7b 66 7d |trong}li|nenum{f}|
|00005be0| 7b 66 7d 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 48 |{f}.#Ind|ent +4.H|
|00005bf0| 65 72 65 20 7b 66 53 74 | 72 6f 6e 67 7d 6c 69 6e |ere {fSt|rong}lin|
|00005c00| 65 6e 75 6d 7b 66 7d 20 | 69 73 20 61 20 64 65 63 |enum{f} |is a dec|
|00005c10| 69 6d 61 6c 20 69 6e 74 | 65 67 65 72 20 63 6f 6e |imal int|eger con|
|00005c20| 73 74 61 6e 74 2e 20 20 | 54 68 69 73 20 73 70 65 |stant. |This spe|
|00005c30| 63 69 66 69 65 73 20 74 | 68 61 74 0a 74 68 65 20 |cifies t|hat.the |
|00005c40| 6c 69 6e 65 20 6e 75 6d | 62 65 72 20 6f 66 20 74 |line num|ber of t|
|00005c50| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6c 69 6e |he follo|wing lin|
|00005c60| 65 20 6f 66 20 69 6e 70 | 75 74 2c 20 69 6e 20 69 |e of inp|ut, in i|
|00005c70| 74 73 20 6f 72 69 67 69 | 6e 61 6c 20 73 6f 75 72 |ts origi|nal sour|
|00005c80| 63 65 20 66 69 6c 65 2c | 0a 77 61 73 20 7b 66 53 |ce file,|.was {fS|
|00005c90| 74 72 6f 6e 67 7d 6c 69 | 6e 65 6e 75 6d 7b 66 7d |trong}li|nenum{f}|
|00005ca0| 2e 0a 0a 23 49 6e 64 65 | 6e 74 0a 7b 66 43 6f 64 |...#Inde|nt.{fCod|
|00005cb0| 65 7d 5c 23 6c 69 6e 65 | 20 7b 66 53 74 72 6f 6e |e}\#line| {fStron|
|00005cc0| 67 7d 6c 69 6e 65 6e 75 | 6d 7b 66 7d 20 7b 66 53 |g}linenu|m{f} {fS|
|00005cd0| 74 72 6f 6e 67 7d 66 69 | 6c 65 6e 61 6d 65 7b 66 |trong}fi|lename{f|
|00005ce0| 7d 7b 66 7d 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |}{f}.#In|dent +4.|
|00005cf0| 48 65 72 65 20 7b 66 53 | 74 72 6f 6e 67 7d 6c 69 |Here {fS|trong}li|
|00005d00| 6e 65 6e 75 6d 7b 66 7d | 20 69 73 20 61 20 64 65 |nenum{f}| is a de|
|00005d10| 63 69 6d 61 6c 20 69 6e | 74 65 67 65 72 20 63 6f |cimal in|teger co|
|00005d20| 6e 73 74 61 6e 74 20 61 | 6e 64 20 7b 66 53 74 72 |nstant a|nd {fStr|
|00005d30| 6f 6e 67 7d 66 69 6c 65 | 6e 61 6d 65 7b 66 7d 0a |ong}file|name{f}.|
|00005d40| 69 73 20 61 20 73 74 72 | 69 6e 67 20 63 6f 6e 73 |is a str|ing cons|
|00005d50| 74 61 6e 74 2e 20 20 54 | 68 69 73 20 73 70 65 63 |tant. T|his spec|
|00005d60| 69 66 69 65 73 20 74 68 | 61 74 20 74 68 65 20 66 |ifies th|at the f|
|00005d70| 6f 6c 6c 6f 77 69 6e 67 | 20 6c 69 6e 65 20 6f 66 |ollowing| line of|
|00005d80| 20 69 6e 70 75 74 0a 63 | 61 6d 65 20 6f 72 69 67 | input.c|ame orig|
|00005d90| 69 6e 61 6c 6c 79 20 66 | 72 6f 6d 20 73 6f 75 72 |inally f|rom sour|
|00005da0| 63 65 20 66 69 6c 65 20 | 7b 66 53 74 72 6f 6e 67 |ce file |{fStrong|
|00005db0| 7d 66 69 6c 65 6e 61 6d | 65 7b 66 7d 20 61 6e 64 |}filenam|e{f} and|
|00005dc0| 20 69 74 73 20 6c 69 6e | 65 20 6e 75 6d 62 65 72 | its lin|e number|
|00005dd0| 20 74 68 65 72 65 0a 77 | 61 73 20 7b 66 53 74 72 | there.w|as {fStr|
|00005de0| 6f 6e 67 7d 6c 69 6e 65 | 6e 75 6d 7b 66 7d 2e 20 |ong}line|num{f}. |
|00005df0| 20 4b 65 65 70 20 69 6e | 20 6d 69 6e 64 20 74 68 | Keep in| mind th|
|00005e00| 61 74 20 7b 66 53 74 72 | 6f 6e 67 7d 66 69 6c 65 |at {fStr|ong}file|
|00005e10| 6e 61 6d 65 7b 66 7d 20 | 69 73 20 6e 6f 74 20 6a |name{f} |is not j|
|00005e20| 75 73 74 20 61 0a 66 69 | 6c 65 20 6e 61 6d 65 3b |ust a.fi|le name;|
|00005e30| 20 69 74 20 69 73 20 73 | 75 72 72 6f 75 6e 64 65 | it is s|urrounde|
|00005e40| 64 20 62 79 20 64 6f 75 | 62 6c 65 71 75 6f 74 65 |d by dou|blequote|
|00005e50| 20 63 68 61 72 61 63 74 | 65 72 73 20 73 6f 20 74 | charact|ers so t|
|00005e60| 68 61 74 20 69 74 20 6c | 6f 6f 6b 73 0a 6c 69 6b |hat it l|ooks.lik|
|00005e70| 65 20 61 20 73 74 72 69 | 6e 67 20 63 6f 6e 73 74 |e a stri|ng const|
|00005e80| 61 6e 74 2e 0a 0a 23 49 | 6e 64 65 6e 74 0a 7b 66 |ant...#I|ndent.{f|
|00005e90| 43 6f 64 65 7d 5c 23 6c | 69 6e 65 20 7b 66 53 74 |Code}\#l|ine {fSt|
|00005ea0| 72 6f 6e 67 7d 61 6e 79 | 74 68 69 6e 67 20 65 6c |rong}any|thing el|
|00005eb0| 73 65 7b 66 7d 7b 66 7d | 0a 23 49 6e 64 65 6e 74 |se{f}{f}|.#Indent|
|00005ec0| 20 2b 34 0a 7b 66 53 74 | 72 6f 6e 67 7d 61 6e 79 | +4.{fSt|rong}any|
|00005ed0| 74 68 69 6e 67 20 65 6c | 73 65 7b 66 7d 20 69 73 |thing el|se{f} is|
|00005ee0| 20 63 68 65 63 6b 65 64 | 20 66 6f 72 20 6d 61 63 | checked| for mac|
|00005ef0| 72 6f 20 63 61 6c 6c 73 | 2c 20 77 68 69 63 68 20 |ro calls|, which |
|00005f00| 61 72 65 20 65 78 70 61 | 6e 64 65 64 2e 0a 54 68 |are expa|nded..Th|
|00005f10| 65 20 72 65 73 75 6c 74 | 20 73 68 6f 75 6c 64 20 |e result| should |
|00005f20| 62 65 20 61 20 64 65 63 | 69 6d 61 6c 20 69 6e 74 |be a dec|imal int|
|00005f30| 65 67 65 72 20 63 6f 6e | 73 74 61 6e 74 20 66 6f |eger con|stant fo|
|00005f40| 6c 6c 6f 77 65 64 20 6f | 70 74 69 6f 6e 61 6c 6c |llowed o|ptionall|
|00005f50| 79 0a 62 79 20 61 20 73 | 74 72 69 6e 67 20 63 6f |y.by a s|tring co|
|00005f60| 6e 73 74 61 6e 74 2c 20 | 61 73 20 64 65 73 63 72 |nstant, |as descr|
|00005f70| 69 62 65 64 20 61 62 6f | 76 65 2e 0a 0a 23 49 6e |ibed abo|ve...#In|
|00005f80| 64 65 6e 74 0a 0a 7b 66 | 45 6d 70 68 61 73 69 73 |dent..{f|Emphasis|
|00005f90| 7d 5c 23 6c 69 6e 65 7b | 66 7d 20 63 6f 6d 6d 61 |}\#line{|f} comma|
|00005fa0| 6e 64 73 20 61 6c 74 65 | 72 20 74 68 65 20 72 65 |nds alte|r the re|
|00005fb0| 73 75 6c 74 73 20 6f 66 | 20 74 68 65 20 7b 66 45 |sults of| the {fE|
|00005fc0| 6d 70 68 61 73 69 73 7d | 5c 5f 5c 5f 46 49 4c 45 |mphasis}|\_\_FILE|
|00005fd0| 5c 5f 5c 5f 7b 66 7d 20 | 61 6e 64 0a 7b 66 45 6d |\_\_{f} |and.{fEm|
|00005fe0| 70 68 61 73 69 73 7d 5c | 5f 5c 5f 4c 49 4e 45 5c |phasis}\|_\_LINE\|
|00005ff0| 5f 5c 5f 7b 66 7d 20 70 | 72 65 64 65 66 69 6e 65 |_\_{f} p|redefine|
|00006000| 64 20 6d 61 63 72 6f 73 | 20 66 72 6f 6d 20 74 68 |d macros| from th|
|00006010| 61 74 20 70 6f 69 6e 74 | 20 6f 6e 2e 20 20 5c 2a |at point| on. \*|
|00006020| 4e 6f 74 65 20 3c 53 74 | 61 6e 64 61 72 64 20 50 |Note <St|andard P|
|00006030| 72 65 64 65 66 69 6e 65 | 64 3d 3e 53 74 61 6e 64 |redefine|d=>Stand|
|00006040| 61 72 64 50 72 3e 2e 0a | 0a 54 68 65 20 6f 75 74 |ardPr>..|.The out|
|00006050| 70 75 74 20 6f 66 20 74 | 68 65 20 70 72 65 70 72 |put of t|he prepr|
|00006060| 6f 63 65 73 73 6f 72 20 | 28 77 68 69 63 68 20 69 |ocessor |(which i|
|00006070| 73 20 74 68 65 20 69 6e | 70 75 74 20 66 6f 72 20 |s the in|put for |
|00006080| 74 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 65 0a |the rest| of the.|
|00006090| 63 6f 6d 70 69 6c 65 72 | 29 20 63 6f 6e 74 61 69 |compiler|) contai|
|000060a0| 6e 73 20 63 6f 6d 6d 61 | 6e 64 73 20 74 68 61 74 |ns comma|nds that|
|000060b0| 20 6c 6f 6f 6b 20 6d 75 | 63 68 20 6c 69 6b 65 20 | look mu|ch like |
|000060c0| 7b 66 45 6d 70 68 61 73 | 69 73 7d 5c 23 6c 69 6e |{fEmphas|is}\#lin|
|000060d0| 65 7b 66 7d 20 63 6f 6d | 6d 61 6e 64 73 2e 0a 54 |e{f} com|mands..T|
|000060e0| 68 65 79 20 73 74 61 72 | 74 20 77 69 74 68 20 6a |hey star|t with j|
|000060f0| 75 73 74 20 7b 66 45 6d | 70 68 61 73 69 73 7d 5c |ust {fEm|phasis}\|
|00006100| 23 7b 66 7d 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |#{f} ins|tead of |
|00006110| 7b 66 45 6d 70 68 61 73 | 69 73 7d 5c 23 6c 69 6e |{fEmphas|is}\#lin|
|00006120| 65 7b 66 7d 2c 20 62 75 | 74 20 74 68 69 73 20 69 |e{f}, bu|t this i|
|00006130| 73 0a 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 20 |s.follow|ed by a |
|00006140| 6c 69 6e 65 20 6e 75 6d | 62 65 72 20 61 6e 64 20 |line num|ber and |
|00006150| 66 69 6c 65 20 6e 61 6d | 65 20 61 73 20 69 6e 20 |file nam|e as in |
|00006160| 7b 66 45 6d 70 68 61 73 | 69 73 7d 5c 23 6c 69 6e |{fEmphas|is}\#lin|
|00006170| 65 7b 66 7d 2e 20 20 5c | 2a 4e 6f 74 65 20 3c 4f |e{f}. \|*Note <O|
|00006180| 75 74 70 75 74 3d 3e 4f | 75 74 70 75 74 3e 2e 0a |utput=>O|utput>..|
|00006190| 0a 00 00 00 44 41 54 41 | f6 06 00 00 43 6f 6d 6d |....DATA|....Comm|
|000061a0| 61 6e 64 73 0a 50 72 65 | 76 69 6f 75 73 3a 20 3c |ands.Pre|vious: <|
|000061b0| 47 6c 6f 62 61 6c 20 41 | 63 74 69 6f 6e 73 3d 3e |Global A|ctions=>|
|000061c0| 47 6c 6f 62 61 6c 41 63 | 74 69 3e 20 2a 20 4e 65 |GlobalAc|ti> * Ne|
|000061d0| 78 74 3a 20 3c 48 65 61 | 64 65 72 20 46 69 6c 65 |xt: <Hea|der File|
|000061e0| 73 3d 3e 48 65 61 64 65 | 72 46 69 6c 65 3e 20 2a |s=>Heade|rFile> *|
|000061f0| 20 55 70 3a 20 3c 54 6f | 70 3d 3e 21 52 6f 6f 74 | Up: <To|p=>!Root|
|00006200| 3e 0a 0a 23 57 72 61 70 | 20 6f 6e 0a 7b 66 48 33 |>..#Wrap| on.{fH3|
|00006210| 7d 50 72 65 70 72 6f 63 | 65 73 73 6f 72 20 43 6f |}Preproc|essor Co|
|00006220| 6d 6d 61 6e 64 73 7b 66 | 7d 0a 0a 4d 6f 73 74 20 |mmands{f|}..Most |
|00006230| 70 72 65 70 72 6f 63 65 | 73 73 6f 72 20 66 65 61 |preproce|ssor fea|
|00006240| 74 75 72 65 73 20 61 72 | 65 20 61 63 74 69 76 65 |tures ar|e active|
|00006250| 20 6f 6e 6c 79 20 69 66 | 20 79 6f 75 20 75 73 65 | only if| you use|
|00006260| 20 70 72 65 70 72 6f 63 | 65 73 73 6f 72 20 63 6f | preproc|essor co|
|00006270| 6d 6d 61 6e 64 73 0a 74 | 6f 20 72 65 71 75 65 73 |mmands.t|o reques|
|00006280| 74 20 74 68 65 69 72 20 | 75 73 65 2e 0a 0a 50 72 |t their |use...Pr|
|00006290| 65 70 72 6f 63 65 73 73 | 6f 72 20 63 6f 6d 6d 61 |eprocess|or comma|
|000062a0| 6e 64 73 20 61 72 65 20 | 6c 69 6e 65 73 20 69 6e |nds are |lines in|
|000062b0| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 74 68 | your pr|ogram th|
|000062c0| 61 74 20 73 74 61 72 74 | 20 77 69 74 68 20 7b 66 |at start| with {f|
|000062d0| 45 6d 70 68 61 73 69 73 | 7d 5c 23 7b 66 7d 2e 0a |Emphasis|}\#{f}..|
|000062e0| 54 68 65 20 7b 66 45 6d | 70 68 61 73 69 73 7d 5c |The {fEm|phasis}\|
|000062f0| 23 7b 66 7d 20 69 73 20 | 66 6f 6c 6c 6f 77 65 64 |#{f} is |followed|
|00006300| 20 62 79 20 61 6e 20 69 | 64 65 6e 74 69 66 69 65 | by an i|dentifie|
|00006310| 72 20 74 68 61 74 20 69 | 73 20 74 68 65 20 7b 66 |r that i|s the {f|
|00006320| 55 6e 64 65 72 6c 69 6e | 65 7d 63 6f 6d 6d 61 6e |Underlin|e}comman|
|00006330| 64 20 6e 61 6d 65 7b 66 | 7d 2e 0a 46 6f 72 20 65 |d name{f|}..For e|
|00006340| 78 61 6d 70 6c 65 2c 20 | 7b 66 45 6d 70 68 61 73 |xample, |{fEmphas|
|00006350| 69 73 7d 5c 23 64 65 66 | 69 6e 65 7b 66 7d 20 69 |is}\#def|ine{f} i|
|00006360| 73 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 74 68 |s the co|mmand th|
|00006370| 61 74 20 64 65 66 69 6e | 65 73 20 61 20 6d 61 63 |at defin|es a mac|
|00006380| 72 6f 2e 0a 57 68 69 74 | 65 73 70 61 63 65 20 69 |ro..Whit|espace i|
|00006390| 73 20 61 6c 73 6f 20 61 | 6c 6c 6f 77 65 64 20 62 |s also a|llowed b|
|000063a0| 65 66 6f 72 65 20 61 6e | 64 20 61 66 74 65 72 20 |efore an|d after |
|000063b0| 74 68 65 20 7b 66 45 6d | 70 68 61 73 69 73 7d 5c |the {fEm|phasis}\|
|000063c0| 23 7b 66 7d 2e 0a 0a 54 | 68 65 20 73 65 74 20 6f |#{f}...T|he set o|
|000063d0| 66 20 76 61 6c 69 64 20 | 63 6f 6d 6d 61 6e 64 20 |f valid |command |
|000063e0| 6e 61 6d 65 73 20 69 73 | 20 66 69 78 65 64 2e 20 |names is| fixed. |
|000063f0| 20 50 72 6f 67 72 61 6d | 73 20 63 61 6e 6e 6f 74 | Program|s cannot|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.