error symbols are actually defined.
definerule("installable",
{
map = { type="targets", default={} },
+ deps = { type="targets", default={} },
},
function (e)
- local deps = {}
+ local deps = filenamesof(e.deps)
local commands = {}
local srcs = {}
local outs = {}
},
function (e)
local libs = matching(filenamesof(e.deps), "%.a$")
+ local srcs = {}
if (#e.srcs > 0) then
for _, f in pairs(
matching(
"%.a$"
)
) do
- libs[#libs+1] = f
+ srcs[#srcs+1] = f
end
end
name = e.name,
cwd = e.cwd,
deps = e.deps,
- ins = libs,
+ ins = { srcs, libs },
outleaves = { e.name },
commands = e.commands,
}
#include <stdlib.h>
#include <stdio.h>
+int _errsym;
+int _erlsym;
+
/* error takes an error value in the range of 0-255 */
/* and generates a trap */
error(index)
int index;
{
- extern int _errsym;
- extern int _erlsym;
-
_setline();
if( index<0 || index >40 )
printf("LINE %d:ERROR %d: Unprintable error\n",_erlsym,index);