~ubuntu-branches/ubuntu/jaunty/luatex/jaunty

« back to all changes in this revision

Viewing changes to src/texk/web2c/luatexdir/tex/postlinebreak.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2008-07-07 11:01:13 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707110113-1y7lam37zbbb7bbt
Tags: 0.28.0-1
* two new upstream releases, see the respective ANNOUCE files
* add luasocket license statement to debian/copyright
* activate the pdfluatex format
* prepare for latex based formats
  - add the ini files from TeX Live
  - add debian/formats file
  - adjust dh_installtex incantation
  the problem is that luatex dies when loading ukrhypmp.tex from 
  texlive-lang-cyrillic, but we don't want to conflict with it by now.
* policy 3.8.0, rename README.Debian-source to README.source, and add
  notes about quilt usage
* disable patch fix-pwd-inclusion (it was from svn)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: postlinebreak.c 1155 2008-04-14 07:53:21Z oneiros $ */
 
1
/* postlinebreak.c
 
2
   
 
3
   Copyright 2006-2008 Taco Hoekwater <taco@luatex.org>
 
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/>. */
2
19
 
3
20
#include "luatex-api.h"
4
21
#include <ptexlib.h>
5
22
#include "nodes.h"
6
23
 
 
24
static const char _svn_version[] =
 
25
    "$Id: postlinebreak.c 1314 2008-06-16 09:11:04Z taco $ $URL: http://scm.foundry.supelec.fr/svn/luatex/tags/beta-0.28.0/src/texk/web2c/luatexdir/tex/postlinebreak.c $";
 
26
 
7
27
/* So far we have gotten a little way into the |line_break| routine, having
8
28
covered its important |try_break| subroutine. Now let's consider the
9
29
rest of the process.
55
75
 
56
76
#define next_break prev_break   /*new name for |prev_break| after links are reversed */
57
77
 
58
 
#define append_list(a,b)                                                \
 
78
#define append_list(a,b)                                                \
59
79
  { vlink(cur_list.tail_field)=vlink((a)); cur_list.tail_field = b; }
60
80
 
61
81
#define left_skip_code 7        /*glue at left of justified lines */
151
171
            halfword tmp = new_dir(dir_dir(q));
152
172
            halfword nxt = vlink(temp_head);
153
173
            couple_nodes(temp_head, tmp);
154
 
            couple_nodes(tmp, nxt);
 
174
            try_couple_nodes(tmp, nxt); /* \break\par */
155
175
        }
156
176
        if (dir_ptr != null) {
157
177
            flush_node_list(dir_ptr);
193
213
            /* |r| refers to the node after which the dir nodes should be closed */
194
214
        } else if (type(r) == disc_node) {
195
215
            halfword a = alink(r);
 
216
            halfword v = vlink(r);
196
217
            assert(a != null);
197
 
            halfword v = vlink(r);
198
218
            if (v == null) {    /* nested disc, let's unfold */
199
219
                fprintf(stderr, "Nested disc [%d]<-[%d]->null\n", (int) a,
200
220
                        (int) r);
496
516
                q = vlink(r);
497
517
                if (q == cur_break(cur_p) || is_char_node(q))
498
518
                    break;
499
 
                if (!
500
 
                    ((type(q) == whatsit_node)
501
 
                     && (subtype(q) == local_par_node))) {
 
519
                if (!((type(q) == whatsit_node)
 
520
                      && (subtype(q) == local_par_node))) {
502
521
                    if (non_discardable(q)
503
522
                        || (type(q) == kern_node && subtype(q) != explicit))
504
523
                        break;