Bladeren bron

HPCC-894 Clean up examples and debug output

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 10 jaren geleden
bovenliggende
commit
5285743ead
3 gewijzigde bestanden met toevoegingen van 2 en 8 verwijderingen
  1. 0 1
      ecl/hqlcpp/hqlttcpp.cpp
  2. 1 1
      testing/regress/ecl/cppbody11.ecl
  3. 1 6
      testing/regress/ecl/cppbody12.ecl

+ 0 - 1
ecl/hqlcpp/hqlttcpp.cpp

@@ -5806,7 +5806,6 @@ IHqlExpression * WorkflowTransformer::extractWorkflow(IHqlExpression * untransfo
 
 
     if (isDependentOnParameter(expr))
     if (isDependentOnParameter(expr))
     {
     {
-        EclIR::dbglogIR(1, queryLocationIndependent(expr));
         StringBuffer s;
         StringBuffer s;
         getStoredDescription(s, info.sequence, info.originalLabel, true);
         getStoredDescription(s, info.sequence, info.originalLabel, true);
         translator.reportWarning(CategoryMistake, SeverityUnknown, queryActiveLocation(expr), HQLWRN_WorkflowDependParameter, HQLWRN_WorkflowDependParameter_Text, s.str());
         translator.reportWarning(CategoryMistake, SeverityUnknown, queryActiveLocation(expr), HQLWRN_WorkflowDependParameter, HQLWRN_WorkflowDependParameter_Text, s.str());

+ 1 - 1
testing/regress/ecl/cppbody11.ecl

@@ -16,7 +16,7 @@
 ############################################################################## */
 ############################################################################## */
 
 
 
 
-real scoreFunc(real a, real b) := 1;
+real scoreFunc(real a, real b) := 1;  // defines the prototype for the function argument
 
 
 real scoreIt(scoreFunc func, real a, real b) := DEFINE
 real scoreIt(scoreFunc func, real a, real b) := DEFINE
     
     

+ 1 - 6
testing/regress/ecl/cppbody12.ecl

@@ -17,15 +17,10 @@
 
 
 real storedval := 1 : stored('s');
 real storedval := 1 : stored('s');
 
 
-real scoreFunc(real a, real b) := 1;
-real scoreFunc2(real a, real b) := BEGINC++ 
-#option context 
-ENDC++;
+real scoreFunc(real a, real b) := 1;   // defines the prototype for the function argument
 
 
 real scoreIt(scoreFunc func, real a, real b) := BEGINC++
 real scoreIt(scoreFunc func, real a, real b) := BEGINC++
-    #option context
     return func(ctx,a-1.0,b-1.0) * func(ctx,a+1.0,b+1.0);
     return func(ctx,a-1.0,b-1.0) * func(ctx,a+1.0,b+1.0);
-    
 ENDC++;
 ENDC++;
     
     
 real doSum(real a, real b) := DEFINE (a + b + storedval);
 real doSum(real a, real b) := DEFINE (a + b + storedval);