summaryrefslogtreecommitdiff
path: root/row.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-17 10:39:21 -0700
committercflip <cflip@cflip.net>2023-01-17 10:39:21 -0700
commit1a416a917d74d956469e6e80cf4bb519e9474c91 (patch)
tree6e61b15d9cece1af0a64d3a9cd2a5d5dd73815b7 /row.h
parent8be3915417bcafdbf2a8752980db96e06df096aa (diff)
Rename 'rows' to 'lines' everywhere
For whatever reason lines were called rows in the code, so this refactor changes that name everywhere. The name 'row' is still used in some places to refer to the unit of height in the screen.
Diffstat (limited to 'row.h')
-rw-r--r--row.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/row.h b/row.h
deleted file mode 100644
index e8f6731..0000000
--- a/row.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef _ROW_H
-#define _ROW_H
-
-#include <ctype.h>
-
-#include "editor.h"
-
-#define TAB_WIDTH 4
-
-struct editor_row {
- int index;
- int size;
- char* chars;
- int render_size;
- char* render;
- unsigned char* highlight;
- int highlight_open_comment;
-};
-
-int row_x_to_display_x(struct editor_row* row, int x);
-int row_display_x_to_x(struct editor_row* row, int display_x);
-void update_row(struct editor_state* editor, struct editor_row* row);
-void insert_row(struct editor_state* editor, int at, char* string, size_t length);
-void free_row(struct editor_row* row);
-void delete_row(struct editor_state* editor, int at);
-void row_insert_char(struct editor_state* editor, struct editor_row* row, int at, int c);
-void row_append_string(struct editor_state* editor, struct editor_row* row, char* string, size_t length);
-void row_delete_char(struct editor_state* editor, struct editor_row* row, int at);
-
-#endif