Debian Codegraph @

cuneiform_src/Kern/hhh/tigerh/h/func.h

raw
1 /*
2 Copyright (c) 1993-2008, Cognitive Technologies
3 All rights reserved.
4
5 Разрешается повторное распространение и использование как в виде исходного кода,
6 так и в двоичной форме, с изменениями или без, при соблюдении следующих условий:
7
8 * При повторном распространении исходного кода должны оставаться указанное
9 выше уведомление об авторском праве, этот список условий и последующий
10 отказ от гарантий.
11 * При повторном распространении двоичного кода в документации и/или в
12 других материалах, поставляемых при распространении, должны сохраняться
13 указанная выше информация об авторском праве, этот список условий и
14 последующий отказ от гарантий.
15 * Ни название Cognitive Technologies, ни имена ее сотрудников не могут
16 быть использованы в качестве средства поддержки и/или продвижения
17 продуктов, основанных на этом ПО, без предварительного письменного
18 разрешения.
19
20 ЭТА ПРОГРАММА ПРЕДОСТАВЛЕНА ВЛАДЕЛЬЦАМИ АВТОРСКИХ ПРАВ И/ИЛИ ДРУГИМИ ЛИЦАМИ "КАК
21 ОНА ЕСТЬ" БЕЗ КАКОГО-ЛИБО ВИДА ГАРАНТИЙ, ВЫРАЖЕННЫХ ЯВНО ИЛИ ПОДРАЗУМЕВАЕМЫХ,
22 ВКЛЮЧАЯ ГАРАНТИИ КОММЕРЧЕСКОЙ ЦЕННОСТИ И ПРИГОДНОСТИ ДЛЯ КОНКРЕТНОЙ ЦЕЛИ, НО НЕ
23 ОГРАНИЧИВАЯСЬ ИМИ. НИ ВЛАДЕЛЕЦ АВТОРСКИХ ПРАВ И НИ ОДНО ДРУГОЕ ЛИЦО, КОТОРОЕ
24 МОЖЕТ ИЗМЕНЯТЬ И/ИЛИ ПОВТОРНО РАСПРОСТРАНЯТЬ ПРОГРАММУ, НИ В КОЕМ СЛУЧАЕ НЕ
25 НЕСЁТ ОТВЕТСТВЕННОСТИ, ВКЛЮЧАЯ ЛЮБЫЕ ОБЩИЕ, СЛУЧАЙНЫЕ, СПЕЦИАЛЬНЫЕ ИЛИ
26 ПОСЛЕДОВАВШИЕ УБЫТКИ, СВЯЗАННЫЕ С ИСПОЛЬЗОВАНИЕМ ИЛИ ПОНЕСЕННЫЕ ВСЛЕДСТВИЕ
27 НЕВОЗМОЖНОСТИ ИСПОЛЬЗОВАНИЯ ПРОГРАММЫ (ВКЛЮЧАЯ ПОТЕРИ ДАННЫХ, ИЛИ ДАННЫЕ,
28 СТАВШИЕ НЕГОДНЫМИ, ИЛИ УБЫТКИ И/ИЛИ ПОТЕРИ ДОХОДОВ, ПОНЕСЕННЫЕ ИЗ-ЗА ДЕЙСТВИЙ
29 ТРЕТЬИХ ЛИЦ И/ИЛИ ОТКАЗА ПРОГРАММЫ РАБОТАТЬ СОВМЕСТНО С ДРУГИМИ ПРОГРАММАМИ,
30 НО НЕ ОГРАНИЧИВАЯСЬ ЭТИМИ СЛУЧАЯМИ), НО НЕ ОГРАНИЧИВАЯСЬ ИМИ, ДАЖЕ ЕСЛИ ТАКОЙ
31 ВЛАДЕЛЕЦ ИЛИ ДРУГОЕ ЛИЦО БЫЛИ ИЗВЕЩЕНЫ О ВОЗМОЖНОСТИ ТАКИХ УБЫТКОВ И ПОТЕРЬ.
32
33 Redistribution and use in source and binary forms, with or without modification,
34 are permitted provided that the following conditions are met:
35
36 * Redistributions of source code must retain the above copyright notice,
37 this list of conditions and the following disclaimer.
38 * Redistributions in binary form must reproduce the above copyright notice,
39 this list of conditions and the following disclaimer in the documentation
40 and/or other materials provided with the distribution.
41 * Neither the name of the Cognitive Technologies nor the names of its
42 contributors may be used to endorse or promote products derived from this
43 software without specific prior written permission.
44
45 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
46 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
47 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
48 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
49 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
50 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
51 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
52 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
53 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 */
56
57 /********************************************************************/
58 /* */
59 /* common functions prototypes */
60 /* */
61 /********************************************************************/
62
63 #ifndef KERNEL_H_INCLUDE
64 #define KERNEL_H_INCLUDE
65
66 #include "struct.h"
67 #include "extract.h"
68 #include "stick.h"
69
70 extern uchar *let_linpos, *let_lindef, *let_lincomp, *let_linshape,
71 *let_sans_acc, *let_lindef3, *accent_tab;
72
73 // module diffrv.c
74 void r_criteria(cell *c, const s_glue * gl);
75
76 // module prscan.c
77 int16_t brigt(int16_t, int16_t, int16_t, int16_t);
78
79 // module names.c
80 pchar full_name(pchar w, pchar n);
81
82 // module kernel.c
83 void correct_dir_path(puchar p);
84
85 // module proimage.c
86 void image_file_close();
87 Bool image_file_open();
88 int16_t source_read(puchar start, puchar ptr, puchar end);
89
90 // module progress.c
91 void set_percentage(void);
92 void progress_next_step(void);
93 uint32_t progress_set_step(uint32_t volume);
94 uint32_t progress_set_percent(uint32_t volume);
95 void progress_finish(void);
96
97 // module matrix.c
98 void matrix_open();
99 void matrix_close();
100 int16_t matrix_read(puchar buff, uint16_t lth);
101
102 // module rules.c
103 void rules_open();
104 int16_t rules(MN *);
105 int16_t frame(MN *);
106 void rules_closed();
107 void short_undln();
108 void del_root(int16_t, int16_t, int16_t, int16_t);
109
110 // module rulsh.c
111 int32_t rules_shaving(MN *, int16_t);
112 int16_t shaving_let();
113
114 // module rulbr.c
115 void cutoffs();
116
117 // module sweeper.c
118 void sweeper_ini();
119 uint16_t sweeper(int16_t);
120 void sweeper_end();
121 void read_comp(uint32_t, pchar, int32_t);
122 void comp_file_close();
123 int16_t delgarb();
124 void del_shav();
125
126 // module skew.c
127 void skew_corr(str *, int16_t);
128 void skew_end();
129 void ideal_rc(cell *);
130
131 // module pass3.c
132 void pass3(int16_t nCall);
133 void accept_cell(cell *, c_comp *);
134 int16_t revision();
135 // module alphabet.c
136 Bool is_digital_string(void);
137 void serbian_J2j(void);
138
139 // module snap.c
140 Bool snap_init();
141 Bool snap_finish();
142 Bool snap_newline();
143 Bool snap_newpass(uchar);
144 Bool snap_show_text(puchar);
145 Bool snap_show_text1(puchar);
146 Bool snap_monitor();
147 Bool snap_newcell(cell *);
148 Bool snap_stopcell(cell *, cell *);
149 Bool snap_activity(uchar);
150 Bool snap_show_raster(puchar, int16_t, int16_t);
151 Bool Alik_snap_show_raster(puchar, puchar, puchar, int16_t, int16_t, pchar, pchar, pint16_t);
152 void snap_newcut();
153 void snap_show_cuts(cell *C, struct cut_elm *cut_points);
154 void snap_newpoint(int16_t i);
155 void snap_stop_cuts();
156
157 // module prop.c
158 void prop(int16_t);
159 int16_t prop_index(int16_t h, int16_t w);
160
161 // module diff.c
162 int16_t ij_dot(cell *);
163 void criteries();
164 void criteria(cell *);
165 cell *dot_ri(cell *);
166 cell *dot_ij(cell *);
167 cell *dot_excl(cell *);
168 cell *dot_inv(cell *);
169 int16_t ij_test(cell *);
170 void v_to_y(cell * c, uchar compose);
171 void c_to_ctail(cell * c, uchar compose);
172
173 // module accents.c
174 void pass_accent(void);
175 int16_t bottom_accent(cell *c);
176 int16_t accent(cell *);
177 int16_t type_acc(cell *);
178 int16_t find_bottom_accent(cell *c);
179
180 // module findiff.c
181 void final_crit();
182
183 // module linpos.c
184 int16_t obtain_diff(int16_t);
185 int16_t def_locbas(cell *);
186 void inter_diff(cell *);
187 int16_t if_dust(cell *);
188 int16_t if_dust_size(cell *);
189 void linpos(str *);
190 void cell_by_base();
191 void cell_position(cell *);
192 int16_t levcut(cell *, int16_t);
193 void get_b_lines(cell *, B_LINES *);
194 int32_t get_size();
195 int16_t get_bsm(); //AK 04.03.97 ? to int32_t
196 int16_t is_defis(cell *);
197 void basedraft(str *);
198 void basefin(str *);
199 int16_t cut_by_pos(cell *C, uchar c, int16_t wp, uchar fl, uchar arg);
200
201 // module dmacc.c
202 int16_t try_cut_accent(cell *C1, B_LINES *my_bases, int16_t flag);
203 int16_t try_cut_top_accent(cell *C1, B_LINES *my_bases, int16_t flag);
204 int16_t try_cut_bot_accent(cell *C1, B_LINES *my_bases, int16_t flag);
205
206 // module dm1.c
207 void dm1();
208 int16_t discrid(cell *, int16_t);
209 int16_t decidust(cell *);
210 int16_t estcomp(char, cell *, SVERS *, int16_t, int16_t, int16_t, s_glue *, cut_pos*, cut_pos*,
211 char, char, char);
212 void snBOX(cell *);
213 void est_snap(char user, cell *C, pchar txt);
214 void promote(uchar, cell *, uchar, int16_t);
215 void collect_pat(cell *, s_glue *, cell *);
216
217 // module dm2.c
218 void dm2();
219 void glsnap(char, cell *, pchar);
220
221 // module dms.c
222 void save_vers(cell *, SVERS *);
223 void min3(v_val *, uchar, v_val *);
224 void rest_vers(cell *, SVERS *);
225 int16_t signif_line_count(cell*);
226 int16_t compare_vect(v_val *, v_val *);
227 int16_t cell_is_BOX_solid(cell*);
228
229 // module locomp.asm
230 /*#define c_locomp(a, b, c, d, e) EVN_CLocomp((a), (b), (c), (d), (e))*/
231 MN *c_locomp(puchar, int32_t, int32_t, int16_t, int16_t);
232
233 // module v0compgl.asm
234 void invert_tiff(puchar c, uint16_t lth);
235
236 // module cutgraph.c
237 int16_t make_graph();
238 void excl_connect();
239 void find_path();
240
241 // module cutpoint.c
242 int16_t cut_points(int16_t, int16_t, puchar, struct cut_elm *);
243 int16_t Alik_cut_points(int16_t, int16_t, puchar, struct cut_elm *, int16_t);
244 MN* cut_rast(puchar, int16_t, int16_t, int16_t, int16_t, struct cut_elm *, char, char, pchar,
245 cut_pos*);
246
247 // module alcutfun.c
248 void Alik_def_cut_flg(cell *, struct cut_elm *, struct cut_elm *, int16_t, uchar);
249
250 // module glue.c
251 MN *glue(c_comp **, int16_t);
252
253 // module dmBOX.c
254 int16_t dmBOX(cell *, s_glue *);
255 int16_t dmiBOX(cell *, s_glue *, int16_t);
256 servBOX *make_broken_raster(s_glue *, int16_t);
257 int16_t crecell(cell *, s_glue *, int16_t);
258 int16_t crepat(cell *, s_glue *, int16_t, int16_t);
259 void SBOX_to_static();
260 void SBOX_to_GL(s_glue *);
261 void GL_to_SBOX(s_glue *);
262 void static_to_SBOX();
263 void dens_to_cell(cell *);
264 void static_to_cell(cell *);
265
266 // module embBOX.c
267 void embBOX(servBOX *, SVERS *, Bool);
268 void embBOXF(servBOX *, int16_t, Bool);
269
270 // module scalar.asm
271 int16_t proport(uint16_t, uint16_t, uint16_t, int16_t, int16_t);
272 extern uint16_t (*scalarf)(PWORD, PWORD, uint16_t);
273 extern int32_t (*scalar)(PWORD, PWORD);
274 int16_t long_sqrt(uint32_t);
275
276 // module funcBOX.asm
277 void comp_to_box(PWORD, c_comp *, uint16_t, uint16_t, uint16_t, uint16_t);
278
279 // module abris.c
280 void abris_reset();
281 int16_t abris(s_glue *, cell *, uchar, int16_t);
282 int16_t h_filt(cell *, int16_t, s_glue *, uchar Let);
283 int16_t rtf(cell *cl, int16_t prob, s_glue *GL);
284 void apply_monus(cell *);
285
286 // module perc.c
287 void perc();
288 void number();
289
290 // module atlant.c
291 void atlant(cell *, s_glue *, int16_t, int16_t);
292
293 // module ltmain.c
294 void LayoutPart1(void);
295 void LayoutPart2(void);
296
297 // module ltpage.c
298 void SpecCompPut(MN *mn);
299
300 // module spec_sym.c
301 void star();
302 void bullet();
303 int16_t chkbullet(uchar);
304 Bool abris_curve(uchar fun[], int16_t n, int16_t w);
305 int16_t find_minimum(uchar fun[], int16_t n, uchar *_imin);
306
307 // module S_TOOLS.C
308 void new_vers(cell *c, uchar vers, uchar prob);
309 void down_all_versions(cell *c, int16_t monus);
310 void filtr_shave(uchar fun[], int16_t len);
311 Bool set_prob(cell *c, char let, uchar prob);
312 Bool check_let(cell *c, char let);
313 void add_stick_vers(cell *c, char let, uchar prob);
314 void filtr_short(uchar fun[], int16_t n, int16_t lev);
315 void filtr121(uchar fun[], int16_t n);
316 void filtr_bullet(uchar fun[], int16_t len);
317 void add_thick_stick_versions(cell *c, int16_t dx, int16_t wide, int16_t inc, int16_t typ_snap,
318 STICK_CHARS *left_chars, STICK_CHARS *right_chars,
319 STICK_SIGNUMS *signums);
320 void add_thin_stick_versions(cell *c, uchar left[], uchar right[], int16_t dy,
321 int16_t dx, int16_t typ_inc, STICK_CHARS *left_chars, STICK_CHARS *right_chars,
322 STICK_SIGNUMS *signums);
323 Bool sign_neck(uchar left[], uchar right[], int16_t n, int16_t base, int16_t mode);
324 int16_t conv_prob(int16_t prob);
325 int16_t shift_raster(uchar *r, int16_t dy, int16_t dx, int16_t tab[], int16_t max_shift, uchar *res,
326 int16_t dir);
327 /******************************
328 void full_snap(cell *c,STICK_CHARS *l,STICK_CHARS *r,STICK_SIGNUMS *s,
329 int16_t tab_angle[],
330 int16_t left_mode,int16_t right_mode,int16_t opt,int16_t wide,
331 int16_t inc_v,int16_t t);
332 void short_snap(char *s,int16_t t);
333 *******************************/
334
335 // module dis_stic.c
336 int16_t discrim_all_sticks(cell *c, STICK_CHARS *left_chars,
337 STICK_CHARS *right_chars, STICK_SIGNUMS *signums);
338 int16_t discrim_stick(uchar, STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *, int16_t);
339 int16_t del_sticks(cell *c, char let);
340 int16_t similar_0xBA(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
341 int16_t similar_0xBB(STICK_CHARS *l, STICK_CHARS *r, STICK_SIGNUMS *s);
342 int16_t similar_1(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
343 int16_t similar_l_stroked(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
344 int16_t similar_lcb(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
345 int16_t similar_rcb(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
346 int16_t similar_excl(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
347 int16_t similar_excl_with_dot(STICK_CHARS *, STICK_CHARS *, STICK_SIGNUMS *);
348 uchar similar_wide_frt1(STICK_CHARS *left_chars, STICK_CHARS *right_chars);
349
350 // module def_stic.c
351 int16_t stick_center_study(cell *c, s_glue *GL, int16_t typ);
352 uint16_t typ_thin_stick(lnhead *lin, int16_t dy, int16_t dx);
353 int16_t erector(cell *c, int16_t enable_erect, int16_t enable_shave, int16_t enable_snap);
354
355 // module cha_stic.c
356 int16_t set_stick_char(uchar left[], uchar right[], int16_t tails[], int16_t dy, int16_t dx,
357 int16_t opt, int16_t wid, int16_t corr_mode, int16_t skip_ul, int16_t skip_dl, int16_t skip_ur,
358 int16_t skip_dr, int16_t inc, STICK_CHARS *left_chars,
359 STICK_CHARS *right_chars, STICK_SIGNUMS *signums, int16_t *l_mode,
360 int16_t *r_mode);
361 int16_t calc_right_f_symptom(uchar fun[], int16_t n, int16_t m);
362 int16_t calc_left_f_symptom(uchar fun[], int16_t n, int16_t nx, Bool c_ft);
363 void num_of_skip_line(uchar left[], uchar right[], int16_t dy, int16_t opt, int16_t wide,
364 int16_t *up_l, int16_t *up_r, int16_t *down_l, int16_t *down_r);
365
366 void set_stick_aux_signums(cell *c, uchar left[], uchar right[], int16_t dy,
367 int16_t wide_up, STICK_CHARS *left_chars, STICK_CHARS *right_chars,
368 STICK_SIGNUMS *signums, int16_t dis_left_brace, int16_t dis_right_brace,
369 int16_t dis_slash, int16_t l_f_sym, int16_t r_f_sym, int16_t T_c, uint16_t T_2_3,
370 uint16_t T_skok, B_LINES *bl, int16_t nlines, int16_t incline);
371
372 void
373 calc_skipped_lines(int16_t hist_int[], uchar left[], uchar right[], int16_t dy,
374 int16_t dx, int16_t wide, int16_t opt, Bool c_r, int16_t *ul, int16_t *ur, int16_t *dl,
375 int16_t *dr);
376 void correct_f_symptoms(int16_t hist_int[], int16_t dy, int16_t *l_f_sym, int16_t *r_f_sym);
377 void correct_upper_peaks(STICK_CHARS *l, STICK_CHARS *r, int16_t dy);
378
379 // module differ.c
380 void differ();
381
382 // module bold.c
383 Bool boldshave(cell *, int16_t); //AK: at .ms as Bool
384 Bool pimpleshave(cell *C, int16_t shave, int16_t inc); //AK: at .ms as Bool
385
386
387 // module shaving.c
388 int16_t shaving(int16_t);
389
390 // module punct.c
391 void punct();
392 void clear_punct_twin_flags(void);
393 void clean_punct();
394 void clean_line();
395 void recover_dusts(void);
396 void hide_dusts(uchar reg);
397
398 // module il1peak.c
399 void extremum(pchar, int16_t, int16_t, int16_t, int16_t, char, char);
400
401 // module il1tg.c
402 void il1();
403
404 // module space.c
405 void space_size(int16_t);
406 void set_space_size(int16_t);
407 void space_cell();
408 void cont_space();
409 void showgap(cell *);
410 int16_t get_space_size(void);
411 int16_t get_gap(void);
412
413 // module context.c
414 void context();
415 void context_proc_line();
416 void complex_word();
417
418 // module rcontext.c
419 void correct_case(void);
420
421 // module spec_sym.c
422 Bool abris_curve(uchar fun[], int16_t n, int16_t w);
423
424 // module fontprop.c
425 void font_let();
426 void font_str();
427 void checkpitch();
428 void avdens();
429 int16_t letincl(cell *);
430
431 // module lineout.c
432 void lineout();
433 void lineout_fragment();
434 void lines_out_init();
435 void rules_to_ed();
436 void ed_load();
437 void ed_flip();
438 void ed_out_finish();
439 void set_initial_edout(puchar pool, uint32_t lth);
440 void ed_save(void);
441 void init_sheet_tag(void);
442
443 // module lout_bcr.c
444 void lout_bcr();
445 void loutf_bcr();
446 void louti_bcr();
447
448 // module edscan.c
449 int16_t ed_scan(Bool(*)(puchar, int16_t), Bool(*)(puchar, int16_t), puchar, puchar);
450 Bool scan_skip(puchar p, int16_t lth);
451
452 // module edp.c
453 void edp_main(puchar memory, int32_t lth);
454
455 // module edpsave.c
456 void save_ed(void);
457
458 // module edprproc.c
459 void preprocess();
460
461 // module writepro.c
462 void write_prot(cell *);
463
464 // module tools.c
465 void set_bad_cell(cell *);
466 void sort_vers(cell *);
467 void sort_v_vect(int16_t, version *);
468 void setup_string();
469 void kit_init();
470 puchar il1_pool_ptr();
471 puchar t_raster();
472 c_comp * comp_vers_to_kit(MN * mn, c_comp *c);
473 c_comp * dust_to_kit(dust_comp *);
474 c_comp * comp_from_file(uint32_t, int32_t);
475 c_comp * compose_comp(int16_t, c_comp **);
476 Bool compose_cell(int16_t, cell **, cell *);
477 Bool compose_cell_save(int16_t, cell **, cell *);
478 void del_retain_cell(cell *);
479 cell *del_cell(cell *);
480 puchar del_save_cell(cell *);
481 cell *rest_cell(void *, cell *);
482 cell *cell_f();
483 cell *cell_l();
484 ////////////////////////////////////////////////
485 //AK add 3 funcs for check chain of cells:
486 void AKTryChainRecover(cell **);
487 void AKCheckChain();
488 int16_t AKCellInChain(cell *);
489 void AKClearVers(void);
490 ////////////////////////////////////////////////
491 cell *new_cell();
492 void free_cell(cell *c);
493 void insert_cell(cell *c, cell *ci);
494 void insert_cell1(cell *c, cell *ci);
495 void adjust_links(cell *c);
496 cell *create_cell(MN *, cell *, char, char);
497 cell *create_cell1(MN *, cell *, char, char);
498 cell *create_cell_work(MN * mn, cell * ci, char bdiff, char dflag);
499 int16_t short_recog_cell(cell *);
500 int16_t recog_cell(cell *);
501 int16_t recop_cell(cell *);
502 int16_t reco2_cell(cell *);
503 puchar save_raster(cell *);
504 puchar give_kit_addr();
505 void take_kit_addr(puchar a);
506 void add_vers(cell *, version *);
507 void del_version(cell *c, uchar let);
508 void online_comp(c_comp *);
509 Bool save_MN(MN *);
510 void cell_bonus_let(cell *C, char Let, int16_t BonVal);
511 void cell_bonus(cell *C, version *pVer, int16_t BonVal);
512
513 // module baton.c
514 int16_t sticks_in_letter(cell *, int16_t, STICK **);
515 void set_tab_incl();
516
517 // module filesys.c
518 void file_string(STRING *); // accept string into file
519 str *first_string();
520 str *next_string();
521 int16_t read_string();
522 void setup_memory();
523 void convert_rtf();
524 void maden_comp(puchar, int16_t, int16_t, int16_t, int16_t);
525 c_comp *get_comp(PROOT);
526 void Pass2(void);
527 void read_rec_file(int16_t seqn, puchar pool, puchar * end);
528 ///////////////////int16_t cond_open(int16_t seqn, pchar name, uint16_t b1, uint16_t b2);
529 puchar seq_nam(int16_t seqn);
530 int16_t to_voc(void);
531 void to_edp(void);
532 void make_rtf(void);
533 void make_ASCII(void);
534 void make_smart_ASCII(void);
535 void LayoutSetup(void);
536 void load_vocs(void);
537
538 // module msgerr
539 void error_exit(int16_t group, int16_t element);
540 void error_exit_asm(int16_t element);
541 void clear_error_status(void);
542
543 // module testsnap
544 void snap_events(cell *);
545 void write_events(cell *);
546 void * snap_ev_res();
547 void snap_ev_reset();
548 void snap_keep(uchar user, puchar addr, uint16_t lth);
549 void snap_sticks(cell *);
550
551 // module v0compmn.asm
552 void extrcomp(void);
553
554 // module v0comprq.asm
555 int16_t recog_letter();
556 void recog_save_maden();
557
558 // module proport.c
559 void v2_pidx_crit(cell *);
560 void pidx_crit();
561 Bool pidx_skip(int16_t h, int16_t w, uchar t_let);
562 uint16_t el_pidx_crit(uint16_t t_let, int16_t pidx);
563
564 // module lang_fil.c
565 void ev_lang_filter();
566 Bool proplet(uchar);
567
568 // module compkit.c
569 int16_t MN_to_line(MN *);
570 puchar make_raster();
571 puchar make_extended_raster(c_comp *);
572 void save_dust_comp(dust_comp *, c_comp *, puchar);
573 int16_t read_dust_comp(dust_comp *, puchar);
574
575 // module picture.c
576 int16_t scaled(int16_t value, uchar scale);
577
578 // module large.asm
579 puchar compress_component(c_comp *c, uchar scale);
580 puchar compress_large_component(c_comp *c, uchar scale);
581 puchar compress_dust_component(c_comp *c, uchar scale);
582 int16_t filling_MN(MN *mn, uint16_t h, uint16_t w);
583
584 // module tg_spell
585 int16_t spelling(puchar memory, int32_t size);
586
587 // module in_treei.c
588 uchar * load_stat_dict(puchar ptr);
589 void load_user_dicts(char * list_name, puchar ptr);
590 void user_voc_init(void);
591
592 // module corners.c
593 void discrim_un(cell *, s_glue *, int16_t);
594
595 // module rtf.c
596 void rtf_main(puchar memory, int32_t memory_lth);
597
598 // module rtfdebug.c
599 void print_fragments();
600
601 // module ascisave.c
602 void smart_ascii_save(puchar pool, int32_t lth);
603 void ascii_save(puchar pool, int32_t lth);
604
605 // module writepro
606 void write_prot(cell *);
607
608 // module scanjet
609 int16_t give_scan_handle(void);
610 uint16_t scan_close(void);
611
612 // module dllentry or run
613 void write_text(uchar);
614
615 // module celldump.c
616 void setup_dump(void);
617 void cell_to_dump(cell *);
618 void dump_to_string(void);
619
620 //module tm.c
621 void trade_marks(void);
622
623 //module passe.c
624 cell * end_word(cell *cs, uchar *str, uchar *word_len);
625 cell * next_word(cell *cs);
626 Bool russian_word(uchar *wrd);
627
628 //module erection.c
629 uchar erection_incline_words(void);
630 uchar erection_one_incline_word(cell *c, cell *e);
631 void erection_delete(void);
632 void erection_restore(void);
633 void erection_delete_seq(cell *b, cell *e);
634 void erection_restore_seq(cell *b, cell *e);
635 int16_t erection_compose_inc(int16_t n, cell **clist);
636 int16_t erect_original_dens(cell *c);
637 int16_t erect_original_width(cell *c);
638 cell* erect_cell_value(cell *c, int16_t inc, int16_t shave, Bool cutting);
639 cell* erect_cell_table(cell *c, int16_t tab_angle[], int16_t shave, Bool cutting);
640 Bool erect_make_tab(cell *c, int16_t tab_angle[]);
641 void erect_shift_intervals(void *addr, int16_t h, int16_t tab_angle[]);
642 int16_t erect_raster_value(uchar *raster, int16_t dx, int16_t dy, int16_t inc);
643
644 // module shevron.c
645 void shevron(cell*);
646 /*-------------------------- Extern -------------------*/
647
648 Bool check_cancel(uint16_t perc);
649
650 MN *cell_cut(cell *);
651
652 void set_page_name(puchar);
653
654 void setdrmode(int16_t);
655
656 void c_rastror(puchar, puchar, uint16_t, uint16_t);
657
658 lnhead *c_boxln(MN *);
659
660 // module html.c
661 void html_main(puchar memory, int32_t memory_lth);
662
663 // virtual function...
664 uint16_t Tiger_BIOSKEY(uint16_t);
665 #endif