diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-05-28 18:32:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-05-28 18:32:20 +0000 |
commit | 7163e69e10f3bbbe71a416d15e66eac16c852d27 (patch) | |
tree | f9f24400eca60cf5f6b49e92fb8e6b62a8b3195b /libio/libioP.h | |
parent | 1ef9f0b673cc36f307161d653d4305dee8da00f9 (diff) | |
download | glibc-7163e69e10f3bbbe71a416d15e66eac16c852d27.zip glibc-7163e69e10f3bbbe71a416d15e66eac16c852d27.tar.gz glibc-7163e69e10f3bbbe71a416d15e66eac16c852d27.tar.bz2 |
Update.
2000-05-21 Jakub Jelinek <jakub@redhat.com>
* libio/libioP.h (_IO_CHECK_WIDE): Define.
* libio/iosetbuffer.c (_IO_setbuffer): Use it.
Call _IO_WSETBUF even for _mode 1.
* libio/iosetvbuf.c (_IO_setvbuf): Likewise.
* libio/fileops.c (_IO_new_file_fopen): Return NULL if
_IO_CHECK_WIDE fails.
Diffstat (limited to 'libio/libioP.h')
-rw-r--r-- | libio/libioP.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/libioP.h b/libio/libioP.h index d23436a..59d20cd 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -71,6 +71,8 @@ extern "C" { #define _IO_JUMPS(THIS) ((struct _IO_FILE_plus *) (THIS))->vtable #define _IO_WIDE_JUMPS(THIS) ((struct _IO_FILE *) (THIS))->_wide_data->_wide_vtable +#define _IO_CHECK_WIDE(THIS) (((struct _IO_FILE *) (THIS))->_wide_data != NULL) + #if _IO_JUMPS_OFFSET # define _IO_JUMPS_FUNC(THIS) \ (*(struct _IO_jump_t **) ((void *) &((struct _IO_FILE_plus *) (THIS))->vtable\ |