Commit b508f866 authored by Roland Levillain's avatar Roland Levillain
Browse files

Fix inclusions of standard headers.

	* src/nolimips.cc,
	* src/misc/readline.hh:
	Include missing standard headers.
	* src/shell/shell.cc: Change the inclusion order of some headers,
	to work around incompatibilities between C and C++ headers.
	Suggested by Yann Grandmaitre <yanngrandmaitre@gmail.com>.
parent 223d4e7a
2009-11-10 Roland Levillain <roland@lrde.epita.fr>
Fix inclusions of standard headers.
* src/nolimips.cc,
* src/misc/readline.hh:
Include missing standard headers.
* src/shell/shell.cc: Change the inclusion order of some headers,
to work around incompatibilities between C and C++ headers.
Suggested by Yann Grandmaitre <yanngrandmaitre@gmail.com>.
2008-12-06 Roland Levillain <roland@lrde.epita.fr>
Update bison++.
......
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
// Copyright (C) 2004 Benoit Perrot <benoit@lrde.epita.fr>
// Copyright (C) 2004, 2009 Benoit Perrot <benoit@lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
......@@ -19,6 +19,9 @@
#include "config.h"
#include <cstdlib>
#include <cstdio>
#ifdef HAVE_READLINE_READLINE_H
# include <readline/readline.h>
// #ifdef HAVE_READLINE_HISTORY_H
......
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
// Copyright (C) 2003, 2004 Benoit Perrot <benoit@lrde.epita.fr>
// Copyright (C) 2003, 2004, 2009 Benoit Perrot <benoit@lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
......@@ -16,6 +16,9 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#include <cstdlib>
#include <string>
#include <iostream>
......
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
// Copyright (C) 2003, 2004, 2006 Benoit Perrot <benoit@lrde.epita.fr>
// Copyright (C) 2003, 2004, 2006, 2009 Benoit Perrot <benoit@lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
......@@ -17,12 +17,10 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
#include <iomanip>
#include "misc/readline.hh"
#include "parse-tasks.hh"
#include "misc/lexutils.hh"
#include "misc/readline.hh"
#include "parse/libparse.hh"
......@@ -32,6 +30,13 @@
#include "shell/shell.hh"
#include "shell/cmd.hh"
/* This standard is included _after_ local headers on purpose, to
circumvent incompatibilities between C and C++ headers regarding
the C macro / C++ function `isxdigit' (since g++ 4.3). See e.g.
http://gcc.gnu.org/ml/libstdc++/2003-01/msg00209.html for more
information. */
#include <iomanip>
namespace shell
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment