From 0f5262917fab34b44b43f63946fdf6bb0621875a Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 19 Sep 2020 13:55:23 +0200 Subject: Make all required includes explicit Information as seen by IWYU 0.12 + clang 9 on Linux --- InfoScreen.h | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'InfoScreen.h') diff --git a/InfoScreen.h b/InfoScreen.h index 79927c47..0d80367d 100644 --- a/InfoScreen.h +++ b/InfoScreen.h @@ -1,12 +1,25 @@ #ifndef HEADER_InfoScreen #define HEADER_InfoScreen +#include + #include "FunctionBar.h" #include "IncSet.h" +#include "Macros.h" +#include "Object.h" #include "Panel.h" #include "Process.h" +#include "Vector.h" + -typedef struct InfoScreen_ InfoScreen; +typedef struct InfoScreen_ { + Object super; + const Process* process; + Panel* display; + FunctionBar* bar; + IncSet* inc; + Vector* lines; +} InfoScreen; typedef void(*InfoScreen_Scan)(InfoScreen*); typedef void(*InfoScreen_Draw)(InfoScreen*); @@ -27,15 +40,6 @@ typedef struct InfoScreenClass_ { #define InfoScreen_onErr(this_) As_InfoScreen(this_)->onErr((InfoScreen*)(this_)) #define InfoScreen_onKey(this_, ch_) As_InfoScreen(this_)->onKey((InfoScreen*)(this_), ch_) -struct InfoScreen_ { - Object super; - const Process* process; - Panel* display; - FunctionBar* bar; - IncSet* inc; - Vector* lines; -}; - InfoScreen* InfoScreen_init(InfoScreen* this, const Process* process, FunctionBar* bar, int height, const char* panelHeader); InfoScreen* InfoScreen_done(InfoScreen* this); -- cgit v1.2.3