From a334319f6530564d22e775935d9c91663623a1b4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Dec 2004 20:10:10 +0000 Subject: (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4. --- libio/vswprintf.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'libio/vswprintf.c') 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 -- cgit v1.2.3