diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-09-08 02:37:35 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-09-08 02:37:35 +0000 |
commit | 3af62c5c3b5ff19a6b3a755dfbd25582d87f06b8 (patch) | |
tree | 53b990dcd6157a3baa1bb45bd8c44ea97ad1154c /Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc | |
parent | 2a7c9205d84e2773387667377f42b6e08603879a (diff) |
harfbuzz 2.9.1
git-svn-id: svn://tug.org/texlive/trunk@60451 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc')
-rw-r--r-- | Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc index 25f29c67bf8..204dbb56454 100644 --- a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc +++ b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc @@ -169,7 +169,7 @@ hb_set_get_user_data (hb_set_t *set, hb_bool_t hb_set_allocation_successful (const hb_set_t *set) { - return set->successful; + return !set->in_error (); } /** @@ -201,9 +201,7 @@ hb_set_copy (const hb_set_t *set) void hb_set_clear (hb_set_t *set) { - if (unlikely (hb_object_is_immutable (set))) - return; - + /* Immutible-safe. */ set->clear (); } @@ -254,6 +252,7 @@ void hb_set_add (hb_set_t *set, hb_codepoint_t codepoint) { + /* Immutible-safe. */ set->add (codepoint); } @@ -273,6 +272,7 @@ hb_set_add_range (hb_set_t *set, hb_codepoint_t first, hb_codepoint_t last) { + /* Immutible-safe. */ set->add_range (first, last); } @@ -289,6 +289,7 @@ void hb_set_del (hb_set_t *set, hb_codepoint_t codepoint) { + /* Immutible-safe. */ set->del (codepoint); } @@ -311,6 +312,7 @@ hb_set_del_range (hb_set_t *set, hb_codepoint_t first, hb_codepoint_t last) { + /* Immutible-safe. */ set->del_range (first, last); } @@ -364,6 +366,7 @@ void hb_set_set (hb_set_t *set, const hb_set_t *other) { + /* Immutible-safe. */ set->set (*other); } @@ -380,6 +383,7 @@ void hb_set_union (hb_set_t *set, const hb_set_t *other) { + /* Immutible-safe. */ set->union_ (*other); } @@ -396,6 +400,7 @@ void hb_set_intersect (hb_set_t *set, const hb_set_t *other) { + /* Immutible-safe. */ set->intersect (*other); } @@ -412,6 +417,7 @@ void hb_set_subtract (hb_set_t *set, const hb_set_t *other) { + /* Immutible-safe. */ set->subtract (*other); } @@ -429,25 +435,24 @@ void hb_set_symmetric_difference (hb_set_t *set, const hb_set_t *other) { + /* Immutible-safe. */ set->symmetric_difference (*other); } -#ifndef HB_DISABLE_DEPRECATED /** * hb_set_invert: * @set: A set * * Inverts the contents of @set. * - * Since: 0.9.10 - * - * Deprecated: 1.6.1 + * Since: 3.0.0 **/ void -hb_set_invert (hb_set_t *set HB_UNUSED) +hb_set_invert (hb_set_t *set) { + /* Immutible-safe. */ + set->invert (); } -#endif /** * hb_set_get_population: |