Delete all Trailing spaces in code.

svn path=/trunk/; revision=29690
This commit is contained in:
Daniel Reimer
2007-10-19 23:21:45 +00:00
parent a7fddf9c07
commit ae7da04787
2821 changed files with 211074 additions and 211075 deletions
+12 -12
View File
@@ -26,7 +26,7 @@ public:
else lit_value = typestr.substr(amp+1);
}
if( col != std::string::npos ) {
if( amp > col && amp != std::string::npos )
if( amp > col && amp != std::string::npos )
len = typestr.substr(col+1,amp-col+1);
else len = typestr.substr(col+1);
}
@@ -36,7 +36,7 @@ public:
c_type = typestr.substr(0,col);
}
vartype( const vartype &other )
vartype( const vartype &other )
: c_type(other.c_type),
len(other.len),
lit_value(other.lit_value) {
@@ -66,7 +66,7 @@ std::string clip_eol( std::string in, const std::string &eol_marks ) {
size_t found;
for( size_t i = 0; i < eol_marks.size(); i++ ) {
found = in.find( eol_marks[i] );
if( found != std::string::npos )
if( found != std::string::npos )
in = in.substr( 0, found );
}
return in;
@@ -112,7 +112,7 @@ void populate_definition( ofw_wrappers &wrapper, const std::string &line ) {
for( i = 1; i < (int)name.size(); i++ )
if( name[i] == '-' ) name[i] = '_';
if( nametext == "call-method" )
if( nametext == "call-method" )
wrapper.method_ctindex = wrapper.ctindex;
for( i = 0; i < args; i++ ) {
@@ -151,7 +151,7 @@ void populate_definition( ofw_wrappers &wrapper, const std::string &line ) {
for( int i = 0; i < args; i++ )
function << "\tstw %r" << (i+3) << "," << (4 * (i + 3)) << "(%r1)\n";
function << "\t/* Load up the call address */\n"
<< "\tlis %r10,ofw_call_addr@ha\n"
<< "\tlwz %r9,ofw_call_addr@l(%r10)\n"
@@ -188,18 +188,18 @@ void populate_definition( ofw_wrappers &wrapper, const std::string &line ) {
of_call << le_stub.str() << ";\n";
le_stub << " {\n";
if( rettype != "void" )
if( rettype != "void" )
le_stub << "\t" << rettype << " ret;\n";
if( method_call ) {
le_stub << "\tchar arg0["
<< round_up(nametext.size()+1,8)
le_stub << "\tchar arg0["
<< round_up(nametext.size()+1,8)
<< "] = \"" << nametext << "\";\n";
}
for( i = 0; i < args; i++ ) {
if( argtypes[i].lit_value.size() ) {
le_stub << "\t" << argtypes[i].c_type << " arg" << i << " = "
le_stub << "\t" << argtypes[i].c_type << " arg" << i << " = "
<< argtypes[i].lit_value << ";\n";
}
}
@@ -207,7 +207,7 @@ void populate_definition( ofw_wrappers &wrapper, const std::string &line ) {
le_stub << "\t";
if( rettype != "void" ) le_stub << "ret = (" << rettype << ")";
le_stub << "ofproxy(" <<
le_stub << "ofproxy(" <<
(method_call ? (wrapper.method_ctindex * 4) : (wrapper.ctindex * 4));
for( i = 0; i < 6; i++ ) {
@@ -217,7 +217,7 @@ void populate_definition( ofw_wrappers &wrapper, const std::string &line ) {
le_stub << ");\n";
if( rettype != "void" )
if( rettype != "void" )
le_stub << "\treturn ret;\n";
le_stub << "}\n";
@@ -302,7 +302,7 @@ int main( int argc, char **argv ) {
<< "\n/* End */\n";
outcsource << "/* AUTOMATICALLY GENERATED BY ofw_interface */\n"
<< "#include \"of.h\"\n"
<< "#include \"of.h\"\n"
<< wrappers.le_stubs;
outcheader << "/* AUTOMATICALLY GENERATE BY ofw_interface */\n"