From d1681d3353f38b99e75675bab58a3912b05b8efd Mon Sep 17 00:00:00 2001 From: xonix Date: Fri, 20 Jan 2023 01:51:25 +0200 Subject: [PATCH] Parameterized goals #115 --- makesure.awk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/makesure.awk b/makesure.awk index 8e31dbc..4f8e57e 100755 --- a/makesure.awk +++ b/makesure.awk @@ -116,7 +116,7 @@ function prepareArgs( i,arg) { Options["timing"] } -#function dbgA(name, arr, i) { print "--- " name ": "; for (i in arr) printf "%2s : %s\n", i, arr[i] } +function dbgA(name, arr, i) { print "--- " name ": "; for (i in arr) printf "%2s : %s\n", i, arr[i] } #function dbgAO(name, arr, i) { print "--- " name ": "; for (i=0;i in arr;i++) printf "%2s : %s\n", i, arr[i] } function splitKV(arg, kv, n) { @@ -357,13 +357,19 @@ function getPreludeCode( a) { } function doWork(\ - i,j,goalName,gnLen,gnMaxLen,depCnt,dep,reachedGoals,emptyGoals,preludeCode, + i,j,goalName,gnLen,gnMaxLen,depCnt,reachedGoals,emptyGoals,preludeCode, body,goalBody,goalBodies,resolvedGoals,exitCode, t0,t1,t2, goalTimed, list) { started("end") # end last directive checkBeforeRun() + dbgA("GoalParamsCnt",GoalParamsCnt) + dbgA("GoalParams",GoalParams) + dbgA("DependencyArgsCnt",DependencyArgsCnt) + dbgA("DependencyArgs",DependencyArgs) + dbgA("DependencyArgsType",DependencyArgsType) + if (Error) die(Error)