new version with internal buffering

This commit is contained in:
ceriel
1989-11-16 15:52:08 +00:00
parent e93e256512
commit 42a7f3d8e7
3 changed files with 225 additions and 137 deletions

View File

@@ -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);
}