summaryrefslogtreecommitdiff
path: root/maje.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-01-14 16:03:24 -0500
committerJakob Kaivo <jkk@ung.org>2020-01-14 16:03:24 -0500
commit33a6cdb7a7af2e43b3a6a8e055a84f0e5b7f43d3 (patch)
treeb52bdadf5f677d3f581c468c55d82e9f87430fed /maje.h
parent617dcf1b42fced747fe33ed0756362f827dd4149 (diff)
use a linked list instead of an array
Diffstat (limited to 'maje.h')
-rw-r--r--maje.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/maje.h b/maje.h
index e51fe6b..5a3cc89 100644
--- a/maje.h
+++ b/maje.h
@@ -4,12 +4,13 @@
#include <sys/stat.h>
struct majefile {
+ struct majefile *next;
struct stat st;
char path[];
};
-struct majefile **find_source_files(const char *path);
-char *find_main(struct majefile **sources);
-void make_makefile(const char *makefile, struct majefile **sources, const char *target);
+struct majefile *find_source_files(const char *path);
+char *find_main(struct majefile *sources);
+void make_makefile(const char *makefile, struct majefile *sources, const char *target);
#endif