🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by gwyn Sun, 30 Aug 1987 23:18
troff noise abatement
#589
Author: gwyn
Date: Sun, 30 Aug 1987 23:18
36 lines
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]);
		}
	}
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads