ソースを参照

Rename MAX_BM to BM_MAX

master
Arun Prakash Jana 7年前
コミット
7275d68ab7
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更5行の追加5行の削除
  1. +5
    -5
      nnn.c

+ 5
- 5
nnn.c ファイルの表示

@@ -116,7 +116,7 @@ disabledbg()
#define CURSYM(flag) (flag ? CURSR : EMPTY) #define CURSYM(flag) (flag ? CURSR : EMPTY)
#define FILTER '/' #define FILTER '/'
#define REGEX_MAX 128 #define REGEX_MAX 128
#define MAX_BM 10 #define BM_MAX 10


/* Macros to define process spawn behaviour as flags */ /* Macros to define process spawn behaviour as flags */
#define F_NONE 0x00 /* no flag set */ #define F_NONE 0x00 /* no flag set */
@@ -198,7 +198,7 @@ static blkcnt_t dir_blocks;
static ulong num_files; static ulong num_files;
static size_t fs_free; static size_t fs_free;
static uint open_max; static uint open_max;
static bm bookmark[MAX_BM]; static bm bookmark[BM_MAX];
static const double div_2_pow_10 = 1.0 / 1024.0; static const double div_2_pow_10 = 1.0 / 1024.0;
static uint _WSHIFT = (sizeof(ulong) == 8) ? 3 : 2; static uint _WSHIFT = (sizeof(ulong) == 8) ? 3 : 2;
static uchar color = 4; static uchar color = 4;
@@ -1118,7 +1118,7 @@ parsebmstr(char *bms)
{ {
int i = 0; int i = 0;


while (*bms && i < MAX_BM) { while (*bms && i < BM_MAX) {
bookmark[i].key = bms; bookmark[i].key = bms;


++bms; ++bms;
@@ -1685,7 +1685,7 @@ show_help(char *path)


if (getenv("NNN_BMS")) { if (getenv("NNN_BMS")) {
dprintf(fd, "BOOKMARKS\n"); dprintf(fd, "BOOKMARKS\n");
for (; i < MAX_BM; ++i) for (; i < BM_MAX; ++i)
if (bookmark[i].key) if (bookmark[i].key)
dprintf(fd, " %s: %s\n", dprintf(fd, " %s: %s\n",
bookmark[i].key, bookmark[i].loc); bookmark[i].key, bookmark[i].loc);
@@ -2431,7 +2431,7 @@ nochange:
if (tmp == NULL) if (tmp == NULL)
break; break;


for (r = 0; bookmark[r].key && r < MAX_BM; ++r) { for (r = 0; bookmark[r].key && r < BM_MAX; ++r) {
if (xstrcmp(bookmark[r].key, tmp) == -1) if (xstrcmp(bookmark[r].key, tmp) == -1)
continue; continue;




||||||
x
 
000:0
読み込み中…
キャンセル
保存