organisation des des fichiers

This commit is contained in:
Arthur Barraux
2024-09-23 17:51:59 +02:00
parent ca215da58e
commit c613eb6978
20 changed files with 538 additions and 449 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef DATA_H_
#define DATA_H_
#include <termios.h>
typedef struct erow {
int size;
char *chars;
} erow;
/**
* \struct editorConfig
* \brief Containing our editor state.
*/
struct editorConfig {
int cursor_x, cursor_y;
int row_offset;
int screenrows;
int screencols;
int numrows;
erow *row;
struct termios orig_termios;
};
struct abuf {
char *b;
int len;
};
#endif