charmxi: For consistency, even redn_wrapper call functions are prefixed with _call
authorRamprasad Venkataraman <ramv@illinois.edu>
Mon, 2 Apr 2012 23:12:56 +0000 (18:12 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 5 Apr 2012 21:17:57 +0000 (16:17 -0500)
src/xlat-i/xi-symbol.C

index ab7bae1847e96edce737a746ad05ed4a92503aeb..8a735437bb27c36f6f8c5621407a27f5c6f89bb0 100644 (file)
@@ -4297,7 +4297,7 @@ void Entry::genIndexDecls(XStr& str)
           << "\n    static int " << "redn_wrapper_" << name
           << "(CkReductionMsg* impl_msg) { return " << epIdx(0, true) << "; }"
           << templateSpecLine
-          << "\n    static void _" << epStr(true) << "(void* impl_msg, "
+          << "\n    static void _call_" << epStr(true) << "(void* impl_msg, "
           << container->baseName() <<"* impl_obj);\n";
   }
 
@@ -4609,7 +4609,7 @@ void Entry::genDefs(XStr& str)
           XStr retStr; retStr<<retType;
           str << makeDecl(retStr);
           //str << retType << " " << indexName(); //makeDecl(retStr, 1)
-          str << "::_" << epStr(true) << "(void* impl_msg, "
+          str << "::_call_" << epStr(true) << "(void* impl_msg, "
               << container->baseName() << "* impl_obj)\n{\n"
               << "  char* impl_buf = (char*)((CkReductionMsg*)impl_msg)->getData();\n";
           XStr precall;
@@ -4636,7 +4636,7 @@ void Entry::genDefs(XStr& str)
     str << "\n// Redn wrapper registration function"
         << "\n" << makeDecl("int") << "::reg_"<< epStr(true) <<"() {"
         << "\n  return CkRegisterEp(\""  << epStr(true) << "(CkReductionMsg* impl_msg)\","
-        << "\n        (CkCallFnPtr)_" << epStr(true) << ", CMessage_CkReductionMsg::__idx, __idx, 0);"
+        << "\n        (CkCallFnPtr)_call_" << epStr(true) << ", CMessage_CkReductionMsg::__idx, __idx, 0);"
         << "\n}\n\n";
   }