Vnews bug: BC,UP not extern.

Lee McLoughlin lee at west44.UUCP
Tue Aug 21 10:31:42 AEST 1984


The following bugs in Vnews cropped up when trying to use a B.B.C micro as
a terminal to read news on.  The Beeb is 25 * 80 and needs to output null's
in the cursor address sequence, at least the one I was using had to.
 Unfortunetly the BC and UP characters which tgoto needs in order to do this
are not extern char *'s in our virtterm.c but are #define's.

Here are the fixes I found necessary.
------
#define MAXPLEN 25	/* LMCL: was 24 */
.
.
.
#define xUP _tstr[4]		/* up one line, LMCL: added x to avoid clash */
.
.
#define xBC _tstr[9]		/* backspace, LMCL: added x to avoid clash */
.
.
extern char *UP;		/* LMCL: UP string must exist for tgoto */
extern char *BC;		/* LMCL: BC string must exist for tgoto */
.
.
.
	if (HO)
		HOlen = strlen(HO);
	else
		HOlen = 999;

	PC = xPC ? xPC[0] : 0;
	UP = xUP;		/* LMCL */
	BC = xBC;		/* LMCL */
.
.
.
---------
And change all the original occurences of UP to xUP and BC to xBC.
-- 
--------------
Lee McLoughlin	<UK>!ukc!lmcl, west44!lee
	UKUUCP support.



More information about the Net.bugs mailing list