textextcodes.h /size: 2645 b    last modification: 2025-02-21 11:03
1/*
2    See license.txt in the root of this project.
3*/
4
5# ifndef LMT_TEXTCODES_H
6# define LMT_TEXTCODES_H
7
8/*tex
9    For practical reasons we handle the hmcodes here although they are used in 
10    math only. We could have used the hc codes as there will be no overlap. 
11*/
12
13extern void     tex_set_cat_code               (int h, int n, halfword v, int gl);
14extern halfword tex_get_cat_code               (int h, int n);
15extern int      tex_valid_catcode_table        (int h);
16extern void     tex_unsave_cat_codes           (int h, int gl);
17extern void     tex_copy_cat_codes             (int from, int to);
18extern void     tex_restore_cat_codes          (int h, int level);
19extern void     tex_initialize_cat_codes       (int h);
20/*     void     tex_set_cat_code_table_default (int h, int dflt); */
21/*     int      tex_get_cat_code_table_default (int h); */
22
23extern void     tex_set_lc_code                (int n, halfword v, int gl);
24extern halfword tex_get_lc_code                (int n);
25extern void     tex_set_uc_code                (int n, halfword v, int gl);
26extern halfword tex_get_uc_code                (int n);
27extern void     tex_set_sf_code                (int n, halfword v, int gl);
28extern halfword tex_get_sf_code                (int n);
29extern void     tex_set_hc_code                (int n, halfword v, int gl);
30extern halfword tex_get_hc_code                (int n);
31extern void     tex_set_hm_code                (int n, halfword v, int gl);
32extern halfword tex_get_hm_code                (int n);
33extern void     tex_set_am_code                (int n, halfword v, int gl);
34extern halfword tex_get_am_code                (int n);
35extern void     tex_set_hj_code                (int l, int n, halfword v, int gl);
36extern halfword tex_get_hj_code                (int l, int n);
37extern void     tex_set_cc_code                (int n, halfword v, int gl); /* can be always global */
38extern halfword tex_get_cc_code                (int n);
39
40extern void     tex_initialize_xx_codes        (void);
41
42extern void     tex_hj_codes_from_lc_codes     (int h);
43
44extern void     tex_initialize_text_codes      (void);
45extern void     tex_unsave_text_codes          (int grouplevel);
46
47extern void     tex_dump_text_codes            (dumpstream f);
48extern void     tex_undump_text_codes          (dumpstream f);
49
50extern void     tex_dump_language_hj_codes     (dumpstream f, int h);
51extern void     tex_undump_language_hj_codes   (dumpstream f, int h);
52
53extern void     tex_free_text_codes            (void);
54
55extern void     tex_run_case_shift             (halfword code);
56
57extern void     tex_show_code_stack            (void);
58
59
60# endif
61