Clean up arch/*/process.hh includes and std namespace issues.
authorSteve Reinhardt <stever@eecs.umich.edu>
Sun, 12 Mar 2006 21:27:52 +0000 (16:27 -0500)
committerSteve Reinhardt <stever@eecs.umich.edu>
Sun, 12 Mar 2006 21:27:52 +0000 (16:27 -0500)
arch/alpha/process.cc:
arch/mips/process.cc:
arch/sparc/process.cc:
    You really do need the headers in the .cc file.
arch/alpha/process.hh:
    Don't include unnecessary headers in another header.
    Replace with forward class declarations.
arch/mips/process.hh:
arch/sparc/process.hh:
    Don't include unnecessary headers in another header.
    Replace with forward class declarations.
    Also fix std namespace... no "using" in header files!

--HG--
extra : convert_revision : f2cd953d0f4a212bb8148cc54c329aa3c18deb89

arch/alpha/process.cc
arch/alpha/process.hh
arch/mips/process.cc
arch/mips/process.hh
arch/sparc/process.cc
arch/sparc/process.hh

index dc4b92861c10d9b04adc9306905647d26482da07..17a54ee80e988b967520b9f4ce6658b535bf52f1 100644 (file)
  */
 
 #include "arch/alpha/process.hh"
+#include "arch/alpha/linux/process.hh"
+#include "arch/alpha/tru64/process.hh"
+#include "base/loader/object_file.hh"
+#include "base/misc.hh"
 
 namespace AlphaISA
 {
index a2eb65890f871ee9376667dd8155f0bc69b3b085..6d65851751c25f4d0dc4249d8e35feb5168ba5e3 100644 (file)
 #define __ALPHA_PROCESS_HH__
 
 #include <string>
+#include <vector>
 
-#include "arch/alpha/linux/process.hh"
-#include "arch/alpha/tru64/process.hh"
-#include "base/loader/object_file.hh"
+class LiveProcess;
+class ObjectFile;
+class System;
 
 namespace AlphaISA
 {
 
 LiveProcess *
 createProcess(const std::string &nm, ObjectFile * objFile, System * system,
-        int stdin_fd, int stdout_fd, int stderr_fd,
-        std::vector<std::string> &argv, std::vector<std::string> &envp);
+              int stdin_fd, int stdout_fd, int stderr_fd,
+              std::vector<std::string> &argv, std::vector<std::string> &envp);
 
 } // namespace AlphaISA
 
index 7f374f580e5c57d4ccc6e6c8df0c0677caf48ddd..f63e668b537cd0d116e876479907964dbdc609e4 100644 (file)
@@ -27,6 +27,9 @@
  */
 
 #include "arch/mips/process.hh"
+#include "arch/mips/linux/process.hh"
+#include "base/loader/object_file.hh"
+#include "base/misc.hh"
 
 using namespace std;
 
index b2a35d6888ad0d303e5ff9d1306c9687a15fe4d4..8f5d74d967a88ba6fc1822a9c7b691eb81d53a37 100644 (file)
 #ifndef __MIPS_PROCESS_HH__
 #define __MIPS_PROCESS_HH__
 
-#include "arch/mips/linux_process.hh"
-#include "base/loader/object_file.hh"
+#include <string>
+#include <vector>
 
-using namespace std;
+class LiveProcess;
+class ObjectFile;
+class System;
 
 namespace MipsISA
 {
 
 LiveProcess *
-createProcess(const string &nm, ObjectFile * objFile,System * system,
-        int stdin_fd, int stdout_fd, int stderr_fd,
-        vector<string> &argv, vector<string> &envp);
+createProcess(const std::string &nm, ObjectFile * objFile,System * system,
+              int stdin_fd, int stdout_fd, int stderr_fd,
+              std::vector<std::string> &argv, std::vector<std::string> &envp);
 
 } // namespace MipsISA
 
index 53a2153790c70489e642656d0660efec7502df39..2c10f65e66ebb63228d8522a4dcc45d43162cc86 100644 (file)
@@ -27,6 +27,9 @@
  */
 
 #include "arch/sparc/process.hh"
+#include "arch/sparc/linux/process.hh"
+#include "base/loader/object_file.hh"
+#include "base/misc.hh"
 
 namespace SparcISA
 {
index 48041a3161905b451e032069b35a96d98b53c04a..e0bba3497cd46a53057542c6925efb00bdcd0b60 100644 (file)
 #ifndef __SPARC_PROCESS_HH__
 #define __SPARC_PROCESS_HH__
 
-#include "arch/sparc/linux/process.hh"
-#include "base/loader/object_file.hh"
+#include <string>
+#include <vector>
+
+class LiveProcess;
+class ObjectFile;
+class System;
 
 namespace SparcISA
 {
 
 LiveProcess *
-createProcess(const string &nm, ObjectFile * objFile,
-        int stdin_fd, int stdout_fd, int stderr_fd,
-        vector<string> &argv, vector<string> &envp);
+createProcess(const std::string &nm, ObjectFile * objFile,
+              int stdin_fd, int stdout_fd, int stderr_fd,
+              std::vector<std::string> &argv, std::vector<std::string> &envp);
 
 } // namespace SparcISA