ソースを参照

Remove obsolete files[].base

master
Bert Münnich 7年前
コミット
30e2356622
2個のファイルの変更0行の追加6行の削除
  1. +0
    -5
      main.c
  2. +0
    -1
      sxiv.h

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

@@ -103,7 +103,6 @@ void cleanup(void)
void check_add_file(char *filename, bool given) void check_add_file(char *filename, bool given)
{ {
char *path; char *path;
const char *bn;


if (*filename == '\0') if (*filename == '\0')
return; return;
@@ -124,10 +123,6 @@ void check_add_file(char *filename, bool given)


files[fileidx].name = estrdup(filename); files[fileidx].name = estrdup(filename);
files[fileidx].path = path; files[fileidx].path = path;
if ((bn = strrchr(files[fileidx].name , '/')) != NULL && bn[1] != '\0')
files[fileidx].base = ++bn;
else
files[fileidx].base = files[fileidx].name;
if (given) if (given)
files[fileidx].flags |= FF_WARN; files[fileidx].flags |= FF_WARN;
fileidx++; fileidx++;


+ 0
- 1
sxiv.h ファイルの表示

@@ -113,7 +113,6 @@ typedef enum {
typedef struct { typedef struct {
const char *name; /* as given by user */ const char *name; /* as given by user */
const char *path; /* always absolute */ const char *path; /* always absolute */
const char *base;
fileflags_t flags; fileflags_t flags;
} fileinfo_t; } fileinfo_t;




読み込み中…
キャンセル
保存