58 typedef struct BufferListItem {
59 unsigned char buf[IOBSIZE];
60 struct BufferListItem *next;
63 typedef struct IoBuffer {
64 BufferListItem *start_buf;
65 BufferListItem *write_buf;
66 unsigned char *write_ptr;
68 BufferListItem *read_buf;
69 unsigned char *read_ptr;
74 typedef struct TextBuffer {
88 IoBuffer R_ConsoleIob;
91 int R_IoBufferInit(IoBuffer*);
92 int R_IoBufferFree(IoBuffer*);
93 int R_IoBufferReadReset(IoBuffer*);
94 int R_IoBufferWriteReset(IoBuffer*);
95 int R_IoBufferGetc(IoBuffer*);
96 int R_IoBufferPutc(
int, IoBuffer*);
97 int R_IoBufferPuts(
char*, IoBuffer*);
98 int R_IoBufferReadOffset(IoBuffer*);
100 int R_TextBufferInit(TextBuffer*,
SEXP);
101 int R_TextBufferFree(TextBuffer*);
102 int R_TextBufferGetc(TextBuffer*);