Made Editor Config global
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef DATA_H_
|
||||
#define DATA_H_
|
||||
|
||||
#include "../lisp-interpreter/dist/lisp.h"
|
||||
#include <termios.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -35,6 +36,9 @@ struct editorConfig {
|
||||
char status_msg[80];
|
||||
time_t status_msg_time;
|
||||
struct termios orig_termios; /**< Terminal communication interface */
|
||||
LispContext ctx; /** Lisp context */
|
||||
Lisp ctx_data; /** Lisp data context */
|
||||
LispError ctx_error; /** Lisp ctx error */
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -47,4 +51,6 @@ struct abuf {
|
||||
int len; /**< Length of the text */
|
||||
};
|
||||
|
||||
extern struct editorConfig E;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user