home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / n / nuweb / Source / src / latex_c < prev    next >
LaTeX Document  |  1997-03-13  |  12.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file C source text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 C/C++ Source Code default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 23 6c 69 6e 65 20 36 | 31 35 20 22 6e 75 77 65 |.#line 6|15 "nuwe|
|00000010| 62 2e 77 22 0a 23 69 6e | 63 6c 75 64 65 20 22 67 |b.w".#in|clude "g|
|00000020| 6c 6f 62 61 6c 2e 68 22 | 0a 0a 23 6c 69 6e 65 20 |lobal.h"|..#line |
|00000030| 31 31 32 39 20 22 6e 75 | 77 65 62 2e 77 22 0a 73 |1129 "nu|web.w".s|
|00000040| 74 61 74 69 63 20 76 6f | 69 64 20 63 6f 70 79 5f |tatic vo|id copy_|
|00000050| 73 63 72 61 70 28 46 49 | 4c 45 20 2a 66 69 6c 65 |scrap(FI|LE *file|
|00000060| 29 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |); | /|
|00000070| 2a 20 66 6f 72 6d 61 74 | 73 20 74 68 65 20 62 6f |* format|s the bo|
|00000080| 64 79 20 6f 66 20 61 20 | 73 63 72 61 70 20 2a 2f |dy of a |scrap */|
|00000090| 0a 73 74 61 74 69 63 20 | 69 6e 74 20 70 72 69 6e |.static |int prin|
|000000a0| 74 5f 73 63 72 61 70 5f | 6e 75 6d 62 65 72 73 28 |t_scrap_|numbers(|
|000000b0| 46 49 4c 45 20 2a 74 65 | 78 5f 66 69 6c 65 2c 20 |FILE *te|x_file, |
|000000c0| 53 63 72 61 70 5f 4e 6f | 64 65 20 2a 73 63 72 61 |Scrap_No|de *scra|
|000000d0| 70 73 29 3b 0a 20 20 20 | 20 20 2f 2a 20 66 6f 72 |ps);. | /* for|
|000000e0| 6d 61 74 73 20 61 20 6c | 69 73 74 20 6f 66 20 73 |mats a l|ist of s|
|000000f0| 63 72 61 70 20 6e 75 6d | 62 65 72 73 20 2a 2f 0a |crap num|bers */.|
|00000100| 73 74 61 74 69 63 20 76 | 6f 69 64 20 66 6f 72 6d |static v|oid form|
|00000110| 61 74 5f 65 6e 74 72 79 | 28 4e 61 6d 65 20 2a 6e |at_entry|(Name *n|
|00000120| 61 6d 65 2c 20 46 49 4c | 45 20 2a 74 65 78 5f 66 |ame, FIL|E *tex_f|
|00000130| 69 6c 65 2c 20 69 6e 74 | 20 66 69 6c 65 5f 66 6c |ile, int| file_fl|
|00000140| 61 67 29 3b 0a 20 20 20 | 20 20 2f 2a 20 66 6f 72 |ag);. | /* for|
|00000150| 6d 61 74 73 20 61 6e 20 | 69 6e 64 65 78 20 65 6e |mats an |index en|
|00000160| 74 72 79 20 2a 2f 0a 73 | 74 61 74 69 63 20 76 6f |try */.s|tatic vo|
|00000170| 69 64 20 66 6f 72 6d 61 | 74 5f 75 73 65 72 5f 65 |id forma|t_user_e|
|00000180| 6e 74 72 79 28 4e 61 6d | 65 20 2a 6e 61 6d 65 2c |ntry(Nam|e *name,|
|00000190| 20 46 49 4c 45 20 2a 74 | 65 78 5f 66 69 6c 65 29 | FILE *t|ex_file)|
|000001a0| 3b 0a 0a 23 6c 69 6e 65 | 20 31 31 34 32 20 22 6e |;..#line| 1142 "n|
|000001b0| 75 77 65 62 2e 77 22 0a | 76 6f 69 64 20 77 72 69 |uweb.w".|void wri|
|000001c0| 74 65 5f 74 65 78 28 63 | 68 61 72 20 2a 66 69 6c |te_tex(c|har *fil|
|000001d0| 65 5f 6e 61 6d 65 2c 20 | 63 68 61 72 20 2a 74 65 |e_name, |char *te|
|000001e0| 78 5f 6e 61 6d 65 29 0a | 7b 0a 20 20 46 49 4c 45 |x_name).|{. FILE|
|000001f0| 20 2a 74 65 78 5f 66 69 | 6c 65 20 3d 20 66 6f 70 | *tex_fi|le = fop|
|00000200| 65 6e 28 74 65 78 5f 6e | 61 6d 65 2c 20 22 77 22 |en(tex_n|ame, "w"|
|00000210| 29 3b 0a 20 20 69 66 20 | 28 74 65 78 5f 66 69 6c |);. if |(tex_fil|
|00000220| 65 29 20 7b 0a 20 20 20 | 20 69 66 20 28 76 65 72 |e) {. | if (ver|
|00000230| 62 6f 73 65 5f 66 6c 61 | 67 29 0a 20 20 20 20 20 |bose_fla|g). |
|00000240| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|00000250| 20 22 77 72 69 74 69 6e | 67 20 25 73 5c 6e 22 2c | "writin|g %s\n",|
|00000260| 20 74 65 78 5f 6e 61 6d | 65 29 3b 0a 20 20 20 20 | tex_nam|e);. |
|00000270| 73 6f 75 72 63 65 5f 6f | 70 65 6e 28 66 69 6c 65 |source_o|pen(file|
|00000280| 5f 6e 61 6d 65 29 3b 0a | 20 20 20 20 0a 23 6c 69 |_name);.| .#li|
|00000290| 6e 65 20 31 31 36 33 20 | 22 6e 75 77 65 62 2e 77 |ne 1163 |"nuweb.w|
|000002a0| 22 0a 20 20 20 20 7b 0a | 20 20 20 20 20 20 69 6e |". {.| in|
|000002b0| 74 20 73 63 72 61 70 73 | 20 3d 20 31 3b 0a 20 20 |t scraps| = 1;. |
|000002c0| 20 20 20 20 69 6e 74 20 | 63 20 3d 20 73 6f 75 72 | int |c = sour|
|000002d0| 63 65 5f 67 65 74 28 29 | 3b 0a 20 20 20 20 20 20 |ce_get()|;. |
|000002e0| 77 68 69 6c 65 20 28 63 | 20 21 3d 20 45 4f 46 29 |while (c| != EOF)|
|000002f0| 20 7b 0a 20 20 20 20 20 | 20 20 20 69 66 20 28 63 | {. | if (c|
|00000300| 20 3d 3d 20 27 40 27 29 | 0a 20 20 20 20 20 20 20 | == '@')|. |
|00000310| 20 20 20 0a 23 6c 69 6e | 65 20 31 31 37 39 20 22 | .#lin|e 1179 "|
|00000320| 6e 75 77 65 62 2e 77 22 | 0a 20 20 20 20 20 20 20 |nuweb.w"|. |
|00000330| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00000340| 20 69 6e 74 20 62 69 67 | 5f 64 65 66 69 6e 69 74 | int big|_definit|
|00000350| 69 6f 6e 20 3d 20 46 41 | 4c 53 45 3b 0a 20 20 20 |ion = FA|LSE;. |
|00000360| 20 20 20 20 20 20 20 20 | 20 63 20 3d 20 73 6f 75 | | c = sou|
|00000370| 72 63 65 5f 67 65 74 28 | 29 3b 0a 20 20 20 20 20 |rce_get(|);. |
|00000380| 20 20 20 20 20 20 20 73 | 77 69 74 63 68 20 28 63 | s|witch (c|
|00000390| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |) {. | |
|000003a0| 20 20 63 61 73 65 20 27 | 4f 27 3a 20 62 69 67 5f | case '|O': big_|
|000003b0| 64 65 66 69 6e 69 74 69 | 6f 6e 20 3d 20 54 52 55 |definiti|on = TRU|
|000003c0| 45 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |E;. | |
|000003d0| 20 63 61 73 65 20 27 6f | 27 3a 20 0a 23 6c 69 6e | case 'o|': .#lin|
|000003e0| 65 20 31 32 34 34 20 22 | 6e 75 77 65 62 2e 77 22 |e 1244 "|nuweb.w"|
|000003f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000400| 20 20 20 20 20 20 20 20 | 20 7b 0a 20 20 20 20 20 | | {. |
|00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000420| 20 20 20 20 20 4e 61 6d | 65 20 2a 6e 61 6d 65 20 | Nam|e *name |
|00000430| 3d 20 63 6f 6c 6c 65 63 | 74 5f 66 69 6c 65 5f 6e |= collec|t_file_n|
|00000440| 61 6d 65 28 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |ame();. | |
|00000450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000460| 20 69 66 20 28 21 6e 75 | 6d 62 65 72 5f 66 6c 61 | if (!nu|mber_fla|
|00000470| 67 29 20 66 70 72 69 6e | 74 66 28 74 65 78 5f 66 |g) fprin|tf(tex_f|
|00000480| 69 6c 65 2c 20 22 5c 5c | 6c 61 62 65 6c 7b 73 63 |ile, "\\|label{sc|
|00000490| 72 61 70 25 64 7d 5c 6e | 22 2c 20 73 63 72 61 70 |rap%d}\n|", scrap|
|000004a0| 73 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |s);. | |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|000004c0| 20 28 21 62 69 67 5f 64 | 65 66 69 6e 69 74 69 6f | (!big_d|efinitio|
|000004d0| 6e 29 20 66 70 75 74 73 | 28 22 5c 5c 62 65 67 69 |n) fputs|("\\begi|
|000004e0| 6e 7b 6e 75 77 65 62 66 | 69 6c 65 7d 22 2c 20 74 |n{nuwebf|ile}", t|
|000004f0| 65 78 5f 66 69 6c 65 29 | 3b 0a 20 20 20 20 20 20 |ex_file)|;. |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000510| 20 20 20 20 65 6c 73 65 | 20 66 70 75 74 73 28 22 | else| fputs("|
|00000520| 5c 5c 62 65 67 69 6e 7b | 6e 75 77 65 62 62 69 67 |\\begin{|nuwebbig|
|00000530| 66 69 6c 65 7d 22 2c 20 | 74 65 78 5f 66 69 6c 65 |file}", |tex_file|
|00000540| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 70 72 | | fpr|
|00000560| 69 6e 74 66 28 74 65 78 | 5f 66 69 6c 65 2c 20 22 |intf(tex|_file, "|
|00000570| 7b 25 73 7d 7b 22 2c 20 | 6e 61 6d 65 2d 3e 73 70 |{%s}{", |name->sp|
|00000580| 65 6c 6c 69 6e 67 29 3b | 0a 20 20 20 20 20 20 20 |elling);|. |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005a0| 20 20 20 77 72 69 74 65 | 5f 73 69 6e 67 6c 65 5f | write|_single_|
|000005b0| 73 63 72 61 70 5f 72 65 | 66 28 74 65 78 5f 66 69 |scrap_re|f(tex_fi|
|000005c0| 6c 65 2c 20 73 63 72 61 | 70 73 2b 2b 29 3b 0a 20 |le, scra|ps++);. |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 20 20 20 20 20 20 | 20 70 75 74 63 28 27 7d | | putc('}|
|000005f0| 27 2c 20 74 65 78 5f 66 | 69 6c 65 29 3b 0a 20 20 |', tex_f|ile);. |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000610| 20 20 20 20 20 20 20 20 | 0a 23 6c 69 6e 65 20 31 | |.#line 1|
|00000620| 32 38 39 20 22 6e 75 77 | 65 62 2e 77 22 0a 20 20 |289 "nuw|eb.w". |
|00000630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000640| 20 20 20 20 20 20 20 20 | 69 66 20 28 6e 61 6d 65 | |if (name|
|00000650| 2d 3e 64 65 66 73 2d 3e | 6e 65 78 74 29 20 7b 0a |->defs->|next) {.|
|00000660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000670| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 6e 74 20 | | int |
|00000680| 6e 6f 73 20 3d 20 70 72 | 69 6e 74 5f 73 63 72 61 |nos = pr|int_scra|
|00000690| 70 5f 6e 75 6d 62 65 72 | 73 28 74 65 78 5f 66 69 |p_number|s(tex_fi|
|000006a0| 6c 65 2c 20 6e 61 6d 65 | 2d 3e 64 65 66 73 29 3b |le, name|->defs);|
|000006b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 70 72 | | fpr|
|000006d0| 69 6e 74 66 28 74 65 78 | 5f 66 69 6c 65 2c 20 22 |intf(tex|_file, "|
|000006e0| 7b 25 64 7d 22 2c 20 6e | 6f 73 29 3b 0a 20 20 20 |{%d}", n|os);. |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000720| 20 20 20 65 6c 73 65 20 | 66 70 75 74 73 28 22 7b | else |fputs("{|
|00000730| 7d 7b 30 7d 22 2c 20 74 | 65 78 5f 66 69 6c 65 29 |}{0}", t|ex_file)|
|00000740| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000750| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 23 6c 69 | | .#li|
|00000760| 6e 65 20 31 32 35 32 20 | 22 6e 75 77 65 62 2e 77 |ne 1252 |"nuweb.w|
|00000770| 22 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 | | . |
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007a0| 20 20 20 20 20 66 70 75 | 74 73 28 22 7b 7d 7b 30 | fpu|ts("{}{0|
|000007b0| 7d 22 2c 20 74 65 78 5f | 66 69 6c 65 29 3b 0a 20 |}", tex_|file);. |
|000007c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007d0| 20 20 20 20 20 20 20 20 | 20 70 75 74 63 28 27 5c | | putc('\|
|000007e0| 6e 27 2c 20 74 65 78 5f | 66 69 6c 65 29 3b 0a 20 |n', tex_|file);. |
|000007f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000800| 20 20 20 20 20 20 20 20 | 20 63 6f 70 79 5f 73 63 | | copy_sc|
|00000810| 72 61 70 28 74 65 78 5f | 66 69 6c 65 29 3b 0a 20 |rap(tex_|file);. |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 21 62 69 | | if (!bi|
|00000840| 67 5f 64 65 66 69 6e 69 | 74 69 6f 6e 29 20 66 70 |g_defini|tion) fp|
|00000850| 75 74 73 28 22 5c 5c 65 | 6e 64 7b 6e 75 77 65 62 |uts("\\e|nd{nuweb|
|00000860| 66 69 6c 65 7d 5c 6e 22 | 2c 20 74 65 78 5f 66 69 |file}\n"|, tex_fi|
|00000870| 6c 65 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |le);. | |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|00000890| 6c 73 65 20 66 70 75 74 | 73 28 22 5c 5c 65 6e 64 |lse fput|s("\\end|
|000008a0| 7b 6e 75 77 65 62 62 69 | 67 66 69 6c 65 7d 5c 6e |{nuwebbi|gfile}\n|
|000008b0| 22 2c 20 74 65 78 5f 66 | 69 6c 65 29 3b 0a 20 20 |", tex_f|ile);. |
|000008c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008d0| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 20 20 | }.| |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008f0| 0a 23 6c 69 6e 65 20 31 | 31 38 34 20 22 6e 75 77 |.#line 1|184 "nuw|
|00000900| 65 62 2e 77 22 0a 20 20 | 20 20 20 20 20 20 20 20 |eb.w". | |
|00000910| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000920| 20 20 20 20 20 20 20 20 | 20 63 20 3d 20 73 6f 75 | | c = sou|
|00000930| 72 63 65 5f 67 65 74 28 | 29 3b 0a 20 20 20 20 20 |rce_get(|);. |
|00000940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000950| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|00000960| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 27 44 27 | |case 'D'|
|00000970| 3a 20 62 69 67 5f 64 65 | 66 69 6e 69 74 69 6f 6e |: big_de|finition|
|00000980| 20 3d 20 54 52 55 45 3b | 0a 20 20 20 20 20 20 20 | = TRUE;|. |
|00000990| 20 20 20 20 20 20 20 63 | 61 73 65 20 27 64 27 3a | c|ase 'd':|
|000009a0| 20 0a 23 6c 69 6e 65 20 | 31 32 36 37 20 22 6e 75 | .#line |1267 "nu|
|000009b0| 77 65 62 2e 77 22 0a 20 | 20 20 20 20 20 20 20 20 |web.w". | |
|000009c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|000009d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000009e0| 20 20 20 20 20 20 20 20 | 20 20 20 4e 61 6d 65 20 | | Name |
|000009f0| 2a 6e 61 6d 65 20 3d 20 | 63 6f 6c 6c 65 63 74 5f |*name = |collect_|
|00000a00| 6d 61 63 72 6f 5f 6e 61 | 6d 65 28 29 3b 0a 20 20 |macro_na|me();. |
|00000a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a20| 20 20 20 20 20 20 20 20 | 69 66 20 28 21 6e 75 6d | |if (!num|
|00000a30| 62 65 72 5f 66 6c 61 67 | 29 20 66 70 72 69 6e 74 |ber_flag|) fprint|
|00000a40| 66 28 74 65 78 5f 66 69 | 6c 65 2c 20 22 20 5c 5c |f(tex_fi|le, " \\|
|00000a50| 6c 61 62 65 6c 7b 73 63 | 72 61 70 25 64 7d 5c 6e |label{sc|rap%d}\n|
|00000a60| 22 2c 20 73 63 72 61 70 | 73 29 3b 0a 20 20 20 20 |", scrap|s);. |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a80| 20 20 20 20 20 20 69 66 | 20 28 21 62 69 67 5f 64 | if| (!big_d|
|00000a90| 65 66 69 6e 69 74 69 6f | 6e 29 20 66 70 75 74 73 |efinitio|n) fputs|
|00000aa0| 28 22 5c 5c 62 65 67 69 | 6e 7b 6e 75 77 65 62 6d |("\\begi|n{nuwebm|
|00000ab0| 61 63 72 6f 7d 22 2c 20 | 74 65 78 5f 66 69 6c 65 |acro}", |tex_file|
|00000ac0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 | | els|
|00000ae0| 65 20 66 70 75 74 73 28 | 22 5c 5c 62 65 67 69 6e |e fputs(|"\\begin|
|00000af0| 7b 6e 75 77 65 62 62 69 | 67 6d 61 63 72 6f 7d 22 |{nuwebbi|gmacro}"|
|00000b00| 2c 20 74 65 78 5f 66 69 | 6c 65 29 3b 0a 20 20 20 |, tex_fi|le);. |
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b20| 20 20 20 20 20 20 20 66 | 70 72 69 6e 74 66 28 74 | f|printf(t|
|00000b30| 65 78 5f 66 69 6c 65 2c | 20 22 7b 25 73 7d 7b 22 |ex_file,| "{%s}{"|
|00000b40| 2c 20 6e 61 6d 65 2d 3e | 73 70 65 6c 6c 69 6e 67 |, name->|spelling|
|00000b50| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00000b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 77 72 69 | | wri|
|00000b70| 74 65 5f 73 69 6e 67 6c | 65 5f 73 63 72 61 70 5f |te_singl|e_scrap_|
|00000b80| 72 65 66 28 74 65 78 5f | 66 69 6c 65 2c 20 73 63 |ref(tex_|file, sc|
|00000b90| 72 61 70 73 2b 2b 29 3b | 0a 20 20 20 20 20 20 20 |raps++);|. |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bb0| 20 20 20 70 75 74 63 28 | 27 7d 27 2c 20 74 65 78 | putc(|'}', tex|
|00000bc0| 5f 66 69 6c 65 29 3b 0a | 20 20 20 20 20 20 20 20 |_file);.| |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000be0| 20 20 0a 23 6c 69 6e 65 | 20 31 32 38 39 20 22 6e | .#line| 1289 "n|
|00000bf0| 75 77 65 62 2e 77 22 0a | 20 20 20 20 20 20 20 20 |uweb.w".| |
|00000c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c10| 20 20 69 66 20 28 6e 61 | 6d 65 2d 3e 64 65 66 73 | if (na|me->defs|
|00000c20| 2d 3e 6e 65 78 74 29 20 | 7b 0a 20 20 20 20 20 20 |->next) |{. |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c40| 20 20 20 20 20 20 69 6e | 74 20 6e 6f 73 20 3d 20 | in|t nos = |
|00000c50| 70 72 69 6e 74 5f 73 63 | 72 61 70 5f 6e 75 6d 62 |print_sc|rap_numb|
|00000c60| 65 72 73 28 74 65 78 5f | 66 69 6c 65 2c 20 6e 61 |ers(tex_|file, na|
|00000c70| 6d 65 2d 3e 64 65 66 73 | 29 3b 0a 20 20 20 20 20 |me->defs|);. |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c90| 20 20 20 20 20 20 20 66 | 70 72 69 6e 74 66 28 74 | f|printf(t|
|00000ca0| 65 78 5f 66 69 6c 65 2c | 20 22 7b 25 64 7d 22 2c |ex_file,| "{%d}",|
|00000cb0| 20 6e 6f 73 29 3b 0a 20 | 20 20 20 20 20 20 20 20 | nos);. | |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cd0| 20 7d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00000ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 | | els|
|00000cf0| 65 20 66 70 75 74 73 28 | 22 7b 7d 7b 30 7d 22 2c |e fputs(|"{}{0}",|
|00000d00| 20 74 65 78 5f 66 69 6c | 65 29 3b 0a 20 20 20 20 | tex_fil|e);. |
|00000d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d20| 20 20 20 20 20 20 0a 23 | 6c 69 6e 65 20 31 32 37 | .#|line 127|
|00000d30| 35 20 22 6e 75 77 65 62 | 2e 77 22 0a 20 20 20 20 |5 "nuweb|.w". |
|00000d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d50| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00000d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00000d70| 23 6c 69 6e 65 20 31 32 | 39 38 20 22 6e 75 77 65 |#line 12|98 "nuwe|
|00000d80| 62 2e 77 22 0a 20 20 20 | 20 20 20 20 20 20 20 20 |b.w". | |
|00000d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00000da0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00000dc0| 28 6e 61 6d 65 2d 3e 75 | 73 65 73 29 20 7b 0a 20 |(name->u|ses) {. |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00000df0| 28 6e 61 6d 65 2d 3e 75 | 73 65 73 2d 3e 6e 65 78 |(name->u|ses->nex|
|00000e00| 74 29 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |t) {. | |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e20| 20 20 20 20 20 69 6e 74 | 20 6e 6f 73 20 3d 20 70 | int| nos = p|
|00000e30| 72 69 6e 74 5f 73 63 72 | 61 70 5f 6e 75 6d 62 65 |rint_scr|ap_numbe|
|00000e40| 72 73 28 74 65 78 5f 66 | 69 6c 65 2c 20 6e 61 6d |rs(tex_f|ile, nam|
|00000e50| 65 2d 3e 75 73 65 73 29 | 3b 0a 20 20 20 20 20 20 |e->uses)|;. |
|00000e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 66 70 72 69 6e 74 | | fprint|
|00000e80| 66 28 74 65 78 5f 66 69 | 6c 65 2c 20 22 7b 25 64 |f(tex_fi|le, "{%d|
|00000e90| 7d 22 2c 20 6e 6f 73 29 | 3b 0a 20 20 20 20 20 20 |}", nos)|;. |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000eb0| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|00000ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ed0| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 7b 0a 20 | |else {. |
|00000ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|00000f00| 75 74 63 28 27 7b 27 2c | 20 74 65 78 5f 66 69 6c |utc('{',| tex_fil|
|00000f10| 65 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e);. | |
|00000f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f30| 20 20 20 20 77 72 69 74 | 65 5f 73 69 6e 67 6c 65 | writ|e_single|
|00000f40| 5f 73 63 72 61 70 5f 72 | 65 66 28 74 65 78 5f 66 |_scrap_r|ef(tex_f|
|00000f50| 69 6c 65 2c 20 6e 61 6d | 65 2d 3e 75 73 65 73 2d |ile, nam|e->uses-|
|00000f60| 3e 73 63 72 61 70 29 3b | 0a 20 20 20 20 20 20 20 |>scrap);|. |
|00000f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f80| 20 20 20 20 20 20 20 20 | 20 66 70 75 74 73 28 22 | | fputs("|
|00000f90| 7d 7b 31 7d 22 2c 20 74 | 65 78 5f 66 69 6c 65 29 |}{1}", t|ex_file)|
|00000fa0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fc0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}. | |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a | | }.|
|00000fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 65 6c 73 65 | | else|
|00001000| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001020| 20 66 70 75 74 73 28 22 | 7b 7d 7b 30 7d 22 2c 20 | fputs("|{}{0}", |
|00001030| 74 65 78 5f 66 69 6c 65 | 29 3b 0a 20 20 20 20 20 |tex_file|);. |
|00001040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001050| 20 20 20 20 20 20 20 20 | 20 66 70 72 69 6e 74 66 | | fprintf|
|00001060| 28 73 74 64 65 72 72 2c | 20 22 25 73 3a 20 3c 25 |(stderr,| "%s: <%|
|00001070| 73 3e 20 6e 65 76 65 72 | 20 72 65 66 65 72 65 6e |s> never| referen|
|00001080| 63 65 64 2e 5c 6e 22 2c | 0a 20 20 20 20 20 20 20 |ced.\n",|. |
|00001090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|000010b0| 6f 6d 6d 61 6e 64 5f 6e | 61 6d 65 2c 20 6e 61 6d |ommand_n|ame, nam|
|000010c0| 65 2d 3e 73 70 65 6c 6c | 69 6e 67 29 3b 0a 20 20 |e->spell|ing);. |
|000010d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010e0| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. |
|000010f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001100| 20 20 20 20 20 20 7d 0a | 20 20 20 20 20 20 20 20 | }.| |
|00001110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001120| 20 20 0a 23 6c 69 6e 65 | 20 31 32 37 36 20 22 6e | .#line| 1276 "n|
|00001130| 75 77 65 62 2e 77 22 0a | 20 20 20 20 20 20 20 20 |uweb.w".| |
|00001140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001150| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001160| 20 20 20 20 20 20 20 20 | 20 20 20 70 75 74 63 28 | | putc(|
|00001170| 27 5c 6e 27 2c 20 74 65 | 78 5f 66 69 6c 65 29 3b |'\n', te|x_file);|
|00001180| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 63 6f 70 79 5f | | copy_|
|000011a0| 73 63 72 61 70 28 74 65 | 78 5f 66 69 6c 65 29 3b |scrap(te|x_file);|
|000011b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 21 | | if (!|
|000011d0| 62 69 67 5f 64 65 66 69 | 6e 69 74 69 6f 6e 29 20 |big_defi|nition) |
|000011e0| 66 70 75 74 73 28 22 5c | 5c 65 6e 64 7b 6e 75 77 |fputs("\|\end{nuw|
|000011f0| 65 62 6d 61 63 72 6f 7d | 5c 6e 22 2c 20 74 65 78 |ebmacro}|\n", tex|
|00001200| 5f 66 69 6c 65 29 3b 0a | 20 20 20 20 20 20 20 20 |_file);.| |
|00001210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001220| 20 20 65 6c 73 65 20 66 | 70 75 74 73 28 22 5c 5c | else f|puts("\\|
|00001230| 65 6e 64 7b 6e 75 77 65 | 62 62 69 67 6d 61 63 72 |end{nuwe|bbigmacr|
|00001240| 6f 7d 5c 6e 22 2c 20 74 | 65 78 5f 66 69 6c 65 29 |o}\n", t|ex_file)|
|00001250| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00001260| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. |
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001280| 20 20 20 20 0a 23 6c 69 | 6e 65 20 31 31 38 38 20 | .#li|ne 1188 |
|00001290| 22 6e 75 77 65 62 2e 77 | 22 0a 20 20 20 20 20 20 |"nuweb.w|". |
|000012a0| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|000012b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 20 3d | | c =|
|000012c0| 20 73 6f 75 72 63 65 5f | 67 65 74 28 29 3b 0a 20 | source_|get();. |
|000012d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012e0| 20 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0a 20 20 | b|reak;. |
|000012f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 61 73 65 | | case|
|00001300| 20 27 66 27 3a 20 0a 23 | 6c 69 6e 65 20 31 34 35 | 'f': .#|line 145|
|00001310| 36 20 22 6e 75 77 65 62 | 2e 77 22 0a 20 20 20 20 |6 "nuweb|.w". |
|00001320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001330| 20 20 20 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00001340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001350| 69 66 20 28 66 69 6c 65 | 5f 6e 61 6d 65 73 29 0a |if (file|_names).|
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001370| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 6f 72 6d | | form|
|00001380| 61 74 5f 65 6e 74 72 79 | 28 66 69 6c 65 5f 6e 61 |at_entry|(file_na|
|00001390| 6d 65 73 2c 20 74 65 78 | 5f 66 69 6c 65 2c 20 54 |mes, tex|_file, T|
|000013a0| 52 55 45 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |RUE);. | |
|000013b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013c0| 63 20 3d 20 73 6f 75 72 | 63 65 5f 67 65 74 28 29 |c = sour|ce_get()|
|000013d0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. |
|000013f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001400| 20 20 20 20 0a 23 6c 69 | 6e 65 20 31 31 39 31 20 | .#li|ne 1191 |
|00001410| 22 6e 75 77 65 62 2e 77 | 22 0a 20 20 20 20 20 20 |"nuweb.w|". |
|00001420| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00001430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 | | bre|
|00001440| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ak;. | |
|00001450| 20 20 63 61 73 65 20 27 | 6d 27 3a 20 0a 23 6c 69 | case '|m': .#li|
|00001460| 6e 65 20 31 34 36 36 20 | 22 6e 75 77 65 62 2e 77 |ne 1466 |"nuweb.w|
|00001470| 22 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |". | |
|00001480| 20 20 20 20 20 20 20 20 | 20 20 7b 0a 20 20 20 20 | | {. |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014a0| 20 20 20 20 20 20 69 66 | 20 28 6d 61 63 72 6f 5f | if| (macro_|
|000014b0| 6e 61 6d 65 73 29 0a 20 | 20 20 20 20 20 20 20 20 |names). | |
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014d0| 20 20 20 66 6f 72 6d 61 | 74 5f 65 6e 74 72 79 28 | forma|t_entry(|
|000014e0| 6d 61 63 72 6f 5f 6e 61 | 6d 65 73 2c 20 74 65 78 |macro_na|mes, tex|
|000014f0| 5f 66 69 6c 65 2c 20 46 | 41 4c 53 45 29 3b 0a 20 |_file, F|ALSE);. |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001510| 20 20 20 20 20 20 20 20 | 20 63 20 3d 20 73 6f 75 | | c = sou|
|00001520| 72 63 65 5f 67 65 74 28 | 29 3b 0a 20 20 20 20 20 |rce_get(|);. |
|00001530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001540| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00001550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 23 6c | | .#l|
|00001560| 69 6e 65 20 31 31 39 33 | 20 22 6e 75 77 65 62 2e |ine 1193| "nuweb.|
|00001570| 77 22 0a 20 20 20 20 20 | 20 20 20 20 20 0a 20 20 |w". | . |
|00001580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001590| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0a 20 20 20 | br|eak;. |
|000015a0| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|000015b0| 27 75 27 3a 20 0a 23 6c | 69 6e 65 20 31 35 35 33 |'u': .#l|ine 1553|
|000015c0| 20 22 6e 75 77 65 62 2e | 77 22 0a 20 20 20 20 20 | "nuweb.|w". |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015e0| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|000015f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00001600| 66 20 28 75 73 65 72 5f | 6e 61 6d 65 73 29 0a 20 |f (user_|names). |
|00001610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 66 6f 72 6d 61 | | forma|
|00001630| 74 5f 75 73 65 72 5f 65 | 6e 74 72 79 28 75 73 65 |t_user_e|ntry(use|
|00001640| 72 5f 6e 61 6d 65 73 2c | 20 74 65 78 5f 66 69 6c |r_names,| tex_fil|
|00001650| 65 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e);. | |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 20 | | c |
|00001670| 3d 20 73 6f 75 72 63 65 | 5f 67 65 74 28 29 3b 0a |= source|_get();.|
|00001680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001690| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|000016a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016b0| 20 20 0a 23 6c 69 6e 65 | 20 31 31 39 35 20 22 6e | .#line| 1195 "n|
|000016c0| 75 77 65 62 2e 77 22 0a | 20 20 20 20 20 20 20 20 |uweb.w".| |
|000016d0| 20 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|000016e0| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|000016f0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00001700| 63 61 73 65 20 27 40 27 | 3a 20 70 75 74 63 28 63 |case '@'|: putc(c|
|00001710| 2c 20 74 65 78 5f 66 69 | 6c 65 29 3b 0a 20 20 20 |, tex_fi|le);. |
|00001720| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 66 61 75 | | defau|
|00001730| 6c 74 3a 20 20 63 20 3d | 20 73 6f 75 72 63 65 5f |lt: c =| source_|
|00001740| 67 65 74 28 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |get();. | |
|00001750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00001760| 72 65 61 6b 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |reak;. | |
|00001770| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 20 20 7d 0a | }. | }.|
|00001780| 20 20 20 20 20 20 20 20 | 20 20 0a 23 6c 69 6e 65 | | .#line|
|00001790| 20 31 31 36 38 20 22 6e | 75 77 65 62 2e 77 22 0a | 1168 "n|uweb.w".|
|000017a0| 20 20 20 20 0a 20 20 20 | 20 20 20 20 20 65 6c 73 | . | els|
|000017b0| 65 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 70 75 |e {. | pu|
|000017c0| 74 63 28 63 2c 20 74 65 | 78 5f 66 69 6c 65 29 3b |tc(c, te|x_file);|
|000017d0| 0a 20 20 20 20 20 20 20 | 20 20 20 63 20 3d 20 73 |. | c = s|
|000017e0| 6f 75 72 63 65 5f 67 65 | 74 28 29 3b 0a 20 20 20 |ource_ge|t();. |
|000017f0| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 20 7d 0a 20 | }. | }. |
|00001800| 20 20 20 7d 0a 20 20 20 | 20 0a 23 6c 69 6e 65 20 | }. | .#line |
|00001810| 31 31 34 39 20 22 6e 75 | 77 65 62 2e 77 22 0a 0a |1149 "nu|web.w"..|
|00001820| 20 20 20 20 66 63 6c 6f | 73 65 28 74 65 78 5f 66 | fclo|se(tex_f|
|00001830| 69 6c 65 29 3b 0a 20 20 | 7d 0a 20 20 65 6c 73 65 |ile);. |}. else|
|00001840| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 73 74 64 |. fpr|intf(std|
|00001850| 65 72 72 2c 20 22 25 73 | 3a 20 63 61 6e 27 74 20 |err, "%s|: can't |
|00001860| 6f 70 65 6e 20 25 73 5c | 6e 22 2c 20 63 6f 6d 6d |open %s\|n", comm|
|00001870| 61 6e 64 5f 6e 61 6d 65 | 2c 20 74 65 78 5f 6e 61 |and_name|, tex_na|
|00001880| 6d 65 29 3b 0a 7d 0a 0a | 23 6c 69 6e 65 20 31 33 |me);.}..|#line 13|
|00001890| 32 34 20 22 6e 75 77 65 | 62 2e 77 22 0a 73 74 61 |24 "nuwe|b.w".sta|
|000018a0| 74 69 63 20 69 6e 74 20 | 70 72 69 6e 74 5f 73 63 |tic int |print_sc|
|000018b0| 72 61 70 5f 6e 75 6d 62 | 65 72 73 28 46 49 4c 45 |rap_numb|ers(FILE|
|000018c0| 20 2a 74 65 78 5f 66 69 | 6c 65 2c 20 53 63 72 61 | *tex_fi|le, Scra|
|000018d0| 70 5f 4e 6f 64 65 20 2a | 73 63 72 61 70 73 29 0a |p_Node *|scraps).|
|000018e0| 7b 0a 20 20 69 6e 74 20 | 70 61 67 65 2c 20 6e 6f |{. int |page, no|
|000018f0| 73 20 3d 20 30 3b 0a 20 | 20 70 75 74 63 28 27 7b |s = 0;. | putc('{|
|00001900| 27 2c 20 74 65 78 5f 66 | 69 6c 65 29 3b 0a 20 20 |', tex_f|ile);. |
|00001910| 77 72 69 74 65 5f 73 63 | 72 61 70 5f 72 65 66 28 |write_sc|rap_ref(|
|00001920| 74 65 78 5f 66 69 6c 65 | 2c 20 73 63 72 61 70 73 |tex_file|, scraps|
|00001930| 2d 3e 73 63 72 61 70 2c | 20 54 52 55 45 2c 20 26 |->scrap,| TRUE, &|
|00001940| 70 61 67 65 29 3b 0a 20 | 20 73 63 72 61 70 73 20 |page);. | scraps |
|00001950| 3d 20 73 63 72 61 70 73 | 2d 3e 6e 65 78 74 3b 0a |= scraps|->next;.|
|00001960| 20 20 6e 6f 73 2b 2b 3b | 0a 20 20 77 68 69 6c 65 | nos++;|. while|
|00001970| 20 28 73 63 72 61 70 73 | 29 20 7b 0a 20 20 20 20 | (scraps|) {. |
|00001980| 77 72 69 74 65 5f 73 63 | 72 61 70 5f 72 65 66 28 |write_sc|rap_ref(|
|00001990| 74 65 78 5f 66 69 6c 65 | 2c 20 73 63 72 61 70 73 |tex_file|, scraps|
|000019a0| 2d 3e 73 63 72 61 70 2c | 20 46 41 4c 53 45 2c 20 |->scrap,| FALSE, |
|000019b0| 26 70 61 67 65 29 3b 0a | 20 20 20 20 73 63 72 61 |&page);.| scra|
|000019c0| 70 73 20 3d 20 73 63 72 | 61 70 73 2d 3e 6e 65 78 |ps = scr|aps->nex|
|000019d0| 74 3b 0a 20 20 20 20 6e | 6f 73 2b 2b 3b 0a 20 20 |t;. n|os++;. |
|000019e0| 7d 0a 20 20 70 75 74 63 | 28 27 7d 27 2c 20 74 65 |}. putc|('}', te|
|000019f0| 78 5f 66 69 6c 65 29 3b | 0a 20 20 72 65 74 75 72 |x_file);|. retur|
|00001a00| 6e 20 6e 6f 73 3b 0a 7d | 0a 0a 23 6c 69 6e 65 20 |n nos;.}|..#line |
|00001a10| 31 33 34 36 20 22 6e 75 | 77 65 62 2e 77 22 0a 73 |1346 "nu|web.w".s|
|00001a20| 74 61 74 69 63 20 76 6f | 69 64 20 63 6f 70 79 5f |tatic vo|id copy_|
|00001a30| 73 63 72 61 70 28 46 49 | 4c 45 20 2a 66 69 6c 65 |scrap(FI|LE *file|
|00001a40| 29 0a 7b 0a 20 20 69 6e | 74 20 69 6e 64 65 6e 74 |).{. in|t indent|
|00001a50| 20 3d 20 30 3b 0a 20 20 | 69 6e 74 20 63 20 3d 20 | = 0;. |int c = |
|00001a60| 73 6f 75 72 63 65 5f 67 | 65 74 28 29 3b 0a 20 20 |source_g|et();. |
|00001a70| 77 68 69 6c 65 20 28 31 | 29 20 7b 0a 20 20 20 20 |while (1|) {. |
|00001a80| 73 77 69 74 63 68 20 28 | 63 29 20 7b 0a 20 20 20 |switch (|c) {. |
|00001a90| 20 20 20 63 61 73 65 20 | 27 40 27 3a 20 20 0a 23 | case |'@': .#|
|00001aa0| 6c 69 6e 65 20 31 33 39 | 34 20 22 6e 75 77 65 62 |line 139|4 "nuweb|
|00001ab0| 2e 77 22 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.w". | |
|00001ac0| 20 20 20 20 20 7b 0a 20 | 20 20 20 20 20 20 20 20 | {. | |
|00001ad0| 20 20 20 20 20 20 20 20 | 20 20 63 20 3d 20 73 6f | | c = so|
|00001ae0| 75 72 63 65 5f 67 65 74 | 28 29 3b 0a 20 20 20 20 |urce_get|();. |
|00001af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|00001b00| 77 69 74 63 68 20 28 63 | 29 20 7b 0a 20 20 20 20 |witch (c|) {. |
|00001b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b20| 20 63 61 73 65 20 27 40 | 27 3a 20 70 75 74 63 28 | case '@|': putc(|
|00001b30| 27 40 27 2c 20 66 69 6c | 65 29 3b 0a 20 20 20 20 |'@', fil|e);. |
|00001b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b50| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|00001b60| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00001b70| 20 20 20 20 20 20 20 63 | 61 73 65 20 27 7c 27 3a | c|ase '|':|
|00001b80| 20 0a 23 6c 69 6e 65 20 | 31 34 31 32 20 22 6e 75 | .#line |1412 "nu|
|00001b90| 77 65 62 2e 77 22 0a 20 | 20 20 20 20 20 20 20 20 |web.w". | |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bb0| 20 20 20 20 20 20 7b 0a | 20 20 20 20 20 20 20 20 | {.| |
|00001bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bd0| 20 20 20 20 20 20 20 20 | 20 64 6f 20 7b 0a 20 20 | | do {. |
|00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c00| 20 64 6f 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | do. | |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c20| 20 20 20 20 20 20 20 20 | 20 63 20 3d 20 73 6f 75 | | c = sou|
|00001c30| 72 63 65 5f 67 65 74 28 | 29 3b 0a 20 20 20 20 20 |rce_get(|);. |
|00001c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 77 68 | | wh|
|00001c60| 69 6c 65 20 28 63 20 21 | 3d 20 27 40 27 29 3b 0a |ile (c !|= '@');.|
|00001c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c90| 20 20 20 63 20 3d 20 73 | 6f 75 72 63 65 5f 67 65 | c = s|ource_ge|
|00001ca0| 74 28 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |t();. | |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cc0| 20 20 20 20 20 20 7d 20 | 77 68 69 6c 65 20 28 63 | } |while (c|
|00001cd0| 20 21 3d 20 27 7d 27 29 | 3b 0a 20 20 20 20 20 20 | != '}')|;. |
|00001ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cf0| 20 20 20 20 20 20 20 20 | 20 7d 0a 20 20 20 20 20 | | }. |
|00001d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d10| 20 20 20 20 20 20 20 20 | 20 20 0a 23 6c 69 6e 65 | | .#line|
|00001d20| 20 31 33 39 39 20 22 6e | 75 77 65 62 2e 77 22 0a | 1399 "n|uweb.w".|
|00001d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d40| 20 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00001d50| 20 20 20 20 20 20 20 63 | 61 73 65 20 27 7d 27 3a | c|ase '}':|
|00001d60| 20 72 65 74 75 72 6e 3b | 0a 20 20 20 20 20 20 20 | return;|. |
|00001d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 | | ca|
|00001d80| 73 65 20 27 3c 27 3a 20 | 0a 23 6c 69 6e 65 20 31 |se '<': |.#line 1|
|00001d90| 34 32 35 20 22 6e 75 77 | 65 62 2e 77 22 0a 20 20 |425 "nuw|eb.w". |
|00001da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0a 20 | | {. |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001de0| 4e 61 6d 65 20 2a 6e 61 | 6d 65 20 3d 20 63 6f 6c |Name *na|me = col|
|00001df0| 6c 65 63 74 5f 73 63 72 | 61 70 5f 6e 61 6d 65 28 |lect_scr|ap_name(|
|00001e00| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00001e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e20| 20 20 20 20 66 70 72 69 | 6e 74 66 28 66 69 6c 65 | fpri|ntf(file|
|00001e30| 2c 20 22 5c 5c 6e 75 77 | 65 62 6d 61 63 72 6f 6e |, "\\nuw|ebmacron|
|00001e40| 61 6d 65 7b 25 73 7d 7b | 22 2c 20 6e 61 6d 65 2d |ame{%s}{|", name-|
|00001e50| 3e 73 70 65 6c 6c 69 6e | 67 29 3b 0a 20 20 20 20 |>spellin|g);. |
|00001e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00001e80| 28 6e 61 6d 65 2d 3e 64 | 65 66 73 29 0a 20 20 20 |(name->d|efs). |
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001eb0| 0a 23 6c 69 6e 65 20 31 | 34 34 32 20 22 6e 75 77 |.#line 1|442 "nuw|
|00001ec0| 65 62 2e 77 22 0a 20 20 | 20 20 20 20 20 20 20 20 |eb.w". | |
|00001ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 7b 0a 20 20 20 20 20 | | {. |
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f10| 53 63 72 61 70 5f 4e 6f | 64 65 20 2a 70 20 3d 20 |Scrap_No|de *p = |
|00001f20| 6e 61 6d 65 2d 3e 64 65 | 66 73 3b 0a 20 20 20 20 |name->de|fs;. |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f50| 20 77 72 69 74 65 5f 73 | 69 6e 67 6c 65 5f 73 63 | write_s|ingle_sc|
|00001f60| 72 61 70 5f 72 65 66 28 | 66 69 6c 65 2c 20 70 2d |rap_ref(|file, p-|
|00001f70| 3e 73 63 72 61 70 29 3b | 0a 20 20 20 20 20 20 20 |>scrap);|. |
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 20 | | p |
|00001fa0| 3d 20 70 2d 3e 6e 65 78 | 74 3b 0a 20 20 20 20 20 |= p->nex|t;. |
|00001fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001fd0| 69 66 20 28 70 29 0a 20 | 20 20 20 20 20 20 20 20 |if (p). | |
|00001fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 70 | | fp|
|00002000| 75 74 73 28 22 2c 5c 5c | 64 6f 74 73 22 2c 20 66 |uts(",\\|dots", f|
|00002010| 69 6c 65 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ile);. | |
|00002020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002030| 20 20 20 20 20 20 20 20 | 20 7d 0a 20 20 20 20 20 | | }. |
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 23 | | .#|
|00002060| 6c 69 6e 65 20 31 34 32 | 39 20 22 6e 75 77 65 62 |line 142|9 "nuweb|
|00002070| 2e 77 22 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.w". | |
|00002080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002090| 20 20 20 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|000020a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020b0| 20 20 20 20 20 65 6c 73 | 65 20 7b 0a 20 20 20 20 | els|e {. |
|000020c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000020e0| 75 74 63 28 27 3f 27 2c | 20 66 69 6c 65 29 3b 0a |utc('?',| file);.|
|000020f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002110| 20 20 20 66 70 72 69 6e | 74 66 28 73 74 64 65 72 | fprin|tf(stder|
|00002120| 72 2c 20 22 25 73 3a 20 | 73 63 72 61 70 20 6e 65 |r, "%s: |scrap ne|
|00002130| 76 65 72 20 64 65 66 69 | 6e 65 64 20 3c 25 73 3e |ver defi|ned <%s>|
|00002140| 5c 6e 22 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |\n",. | |
|00002150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002170| 63 6f 6d 6d 61 6e 64 5f | 6e 61 6d 65 2c 20 6e 61 |command_|name, na|
|00002180| 6d 65 2d 3e 73 70 65 6c | 6c 69 6e 67 29 3b 0a 20 |me->spel|ling);. |
|00002190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021b0| 7d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}. | |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 20 20 20 70 75 74 63 28 | 27 7d 27 2c 20 66 69 6c | putc(|'}', fil|
|000021e0| 65 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e);. | |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002200| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | }. | |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002220| 20 20 20 20 0a 23 6c 69 | 6e 65 20 31 34 30 31 20 | .#li|ne 1401 |
|00002230| 22 6e 75 77 65 62 2e 77 | 22 0a 20 20 20 20 20 20 |"nuweb.w|". |
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 0a 20 20 20 20 | | . |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|00002270| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00002280| 20 20 20 20 20 7d 0a 20 | 20 20 20 20 20 20 20 20 | }. | |
|00002290| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 0a 23 6c 69 6e | | .#lin|
|000022b0| 65 20 31 33 35 32 20 22 | 6e 75 77 65 62 2e 77 22 |e 1352 "|nuweb.w"|
|000022c0| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000022d0| 20 20 20 62 72 65 61 6b | 3b 0a 20 20 20 20 20 20 | break|;. |
|000022e0| 63 61 73 65 20 27 5c 74 | 27 3a 20 0a 23 6c 69 6e |case '\t|': .#lin|
|000022f0| 65 20 31 33 38 32 20 22 | 6e 75 77 65 62 2e 77 22 |e 1382 "|nuweb.w"|
|00002300| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002310| 20 20 7b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|00002320| 20 20 20 20 20 20 20 69 | 6e 74 20 64 65 6c 74 61 | i|nt delta|
|00002330| 20 3d 20 38 20 2d 20 28 | 69 6e 64 65 6e 74 20 25 | = 8 - (|indent %|
|00002340| 20 38 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 8);. | |
|00002350| 20 20 20 20 20 20 20 20 | 69 6e 64 65 6e 74 20 2b | |indent +|
|00002360| 3d 20 64 65 6c 74 61 3b | 0a 20 20 20 20 20 20 20 |= delta;|. |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 77 68 69 6c | | whil|
|00002380| 65 20 28 64 65 6c 74 61 | 20 3e 20 30 29 20 7b 0a |e (delta| > 0) {.|
|00002390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023a0| 20 20 20 20 20 70 75 74 | 63 28 27 20 27 2c 20 66 | put|c(' ', f|
|000023b0| 69 6c 65 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |ile);. | |
|000023c0| 20 20 20 20 20 20 20 20 | 20 20 20 64 65 6c 74 61 | | delta|
|000023d0| 2d 2d 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |--;. | |
|000023e0| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. |
|000023f0| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 20 20 20 20 | | }. |
|00002400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 23 6c | | .#l|
|00002410| 69 6e 65 20 31 33 35 34 | 20 22 6e 75 77 65 62 2e |ine 1354| "nuweb.|
|00002420| 77 22 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |w".. | |
|00002430| 20 20 20 20 20 62 72 65 | 61 6b 3b 0a 20 20 20 20 | bre|ak;. |
|00002440| 20 20 63 61 73 65 20 27 | 5c 6e 27 3a 20 63 20 3d | case '|\n': c =|
|00002450| 20 73 6f 75 72 63 65 5f | 67 65 74 28 29 3b 0a 20 | source_|get();. |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 69 66 20 28 21 73 6b 69 | 70 6e 6c 5f 66 6c 61 67 |if (!ski|pnl_flag|
|00002480| 20 7c 7c 20 63 20 21 3d | 20 27 40 27 20 7c 7c 0a | || c !=| '@' ||.|
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024a0| 20 20 20 20 20 28 73 6f | 75 72 63 65 5f 6e 65 78 | (so|urce_nex|
|000024b0| 74 28 29 20 21 3d 20 27 | 7c 27 20 26 26 20 73 6f |t() != '||' && so|
|000024c0| 75 72 63 65 5f 6e 65 78 | 74 28 29 20 21 3d 20 27 |urce_nex|t() != '|
|000024d0| 7d 27 29 29 20 7b 0a 20 | 20 20 20 20 20 20 20 20 |}')) {. | |
|000024e0| 20 20 20 20 20 20 20 20 | 20 20 70 75 74 63 28 27 | | putc('|
|000024f0| 5c 6e 27 2c 20 66 69 6c | 65 29 3b 0a 20 20 20 20 |\n', fil|e);. |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00002510| 6e 64 65 6e 74 20 3d 20 | 30 3b 0a 20 20 20 20 20 |ndent = |0;. |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0a 20 20 | | }. |
|00002530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00002540| 6f 6e 74 69 6e 75 65 3b | 0a 20 20 20 20 20 20 63 |ontinue;|. c|
|00002550| 61 73 65 20 27 7b 27 3a | 0a 20 20 20 20 20 20 63 |ase '{':|. c|
|00002560| 61 73 65 20 27 7d 27 3a | 0a 20 20 20 20 20 20 63 |ase '}':|. c|
|00002570| 61 73 65 20 27 5c 5c 27 | 3a 20 66 70 72 69 6e 74 |ase '\\'|: fprint|
|00002580| 66 28 66 69 6c 65 2c 20 | 22 5c 5c 76 65 72 62 21 |f(file, |"\\verb!|
|00002590| 25 63 21 22 2c 20 63 29 | 3b 0a 20 20 20 20 20 20 |%c!", c)|;. |
|000025a0| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|000025b0| 3b 0a 20 20 20 20 20 20 | 64 65 66 61 75 6c 74 3a |;. |default:|
|000025c0| 20 20 20 70 75 74 63 28 | 63 2c 20 66 69 6c 65 29 | putc(|c, file)|
|000025d0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|000025e0| 20 20 20 69 6e 64 65 6e | 74 2b 2b 3b 0a 20 20 20 | inden|t++;. |
|000025f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 | | br|
|00002600| 65 61 6b 3b 0a 20 20 20 | 20 7d 0a 20 20 20 20 63 |eak;. | }. c|
|00002610| 20 3d 20 73 6f 75 72 63 | 65 5f 67 65 74 28 29 3b | = sourc|e_get();|
|00002620| 0a 20 20 7d 0a 7d 0a 0a | 23 6c 69 6e 65 20 31 34 |. }.}..|#line 14|
|00002630| 37 36 20 22 6e 75 77 65 | 62 2e 77 22 0a 73 74 61 |76 "nuwe|b.w".sta|
|00002640| 74 69 63 20 76 6f 69 64 | 20 66 6f 72 6d 61 74 5f |tic void| format_|
|00002650| 65 6e 74 72 79 28 4e 61 | 6d 65 20 2a 6e 61 6d 65 |entry(Na|me *name|
|00002660| 2c 20 46 49 4c 45 20 2a | 74 65 78 5f 66 69 6c 65 |, FILE *|tex_file|
|00002670| 2c 20 69 6e 74 20 66 69 | 6c 65 5f 66 6c 61 67 29 |, int fi|le_flag)|
|00002680| 0a 7b 0a 20 20 77 68 69 | 6c 65 20 28 6e 61 6d 65 |.{. whi|le (name|
|00002690| 29 20 7b 0a 20 20 20 20 | 66 6f 72 6d 61 74 5f 65 |) {. |format_e|
|000026a0| 6e 74 72 79 28 6e 61 6d | 65 2d 3e 6c 6c 69 6e 6b |ntry(nam|e->llink|
|000026b0| 2c 20 74 65 78 5f 66 69 | 6c 65 2c 20 66 69 6c 65 |, tex_fi|le, file|
|000026c0| 5f 66 6c 61 67 29 3b 0a | 20 20 20 20 0a 23 6c 69 |_flag);.| .#li|
|000026d0| 6e 65 20 31 34 38 39 20 | 22 6e 75 77 65 62 2e 77 |ne 1489 |"nuweb.w|
|000026e0| 22 0a 20 20 20 20 7b 0a | 20 20 20 20 20 20 66 70 |". {.| fp|
|000026f0| 75 74 73 28 22 5c 5c 69 | 74 65 6d 20 22 2c 20 74 |uts("\\i|tem ", t|
|00002700| 65 78 5f 66 69 6c 65 29 | 3b 0a 20 20 20 20 20 20 |ex_file)|;. |
|00002710| 69 66 20 28 66 69 6c 65 | 5f 66 6c 61 67 29 20 7b |if (file|_flag) {|
|00002720| 0a 20 20 20 20 20 20 20 | 20 66 70 72 69 6e 74 66 |. | fprintf|
|00002730| 28 74 65 78 5f 66 69 6c | 65 2c 20 22 5c 5c 76 65 |(tex_fil|e, "\\ve|
|00002740| 72 62 40 5c 22 25 73 5c | 22 40 2c 20 22 2c 20 6e |rb@\"%s\|"@, ", n|
|00002750| 61 6d 65 2d 3e 73 70 65 | 6c 6c 69 6e 67 29 3b 0a |ame->spe|lling);.|
|00002760| 20 20 20 20 20 20 20 20 | 0a 23 6c 69 6e 65 20 31 | |.#line 1|
|00002770| 35 30 38 20 22 6e 75 77 | 65 62 2e 77 22 0a 20 20 |508 "nuw|eb.w". |
|00002780| 20 20 20 20 20 20 7b 0a | 20 20 20 20 20 20 20 20 | {.| |
|00002790| 20 20 53 63 72 61 70 5f | 4e 6f 64 65 20 2a 70 20 | Scrap_|Node *p |
|000027a0| 3d 20 6e 61 6d 65 2d 3e | 64 65 66 73 3b 0a 20 20 |= name->|defs;. |
|000027b0| 20 20 20 20 20 20 20 20 | 69 66 20 28 70 2d 3e 6e | |if (p->n|
|000027c0| 65 78 74 29 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ext). | |
|000027d0| 20 70 72 69 6e 74 5f 73 | 63 72 61 70 5f 6e 75 6d | print_s|crap_num|
|000027e0| 62 65 72 73 28 74 65 78 | 5f 66 69 6c 65 2c 20 70 |bers(tex|_file, p|
|000027f0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 |);. | els|
|00002800| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 77 72 |e. | wr|
|00002810| 69 74 65 5f 73 69 6e 67 | 6c 65 5f 73 63 72 61 70 |ite_sing|le_scrap|
|00002820| 5f 72 65 66 28 74 65 78 | 5f 66 69 6c 65 2c 20 70 |_ref(tex|_file, p|
|00002830| 2d 3e 73 63 72 61 70 29 | 3b 0a 20 20 20 20 20 20 |->scrap)|;. |
|00002840| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 0a 23 6c 69 | }. | .#li|
|00002850| 6e 65 20 31 34 39 33 20 | 22 6e 75 77 65 62 2e 77 |ne 1493 |"nuweb.w|
|00002860| 22 0a 20 20 20 20 0a 20 | 20 20 20 20 20 7d 0a 20 |". . | }. |
|00002870| 20 20 20 20 20 65 6c 73 | 65 20 7b 0a 20 20 20 20 | els|e {. |
|00002880| 20 20 20 20 66 70 72 69 | 6e 74 66 28 74 65 78 5f | fpri|ntf(tex_|
|00002890| 66 69 6c 65 2c 20 22 5c | 5c 28 5c 5c 6c 61 6e 67 |file, "\|\(\\lang|
|000028a0| 6c 65 5c 5c 29 25 73 2c | 20 22 2c 20 6e 61 6d 65 |le\\)%s,| ", name|
|000028b0| 2d 3e 73 70 65 6c 6c 69 | 6e 67 29 3b 0a 20 20 20 |->spelli|ng);. |
|000028c0| 20 20 20 20 20 0a 23 6c | 69 6e 65 20 31 35 31 39 | .#l|ine 1519|
|000028d0| 20 22 6e 75 77 65 62 2e | 77 22 0a 20 20 20 20 20 | "nuweb.|w". |
|000028e0| 20 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 53 | {. | S|
|000028f0| 63 72 61 70 5f 4e 6f 64 | 65 20 2a 70 20 3d 20 6e |crap_Nod|e *p = n|
|00002900| 61 6d 65 2d 3e 64 65 66 | 73 3b 0a 20 20 20 20 20 |ame->def|s;. |
|00002910| 20 20 20 20 20 69 66 20 | 28 70 29 20 7b 0a 20 20 | if |(p) {. |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 69 6e 74 20 70 61 | | int pa|
|00002930| 67 65 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ge;. | |
|00002940| 77 72 69 74 65 5f 73 63 | 72 61 70 5f 72 65 66 28 |write_sc|rap_ref(|
|00002950| 74 65 78 5f 66 69 6c 65 | 2c 20 70 2d 3e 73 63 72 |tex_file|, p->scr|
|00002960| 61 70 2c 20 54 52 55 45 | 2c 20 26 70 61 67 65 29 |ap, TRUE|, &page)|
|00002970| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 70 20 |;. | p |
|00002980| 3d 20 70 2d 3e 6e 65 78 | 74 3b 0a 20 20 20 20 20 |= p->nex|t;. |
|00002990| 20 20 20 20 20 20 20 77 | 68 69 6c 65 20 28 70 29 | w|hile (p)|
|000029a0| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | {. | |
|000029b0| 20 77 72 69 74 65 5f 73 | 63 72 61 70 5f 72 65 66 | write_s|crap_ref|
|000029c0| 28 74 65 78 5f 66 69 6c | 65 2c 20 70 2d 3e 73 63 |(tex_fil|e, p->sc|
|000029d0| 72 61 70 2c 20 46 41 4c | 53 45 2c 20 26 70 61 67 |rap, FAL|SE, &pag|
|000029e0| 65 29 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e);. | |
|000029f0| 20 20 70 20 3d 20 70 2d | 3e 6e 65 78 74 3b 0a 20 | p = p-|>next;. |
|00002a00| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 | | }. |
|00002a10| 20 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 20 | }|. |
|00002a20| 20 20 20 65 6c 73 65 0a | 20 20 20 20 20 20 20 20 | else.| |
|00002a30| 20 20 20 20 70 75 74 63 | 28 27 3f 27 2c 20 74 65 | putc|('?', te|
|00002a40| 78 5f 66 69 6c 65 29 3b | 0a 20 20 20 20 20 20 20 |x_file);|. |
|00002a50| 20 7d 0a 20 20 20 20 20 | 20 20 20 0a 23 6c 69 6e | }. | .#lin|
|00002a60| 65 20 31 34 39 37 20 22 | 6e 75 77 65 62 2e 77 22 |e 1497 "|nuweb.w"|
|00002a70| 0a 20 20 20 20 0a 20 20 | 20 20 20 20 20 20 66 70 |. . | fp|
|00002a80| 75 74 73 28 22 5c 5c 28 | 5c 5c 72 61 6e 67 6c 65 |uts("\\(|\\rangle|
|00002a90| 5c 5c 29 20 22 2c 20 74 | 65 78 5f 66 69 6c 65 29 |\\) ", t|ex_file)|
|00002aa0| 3b 0a 20 20 20 20 20 20 | 20 20 0a 23 6c 69 6e 65 |;. | .#line|
|00002ab0| 20 31 35 33 37 20 22 6e | 75 77 65 62 2e 77 22 0a | 1537 "n|uweb.w".|
|00002ac0| 20 20 20 20 20 20 20 20 | 7b 0a 20 20 20 20 20 20 | |{. |
|00002ad0| 20 20 20 20 53 63 72 61 | 70 5f 4e 6f 64 65 20 2a | Scra|p_Node *|
|00002ae0| 70 20 3d 20 6e 61 6d 65 | 2d 3e 75 73 65 73 3b 0a |p = name|->uses;.|
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 70 29 | | if (p)|
|00002b00| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | {. | i|
|00002b10| 66 20 28 70 2d 3e 6e 65 | 78 74 29 0a 20 20 20 20 |f (p->ne|xt). |
|00002b20| 20 20 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 5f | | print_|
|00002b30| 73 63 72 61 70 5f 6e 75 | 6d 62 65 72 73 28 74 65 |scrap_nu|mbers(te|
|00002b40| 78 5f 66 69 6c 65 2c 20 | 70 29 3b 0a 20 20 20 20 |x_file, |p);. |
|00002b50| 20 20 20 20 20 20 20 20 | 65 6c 73 65 0a 20 20 20 | |else. |
|00002b60| 20 20 20 20 20 20 20 20 | 20 20 20 77 72 69 74 65 | | write|
|00002b70| 5f 73 69 6e 67 6c 65 5f | 73 63 72 61 70 5f 72 65 |_single_|scrap_re|
|00002b80| 66 28 74 65 78 5f 66 69 | 6c 65 2c 20 70 2d 3e 73 |f(tex_fi|le, p->s|
|00002b90| 63 72 61 70 29 3b 0a 20 | 20 20 20 20 20 20 20 20 |crap);. | |
|00002ba0| 20 7d 0a 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 | }. | els|
|00002bb0| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 66 70 |e. | fp|
|00002bc0| 75 74 73 28 22 5c 5c 74 | 65 78 74 62 66 7b 6e 6f |uts("\\t|extbf{no|
|00002bd0| 74 20 72 65 66 65 72 65 | 6e 63 65 64 7d 22 2c 20 |t refere|nced}", |
|00002be0| 74 65 78 5f 66 69 6c 65 | 29 3b 0a 20 20 20 20 20 |tex_file|);. |
|00002bf0| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 0a 23 6c | }. | .#l|
|00002c00| 69 6e 65 20 31 34 39 39 | 20 22 6e 75 77 65 62 2e |ine 1499| "nuweb.|
|00002c10| 77 22 0a 20 20 20 20 0a | 20 20 20 20 20 20 7d 0a |w". .| }.|
|00002c20| 20 20 20 20 20 20 70 75 | 74 63 28 27 5c 6e 27 2c | pu|tc('\n',|
|00002c30| 20 74 65 78 5f 66 69 6c | 65 29 3b 0a 20 20 20 20 | tex_fil|e);. |
|00002c40| 7d 0a 20 20 20 20 0a 23 | 6c 69 6e 65 20 31 34 38 |}. .#|line 148|
|00002c50| 30 20 22 6e 75 77 65 62 | 2e 77 22 0a 0a 20 20 20 |0 "nuweb|.w".. |
|00002c60| 20 6e 61 6d 65 20 3d 20 | 6e 61 6d 65 2d 3e 72 6c | name = |name->rl|
|00002c70| 69 6e 6b 3b 0a 20 20 7d | 0a 7d 0a 0a 23 6c 69 6e |ink;. }|.}..#lin|
|00002c80| 65 20 31 35 36 33 20 22 | 6e 75 77 65 62 2e 77 22 |e 1563 "|nuweb.w"|
|00002c90| 0a 73 74 61 74 69 63 20 | 76 6f 69 64 20 66 6f 72 |.static |void for|
|00002ca0| 6d 61 74 5f 75 73 65 72 | 5f 65 6e 74 72 79 28 4e |mat_user|_entry(N|
|00002cb0| 61 6d 65 20 2a 6e 61 6d | 65 2c 20 46 49 4c 45 20 |ame *nam|e, FILE |
|00002cc0| 2a 74 65 78 5f 66 69 6c | 65 29 0a 7b 0a 20 20 77 |*tex_fil|e).{. w|
|00002cd0| 68 69 6c 65 20 28 6e 61 | 6d 65 29 20 7b 0a 20 20 |hile (na|me) {. |
|00002ce0| 20 20 66 6f 72 6d 61 74 | 5f 75 73 65 72 5f 65 6e | format|_user_en|
|00002cf0| 74 72 79 28 6e 61 6d 65 | 2d 3e 6c 6c 69 6e 6b 2c |try(name|->llink,|
|00002d00| 20 74 65 78 5f 66 69 6c | 65 29 3b 0a 20 20 20 20 | tex_fil|e);. |
|00002d10| 0a 23 6c 69 6e 65 20 31 | 35 37 36 20 22 6e 75 77 |.#line 1|576 "nuw|
|00002d20| 65 62 2e 77 22 0a 20 20 | 20 20 7b 0a 20 20 20 20 |eb.w". | {. |
|00002d30| 20 20 53 63 72 61 70 5f | 4e 6f 64 65 20 2a 75 73 | Scrap_|Node *us|
|00002d40| 65 73 20 3d 20 6e 61 6d | 65 2d 3e 75 73 65 73 3b |es = nam|e->uses;|
|00002d50| 0a 20 20 20 20 20 20 69 | 66 20 28 75 73 65 73 29 |. i|f (uses)|
|00002d60| 20 7b 0a 20 20 20 20 20 | 20 20 20 69 6e 74 20 70 | {. | int p|
|00002d70| 61 67 65 3b 0a 20 20 20 | 20 20 20 20 20 53 63 72 |age;. | Scr|
|00002d80| 61 70 5f 4e 6f 64 65 20 | 2a 64 65 66 73 20 3d 20 |ap_Node |*defs = |
|00002d90| 6e 61 6d 65 2d 3e 64 65 | 66 73 3b 0a 20 20 20 20 |name->de|fs;. |
|00002da0| 20 20 20 20 66 70 72 69 | 6e 74 66 28 74 65 78 5f | fpri|ntf(tex_|
|00002db0| 66 69 6c 65 2c 20 22 5c | 5c 69 74 65 6d 20 5c 5c |file, "\|\item \\|
|00002dc0| 76 65 72 62 40 25 73 40 | 2c 20 22 2c 20 6e 61 6d |verb@%s@|, ", nam|
|00002dd0| 65 2d 3e 73 70 65 6c 6c | 69 6e 67 29 3b 0a 20 20 |e->spell|ing);. |
|00002de0| 20 20 20 20 20 20 69 66 | 20 28 75 73 65 73 2d 3e | if| (uses->|
|00002df0| 73 63 72 61 70 20 3c 20 | 64 65 66 73 2d 3e 73 63 |scrap < |defs->sc|
|00002e00| 72 61 70 29 20 7b 0a 20 | 20 20 20 20 20 20 20 20 |rap) {. | |
|00002e10| 20 77 72 69 74 65 5f 73 | 63 72 61 70 5f 72 65 66 | write_s|crap_ref|
|00002e20| 28 74 65 78 5f 66 69 6c | 65 2c 20 75 73 65 73 2d |(tex_fil|e, uses-|
|00002e30| 3e 73 63 72 61 70 2c 20 | 54 52 55 45 2c 20 26 70 |>scrap, |TRUE, &p|
|00002e40| 61 67 65 29 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |age);. | |
|00002e50| 75 73 65 73 20 3d 20 75 | 73 65 73 2d 3e 6e 65 78 |uses = u|ses->nex|
|00002e60| 74 3b 0a 20 20 20 20 20 | 20 20 20 7d 0a 20 20 20 |t;. | }. |
|00002e70| 20 20 20 20 20 65 6c 73 | 65 20 7b 0a 20 20 20 20 | els|e {. |
|00002e80| 20 20 20 20 20 20 69 66 | 20 28 64 65 66 73 2d 3e | if| (defs->|
|00002e90| 73 63 72 61 70 20 3d 3d | 20 75 73 65 73 2d 3e 73 |scrap ==| uses->s|
|00002ea0| 63 72 61 70 29 0a 20 20 | 20 20 20 20 20 20 20 20 |crap). | |
|00002eb0| 20 20 75 73 65 73 20 3d | 20 75 73 65 73 2d 3e 6e | uses =| uses->n|
|00002ec0| 65 78 74 3b 0a 20 20 20 | 20 20 20 20 20 20 20 66 |ext;. | f|
|00002ed0| 70 75 74 73 28 22 5c 5c | 75 6e 64 65 72 6c 69 6e |puts("\\|underlin|
|00002ee0| 65 7b 22 2c 20 74 65 78 | 5f 66 69 6c 65 29 3b 0a |e{", tex|_file);.|
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 77 72 69 74 65 5f | | write_|
|00002f00| 73 69 6e 67 6c 65 5f 73 | 63 72 61 70 5f 72 65 66 |single_s|crap_ref|
|00002f10| 28 74 65 78 5f 66 69 6c | 65 2c 20 64 65 66 73 2d |(tex_fil|e, defs-|
|00002f20| 3e 73 63 72 61 70 29 3b | 0a 20 20 20 20 20 20 20 |>scrap);|. |
|00002f30| 20 20 20 70 75 74 63 28 | 27 7d 27 2c 20 74 65 78 | putc(|'}', tex|
|00002f40| 5f 66 69 6c 65 29 3b 0a | 20 20 20 20 20 20 20 20 |_file);.| |
|00002f50| 20 20 70 61 67 65 20 3d | 20 2d 32 3b 0a 20 20 20 | page =| -2;. |
|00002f60| 20 20 20 20 20 20 20 64 | 65 66 73 20 3d 20 64 65 | d|efs = de|
|00002f70| 66 73 2d 3e 6e 65 78 74 | 3b 0a 20 20 20 20 20 20 |fs->next|;. |
|00002f80| 20 20 7d 0a 20 20 20 20 | 20 20 20 20 77 68 69 6c | }. | whil|
|00002f90| 65 20 28 75 73 65 73 20 | 7c 7c 20 64 65 66 73 29 |e (uses ||| defs)|
|00002fa0| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | {. | if |
|00002fb0| 28 75 73 65 73 20 26 26 | 20 28 21 64 65 66 73 20 |(uses &&| (!defs |
|00002fc0| 7c 7c 20 75 73 65 73 2d | 3e 73 63 72 61 70 20 3c ||| uses-|>scrap <|
|00002fd0| 20 64 65 66 73 2d 3e 73 | 63 72 61 70 29 29 20 7b | defs->s|crap)) {|
|00002fe0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 77 72 69 |. | wri|
|00002ff0| 74 65 5f 73 63 72 61 70 | 5f 72 65 66 28 74 65 78 |te_scrap|_ref(tex|
|00003000| 5f 66 69 6c 65 2c 20 75 | 73 65 73 2d 3e 73 63 72 |_file, u|ses->scr|
|00003010| 61 70 2c 20 46 41 4c 53 | 45 2c 20 26 70 61 67 65 |ap, FALS|E, &page|
|00003020| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 75 |);. | u|
|00003030| 73 65 73 20 3d 20 75 73 | 65 73 2d 3e 6e 65 78 74 |ses = us|es->next|
|00003040| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 7d 0a 20 20 |;. | }. |
|00003050| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 7b 0a 20 | |else {. |
|00003060| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 75 | | if (u|
|00003070| 73 65 73 20 26 26 20 64 | 65 66 73 2d 3e 73 63 72 |ses && d|efs->scr|
|00003080| 61 70 20 3d 3d 20 75 73 | 65 73 2d 3e 73 63 72 61 |ap == us|es->scra|
|00003090| 70 29 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |p). | |
|000030a0| 20 75 73 65 73 20 3d 20 | 75 73 65 73 2d 3e 6e 65 | uses = |uses->ne|
|000030b0| 78 74 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |xt;. | |
|000030c0| 66 70 75 74 73 28 22 2c | 20 5c 5c 75 6e 64 65 72 |fputs(",| \\under|
|000030d0| 6c 69 6e 65 7b 22 2c 20 | 74 65 78 5f 66 69 6c 65 |line{", |tex_file|
|000030e0| 29 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 77 |);. | w|
|000030f0| 72 69 74 65 5f 73 69 6e | 67 6c 65 5f 73 63 72 61 |rite_sin|gle_scra|
|00003100| 70 5f 72 65 66 28 74 65 | 78 5f 66 69 6c 65 2c 20 |p_ref(te|x_file, |
|00003110| 64 65 66 73 2d 3e 73 63 | 72 61 70 29 3b 0a 20 20 |defs->sc|rap);. |
|00003120| 20 20 20 20 20 20 20 20 | 20 20 70 75 74 63 28 27 | | putc('|
|00003130| 7d 27 2c 20 74 65 78 5f | 66 69 6c 65 29 3b 0a 20 |}', tex_|file);. |
|00003140| 20 20 20 20 20 20 20 20 | 20 20 20 70 61 67 65 20 | | page |
|00003150| 3d 20 2d 32 3b 0a 20 20 | 20 20 20 20 20 20 20 20 |= -2;. | |
|00003160| 20 20 64 65 66 73 20 3d | 20 64 65 66 73 2d 3e 6e | defs =| defs->n|
|00003170| 65 78 74 3b 0a 20 20 20 | 20 20 20 20 20 20 20 7d |ext;. | }|
|00003180| 0a 20 20 20 20 20 20 20 | 20 7d 0a 20 20 20 20 20 |. | }. |
|00003190| 20 20 20 66 70 75 74 73 | 28 22 5c 6e 22 2c 20 74 | fputs|("\n", t|
|000031a0| 65 78 5f 66 69 6c 65 29 | 3b 0a 20 20 20 20 20 20 |ex_file)|;. |
|000031b0| 7d 0a 20 20 20 20 7d 0a | 20 20 20 20 0a 23 6c 69 |}. }.| .#li|
|000031c0| 6e 65 20 31 35 36 37 20 | 22 6e 75 77 65 62 2e 77 |ne 1567 |"nuweb.w|
|000031d0| 22 0a 0a 20 20 20 20 6e | 61 6d 65 20 3d 20 6e 61 |".. n|ame = na|
|000031e0| 6d 65 2d 3e 72 6c 69 6e | 6b 3b 0a 20 20 7d 0a 7d |me->rlin|k;. }.}|
|000031f0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+