mirror of
https://github.com/jarun/nnn.git
synced 2025-01-10 09:59:56 +00:00
Reorder globals
This commit is contained in:
parent
622fcdf9e7
commit
e89da59d91
23
nnn.c
23
nnn.c
|
@ -276,10 +276,21 @@ static blkcnt_t dir_blocks;
|
||||||
static ulong num_files;
|
static ulong num_files;
|
||||||
static uint open_max;
|
static uint open_max;
|
||||||
static bm bookmark[BM_MAX];
|
static bm bookmark[BM_MAX];
|
||||||
|
static size_t g_homelen;
|
||||||
|
static uchar g_crc;
|
||||||
static uchar BLK_SHIFT = 9;
|
static uchar BLK_SHIFT = 9;
|
||||||
|
|
||||||
|
/* CRC data */
|
||||||
static uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned));
|
static uchar crc8table[CRC8_TABLE_LEN] __attribute__ ((aligned));
|
||||||
static uchar g_crc;
|
|
||||||
|
/* For use in functions which are isolated and don't return the buffer */
|
||||||
|
static char g_buf[MAX_CMD_LEN] __attribute__ ((aligned));
|
||||||
|
|
||||||
|
/* Buffer for file path copy file */
|
||||||
|
static char g_cppath[MAX_HOME_LEN] __attribute__ ((aligned));
|
||||||
|
|
||||||
|
/* Buffer to store HOME path, for help and file details */
|
||||||
|
static char g_homepath[MAX_HOME_LEN] __attribute__ ((aligned));
|
||||||
|
|
||||||
#ifdef LINUX_INOTIFY
|
#ifdef LINUX_INOTIFY
|
||||||
static int inotify_fd, inotify_wd = -1;
|
static int inotify_fd, inotify_wd = -1;
|
||||||
|
@ -336,16 +347,6 @@ static const char messages[][16] = {
|
||||||
"%F %T %z",
|
"%F %T %z",
|
||||||
};
|
};
|
||||||
|
|
||||||
/* For use in functions which are isolated and don't return the buffer */
|
|
||||||
static char g_buf[MAX_CMD_LEN] __attribute__ ((aligned));
|
|
||||||
|
|
||||||
/* Buffer for file path copy file */
|
|
||||||
static char g_cppath[MAX_HOME_LEN] __attribute__ ((aligned));
|
|
||||||
|
|
||||||
/* Buffer to store HOME path, for help and file details */
|
|
||||||
static char g_homepath[MAX_HOME_LEN] __attribute__ ((aligned));
|
|
||||||
static size_t g_homelen;
|
|
||||||
|
|
||||||
/* Forward declarations */
|
/* Forward declarations */
|
||||||
static void redraw(char *path);
|
static void redraw(char *path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue