martin@zeus.hf.intel.com (martin) (02/26/88)
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...