diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 00:18:46 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 00:18:46 -0500 |
commit | 636ea84bc7fa738c179168664ea22118ecc89ab3 (patch) | |
tree | f0e811c08533d21fddaa2d4aaa7193257890e0d4 /ted.c | |
parent | 43b8a9cb106d50265f5a6c1307e77d4642710f07 (diff) |
restructure ted.c, node.c
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,3 +1,5 @@ +#include "ted.h" + // this is a macro so we get -Wformat warnings #define ted_seterr(ted, ...) \ snprintf((ted)->error, sizeof (ted)->error - 1, __VA_ARGS__) @@ -236,8 +238,6 @@ static void ted_load_fonts(Ted *ted) { } -// sets the active buffer to this buffer, and updates active_node, etc. accordingly -// you can pass NULL to buffer to make it so no buffer is active. void ted_switch_to_buffer(Ted *ted, TextBuffer *buffer) { TextBuffer *search_buffer = find_search_buffer(ted); ted->active_buffer = buffer; @@ -340,8 +340,6 @@ static void ted_node_switch(Ted *ted, Node *node) { ted_switch_to_buffer(ted, &ted->buffers[node->tabs[node->active_tab]]); } -static bool node_tab_close(Ted *ted, Node *node, u16 index); - // Open a new buffer. Fills out *tab to the index of the tab used, and *buffer_idx to the index of the buffer. // Returns true on success. static Status ted_open_buffer(Ted *ted, u16 *buffer_idx, u16 *tab) { |