fe
terminal file explorer and picker
git clone https://9o.is/git/fe.git
commit 479ba5841cc02cab5f945c605aabe6552b085327 parent e56ba05aa681cac65ebcdea81c487729b2bb36f3 Author: Jul <jul@9o.is> Date: Sun, 18 Jan 2026 09:54:12 -0500 remove extern C Diffstat:
| M | entries.h | | | 10 | ---------- |
| M | options.h | | | 8 | -------- |
| M | tty.h | | | 8 | -------- |
| M | tty_interface.h | | | 8 | -------- |
4 files changed, 0 insertions(+), 34 deletions(-)
diff --git a/entries.h b/entries.h @@ -6,10 +6,6 @@ #include <sys/types.h> #include "options.h" -#ifdef __cplusplus -extern "C" { -#endif - struct entry { char name[PATH_MAX]; mode_t mode; @@ -39,10 +35,4 @@ int entries_select(entries_t *entries); struct entry *entries_item(entries_t *entries, size_t n); struct entry *entries_selected(entries_t *entries); -#ifdef __cplusplus -} -#endif - #endif - - diff --git a/options.h b/options.h @@ -1,10 +1,6 @@ #ifndef OPTIONS_H #define OPTIONS_H OPTIONS_H -#ifdef __cplusplus -extern "C" { -#endif - typedef struct { unsigned int num_files; const char *tty_filename; @@ -19,8 +15,4 @@ typedef struct { void options_init(options_t *options); void options_parse(options_t *options, int argc, char *argv[]); -#ifdef __cplusplus -} -#endif - #endif diff --git a/tty.h b/tty.h @@ -5,10 +5,6 @@ #include <stdio.h> #include <termios.h> -#ifdef __cplusplus -extern "C" { -#endif - typedef struct { int fdin; FILE *fout; @@ -67,8 +63,4 @@ size_t tty_getheight(tty_t *tty); void tty_hide_cursor(tty_t *tty); void tty_unhide_cursor(tty_t *tty); -#ifdef __cplusplus -} -#endif - #endif diff --git a/tty_interface.h b/tty_interface.h @@ -5,10 +5,6 @@ #include "options.h" #include "tty.h" -#ifdef __cplusplus -extern "C" { -#endif - typedef struct { tty_t *tty; entries_t *entries; @@ -21,8 +17,4 @@ typedef struct { void tty_interface_init(tty_interface_t *state, tty_t *tty, entries_t *entries, options_t *options); int tty_interface_run(tty_interface_t *state); -#ifdef __cplusplus -} -#endif - #endif