Debian Codegraph @

texk/web2c/luatexdir/tex/textcodes.h

raw
1 /* textcodes.h
2
3 Copyright 2009 Taco Hoekwater <[email protected]>
4
5 This file is part of LuaTeX.
6
7 LuaTeX is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 License for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>.
19
20 */
21
22 #ifndef TEXTCODES_H
23 # define TEXTCODES_H
24
25 void set_cat_code(int h, int n, halfword v, quarterword gl);
26 halfword get_cat_code(int h, int n);
27 int valid_catcode_table(int h);
28 void unsave_cat_codes(int h, quarterword gl);
29 void copy_cat_codes(int from, int to);
30 void initex_cat_codes(int h);
31
32 void set_lc_code(int n, halfword v, quarterword gl);
33 halfword get_lc_code(int n);
34
35 void set_uc_code(int n, halfword v, quarterword gl);
36 halfword get_uc_code(int n);
37
38 void set_sf_code(int n, halfword v, quarterword gl);
39 halfword get_sf_code(int n);
40
41 void set_hj_code(int l, int n, halfword v, quarterword gl);
42 halfword get_hj_code(int l, int n);
43 void hj_codes_from_lc_codes(int h);
44
45 void initialize_text_codes(void);
46 void unsave_text_codes(quarterword grouplevel);
47
48 void dump_text_codes(void);
49 void undump_text_codes(void);
50
51 void free_math_codes(void);
52 void free_text_codes(void);
53
54 #endif