summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-01 12:58:18 +0100
committerMattias Andrée <maandree@kth.se>2022-01-01 12:58:18 +0100
commit8189ba58a436ea0f396a48af48d5ae84f7019cf6 (patch)
tree74369822cf0e39629ac9acf957755460ee2ae58f /common.h
parentFix replacement character insertion for invalid UTF-8 (diff)
downloadmakel-8189ba58a436ea0f396a48af48d5ae84f7019cf6.tar.gz
makel-8189ba58a436ea0f396a48af48d5ae84f7019cf6.tar.bz2
makel-8189ba58a436ea0f396a48af48d5ae84f7019cf6.tar.xz
Move some functions into makefile.c
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index 8dcbdc6..1e42470 100644
--- a/common.h
+++ b/common.h
@@ -60,6 +60,12 @@ extern int exit_status;
extern struct style style;
+/* makefile.c */
+int open_default_makefile(const char **pathp);
+void cmdline_opt_f(const char *arg, const char **makefile_pathp);
+struct line *load_makefile(const char *path, size_t *nlinesp);
+
+
/* text.c */
struct line *load_text_file(int fd, const char *fname, int nest_level, size_t *nlinesp);
void check_utf8_encoding(struct line *line);