From f66d8e2562ec885c29a578956bf092a1e48cd9da Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Thu, 30 Sep 2021 23:20:00 +0300 Subject: reworked argument parsing and added the tree output option --- system_part.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'system_part.h') diff --git a/system_part.h b/system_part.h index 0cc6139..3949d8b 100644 --- a/system_part.h +++ b/system_part.h @@ -8,16 +8,24 @@ #include #include -extern const char *default_header; -extern const char *default_footer; + +#define NO_TREE_CUTOFF -1 + +extern const char *const default_header; +extern const char *const default_footer; extern struct Volgit_Options { const char *input_path; const char *output_path; + + /*pointers to the actual text from the header and footer files*/ const char *header; const char *footer; + int output_dir_fd; + int tree_cutoff; /*-1 means no cutoff*/ + _Bool output_is_tree_like; }options; void die(const char *format, ...); -- cgit v1.2.3