# # initially generated by c2l # newjob(r: ref Rule, nlist: ref Node, stem: array of byte, match: array of array of byte, pre: ref Word, npre: ref Word, tar: ref Word, atar: ref Word): ref Job { j: ref Job; j = ref Job; j.r = r; j.n = nlist; j.stem = stem; j.match = match; j.p = pre; j.np = npre; j.t = tar; j.at = atar; j.nproc = -1; j.next = nil; return j; } dumpj(s: array of byte, j: ref Job, all: int) { bout.puts(sys->sprint("%s\n", libc0->ab2s(s))); while(j != nil){ bout.puts(sys->sprint("job@%x: r=%x n=%x stem='%s' nproc=%d\n", j, j.r, j.n, libc0->ab2s(j.stem), j.nproc)); bout.puts(sys->sprint("\ttarget='%s' alltarget='%s' prereq='%s' nprereq='%s'\n", wtostr(j.t, ' '), wtostr(j.at, ' '), wtostr(j.p, ' '), wtostr(j.np, ' '))); if(all) j = j.next; else j = nil; } }