1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00
2003-11-15  Ulrich Drepper  <drepper@redhat.com>

	* wcsmbs/mbsinit.c: Undef mbsinit and __mbsinit.
	* include/wchar.h: Provide inline versions of mbsinit and __mbsinit.
This commit is contained in:
Ulrich Drepper
2003-11-15 21:58:21 +00:00
parent ecdcadbd16
commit 2def87644d
3 changed files with 16 additions and 1 deletions

View File

@@ -113,5 +113,12 @@ extern int __vfwprintf (__FILE *__restrict __s,
/* Internal functions. */
extern size_t __mbsrtowcs_l (wchar_t *dst, const char **src, size_t len,
mbstate_t *ps, __locale_t l) attribute_hidden;
/* Special version. We know that all uses of mbsinit inside the libc
have a non-NULL parameter. And certainly we can access the
internals of the data structure directly. */
# define mbsinit(state) ((state)->__count == 0)
# define __mbsinit(state) ((state)->__count == 0)
# endif
#endif