commit c430e3a

uint  ·  2026-05-14 08:10:49 +0000 UTC
parent ef8aaa2
move prototypes above globals
1 files changed,  +10, -10
+10, -10
 1@@ -22,6 +22,16 @@
 2 #define START_COLS   80
 3 #define START_ROWS   24
 4 
 5+static void cleanup(void);
 6+static void handle_key(RGFW_event ev);
 7+static void init(void);
 8+static void ptyread(void);
 9+static void ptywrite(const char* s, size_t n);
10+static void resize_pty(void);
11+static int resize_surface(int w, int h);
12+static void resize_terminal(int w, int h);
13+static void run(void);
14+
15 static Fontface font;
16 static Caret car;
17 static RGFW_window* win = NULL;
18@@ -40,16 +50,6 @@ static Term term = {
19 	.bg = 0xff222222,
20 };
21 
22-static void cleanup(void);
23-static void handle_key(RGFW_event ev);
24-static void init(void);
25-static void ptyread(void);
26-static void ptywrite(const char* s, size_t n);
27-static void resize_pty(void);
28-static int resize_surface(int w, int h);
29-static void resize_terminal(int w, int h);
30-static void run(void);
31-
32 /**
33  * @brief release resources, close window (TODO)
34  */