diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2019-06-29 16:40:03 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2019-06-29 16:42:45 +0000 |
commit | e2b00b3f3cb8bd29607cd08265312d2bb79b2d9d (patch) | |
tree | 6ad89f9347e1576d802d1631ec7b8ca1861ba99e /include/dom/core | |
parent | b39698ced94eac2fb4d874ae836484b8ab785883 (diff) | |
download | libdom-e2b00b3f3cb8bd29607cd08265312d2bb79b2d9d.tar.gz libdom-e2b00b3f3cb8bd29607cd08265312d2bb79b2d9d.tar.bz2 |
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.
Diffstat (limited to 'include/dom/core')
-rw-r--r-- | include/dom/core/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |