Article View: comp.bugs.sys5
Article #589troff noise abatement
From: gwyn
Date: Sun, 30 Aug 1987 23:18
Date: Sun, 30 Aug 1987 23:18
36 lines
1469 bytes
1469 bytes
I finally got tired of troff blathering about point-size mismatch
(common when typesetting pic output) and decided to do something
about it. The following is for DWB 1.0; presumably something
similar would be done for DWB 2.0 (I haven't checked yet).
/* @(#)ext.h 1.1 */
...
extern short *pstab;
extern short *ps_warned; /* DAG -- added (see t6.c) */
...
/* @(#)t10.c 1.1 */
...
ptinit()
...
char *calloc(), *setbrk(), *filebase, *p; /* DAG -- added calloc */
...
pstab = (short *) filebase;
ps_warned = (short *) calloc((unsigned)(nsizes + 1), sizeof(short));
/* DAG -- added (see t6.c) */
...
/* @(#)t6.c 1.2 */
...
short *pstab;
short *ps_warned; /* DAG -- added */
...
findps(i)
...
if ( pstab[k] != i ) {
if ( ps_warned[k] != i ) { /* DAG -- added to reduce noise */
ps_warned[k] = i; /* DAG -- added */
fprintf(stderr, "troff: asked for size %d, got %d\n",
i, pstab[k]);
}
}
Technical Details
Message-ID:
<6371@brl-smoke.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ames!husc6!cmcl2!brl-adm!brl-smoke!gwynShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ames!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.bugs.sys5 Subject: troff noise abatement Message-ID: <6371@brl-smoke.ARPA> Date: Sun, 30-Aug-87 19:18:46 EDT Article-I.D.: brl-smok.6371 Posted: Sun Aug 30 19:18:46 1987 Date-Received: Mon, 31-Aug-87 03:45:14 EDT Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 36 Keywords: DWB troff