aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-26 12:47:18 -0600
committernytpu <alex@nytpu.com>2021-05-26 14:27:19 -0600
commitee66aa0b6778344c2952a915e0e24eb71f17f092 (patch)
tree04568f2f7d5d264f19a81588b522eaca9973a683 /common.h
parentadd argument parsing (diff)
downloaded-ee66aa0b6778344c2952a915e0e24eb71f17f092.tar.bz2
ed-ee66aa0b6778344c2952a915e0e24eb71f17f092.zip
add global options state and have arguments modify them
Diffstat (limited to 'common.h')
-rw-r--r--common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.h b/common.h
index 0791523..0ac23bf 100644
--- a/common.h
+++ b/common.h
@@ -42,7 +42,15 @@ struct Buffer {
struct Row *rows;
};
+struct Options {
+ bool prompt_enabled;
+ char *prompt;
+ bool quiet;
+ bool verbose;
+};
+
extern struct Buffer B;
+extern struct Options O;
// print the current perror then exit failure
void die(const char *m);