aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-25 19:16:14 -0600
committernytpu <alex@nytpu.com>2021-05-26 14:26:43 -0600
commit8dd8ee5926a40cfe1d1080f47f0a9665bea4b5f7 (patch)
tree29018fbed3ee5ac382824956961abd08bb4e6291 /common.h
parentfix typo in type name (diff)
downloaded-8dd8ee5926a40cfe1d1080f47f0a9665bea4b5f7.tar.bz2
ed-8dd8ee5926a40cfe1d1080f47f0a9665bea4b5f7.zip
add die() and editor_init()
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index 28aa675..e39cdc7 100644
--- a/common.h
+++ b/common.h
@@ -39,4 +39,10 @@ struct Buffer {
extern struct Buffer B;
+// print the current perror then exit failure
+void die(const char *m);
+
+// initialize global struct Buffer to null/zero values
+void editor_init(void);
+
#endif // _COMMON_H