index — thing @ 3632f2243dc8735baee6d124e6611ed043b66cd4

A little something I'm working on

structure: make proper use of headers
crispy-caesus crispy@crispy-caesus.eu
Wed, 12 Aug 2026 20:10:08 +0200
commit

3632f2243dc8735baee6d124e6611ed043b66cd4

parent

41754127326b6a0dedb6cc51ed4276004fb640a5

3 files changed, 7 insertions(+), 4 deletions(-)

jump to
M main.cmain.c

@@ -1,8 +1,8 @@

#include <stdio.h> #include <termios.h> -#include "menu.c" -#include "term.c" +#include "menu.h" +#include "term.h" int main() { uint8_t ret = 0;
M meson.buildmeson.build

@@ -2,6 +2,8 @@ project(

'thing', 'c', default_options : - ['c_std=c99'] + ['c_std=c99', 'W=all'] ) -executable('thing', 'main.c') +term = library('thingterm', 'term.c') +menu = library('thingmenu', 'menu.c') +executable('thing', 'main.c', link_with: [term, menu])
M term.cterm.c

@@ -1,5 +1,6 @@

#include <stdio.h> #include <termios.h> +#include <unistd.h> void setup_term(struct termios *old) { struct termios new;