ruby: remove random uint typedef and use unsigned
This commit is contained in:
@@ -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++;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user