Hadeed Ahmad
fc5e50e4db
Doesn't compile yet. Dreading the time when it does and there's an error in the hundreds of lines I changed. For future: commit small changes that can be compiled and tested atomically.
24 lines
425 B
C
24 lines
425 B
C
#ifndef KILO_H
|
|
#define KILO_H
|
|
|
|
#define KILO_TAB_STOP 4
|
|
|
|
#include <termios.h>
|
|
#include <time.h>
|
|
|
|
struct editor_state {
|
|
int screenrows, screencols;
|
|
int quit_times;
|
|
|
|
struct buffer *current_buf;
|
|
struct termios orig_termios;
|
|
|
|
char message[256];
|
|
time_t message_time;
|
|
};
|
|
extern struct editor_state E;
|
|
|
|
void editor_set_message(const char *fmt, ...);
|
|
char *editor_prompt(const char *prompt);
|
|
|
|
#endif // KILO_H
|