1132720Skan// Iostreams base classes -*- C++ -*- 2132720Skan 3169691Skan// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005 4132720Skan// Free Software Foundation, Inc. 5132720Skan// 6132720Skan// This file is part of the GNU ISO C++ Library. This library is free 7132720Skan// software; you can redistribute it and/or modify it under the 8132720Skan// terms of the GNU General Public License as published by the 9132720Skan// Free Software Foundation; either version 2, or (at your option) 10132720Skan// any later version. 11132720Skan 12132720Skan// This library is distributed in the hope that it will be useful, 13132720Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of 14132720Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15132720Skan// GNU General Public License for more details. 16132720Skan 17132720Skan// You should have received a copy of the GNU General Public License along 18132720Skan// with this library; see the file COPYING. If not, write to the Free 19169691Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 20132720Skan// USA. 21132720Skan 22132720Skan// As a special exception, you may use this file as part of a free software 23132720Skan// library without restriction. Specifically, if other files instantiate 24132720Skan// templates or use macros or inline functions from this file, or you compile 25132720Skan// this file and link it with other files to produce an executable, this 26132720Skan// file does not by itself cause the resulting executable to be covered by 27132720Skan// the GNU General Public License. This exception does not however 28132720Skan// invalidate any other reasons why the executable file might be covered by 29132720Skan// the GNU General Public License. 30132720Skan 31132720Skan// 32132720Skan// ISO C++ 14882: 27.4 Iostreams base classes 33132720Skan// 34132720Skan 35132720Skan#include <ios> 36132720Skan#include <locale> 37132720Skan 38169691Skan_GLIBCXX_BEGIN_NAMESPACE(std) 39169691Skan 40132720Skan // Called only by basic_ios<>::init. 41132720Skan void 42132720Skan ios_base::_M_init() 43132720Skan { 44132720Skan // NB: May be called more than once 45132720Skan _M_precision = 6; 46132720Skan _M_width = 0; 47132720Skan _M_flags = skipws | dec; 48132720Skan _M_ios_locale = locale(); 49132720Skan } 50132720Skan 51132720Skan // 27.4.2.3 ios_base locale functions 52132720Skan locale 53132720Skan ios_base::imbue(const locale& __loc) 54132720Skan { 55132720Skan locale __old = _M_ios_locale; 56132720Skan _M_ios_locale = __loc; 57132720Skan _M_call_callbacks(imbue_event); 58132720Skan return __old; 59132720Skan } 60169691Skan 61169691Skan_GLIBCXX_END_NAMESPACE 62