comparison src/view_file.h @ 968:065a129fd42b

Simplify things related to ViewFileInfoList * and ViewFileInfoIcon * type casting: - drop VFICON_INFO() and VFLIST_INFO() macros - rename VFLIST_INFO_POINTER() and VFICON_INFO_POINTER() to shorter VFLIST() and VFICON(). - replace all related occurrences by shorter expressions. For example: VFICON_INFO(vf, columns) becomes VFICON(vf)->columns VFLIST_INFO(vf, click_fd) becomes VFLIST(vf)->click_fd
author zas_
date Sun, 17 Aug 2008 09:30:45 +0000
parents ba1d3c4bc0cd
children 1646720364cf
comparison
equal deleted inserted replaced
967:eb5dbdff14f6 968:065a129fd42b
12 #ifndef VIEW_FILE_H 12 #ifndef VIEW_FILE_H
13 #define VIEW_FILE_H 13 #define VIEW_FILE_H
14 14
15 #define VIEW_FILE_TYPES_COUNT 2 15 #define VIEW_FILE_TYPES_COUNT 2
16 16
17 #define VFLIST_INFO_POINTER(_vf_) ((ViewFileInfoList *)(_vf_->info)) 17 #define VFLIST(_vf_) ((ViewFileInfoList *)(_vf_->info))
18 #define VFLIST_INFO(_vf_, _part_) (VFLIST_INFO_POINTER(_vf_)->_part_) 18 #define VFICON(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
19
20 #define VFICON_INFO_POINTER(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
21 #define VFICON_INFO(_vf_, _part_) (VFICON_INFO_POINTER(_vf_)->_part_)
22 19
23 void vf_send_update(ViewFile *vf); 20 void vf_send_update(ViewFile *vf);
24 21
25 ViewFile *vf_new(FileViewType type, FileData *dir_fd); 22 ViewFile *vf_new(FileViewType type, FileData *dir_fd);
26 23