ruby: remove random uint typedef and use unsigned
authorNathan Binkert <nate@binkert.org>
Wed, 13 May 2009 05:33:05 +0000 (22:33 -0700)
committerNathan Binkert <nate@binkert.org>
Wed, 13 May 2009 05:33:05 +0000 (22:33 -0700)
src/mem/gems_common/util.cc
src/mem/ruby/common/Global.hh
src/mem/ruby/common/SubBlock.hh
src/mem/slicc/symbols/SymbolTable.cc

index f1535bdcfeb5e4b94ad6bbb0e13e5d9941072595..d7b0e785369c074d3955777e88f1fbdcd588baa0 100644 (file)
@@ -42,7 +42,7 @@ string string_split(string& str, char split_character)
   string head = "";
   string tail = "";
 
-  uint counter = 0;
+  unsigned counter = 0;
   while(counter < str.size()) {
     if (str[counter] == split_character) {
       counter++;
index 6b524bb700cbb26ab10d07c471ed5f24c90eea45..de2d06e0e2d3e974f71a743cf611969fc0a33ce2 100644 (file)
@@ -85,7 +85,6 @@ typedef integer_t simtime_t;
 typedef Time LogicalTime;
 typedef int64 Index;            // what the address bit ripper returns
 typedef int word;               // one word of a cache line
-typedef unsigned int uint;
 typedef int SwitchID;
 typedef int LinkID;
 
index 5831be35a62d3b177ccf6577f650012f89ddb3b7..2943bb886948b19d8e3846e1b7e0dc466d730012 100644 (file)
@@ -85,7 +85,7 @@ private:
   // Data Members (m_ prefix)
   Address m_address;
   Address m_logicalAddress;
-  Vector<uint> m_data;
+  Vector<unsigned> m_data;
 };
 
 // Output operator declaration
index 70391f8386227d699e1ccf5db86d6adefc38d088..e598ffcb4e8bd562e1e9816fd120034309f7be65 100644 (file)
@@ -477,8 +477,8 @@ void SymbolTable::writeChipFiles(string path) const
                 string child_types = var->lookupPair("child_types");
                 string::iterator it = child_types.begin();
 
-                uint num_types = 0;
-                for(uint t=0;t<child_types.size();t++){
+                unsigned num_types = 0;
+                for(unsigned t=0;t<child_types.size();t++){
                   if(child_types.at(t) == '<'){
                     num_types++;
                   }
@@ -488,10 +488,10 @@ void SymbolTable::writeChipFiles(string path) const
                 string* ids = new string[num_types];
                 int type_idx = 0;
                 bool id_done = false;
-                for(uint t=0;t<child_types.size();t++){
+                for(unsigned t=0;t<child_types.size();t++){
                   if(child_types[t] == '<'){
                     id_done = false;
-                    uint r;
+                    unsigned r;
                     for(r=t+1;child_types.at(r)!='>';r++){
                       if(r == child_types.size()){
                         cerr << "Parse error in child_types" << endl;
@@ -509,7 +509,7 @@ void SymbolTable::writeChipFiles(string path) const
                   }
                 }
 
-                for(uint t=0;t<num_types;t++){
+                for(unsigned t=0;t<num_types;t++){
                   if(t==0)
                     sstr << "    if(strcmp(" << child_selector << ", \"" << ids[t] << "\") == 0)" << endl;
                   else