Made Editor Config global

This commit is contained in:
Arthur Barraux
2025-09-19 14:31:12 +02:00
parent 91e247d1de
commit 8ce621dfde
17 changed files with 235 additions and 215 deletions
+6
View File
@@ -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