diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:37:27 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:37:27 +0000 |
commit | 7db8921aac3a0e1223af269ec7092bdd91a7c7a2 (patch) | |
tree | 4336d04fbb26c26d23f6d5a3d572b474dd1f70af /z23.c | |
parent | a9f9ae0efa326dc2edc7f2d92ce270f5fdc15b60 (diff) | |
download | lout-7db8921aac3a0e1223af269ec7092bdd91a7c7a2.tar.gz |
Lout 3.24.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@17 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z23.c')
-rw-r--r-- | z23.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1,6 +1,6 @@ /*@z23.c:Galley Printer:ScaleFactor()@****************************************/ /* */ -/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.23) */ +/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.24) */ /* COPYRIGHT (C) 1991, 2000 Jeffrey H. Kingston */ /* */ /* Jeffrey H. Kingston (jeff@cs.usyd.edu.au) */ @@ -131,7 +131,8 @@ static FULL_LENGTH FindAdjustIncrement(OBJECT x, FULL_LENGTH frame_size,int dim) OBJECT FixAndPrintObject(OBJECT x, FULL_LENGTH xmk, FULL_LENGTH xb, FULL_LENGTH xf, int dim, BOOLEAN suppress, FULL_LENGTH pg, int count, FULL_LENGTH *actual_back, FULL_LENGTH *actual_fwd) -{ OBJECT y, link, prev, g, z, face, thr, fixed_thr, res, uplink, tmp; +{ OBJECT y, link, prev, g, z, face, thr, res, uplink; + /* OBJECT fixed_thr, tmp; */ FULL_LENGTH mk, ymk, frame_size, back_edge, yb, yf, inc, f; FULL_LENGTH aback, afwd; int i; float scale_factor; BOOLEAN jn; @@ -1227,7 +1228,6 @@ OBJECT FixAndPrintObject(OBJECT x, FULL_LENGTH xmk, FULL_LENGTH xb, case COL_THR: case ROW_THR: - /* *** old code assert( (type(x) == COL_THR) == (dim == COLM), "FixAndPrintObject: thr!" ); for( link = Down(x), uplink = Up(x), i = 1; link != x && uplink != x && i < count; @@ -1247,12 +1247,13 @@ OBJECT FixAndPrintObject(OBJECT x, FULL_LENGTH xmk, FULL_LENGTH xb, } y = FixAndPrintObject(y, xmk, back(x, dim), fwd(x, dim), dim, - NO_SUPPRESS, pg, count); - if( Up(x) == x ) Dispose(x); + NO_SUPPRESS, pg, count, &aback, &afwd); + *actual_back = xb; *actual_fwd = xf; + /* if( Up(x) == x ) Dispose(x); */ break; - *** */ /* convert everyone to FIXED_COL_THR or FIXED_ROW_THR as appropriate */ + /* *** old code if( thr_state(x) == FINALSIZE ) debug1(DGP, D, "thr_state(%d)", (int) x); assert(thr_state(x) != FINALSIZE, "FAPO/COL_THR: thr_state(x)!"); @@ -1309,9 +1310,11 @@ OBJECT FixAndPrintObject(OBJECT x, FULL_LENGTH xmk, FULL_LENGTH xb, Dispose(x); assert(res != nilobj, "FixAndPrintObject: COL_THR res!"); x = res; + *** */ /* NB NO BREAK! */ + /* *** case FIXED_COL_THR: case FIXED_ROW_THR: @@ -1322,6 +1325,7 @@ OBJECT FixAndPrintObject(OBJECT x, FULL_LENGTH xmk, FULL_LENGTH xb, NO_SUPPRESS, pg, count, &aback, &afwd); *actual_back = back(x, dim); *actual_fwd = fwd(x, dim); break; + *** */ case BEGIN_HEADER: |