]> oss.titaniummirror.com Git - nesc.git/blobdiff - src/nesc-generate.c
Merge branch 'upstream' (nesc-1.3.2)
[nesc.git] / src / nesc-generate.c
index 890dd1aa77f87db07eb2c9dbedc0e5c9066d32d6..4e49d53cb8d171bee71f5337228c1f2a0dc054f9 100644 (file)
@@ -150,7 +150,7 @@ void prt_ncf_header(struct connections *c, type return_type)
   indent();
   if (!type_void(return_type))
     {
-      prt_data_decl(build_declaration(parse_region, NULL, return_type, "result", NULL, NULL));
+      prt_data_decl(build_declaration(parse_region, NULL, return_type, "__nesc_result", NULL, NULL));
       newline();
     }
 }
@@ -160,7 +160,7 @@ void prt_ncf_trailer(type return_type)
   if (!type_void(return_type))
     {
       newline();
-      outputln("return result;");
+      outputln("return __nesc_result;");
     }
   unindent();
   outputln("}");
@@ -211,12 +211,12 @@ void prt_ncf_direct_call(struct connections *c,
 
   if (!type_void(return_type))
     {
-      output("result = ");
+      output("__nesc_result = ");
 
       /* Combine w/ the combiner on subsequent calls */
       if (!first_call && combiner)
        {
-         output("%s(result, ", combiner->name);
+         output("%s(__nesc_result, ", combiner->name);
          calling_combiner = TRUE;
        }
     }