+struct ccan_file *new_ccan_file(const void *ctx, const char *dir, char *name)
+{
+ struct ccan_file *f;
+
+ assert(dir[0] == '/');
+
+ f = talloc(ctx, struct ccan_file);
+ f->lines = NULL;
+ f->line_info = NULL;
+ f->doc_sections = NULL;
+ f->compiled = NULL;
+ f->name = talloc_steal(f, name);
+ f->fullname = talloc_asprintf(f, "%s/%s", dir, f->name);
+ return f;
+}
+