diff options
Diffstat (limited to 'libio/vswprintf.c')
-rw-r--r-- | libio/vswprintf.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/libio/vswprintf.c b/libio/vswprintf.c index 5bbd20227b..42168aade4 100644 --- a/libio/vswprintf.c +++ b/libio/vswprintf.c @@ -1,5 +1,4 @@ -/* Copyright (C) 1994, 1997, 1999-2002, 2004, 2005, 2006 - Free Software Foundation, Inc. +/* Copyright (C) 1994,1997,1999-2002,2004 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 @@ -30,6 +29,15 @@ #include "strfile.h" +typedef struct +{ + _IO_strfile f; + /* This is used for the characters which do not fit in the buffer + provided by the user. */ + wchar_t overflow_buf[64]; +} _IO_wstrnfile; + + static wint_t _IO_wstrn_overflow (_IO_FILE *fp, wint_t c) __THROW; static wint_t @@ -67,7 +75,7 @@ _IO_wstrn_overflow (fp, c) } -const struct _IO_jump_t _IO_wstrn_jumps attribute_hidden = +static const struct _IO_jump_t _IO_wstrn_jumps = { JUMP_INIT_DUMMY, JUMP_INIT(finish, _IO_wstr_finish), @@ -127,5 +135,8 @@ _IO_vswprintf (string, maxlen, format, args) return ret; } + +#ifdef weak_alias weak_alias (_IO_vswprintf, __vswprintf) -ldbl_weak_alias (_IO_vswprintf, vswprintf) +weak_alias (_IO_vswprintf, vswprintf) +#endif |