beta-0.89.2
[luatex.git] / source / texk / web2c / luatexdir / tex / postlinebreak.h
blobcd90e1f0bc5bd3ccf8f2dc873684369716386a42
1 /* postlinebreak.h
3 Copyright 2009 Taco Hoekwater <taco@luatex.org>
5 This file is part of LuaTeX.
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.
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.
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/>. */
21 #ifndef POSTLINEBREAK_H
22 # define POSTLINEBREAK_H
24 /* todo: check this macro, especially values of alink() */
26 # define append_list(A,B) do { \
27 vlink(cur_list.tail_field) = vlink((A)); \
28 cur_list.tail_field = (B); \
29 } while (0)
32 void ext_post_line_break(int paragraph_dir,
33 int right_skip,
34 int left_skip,
35 int protrude_chars,
36 halfword par_shape_ptr,
37 int adjust_spacing,
38 halfword inter_line_penalties_ptr,
39 int inter_line_penalty,
40 int club_penalty,
41 halfword club_penalties_ptr,
42 halfword widow_penalties_ptr,
43 int widow_penalty,
44 int broken_penalty,
45 halfword final_par_glue,
46 halfword best_bet,
47 halfword last_special_line,
48 scaled second_width,
49 scaled second_indent,
50 scaled first_width,
51 scaled first_indent, halfword best_line);
53 #endif