aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-07 07:40:43 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-07 07:40:43 +0000
commitaa831d6dab6befb29d69be93956ee8846ca64ea5 (patch)
tree5f616a9bb1330ab27027d1a8d6b1198814b29459 /wcsmbs
parentf11b9da65497cfdb8e49cbc074a1d17a050358bc (diff)
downloadglibc-aa831d6dab6befb29d69be93956ee8846ca64ea5.tar
glibc-aa831d6dab6befb29d69be93956ee8846ca64ea5.tar.gz
glibc-aa831d6dab6befb29d69be93956ee8846ca64ea5.tar.bz2
glibc-aa831d6dab6befb29d69be93956ee8846ca64ea5.zip
Update.
2000-04-07 Ulrich Drepper <drepper@redhat.com> * wcsmbs/wchar.h (__mbstate_t): Rename elements. Make __value element a union to allow byte access. * iconvdata/iso-2022-cn.c: Adjust for change of element name in mbstate_t. * iconvdata/iso-2022-jp.c: Likewise. * iconvdata/iso-2022-kr.c: Likewise.
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wchar.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index 0903b554cd..66e72908bb 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -61,8 +61,12 @@ typedef unsigned int wint_t;
/* Conversion state information. */
typedef struct
{
- int count; /* Number of bytes needed for the current character. */
- wint_t value; /* Value so far. */
+ int __count;
+ union
+ {
+ wint_t __wch;
+ char __wchb[4];
+ } __value; /* Value so far. */
} __mbstate_t;
#endif
#undef __need_mbstate_t