| 1 |
/* postlinebreak.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 |
#ifndef POSTLINEBREAK_H |
| 22 |
# define POSTLINEBREAK_H |
| 23 |
|
| 24 |
# define append_list(A,B) do { \ |
| 25 |
couple_nodes(cur_list.tail_field,vlink((A))); \ |
| 26 |
cur_list.tail_field = (B); \ |
| 27 |
} while (0) |
| 28 |
|
| 29 |
void ext_post_line_break(int paragraph_dir, |
| 30 |
int right_skip, |
| 31 |
int left_skip, |
| 32 |
int protrude_chars, |
| 33 |
halfword par_shape_ptr, |
| 34 |
int adjust_spacing, |
| 35 |
halfword inter_line_penalties_ptr, |
| 36 |
int inter_line_penalty, |
| 37 |
int club_penalty, |
| 38 |
halfword club_penalties_ptr, |
| 39 |
halfword widow_penalties_ptr, |
| 40 |
int widow_penalty, |
| 41 |
int broken_penalty, |
| 42 |
halfword final_par_glue, |
| 43 |
halfword best_bet, |
| 44 |
halfword last_special_line, |
| 45 |
scaled second_width, |
| 46 |
scaled second_indent, |
| 47 |
scaled first_width, |
| 48 |
scaled first_indent, halfword best_line); |
| 49 |
|
| 50 |
#endif |