Commit 237cc950 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Define basic_streambuf structure globally.

parent 05a70c3d
...@@ -50,42 +50,6 @@ typedef struct { ...@@ -50,42 +50,6 @@ typedef struct {
streamsize arg; streamsize arg;
} manip_streamsize; } manip_streamsize;
typedef struct {
const vtable_ptr *vtable;
mutex lock;
char *rbuf;
char *wbuf;
char **prbuf;
char **pwbuf;
char *rpos;
char *wpos;
char **prpos;
char **pwpos;
int rsize;
int wsize;
int *prsize;
int *pwsize;
locale *loc;
} basic_streambuf_char;
typedef struct {
const vtable_ptr *vtable;
mutex lock;
wchar_t *rbuf;
wchar_t *wbuf;
wchar_t **prbuf;
wchar_t **pwbuf;
wchar_t *rpos;
wchar_t *wpos;
wchar_t **prpos;
wchar_t **pwpos;
int rsize;
int wsize;
int *prsize;
int *pwsize;
locale *loc;
} basic_streambuf_wchar;
typedef enum { typedef enum {
INITFL_new = 0, INITFL_new = 0,
INITFL_open = 1, INITFL_open = 1,
......
...@@ -104,14 +104,14 @@ typedef struct { ...@@ -104,14 +104,14 @@ typedef struct {
typedef struct _istreambuf_iterator_char typedef struct _istreambuf_iterator_char
{ {
struct _basic_streambuf_char *strbuf; basic_streambuf_char *strbuf;
MSVCP_bool got; MSVCP_bool got;
char val; char val;
} istreambuf_iterator_char; } istreambuf_iterator_char;
typedef struct _istreambuf_iterator_wchar typedef struct _istreambuf_iterator_wchar
{ {
struct _basic_streambuf_wchar *strbuf; basic_streambuf_wchar *strbuf;
MSVCP_bool got; MSVCP_bool got;
wchar_t val; wchar_t val;
} istreambuf_iterator_wchar; } istreambuf_iterator_wchar;
......
...@@ -484,5 +484,43 @@ typedef struct _ios_base { ...@@ -484,5 +484,43 @@ typedef struct _ios_base {
locale *loc; locale *loc;
} ios_base; } ios_base;
/* class basic_streambuf<char> */
typedef struct {
const vtable_ptr *vtable;
mutex lock;
char *rbuf;
char *wbuf;
char **prbuf;
char **pwbuf;
char *rpos;
char *wpos;
char **prpos;
char **pwpos;
int rsize;
int wsize;
int *prsize;
int *pwsize;
locale *loc;
} basic_streambuf_char;
/* class basic_streambuf<wchar> */
typedef struct {
const vtable_ptr *vtable;
mutex lock;
wchar_t *rbuf;
wchar_t *wbuf;
wchar_t **prbuf;
wchar_t **pwbuf;
wchar_t *rpos;
wchar_t *wpos;
wchar_t **prpos;
wchar_t **pwpos;
int rsize;
int wsize;
int *prsize;
int *pwsize;
locale *loc;
} basic_streambuf_wchar;
void init_io(void); void init_io(void);
void free_io(void); void free_io(void);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment