diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-30 13:01:44 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-30 13:01:44 +0530 |
| commit | 1c63c8b794a7bf85acad42637757e6b1e2f10e03 (patch) | |
| tree | a5f26bc36469b8f3340df25f6804c9d751bc0d04 /include | |
| parent | 7e754c2410fed09cfb30bc9a4799829cd804b063 (diff) | |
main: move msg into a separate context, and let main call it
Diffstat (limited to 'include')
| -rw-r--r-- | include/copy.h | 3 | ||||
| -rw-r--r-- | include/engine.h | 2 | ||||
| -rw-r--r-- | include/msg.h (renamed from include/main.h) | 5 | ||||
| -rw-r--r-- | include/template.h | 2 |
4 files changed, 5 insertions, 7 deletions
diff --git a/include/copy.h b/include/copy.h index 2e61f36..050ad80 100644 --- a/include/copy.h +++ b/include/copy.h @@ -16,15 +16,12 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - #ifndef __COPY_H #define __COPY_H #include <ftw.h> #include <sys/stat.h> -#define OUTPUT "dist" - typedef struct FTW FTW; int copy_recursively(const char *fpath, diff --git a/include/engine.h b/include/engine.h index 17b05ea..86aa167 100644 --- a/include/engine.h +++ b/include/engine.h @@ -22,8 +22,6 @@ #include <lexer.h> #include <list.h> -#define PARTIALS "partials" - list_t *engine_ingest(char **buffer); void handle_include(char **buffer, key_match_t *match, directive_t *directive); void handle_contentfor(char **buffer, diff --git a/include/main.h b/include/msg.h index 9ac266f..631c981 100644 --- a/include/main.h +++ b/include/msg.h @@ -21,9 +21,14 @@ #define ASSETS "assets" #define CONFIG_FILE "config.cfg" +#define BASE_TEMPLATE "base.html" +#define OUTPUT "dist" +#define PARTIALS "partials" typedef struct { char *base_directory; } msg_t; +int run(int argc, char **argv); + #endif diff --git a/include/template.h b/include/template.h index 4b656f8..c489e45 100644 --- a/include/template.h +++ b/include/template.h @@ -23,8 +23,6 @@ #include <stdbool.h> #include <stdio.h> -#define BASE_TEMPLATE "base.html" - typedef struct { list_t *components; } template_t; |
