From e2b00b3f3cb8bd29607cd08265312d2bb79b2d9d Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sat, 29 Jun 2019 16:40:03 +0000 Subject: String: remove innards from public header. A dom_string is the first member of the underlying dom_string_internal and thus their addresses are equivalent. We shouldn't be exposing the internal alignment requirements through the public header at all, so remove the bogus _ALIGNED and cast through void internally to tell the compiler that we know what we're doing. --- include/dom/core/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dom/core/string.h') diff --git a/include/dom/core/string.h b/include/dom/core/string.h index f2a6122..4c2da97 100644 --- a/include/dom/core/string.h +++ b/include/dom/core/string.h @@ -18,7 +18,7 @@ typedef struct dom_string dom_string; struct dom_string { uint32_t refcnt; -} _ALIGNED; +}; /* Claim a reference on a DOM string */ -- cgit v1.2.3