aboutsummaryrefslogtreecommitdiffstats
path: root/z36.c
diff options
context:
space:
mode:
Diffstat (limited to 'z36.c')
-rw-r--r--z36.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/z36.c b/z36.c
index 44a9f50..37e5dd5 100644
--- a/z36.c
+++ b/z36.c
@@ -1,7 +1,7 @@
/*@z36.c:Hyphenation: Declarations@*******************************************/
/* */
-/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.39) */
-/* COPYRIGHT (C) 1991, 2008 Jeffrey H. Kingston */
+/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.41) */
+/* COPYRIGHT (C) 1991, 2023 Jeffrey H. Kingston */
/* */
/* Jeffrey H. Kingston (jeff@it.usyd.edu.au) */
/* School of Information Technologies */
@@ -28,6 +28,7 @@
/* */
/*****************************************************************************/
#include "externs.h"
+#include "child.h"
#define NODE_MULT 4 /* what to multiply node indexes by */
#define MAX_CHAR 256 /* max chars represented in one char */
#define TRIE_MAGIC 5361534
@@ -675,7 +676,7 @@ FULL_CHAR *fname, int hline_num)
/*****************************************************************************/
#define BeGetChar(fp, pv) ( (c = getc(fp)) == EOF ? -1 : (*pv = c & 0xFF, 0) )
-#define BePutChar(fp, v) ( putc( (char) (v & 0xFF), fp), 0 )
+#define BePutChar(fp, v) ( putc( (char) (v & 0xFF), fp) )
#define BeGetShort(fp, pv) \
( (c = getc(fp)) == EOF ? -1 : \
@@ -685,7 +686,7 @@ FULL_CHAR *fname, int hline_num)
)
#define BePutShort(fp, v) \
-( putc((v >> 8) & 0xFF, fp), putc(v & 0xFF, fp), 0 )
+( putc((v >> 8) & 0xFF, fp), putc(v & 0xFF, fp) )
static int BeGetInt(FILE *fp, int *pv)
{ int c;
@@ -1243,7 +1244,10 @@ OBJECT Hyphenate(OBJECT x)
break;
}
else
- { while( *++a );
+ { while( *++a )
+ {
+ /* empty statement added by JeffK 17/6/23 */
+ }
a++;
}
}