diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-01-14 16:03:24 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-01-14 16:03:24 -0500 |
commit | 33a6cdb7a7af2e43b3a6a8e055a84f0e5b7f43d3 (patch) | |
tree | b52bdadf5f677d3f581c468c55d82e9f87430fed /maje.h | |
parent | 617dcf1b42fced747fe33ed0756362f827dd4149 (diff) |
use a linked list instead of an array
Diffstat (limited to 'maje.h')
-rw-r--r-- | maje.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |