nroff ttable driver changes

martin martin at zeus.hf.intel.com
Fri Feb 26 10:29:42 AEST 1988


The recently posted nroff driver utility needs a small correction to
compile the tabXXXX.c file correctly for the xenix system.  The
problem shows up in the printf statements (file elbat.c) where the
author is attempting to display the "t" structure with comments.  The
xenix c-preprocessor strips out part of the format string.  I changed
this by escaping the asterisk (*).  The following is a diff (sorry I
don't have the diff -c) for the new file (represented with the <) and
the oldfile (represented with the >).  I don't know if other compilers
do this but the xenix one does..

78,79c78,79
< #define intshow(memb)	printf ("/\*%-8s\*/\t\t%d,\n", "memb", t.memb)
< #define show(memb)	printf ("/\*%-8s\*/\t\t\"", "memb");---
> #define intshow(memb)	printf ("/*%-8s*/\t\t%d,\n", "memb", t.memb)
> #define show(memb)	printf ("/*%-8s*/\t\t\"", "memb");81c81
< 			if (debug) printf("\",\t\t/\*\t%d\t\*/\n", t_stor.memb);---
> 			if (debug) printf("\",\t\t/*\t%d\t*/\n", t_stor.memb);
Thanks again for the nifty utility...



More information about the Comp.sources.bugs mailing list