diff 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
line wrap: on
line diff
--- a/src/view_file.h	Sun Aug 17 09:00:33 2008 +0000
+++ b/src/view_file.h	Sun Aug 17 09:30:45 2008 +0000
@@ -14,11 +14,8 @@
 
 #define VIEW_FILE_TYPES_COUNT 2
 
-#define VFLIST_INFO_POINTER(_vf_) ((ViewFileInfoList *)(_vf_->info))
-#define VFLIST_INFO(_vf_, _part_) (VFLIST_INFO_POINTER(_vf_)->_part_)
-
-#define VFICON_INFO_POINTER(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
-#define VFICON_INFO(_vf_, _part_) (VFICON_INFO_POINTER(_vf_)->_part_)
+#define VFLIST(_vf_) ((ViewFileInfoList *)(_vf_->info))
+#define VFICON(_vf_) ((ViewFileInfoIcon *)(_vf_->info))
 
 void vf_send_update(ViewFile *vf);