}
static void check_headers_no_cpp(struct manifest *m,
- bool keep,
unsigned int *timeleft, struct score *score)
{
char *contents;
int fd;
struct ccan_file *mainh = main_header(m);
- tmpsrc = maybe_temp_file(m, "-included.c", keep, mainh->fullname);
- tmpobj = maybe_temp_file(m, ".o", keep, tmpsrc);
+ tmpsrc = temp_file(m, "-included.c", mainh->fullname);
+ tmpobj = temp_file(m, ".o", tmpsrc);
/* We don't fail you for this. */
score->pass = true;
"#define using #DONT_USE_CPLUSPLUS_RESERVED_NAMES\n"
"#define virtual #DONT_USE_CPLUSPLUS_RESERVED_NAMES\n"
"#include <ccan/%s/%s.h>\n",
- m->basename, m->basename);
+ m->modname, m->basename);
if (write(fd, contents, strlen(contents)) != strlen(contents))
err(1, "writing to temporary file %s", tmpsrc);
close(fd);