new version with internal buffering
This commit is contained in:
@@ -3,18 +3,9 @@
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
static char buf[BUFSIZ];
|
||||
|
||||
extern char *_pbuf;
|
||||
extern int _ocnt;
|
||||
#include "object.h"
|
||||
|
||||
wr_putc(ch)
|
||||
{
|
||||
_pbuf = buf;
|
||||
buf[_ocnt++] = ch;
|
||||
if (_ocnt == BUFSIZ) {
|
||||
wr_flush();
|
||||
}
|
||||
OUTBYTE(PARTEMIT, ch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user