diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-09-19 13:55:23 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-10-18 20:09:05 +0200 |
commit | 0f5262917fab34b44b43f63946fdf6bb0621875a (patch) | |
tree | 07e449767f00310ef038d786688f891600a01b4d /Object.h | |
parent | 29346d05616ce69e5988b3f1257c340f91299602 (diff) |
Make all required includes explicit
Information as seen by IWYU 0.12 + clang 9 on Linux
Diffstat (limited to 'Object.h')
-rw-r--r-- | Object.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,10 +9,10 @@ in the source distribution for its full text. */ #include "RichString.h" -#include "Macros.h" -#include "XUtils.h" +#include "XUtils.h" // IWYU pragma: keep +struct Object_; typedef struct Object_ Object; typedef void(*Object_Display)(const Object*, RichString*); @@ -29,7 +29,7 @@ typedef void(*Object_Delete)(Object*); #define Class(class_) ((const ObjectClass*)(&(class_ ## _class))) -#define AllocThis(class_) (class_*) xMalloc(sizeof(class_)); Object_setClass(this, Class(class_)); +#define AllocThis(class_) (class_*) xMalloc(sizeof(class_)); Object_setClass(this, Class(class_)); typedef struct ObjectClass_ { const void* const extends; |