~kris/9p

9hist

5bcc83d4ace983ff5f3c194e9085172f06dd922f — David du Colombier 25 years ago e7f82a6
Plan 9 from Bell Labs 2001-01-15
4 files changed, 4 insertions(+), 9 deletions(-)

M bitsy/devpenmouse.c
M port/devcons.c
M port/devdraw.c
M port/error.h
M bitsy/devpenmouse.c => bitsy/devpenmouse.c +1 -1
@@ 365,7 365,7 @@ penmousewrite(Chan *c, void *va, long n, vlong)
				 || (!isdigit(*field[2]) && *field[2] != '-')
				 || (!isdigit(*field[3]) && *field[3] != '-')
				 || (!isdigit(*field[4]) && *field[4] != '-'))
					error(Ectlsyntax);
					error("bad syntax in control file message");
				calibration.scalex = strtol(field[1], nil, 0);
				calibration.scaley = strtol(field[2], nil, 0);
				calibration.transx = strtol(field[3], nil, 0);

M port/devcons.c => port/devcons.c +2 -5
@@ 21,10 21,9 @@ static struct
	char	line[1024];	/* current input line */

	int	count;
	int	repeat;
	int	ctlpoff;

	/* someplace to save up characters at interrupt time before dumping them in the q */
	/* a place to save up characters at interrupt time before dumping them in the queue */
	Lock	lockputc;
	char	istage[512];
	char	*iw;


@@ 314,7 313,6 @@ echoprintq(char *buf, int n)
		qiwrite(printq, ebuf, p - ebuf);
}


void
echo(char *buf, int n)
{


@@ 393,8 391,7 @@ echo(char *buf, int n)
/*
 *  Called by a uart interrupt for console input.
 *
 *  turn '\r' into '\n' before putting it into the queue.  we
 *  can't type runes on alternate consoles, so don't worry about it.
 *  turn '\r' into '\n' before putting it into the queue.
 */
int
kbdcr2nl(Queue*, int ch)

M port/devdraw.c => port/devdraw.c +1 -2
@@ 1363,9 1363,8 @@ drawmesg(Client *client, void *av, int n)
				continue;
			}
			i = allocmemimage(r, chan);
			if(i == 0){
			if(i == 0)
				error(Edrawmem);
			}
			if(repl)
				i->flags |= Frepl;
			i->clipr = clipr;

M port/error.h => port/error.h +0 -1
@@ 44,4 44,3 @@ extern char Egreg[];		/* xterm: Error 50, errno 1: Too big */
extern char Ebadspec[];		/* bad attach specifier */
extern char Enoreg[];		/* process has no saved registers */
extern char Enoattach[];	/* mount/attach disallowed */
extern char Ectlsyntax[];	/* bad syntax in control file messages */