summaryrefslogtreecommitdiff
path: root/pkg/netsurf/libdom/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-07-21 12:02:12 -0700
committerMichael Forney <mforney@mforney.org>2019-07-29 18:03:01 -0700
commit1a8f020103290f3ff8f412320ce3f97bab80a449 (patch)
treec797697bfead213bbb4e17b47af8f8bc83173880 /pkg/netsurf/libdom/patch
parente2d36d24c19e7439457ce4d9bf6ada6be9a9c129 (diff)
netsurf: Update to 3.9
Diffstat (limited to 'pkg/netsurf/libdom/patch')
-rw-r--r--pkg/netsurf/libdom/patch/0001-Remove-empty-top-level-declarations.patch (renamed from pkg/netsurf/libdom/patch/0002-Remove-empty-top-level-declarations.patch)10
-rw-r--r--pkg/netsurf/libdom/patch/0001-String-remove-innards-from-public-header.patch139
2 files changed, 5 insertions, 144 deletions
diff --git a/pkg/netsurf/libdom/patch/0002-Remove-empty-top-level-declarations.patch b/pkg/netsurf/libdom/patch/0001-Remove-empty-top-level-declarations.patch
index a6ee4733..9c3852a2 100644
--- a/pkg/netsurf/libdom/patch/0002-Remove-empty-top-level-declarations.patch
+++ b/pkg/netsurf/libdom/patch/0001-Remove-empty-top-level-declarations.patch
@@ -1,4 +1,4 @@
-From 60941b7bdcf436b022a23d5f80767c49abb65d72 Mon Sep 17 00:00:00 2001
+From 64cefc96a96ea5cade24179ee17bc3dfb3c90187 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 1 Jul 2019 22:57:10 -0700
Subject: [PATCH] Remove empty top-level declarations
@@ -370,7 +370,7 @@ index 40cb99c..216f7b8 100644
/* Public APIs */
diff --git a/src/html/html_label_element.c b/src/html/html_label_element.c
-index 3864cc4..dbd5428 100644
+index 777144a..9b69c55 100644
--- a/src/html/html_label_element.c
+++ b/src/html/html_label_element.c
@@ -214,6 +214,6 @@ dom_exception dom_html_label_element_set_##attr( \
@@ -434,7 +434,7 @@ index 20cb042..7b9b90f 100644
+SIMPLE_GET_SET(date_time)
diff --git a/src/html/html_object_element.c b/src/html/html_object_element.c
-index e926aef..b145a63 100644
+index b51e3a0..e9f02cb 100644
--- a/src/html/html_object_element.c
+++ b/src/html/html_object_element.c
@@ -187,19 +187,19 @@ dom_exception _dom_html_object_element_copy_internal(
@@ -529,10 +529,10 @@ index cf3e0c5..e42d153 100644
+SIMPLE_GET_SET(cite)
diff --git a/src/html/html_script_element.c b/src/html/html_script_element.c
-index d20d727..8c21cf1 100644
+index e8dfb1d..369cb2a 100644
--- a/src/html/html_script_element.c
+++ b/src/html/html_script_element.c
-@@ -184,11 +184,11 @@ dom_exception dom_html_script_element_set_##attr( \
+@@ -186,11 +186,11 @@ dom_exception dom_html_script_element_set_##attr( \
#define SIMPLE_GET_SET(attr) SIMPLE_GET(attr) SIMPLE_SET(attr)
diff --git a/pkg/netsurf/libdom/patch/0001-String-remove-innards-from-public-header.patch b/pkg/netsurf/libdom/patch/0001-String-remove-innards-from-public-header.patch
deleted file mode 100644
index 8a40e04a..00000000
--- a/pkg/netsurf/libdom/patch/0001-String-remove-innards-from-public-header.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-From 23f34c5aa0b0773bad6c6c41d4f9acc84be09af6 Mon Sep 17 00:00:00 2001
-From: John-Mark Bell <jmb@netsurf-browser.org>
-Date: Sat, 29 Jun 2019 16:40:03 +0000
-Subject: [PATCH] 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 +-
- src/core/string.c | 26 +++++++++++++-------------
- 2 files changed, 14 insertions(+), 14 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 */
-diff --git a/src/core/string.c b/src/core/string.c
-index 1f0fdd5..f140a3a 100644
---- a/src/core/string.c
-+++ b/src/core/string.c
-@@ -56,7 +56,7 @@ static const dom_string_internal empty_string = {
-
- void dom_string_destroy(dom_string *str)
- {
-- dom_string_internal *istr = (dom_string_internal *)str;
-+ dom_string_internal *istr = (void *) str;
- if (str != NULL) {
- assert(istr->base.refcnt == 0);
- switch (istr->type) {
-@@ -175,7 +175,7 @@ dom_exception dom_string_create_interned(const uint8_t *ptr, size_t len,
- dom_exception dom_string_intern(dom_string *str,
- struct lwc_string_s **lwcstr)
- {
-- dom_string_internal *istr = (dom_string_internal *) str;
-+ dom_string_internal *istr = (void *) str;
- /* If this string is already interned, do nothing */
- if (istr->type != DOM_STRING_INTERNED) {
- lwc_string *ret;
-@@ -209,8 +209,8 @@ dom_exception dom_string_intern(dom_string *str,
- bool dom_string_isequal(const dom_string *s1, const dom_string *s2)
- {
- size_t len;
-- const dom_string_internal *is1 = (dom_string_internal *) s1;
-- const dom_string_internal *is2 = (dom_string_internal *) s2;
-+ const dom_string_internal *is1 = (void *) s1;
-+ const dom_string_internal *is2 = (void *) s2;
-
- if (s1 == NULL)
- is1 = &empty_string;
-@@ -258,8 +258,8 @@ bool dom_string_caseless_isequal(const dom_string *s1, const dom_string *s2)
- const uint8_t *d1 = NULL;
- const uint8_t *d2 = NULL;
- size_t len;
-- const dom_string_internal *is1 = (dom_string_internal *) s1;
-- const dom_string_internal *is2 = (dom_string_internal *) s2;
-+ const dom_string_internal *is1 = (void *) s1;
-+ const dom_string_internal *is2 = (void *) s2;
-
- if (s1 == NULL)
- is1 = &empty_string;
-@@ -311,7 +311,7 @@ bool dom_string_caseless_isequal(const dom_string *s1, const dom_string *s2)
- bool dom_string_lwc_isequal(const dom_string *s1, lwc_string *s2)
- {
- size_t len;
-- dom_string_internal *is1 = (dom_string_internal *) s1;
-+ dom_string_internal *is1 = (void *) s1;
-
- if (s1 == NULL || s2 == NULL)
- return false;
-@@ -348,7 +348,7 @@ bool dom_string_caseless_lwc_isequal(const dom_string *s1, lwc_string *s2)
- size_t len;
- const uint8_t *d1 = NULL;
- const uint8_t *d2 = NULL;
-- dom_string_internal *is1 = (dom_string_internal *) s1;
-+ dom_string_internal *is1 = (void *) s1;
-
- if (s1 == NULL || s2 == NULL)
- return false;
-@@ -897,7 +897,7 @@ dom_exception _dom_exception_from_lwc_error(lwc_error err)
- */
- const char *dom_string_data(const dom_string *str)
- {
-- dom_string_internal *istr = (dom_string_internal *) str;
-+ dom_string_internal *istr = (void *) str;
- if (istr->type == DOM_STRING_CDATA) {
- return (const char *) istr->data.cdata.ptr;
- } else {
-@@ -911,7 +911,7 @@ const char *dom_string_data(const dom_string *str)
- */
- size_t dom_string_byte_length(const dom_string *str)
- {
-- dom_string_internal *istr = (dom_string_internal *) str;
-+ dom_string_internal *istr = (void *) str;
- if (istr->type == DOM_STRING_CDATA) {
- return istr->data.cdata.len;
- } else {
-@@ -954,7 +954,7 @@ dom_string_toupper(dom_string *source, bool ascii_only, dom_string **upper)
- index++;
- }
-
-- if (((dom_string_internal*)source)->type == DOM_STRING_CDATA) {
-+ if (((dom_string_internal *) ((void *) source))->type == DOM_STRING_CDATA) {
- exc = dom_string_create(copy_s, nbytes, upper);
- } else {
- exc = dom_string_create_interned(copy_s, nbytes, upper);
-@@ -978,7 +978,7 @@ dom_string_toupper(dom_string *source, bool ascii_only, dom_string **upper)
- dom_exception
- dom_string_tolower(dom_string *source, bool ascii_only, dom_string **lower)
- {
-- dom_string_internal *isource = (dom_string_internal *)source;
-+ dom_string_internal *isource = (void *) source;
- dom_exception exc = DOM_NO_ERR;
-
- if (ascii_only == false)
-@@ -1106,7 +1106,7 @@ dom_exception dom_string_whitespace_op(dom_string *s,
- len = temp_pos - temp;
-
- /* Make new string */
-- if (((dom_string_internal *) s)->type == DOM_STRING_CDATA) {
-+ if (((dom_string_internal *) ((void *) s))->type == DOM_STRING_CDATA) {
- exc = dom_string_create(temp, len, ret);
- } else {
- exc = dom_string_create_interned(temp, len, ret);
---
-2.22.0
-