/* $NetBSD: promcons.c,v 1.4 1998/01/05 07:03:29 perry Exp $ */ #include #include #include int getchar() { return ( (*romVectorPtr->getChar)() ); } int peekchar() { return ( (*romVectorPtr->mayGet)() ); } void putchar(c) int c; { if (c == '\n') (*romVectorPtr->putChar)('\r'); (*romVectorPtr->putChar)(c); }