diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-28 22:13:51 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-28 22:13:51 -0800 |
| commit | 2aa5f544a7a03c1ad59c70ed149911aa3ece0898 (patch) | |
| tree | 0273c184d85863da1b17bebd286a8b7002ec4ffb /entry.h | |
| parent | 657330ddd6d7a67e16c198b4e9ad2aac239d4799 (diff) | |
Reorganized header files
Diffstat (limited to 'entry.h')
| -rw-r--r-- | entry.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/entry.h b/entry.h deleted file mode 100644 index 0574341..0000000 --- a/entry.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * entry.h - Define types for file entries. - */ -#ifndef FILE_ENTRY__H -#define FILE_ENTRY__H - -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> - -#define IS_SELECTED(p) (((p)->selected.atme) != NULL) -#define IS_VIEWED(p) ((p)->index >= 0) -#define IS_LOADED(p) ((p)->hash.atme != NULL) - -/* entry_t uses intrusive linked lists. This means entries can only belong to - * one list at a time, in this case the list of selected entries. 'atme' is an - * indirect pointer to either the 'next' field of the previous list member, or - * the variable that points to the first list member. In other words, - * item->next->atme == &item->next and firstitem->atme == &firstitem. - */ -typedef struct entry_s { - struct { - struct entry_s *next, **atme; - } selected, hash; - char *name, *linkname; - struct stat info; - mode_t linkedmode; - int no_esc : 1; - int link_no_esc : 1; - int shufflepos; - int index; - char fullname[1]; - // ------- fullname must be last! -------------- - // When entries are allocated, extra space on the end is reserved to fill - // in fullname. -} entry_t; - -#endif |
