aboutsummaryrefslogtreecommitdiffstats
path: root/z22.c
diff options
context:
space:
mode:
authorJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:39:50 +0000
committerJeffrey H. Kingston <jeff@it.usyd.edu.au>2010-09-14 20:39:50 +0000
commite4836c62b245d618866b6523ec2c892aeb7a76be (patch)
tree5b5269fb7affb3b20ba8fe0224705bbde98c1614 /z22.c
parent128e9a1532ce7fa38ddc16de06d213530dc5ce15 (diff)
downloadlout-e4836c62b245d618866b6523ec2c892aeb7a76be.tar.gz
Lout 3.32.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@33 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z22.c')
-rw-r--r--z22.c30
1 files changed, 23 insertions, 7 deletions
diff --git a/z22.c b/z22.c
index 98fec6f..10d64b7 100644
--- a/z22.c
+++ b/z22.c
@@ -1,7 +1,7 @@
/*@z22.c:Galley Service:Interpose()@******************************************/
/* */
-/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.31) */
-/* COPYRIGHT (C) 1991, 2005 Jeffrey H. Kingston */
+/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.32) */
+/* COPYRIGHT (C) 1991, 2006 Jeffrey H. Kingston */
/* */
/* Jeffrey H. Kingston (jeff@it.usyd.edu.au) */
/* School of Information Technologies */
@@ -31,6 +31,27 @@
/*****************************************************************************/
#include "externs.h"
+/* these three variables refer to the root galley only */
+static BOOLEAN first = TRUE; /* if first component unwritten */
+static OBJECT page_label = nilobj; /* current page label object */
+static OBJECT prev_page_label = nilobj; /* previous page label object */
+
+
+/*****************************************************************************/
+/* */
+/* void PromoteInit(void) */
+/* */
+/* Initialize this module. */
+/* */
+/*****************************************************************************/
+
+void PromoteInit(void)
+{
+ first = TRUE;
+ page_label = nilobj;
+ prev_page_label = nilobj;
+}
+
/*****************************************************************************/
/* */
@@ -551,11 +572,6 @@ void HandleHeader(OBJECT hd, OBJECT header)
void Promote(OBJECT hd, OBJECT stop_link, OBJECT dest_index, BOOLEAN join_after)
{
- /* these three variables refer to the root galley only */
- static BOOLEAN first = TRUE; /* if first component unwritten */
- static OBJECT page_label = nilobj; /* current page label object */
- static OBJECT prev_page_label = nilobj; /* previous page label object */
-
OBJECT dest, link, y, z, tmp1, tmp2, why, top_y;
FULL_CHAR *label_string, buff[MAX_LINE];
FULL_LENGTH aback, afwd;