[comp.sys.tandy] Problems using TABLE on Tandy Xenix/68000

paul@devon.UUCP (Paul Sutcliffe Jr.) (04/03/88)

I finally got around to compiling the recently posted (in comp.sources.*)
Table (nroff /usr/lib/term/tab* compiler) utility on Tandy's Xenix/68000.
Although the programs compile cleanly, running "elbat" produced the folowing
error message when I tried to de-compile /usr/lib/term/tablp for testing:

WARNING: tablp size: 1456 bytes (should be 1458), output likely corrupt

It appears that the table.h provided with table is slightly out of sync
with the structure used on Xenix 3.0.  Can anyone provide me a correct
version of "struct t" (distributed version reproduced below) ?

Thanks.

- paul

--
Paul Sutcliffe, Jr.				       +----------------------+
						       |  THINK ...           |
UUCP (smart):  paul@devon.UUCP			       |            or THWIM  |
UUCP (dumb):   ...rutgers!bpa!vu-vlsi!devon!paul       +----------------------+

----- table.h --------------------------------------------------------
#ifndef	INCH
#define	INCH	240
#endif

struct t {
	int bset;
	int breset;
	int Hor;
	int Vert;
	int Newline;
	int Char;
#ifdef KANJI
	int Kchar;
#endif KANJI
	int Em;
	int Halfline;
	int Adj;
	char *twinit;
	char *twrest;
	char *twnl;
	char *hlr;
	char *hlf;
	char *flr;
	char *bdon;
	char *bdoff;
	char *iton;
	char *itoff;
	char *ploton;
	char *plotoff;
	char *up;
	char *down;
	char *right;
	char *left;
	char *codetab[256-32];
	char *zzz;
	};

struct t_stor {		/* This structure will be stored in the tab file */
	int bset;
	int breset;
	int Hor;
	int Vert;
	int Newline;
	int Char;
#ifdef KANJI
	int Kchar;
#endif KANJI
	int Em;
	int Halfline;
	int Adj;
	int twinit;
	int twrest;
	int twnl;
	int hlr;
	int hlf;
	int flr;
	int bdon;
	int bdoff;
	int iton;
	int itoff;
	int ploton;
	int plotoff;
	int up;
	int down;
	int right;
	int left;
	int codetab[256-32];
	int zzz;
};