cprogram works.

This commit is contained in:
David Given
2016-06-09 07:14:41 +02:00
parent f47bb49c1f
commit 015804afce
3 changed files with 50 additions and 267 deletions

View File

@@ -60,7 +60,7 @@ end
local function basename(filename)
local _, _, b = filename:find("^.*/([^/]*)$")
if not b then
return ""
return filename
end
return b
end
@@ -108,7 +108,8 @@ local function filenamesof(targets, pattern)
end
end
else
error("list of targets contains something which isn't a target")
error(string.format("list of targets contains a %s which isn't a target",
type(r)))
end
end
end