Debian Codegraph @

texk/web2c/alephdir/eoext.ch

raw
1 % vim ft=ch
2 % Dealing with extended formats
3 % and changing the last Omega references to Aleph
4 @x
5 @<Read the other strings from the \.{OMEGA.POOL} file and return |true|,
6 @y
7 @<Read the other strings from the \.{ALEPH.POOL} file and return |true|,
8 @z
9 %----------------------------------------
10 @x
11 else bad_pool('! I can''t read OMEGA.POOL.')
12 @.I can't read OMEGA.POOL@>
13
14 @ @<Read one string...@>=
15 begin if eof(pool_file) then bad_pool('! OMEGA.POOL has no check sum.');
16 @.OMEGA.POOL has no check sum@>
17 read(pool_file,m,n); {read two digits of string length}
18 if m='*' then @<Check the pool check sum@>
19 else begin if (m<"0")or(m>"9")or@|
20 (n<"0")or(n>"9") then
21 bad_pool('! OMEGA.POOL line doesn''t begin with two digits.');
22 @.OMEGA.POOL line doesn't...@>
23 @y
24 else bad_pool('! I can''t read ALEPH.POOL.')
25 @.I can't read ALEPH.POOL@>
26
27 @ @<Read one string...@>=
28 begin if eof(pool_file) then bad_pool('! ALEPH.POOL has no check sum.');
29 @.ALEPH.POOL has no check sum@>
30 read(pool_file,m,n); {read two digits of string length}
31 if m='*' then @<Check the pool check sum@>
32 else begin if (m<"0")or(m>"9")or@|
33 (n<"0")or(n>"9") then
34 bad_pool('! ALEPH.POOL line doesn''t begin with two digits.');
35 @.ALEPH.POOL line doesn't...@>
36 @z
37 %----------------------------------------
38 @x
39 bad_pool('! OMEGA.POOL check sum doesn''t have nine digits.');
40 @.OMEGA.POOL check sum...@>
41 a:=10*a+n-"0";
42 if k=9 then goto done;
43 incr(k); read(pool_file,n);
44 end;
45 done: if a<>@$ then bad_pool('! OMEGA.POOL doesn''t match; OTANGLE me again.');
46 @.OMEGA.POOL doesn't match@>
47 @y
48 bad_pool('! ALEPH.POOL check sum doesn''t have nine digits.');
49 @.ALEPH.POOL check sum...@>
50 a:=10*a+n-"0";
51 if k=9 then goto done;
52 incr(k); read(pool_file,n);
53 end;
54 done: if a<>@$ then bad_pool('! ALEPH.POOL doesn''t match; OTANGLE me again.');
55 @.ALEPH.POOL doesn't match@>
56 @z
57 %----------------------------------------
58 @x
59 print_err("Omega capacity exceeded, sorry [");
60 @y
61 print_err("Aleph capacity exceeded, sorry [");
62 @z
63 %----------------------------------------
64 @x
65 print("Omega output, Version 3.141592653--1.15, ");
66 @y
67 print("Aleph output, Version 3.141592653--1.15--2.1, ");
68 @z
69 %----------------------------------------
70 @x
71 print_err("Patterns can be loaded only by INIOMEGA");
72 @y
73 print_err("Patterns can be loaded only by INIALEPH");
74 @z
75 %----------------------------------------
76 @x
77 format_ident:=" (INIOMEGA)";
78 @y
79 format_ident:=" (INIALEPH)";
80 @z
81 %----------------------------------------
82 @x
83 print_nl("(\dump is performed only by INIOMEGA)"); return;
84 @:dump_}{\.{\\dump...only by INIOMEGA}@>
85 @y
86 print_nl("(\dump is performed only by INIALEPH)"); return;
87 @:dump_}{\.{\\dump...only by INIALEPH}@>
88 @z
89 %----------------------------------------
90 @x
91 @!init if (buffer[loc]="*")and(format_ident=" (INITEX)") then
92 @y
93 @!init if (buffer[loc]="*")and(format_ident=" (INIALEPH)") then
94 @z
95 %%% The following lines would let Aleph start in enhanced mode
96 % %----------------------------------------
97 % @x
98 % incr(loc); eTeX_mode:=1; {enter extended mode}
99 % @y
100 % if (buffer[loc]="*") then incr(loc);
101 % eTeX_mode:=1; {enter extended mode}
102 % @z
103 % %----------------------------------------
104 % @x
105 % eTeX_mode:=0; {initially we are in compatibility mode}
106 % @y
107 % eTeX_mode:=1; {initially we are in extended mode}
108 % @z
109 % %----------------------------------------
110 % @x
111 % for j:=0 to eTeX_states-1 do set_new_eqtb_int(eTeX_state_base+j,0); {disable all enhancements}
112 % @y
113 % for j:=0 to eTeX_states-1 do set_new_eqtb_int(eTeX_state_base+j,1); {enable all enhancements}
114 % @z