Regression tests now run under scons!
[gem5.git] / base / cprintf_formats.hh
index b921c05062ba5b1236ac24dee4b45e980ac15dc4..11b0238edea13b8e7f1dc1d5fe7bc49687f5ef65 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003 The Regents of The University of Michigan
+ * Copyright (c) 2003-2005 The Regents of The University of Michigan
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -62,7 +62,7 @@ struct Format
 
 template <typename T>
 inline void
-_format_char(std::ostream &out, const Tdata, Format &fmt)
+_format_char(std::ostream &out, const T &data, Format &fmt)
 {
     using namespace std;
 
@@ -71,7 +71,7 @@ _format_char(std::ostream &out, const T& data, Format &fmt)
 
 template <typename T>
 inline void
-_format_integer(std::ostream &out, const Tdata, Format &fmt)
+_format_integer(std::ostream &out, const T &data, Format &fmt)
 {
     using namespace std;
 
@@ -128,7 +128,7 @@ _format_integer(std::ostream &out, const T& data, Format &fmt)
 
 template <typename T>
 inline void
-_format_float(std::ostream &out, const Tdata, Format &fmt)
+_format_float(std::ostream &out, const T &data, Format &fmt)
 {
     using namespace std;
 
@@ -180,7 +180,7 @@ _format_float(std::ostream &out, const T& data, Format &fmt)
 
 template <typename T>
 inline void
-_format_string(std::ostream &out, const Tdata, Format &fmt)
+_format_string(std::ostream &out, const T &data, Format &fmt)
 {
     using namespace std;
 
@@ -225,7 +225,7 @@ _format_string(std::ostream &out, const T& data, Format &fmt)
 //
 template <typename T>
 inline void
-format_char(std::ostream &out, const Tdata, Format &fmt)
+format_char(std::ostream &out, const T &data, Format &fmt)
 { out << "<bad arg type for char format>"; }
 
 inline void
@@ -279,8 +279,6 @@ template <typename T>
 inline void
 format_integer(std::ostream &out, const T &data, Format &fmt)
 { _format_integer(out, data, fmt); }
-
-#if 0
 inline void
 format_integer(std::ostream &out, char data, Format &fmt)
 { _format_integer(out, data, fmt); }
@@ -290,6 +288,7 @@ format_integer(std::ostream &out, unsigned char data, Format &fmt)
 inline void
 format_integer(std::ostream &out, signed char data, Format &fmt)
 { _format_integer(out, data, fmt); }
+#if 0
 inline void
 format_integer(std::ostream &out, short data, Format &fmt)
 { _format_integer(out, data, fmt); }
@@ -321,7 +320,7 @@ format_integer(std::ostream &out, unsigned long long data, Format &fmt)
 //
 template <typename T>
 inline void
-format_float(std::ostream &out, const Tdata, Format &fmt)
+format_float(std::ostream &out, const T &data, Format &fmt)
 { out << "<bad arg type for float format>"; }
 
 inline void
@@ -337,11 +336,11 @@ format_float(std::ostream &out, double data, Format &fmt)
 //
 template <typename T>
 inline void
-format_string(std::ostream &out, const Tdata, Format &fmt)
+format_string(std::ostream &out, const T &data, Format &fmt)
 { _format_string(out, data, fmt); }
 
 inline void
-format_string(std::ostream &out, const std::stringstreamdata, Format &fmt)
+format_string(std::ostream &out, const std::stringstream &data, Format &fmt)
 { _format_string(out, data.str(), fmt); }
 
 #endif // __CPRINTF_FORMATS_HH__