/* Main header gets CCAN_FOO_H, others CCAN_FOO_XXX_H */
if (strstarts(e->file->name, m->basename)
|| strlen(e->file->name) == strlen(m->basename) + 2)
- name = talloc_asprintf(score, "CCAN_%s_H", m->basename);
+ name = talloc_asprintf(score, "CCAN_%s_H", m->modname);
else
name = talloc_asprintf(score, "CCAN_%s_%s",
- m->basename, e->file->name);
+ m->modname, e->file->name);
fix_name(name);
q = talloc_asprintf(score,
if (!ask(q))
continue;
- tmpname = maybe_temp_file(score, ".h", false, e->file->name);
+ tmpname = temp_file(score, ".h", e->file->name);
out = fopen(tmpname, "w");
if (!out)
err(1, "Opening %s", tmpname);
}
static void check_idempotent(struct manifest *m,
- bool keep,
unsigned int *timeleft, struct score *score)
{
struct ccan_file *f;