more internal buffering

This commit is contained in:
ceriel
1989-11-17 15:56:53 +00:00
parent 99cae8d6df
commit e9d477fd6e
5 changed files with 37 additions and 33 deletions

View File

@@ -5,7 +5,12 @@
*/
#include "object.h"
extern int __sectionnr;
wr_putc(ch)
{
OUTBYTE(PARTEMIT, ch);
register struct fil *ptr = &__parts[PARTEMIT+getsect(__sectionnr)];
if (ptr->cnt == 0) __wr_flush(ptr);
ptr->cnt--; *ptr->pnow++ = ch;
}