summaryrefslogtreecommitdiff
path: root/systems/tex-extensions/clasen/hz/hz-post-web2c.ch
blob: f6c17e3af6d1a850682869acd85d6b6159196680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
%
% This is web2c-specific.
%

@x
@!font_variants:array[internal_font_number] of min_halfword..max_halfword;
@y
@!font_variants:^pointer;
@z

%
% web2c moves the initialization to somewhere else.
%

@x
font_variants[null_font]:=null; 
@y
@z

%
% We must dump the font_variants table as well.
%

@x
dump_things(font_glue[null_font], font_ptr+1-null_font);
@y
dump_things(font_glue[null_font], font_ptr+1-null_font);
dump_things(font_variants[null_font], font_ptr+1-null_font);
@z

%
% This is web2c-specific.
%

@x
xmalloc_array(param_base, font_max);
@y
xmalloc_array(param_base, font_max);
xmalloc_array(font_variants, font_max);
@z

%
% We must undump the font_variants table as well.
%

@x
undump_checked_things(min_halfword, lo_mem_max,
                     font_glue[null_font], font_ptr+1-null_font);
@y
undump_checked_things(min_halfword, lo_mem_max,
                     font_glue[null_font], font_ptr+1-null_font);
undump_things(font_variants[null_font], font_ptr+1-null_font);
@z

%
% This is web2c-specific.
%

@x
  xmalloc_array(param_base, font_max);
@y
  xmalloc_array(param_base, font_max);
  xmalloc_array(font_variants, font_max);
@z

%
% web2c moves the initialization to somewhere else.
%

@x
  param_base[null_font]:=-1;
@y
  param_base[null_font]:=-1;
  font_variants[null_font]:=null;
@z