Skip to content

Commit

Permalink
Parameterized goals #115 attempt fixing tests macos 10.15 awk version…
Browse files Browse the repository at this point in the history
… 20070501
  • Loading branch information
xonixx committed Jan 26, 2023
1 parent 8dedaa6 commit dbdf646
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BEGIN {
makesure()
}

function makesure() {
function makesure( i) {
while (getline > 0) {
Lines[NR]=$0
if ($1 ~ /^@/ && "@define" != $1 && "@reached_if" != $1) reparseCli()
Expand All @@ -56,6 +56,7 @@ function makesure() {
else if ("@use_lib" == $1) handleUseLib()
else if ($1 ~ /^@/) addError("Unknown directive: " $1)
else handleCodeLine($0)
for (i=1;i<10;i++) $i=""
}
doWork()
realExit(0)
Expand Down Expand Up @@ -857,11 +858,13 @@ function reparseCli( res,i,err) {
if (err) {
addError("Syntax error: " err)
die(Error)
} else
} else {
$0=""
for (i=NF=0; i in res; i++) {
$(++NF)=res[i]
Quotes[NF]=res[i,"quote"]
}
}
}
function quote2(s,force) {
if (index(s,"'")) {
Expand Down

0 comments on commit dbdf646

Please sign in to comment.