aboutsummaryrefslogtreecommitdiffstats
path: root/z33.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 /z33.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 'z33.c')
-rw-r--r--z33.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/z33.c b/z33.c
index 4e793cc..0bf68e3 100644
--- a/z33.c
+++ b/z33.c
@@ -1,7 +1,7 @@
/*@z33.c:Database Service:OldCrossDb(), NewCrossDb(), SymToNum()@*************/
/* */
-/* 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 */
@@ -154,7 +154,8 @@ static void dtab_debug(DBCHECK_TABLE S, FILE *fp)
#endif
static DBCHECK_TABLE DbCheckTable; /* the dbcheck table */
-static BOOLEAN DbCheckTableInit = FALSE; /* TRUE if table inited */
+static BOOLEAN DbCheckTableInit; /* TRUE if table inited */
+static int extra_seq;
/*****************************************************************************/
@@ -169,6 +170,23 @@ OBJECT OldCrossDb, NewCrossDb;
/*****************************************************************************/
/* */
+/* void DbInit(void) */
+/* */
+/* Initialize this module.. */
+/* */
+/*****************************************************************************/
+
+void DbInit(void)
+{
+ DbCheckTable = NULL;
+ DbCheckTableInit = FALSE;
+ OldCrossDb = NewCrossDb = nilobj;
+ extra_seq = 0;
+}
+
+
+/*****************************************************************************/
+/* */
/* #define SymToNum(db, sym, num, gall) */
/* */
/* Set num to the number used to refer to sym in database db. If sym is */
@@ -270,7 +288,6 @@ void DbInsert(OBJECT db, BOOLEAN gall, OBJECT sym, FULL_CHAR *tag,
FILE_POS *tagfpos, FULL_CHAR *seq, FILE_NUM dfnum, long dfpos, int dlnum,
BOOLEAN check)
{ int symnum; OBJECT chk;
- static int extra_seq = 0;
FULL_CHAR buff[MAX_BUFF];
assert( is_word(type(db)), "DbInsert: db!" );
assert( tag[0] != '\0', "DbInsert: null tag!" );