charmxi sdag: Fix inconsistent indentation in generated code
authorPhil Miller <mille121@illinois.edu>
Mon, 26 Mar 2012 23:43:05 +0000 (18:43 -0500)
committerPhil Miller <mille121@illinois.edu>
Mon, 26 Mar 2012 23:43:24 +0000 (18:43 -0500)
src/xlat-i/sdag/CEntry.C
src/xlat-i/sdag/CSdagConstruct.C

index 8d8b26b9430ab8ecfa4107c04c60556154bcee48..002f08322e638799a05fbe25bc2bc88eec8e73f3 100644 (file)
@@ -54,7 +54,7 @@ static void generateWhenCode(XStr& op, SdagConstruct *cn)
     }
     else if (sv->isVoid == 1)
       // op <<"    CkFreeSysMsg((void  *)tr->args[" <<iArgs++ <<"]);\n";
-      op <<"    tr->args[" <<iArgs++ <<"] = 0;\n";
+      op <<"        tr->args[" <<iArgs++ <<"] = 0;\n";
     else if ((sv->isMsg == 0) && (sv->isVoid == 0)) {
       if((i > 0) && (lastWasVoid == 0))
         whenParams.append(", ");
@@ -87,6 +87,7 @@ static void generateWhenCode(XStr& op, SdagConstruct *cn)
   cn->generateTlineEndCall(op);
   cn->generateBeginExec(op, "sdagholder");
 #endif
+  op << "    ";
   cn->generateDummyBeginExecute(op);
 
   op << "        return;\n";
index 237a2612854743ab5660acfae84e63540847c54d..28a08e54084f89cdf76dfce3888faf3b47d4c8fa 100644 (file)
@@ -1223,7 +1223,7 @@ void SdagConstruct::generateSignature(XStr& op, const char* returnType,
 }
 void SdagConstruct::endMethod(XStr& op)
 {
-  op << "}\n\n";
+  op << "  }\n\n";
 }
 
 void SdagConstruct::generateCall(XStr& op, TList<CStateVar*>& list,