From aa831d6dab6befb29d69be93956ee8846ca64ea5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 7 Apr 2000 07:40:43 +0000 Subject: Update. 2000-04-07 Ulrich Drepper * 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. --- wcsmbs/wchar.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'wcsmbs') 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 -- cgit 1.4.1