Skip to content

Commit

Permalink
Parameterized goals #115
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 19, 2023
1 parent 03e5d6b commit d1681d3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit d1681d3

Please sign in to comment.