Deleted Added
sdiff udiff text old ( 5202:ff56fa8c2091 ) new ( 5544:65b27e939646 )
full compact
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 15 unchanged lines hidden (view full) ---

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Nathan Binkert
29 * Steve Reinhardt
30 */
31
32#include <fstream>
33#include <iostream>
34#include <vector>
35#include <string>
36
37#include "base/inifile.hh"
38#include "base/str.hh"
39
40using namespace std;
41

--- 6 unchanged lines hidden (view full) ---

48 SectionTable::iterator end = table.end();
49
50 while (i != end) {
51 delete (*i).second;
52 ++i;
53 }
54}
55
56bool
57IniFile::load(const string &file)
58{
59 ifstream f(file.c_str());
60
61 if (!f.is_open())
62 return false;
63
64 return load(f);

--- 263 unchanged lines hidden ---