| 1 |
% comfilter.ch: Local adaptations for file omfilter.ch |
| 2 |
% |
| 3 |
% This file is part of the Omega project, which |
| 4 |
% is based on the web2c distribution of TeX. |
| 5 |
% |
| 6 |
% Copyright (c) 1994--2000 John Plaice and Yannis Haralambous |
| 7 |
% |
| 8 |
% This library is free software; you can redistribute it and/or |
| 9 |
% modify it under the terms of the GNU Library General Public |
| 10 |
% License as published by the Free Software Foundation; either |
| 11 |
% version 2 of the License, or (at your option) any later version. |
| 12 |
% |
| 13 |
% This library is distributed in the hope that it will be useful, |
| 14 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
% Library General Public License for more details. |
| 17 |
% |
| 18 |
% You should have received a copy of the GNU Library General Public |
| 19 |
% License along with this library; if not, write to the Free Software |
| 20 |
% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 21 |
% |
| 22 |
%--------------------------------------- |
| 23 |
@x |
| 24 |
@!inf_ocp_list_size = 1000; |
| 25 |
@y |
| 26 |
@!inf_ocp_list_size = 1000; |
| 27 |
@!sup_ocp_buf_size = 1000000; |
| 28 |
@!inf_ocp_buf_size = 1000; |
| 29 |
@!sup_ocp_stack_size = 1000000; |
| 30 |
@!inf_ocp_stack_size = 1000; |
| 31 |
@z |
| 32 |
%--------------------------------------- |
| 33 |
@x |
| 34 |
@!ocp_list_size:integer; |
| 35 |
@y |
| 36 |
@!ocp_list_size:integer; |
| 37 |
@!ocp_buf_size:integer; |
| 38 |
@!ocp_stack_size:integer; |
| 39 |
@z |
| 40 |
%--------------------------------------- |
| 41 |
@x |
| 42 |
for k:=0 to active_max_ptr-1 do dump_wd(active_info[k]); |
| 43 |
print_ln; print_int(active_max_ptr); print(" words of active ocps"); |
| 44 |
|
| 45 |
@ @<Undump the active ocp information@>= |
| 46 |
undump_size(0)(active_mem_size)('active start point')(active_min_ptr); |
| 47 |
undump_size(0)(active_mem_size)('active mem size')(active_max_ptr); |
| 48 |
for k:=0 to active_max_ptr-1 do undump_wd(active_info[k]); |
| 49 |
@y |
| 50 |
dump_things(active_info[0], active_max_ptr); |
| 51 |
print_ln; print_int(active_max_ptr); print(" words of active ocps"); |
| 52 |
|
| 53 |
@ @<Undump the active ocp information@>= |
| 54 |
undump_size(0)(active_mem_size)('active start point')(active_min_ptr); |
| 55 |
undump_size(0)(active_mem_size)('active mem size')(active_max_ptr); |
| 56 |
undump_things(active_info[0], active_max_ptr); |
| 57 |
@z |
| 58 |
%--------------------------------------- |
| 59 |
@x |
| 60 |
setup_bound_var(1000)('ocp_list_size')(ocp_list_size); |
| 61 |
@y |
| 62 |
setup_bound_var(1000)('ocp_list_size')(ocp_list_size); |
| 63 |
setup_bound_var(1000)('ocp_buf_size')(ocp_buf_size); |
| 64 |
setup_bound_var(1000)('ocp_stack_size')(ocp_stack_size); |
| 65 |
@z |
| 66 |
%--------------------------------------- |
| 67 |
@x |
| 68 |
ocp_list_list:=xmalloc_array (ocp_list_index, ocp_list_size); |
| 69 |
@y |
| 70 |
ocp_list_list:=xmalloc_array (ocp_list_index, ocp_list_size); |
| 71 |
otp_init_input_buf:=xmalloc_array (quarterword, ocp_buf_size); |
| 72 |
otp_input_buf:=xmalloc_array (quarterword, ocp_buf_size); |
| 73 |
otp_output_buf:=xmalloc_array (quarterword, ocp_buf_size); |
| 74 |
otp_stack_buf:=xmalloc_array (quarterword, ocp_stack_size); |
| 75 |
otp_calcs:=xmalloc_array (halfword, ocp_stack_size); |
| 76 |
otp_states:=xmalloc_array (halfword, ocp_stack_size); |
| 77 |
@z |
| 78 |
%--------------------------------------- |
| 79 |
@x |
| 80 |
@!otp_init_input_buf:array[0..20000] of quarterword; |
| 81 |
|
| 82 |
@!otp_input_start:halfword; |
| 83 |
@!otp_input_last:halfword; |
| 84 |
@!otp_input_end:halfword; |
| 85 |
@!otp_input_buf:array[0..20000] of quarterword; |
| 86 |
|
| 87 |
@!otp_output_end:halfword; |
| 88 |
@!otp_output_buf:array[0..20000] of quarterword; |
| 89 |
|
| 90 |
@!otp_stack_used:halfword; |
| 91 |
@!otp_stack_last:halfword; |
| 92 |
@!otp_stack_new:halfword; |
| 93 |
@!otp_stack_buf:array[0..1000] of quarterword; |
| 94 |
|
| 95 |
@!otp_pc:halfword; |
| 96 |
|
| 97 |
@!otp_calc_ptr:halfword; |
| 98 |
@!otp_calcs:array[0..1000] of halfword; |
| 99 |
@!otp_state_ptr:halfword; |
| 100 |
@!otp_states:array[0..1000] of halfword; |
| 101 |
@y |
| 102 |
@!otp_init_input_buf:^quarterword; |
| 103 |
|
| 104 |
@!otp_input_start:halfword; |
| 105 |
@!otp_input_last:halfword; |
| 106 |
@!otp_input_end:halfword; |
| 107 |
@!otp_input_buf:^quarterword; |
| 108 |
|
| 109 |
@!otp_output_end:halfword; |
| 110 |
@!otp_output_buf:^quarterword; |
| 111 |
|
| 112 |
@!otp_stack_used:halfword; |
| 113 |
@!otp_stack_last:halfword; |
| 114 |
@!otp_stack_new:halfword; |
| 115 |
@!otp_stack_buf:^quarterword; |
| 116 |
|
| 117 |
@!otp_pc:halfword; |
| 118 |
|
| 119 |
@!otp_calc_ptr:halfword; |
| 120 |
@!otp_calcs:^halfword; |
| 121 |
@!otp_state_ptr:halfword; |
| 122 |
@!otp_states:^halfword; |
| 123 |
@z |