summaryrefslogtreecommitdiffstats
path: root/Object.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-09-19 13:55:23 +0200
committerBenny Baumann <BenBE@geshi.org>2020-10-18 20:09:05 +0200
commit0f5262917fab34b44b43f63946fdf6bb0621875a (patch)
tree07e449767f00310ef038d786688f891600a01b4d /Object.h
parent29346d05616ce69e5988b3f1257c340f91299602 (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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Object.h b/Object.h
index 6c31fa34..2d3fd3c4 100644
--- a/Object.h
+++ b/Object.h
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy