size_t contents_size;
/* Use get_ccan_file_lines / get_ccan_line_info to fill these. */
- unsigned int num_lines;
char **lines;
struct line_info *line_info;
/* Simplified stream (lowercase letters and single spaces) */
char *simplified;
+
+ /* Condition for idempotent wrapper (filled by headers_idempotent) */
+ struct pp_conditions *idempotent_cond;
};
-/* A new ccan_file, with the given name (talloc_steal onto returned value). */
-struct ccan_file *new_ccan_file(const void *ctx, const char *dir, char *name);
+/* A new ccan_file, with the given dir and name (either can be take()). */
+struct ccan_file *new_ccan_file(const void *ctx,
+ const char *dir, const char *name);
/* Use this rather than accessing f->contents directly: loads on demand. */
const char *get_ccan_file_contents(struct ccan_file *f);