1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-22 02:40:15 -04:00

created dir.c & .h, improved header file handling

This commit is contained in:
nova
2025-08-17 00:54:13 +02:00
parent 9ea82511e6
commit 2af21a0875
14 changed files with 337 additions and 297 deletions

View File

@@ -1,7 +1,10 @@
#ifndef CONFIG_GUARD
#define CONFIG_GUARD
#include "defines.h"
#include "interactions.h"
#include "sorting.h"
#include "interactions.h"
#define SETTINGS_LINE_NUMBERS 2 /* 0 is disabled, 1 is enabled, 2 is relative */
static const mimetype mimetype_default_cmd[] = {
/* mimetype shell command
@@ -90,4 +93,12 @@ static const binding key_binding[] = {
static const unsigned long binding_count = sizeof(key_binding) / sizeof(binding);
static const unsigned long mimetype_default_count = sizeof(mimetype_default_cmd) / sizeof(mimetype);
static const unsigned long file_extension_default_count = sizeof(file_extension_default_cmd) / sizeof(extension);
#else
static const mimetype mimetype_default_cmd[];
static const extension file_extension_default_cmd[];
static const binding key_binding[];
static const unsigned long binding_count;
static const unsigned long mimetype_default_count;
static const unsigned long file_extension_default_count;
#endif