The R Project SVN R

Rev

Rev 2429 | Rev 4622 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2429 Rev 3921
Line 30... Line 30...
30
#include "Defn.h"
30
#include "Defn.h"
31
 
31
 
32
#define IOBSIZE 4096
32
#define IOBSIZE 4096
33
 
33
 
34
typedef struct BufferListItem {
34
typedef struct BufferListItem {
35
	char			buf[IOBSIZE];
35
	unsigned char			buf[IOBSIZE];
36
	struct BufferListItem	*next;
36
	struct BufferListItem	*next;
37
} BufferListItem;
37
} BufferListItem;
38
 
38
 
39
typedef struct IoBuffer {
39
typedef struct IoBuffer {
40
	BufferListItem	*start_buf;		/* First buffer item */
40
	BufferListItem	*start_buf;		/* First buffer item */
41
	BufferListItem	*write_buf;		/* Write pointer location */
41
	BufferListItem	*write_buf;		/* Write pointer location */
42
	char		*write_ptr;		/* Write pointer location */
42
	unsigned char	*write_ptr;		/* Write pointer location */
43
	int		 write_offset;		/* Write pointer location */
43
	int		 write_offset;		/* Write pointer location */
44
	BufferListItem	*read_buf;		/* Read pointer location */
44
	BufferListItem	*read_buf;		/* Read pointer location */
45
	char		*read_ptr;		/* Read pointer location */
45
	unsigned  char	*read_ptr;		/* Read pointer location */
46
	int		 read_offset;		/* Read pointer location */
46
	int		 read_offset;		/* Read pointer location */
47
} IoBuffer;
47
} IoBuffer;
48
 
48
 
49
 
49
 
50
typedef struct TextBuffer {
50
typedef struct TextBuffer {
51
	char	*vmax;				/* Memory stack top */
51
	char	*vmax;				/* Memory stack top */
52
	char	*buf;				/* Line buffer */
52
	unsigned char	*buf;				/* Line buffer */
53
	char	*bufp;				/* Line buffer location */
53
	unsigned char	*bufp;				/* Line buffer location */
54
	SEXP	text;				/* String Vector */
54
	SEXP	text;				/* String Vector */
55
	int	ntext;				/* Vector length */
55
	int	ntext;				/* Vector length */
56
	int	offset;				/* Offset within vector */
56
	int	offset;				/* Offset within vector */
57
} TextBuffer;
57
} TextBuffer;
58
 
58