@revizly/sharp-libvips-dev 1.0.51 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/include/cairo/cairo-version.h +1 -1
  2. package/include/cairo/cairo.h +1 -1
  3. package/include/expat.h +77 -26
  4. package/include/expat_config.h +3 -7
  5. package/include/expat_external.h +15 -0
  6. package/include/fontconfig/fontconfig.h +1 -1
  7. package/include/fribidi/fribidi-arabic.h +1 -2
  8. package/include/fribidi/fribidi-bidi-types.h +8 -2
  9. package/include/fribidi/fribidi-brackets.h +1 -1
  10. package/include/fribidi/fribidi-char-sets.h +2 -2
  11. package/include/fribidi/fribidi-config.h +2 -2
  12. package/include/fribidi/fribidi-joining-types.h +2 -2
  13. package/include/fribidi/fribidi-unicode-version.h +2 -2
  14. package/include/fribidi/fribidi.h +2 -2
  15. package/include/glib-2.0/glib/gutils.h +1 -1
  16. package/include/harfbuzz/hb-common.h +19 -0
  17. package/include/harfbuzz/hb-draw.h +113 -0
  18. package/include/harfbuzz/hb-paint.h +113 -0
  19. package/include/harfbuzz/hb-script-list.h +10 -0
  20. package/include/harfbuzz/hb-version.h +2 -2
  21. package/include/libheif/heif_context.h +7 -4
  22. package/include/libheif/heif_encoding.h +5 -0
  23. package/include/libheif/heif_error.h +7 -0
  24. package/include/libheif/heif_image.h +19 -0
  25. package/include/libheif/heif_tiling.h +12 -0
  26. package/include/libheif/heif_version.h +2 -2
  27. package/include/libpng16/png.h +7 -7
  28. package/include/libpng16/pngconf.h +1 -1
  29. package/include/libpng16/pnglibconf.h +1 -1
  30. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  31. package/include/librsvg-2.0/librsvg/rsvg.h +4 -3
  32. package/include/png.h +7 -7
  33. package/include/pngconf.h +1 -1
  34. package/include/pnglibconf.h +1 -1
  35. package/include/svt-av1/EbConfigMacros.h +234 -3
  36. package/include/svt-av1/EbDebugMacros.h +8 -2
  37. package/include/svt-av1/EbSvtAv1.h +49 -1
  38. package/include/svt-av1/EbSvtAv1Enc.h +150 -38
  39. package/include/vips/version.h +4 -4
  40. package/package.json +1 -1
  41. package/versions.json +11 -11
@@ -3,6 +3,6 @@
3
3
 
4
4
  #define CAIRO_VERSION_MAJOR 1
5
5
  #define CAIRO_VERSION_MINOR 18
6
- #define CAIRO_VERSION_MICRO 4
6
+ #define CAIRO_VERSION_MICRO 6
7
7
 
8
8
  #endif
@@ -53,7 +53,7 @@
53
53
  #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(CAIRO_WIN32_STATIC_BUILD)
54
54
  # define _cairo_export __declspec(dllexport)
55
55
  # define _cairo_import __declspec(dllimport)
56
- #elif defined(__GNUC__) && (__GNUC__ >= 4)
56
+ #elif defined(__GNUC__)
57
57
  # define _cairo_export __attribute__((__visibility__("default")))
58
58
  # define _cairo_import
59
59
  #else
package/include/expat.h CHANGED
@@ -20,6 +20,7 @@
20
20
  Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
21
21
  Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
22
22
  Copyright (c) 2025 Matthew Fernandez <matthew.fernandez@gmail.com>
23
+ Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
23
24
  Licensed under the MIT license:
24
25
 
25
26
  Permission is hereby granted, free of charge, to any person obtaining
@@ -47,7 +48,7 @@
47
48
  #ifndef Expat_INCLUDED
48
49
  # define Expat_INCLUDED 1
49
50
 
50
- # include <stdint.h> // for uint8_t
51
+ # include <stdint.h> // for int64_t, uint8_t, uint64_t
51
52
  # include <stdlib.h>
52
53
  # include "expat_external.h"
53
54
 
@@ -139,6 +140,26 @@ enum XML_Error {
139
140
  XML_ERROR_NOT_STARTED,
140
141
  };
141
142
 
143
+ /* Added in 2.9.0. */
144
+ enum XML_Prop_Error {
145
+ XML_PROP_ERROR_NONE = 0, // i.e. success
146
+
147
+ XML_PROP_ERROR_INVALID_KEY = 1, // i.e. the property is not known at all
148
+ XML_PROP_ERROR_INVALID_TYPE = 2, // i.e. the property is known but expects a
149
+ // different type (so a different
150
+ // getter/setter would need to be called)
151
+ XML_PROP_ERROR_INVALID_VALUE = 3, // i.e. the value is invalid (with a setter
152
+ // function) or a NULL-pointer (with a
153
+ // getter function)
154
+
155
+ XML_PROP_ERROR_PARSER_NULL = 4, // i.e. the parser argument is NULL
156
+ XML_PROP_ERROR_PARSER_NOT_ROOT = 5, // i.e. the parser is not a root parser
157
+ // but a subparser (and a root parser is
158
+ // needed)
159
+
160
+ /* potentially more error codes upcoming here */
161
+ };
162
+
142
163
  enum XML_Content_Type {
143
164
  XML_CTYPE_EMPTY = 1,
144
165
  XML_CTYPE_ANY,
@@ -756,29 +777,6 @@ XML_GetSpecifiedAttributeCount(XML_Parser parser);
756
777
  XMLPARSEAPI(int)
757
778
  XML_GetIdAttributeIndex(XML_Parser parser);
758
779
 
759
- # ifdef XML_ATTR_INFO
760
- /* Source file byte offsets for the start and end of attribute names and values.
761
- The value indices are exclusive of surrounding quotes; thus in a UTF-8 source
762
- file an attribute value of "blah" will yield:
763
- info->valueEnd - info->valueStart = 4 bytes.
764
- */
765
- typedef struct {
766
- XML_Index nameStart; /* Offset to beginning of the attribute name. */
767
- XML_Index nameEnd; /* Offset after the attribute name's last byte. */
768
- XML_Index valueStart; /* Offset to beginning of the attribute value. */
769
- XML_Index valueEnd; /* Offset after the attribute value's last byte. */
770
- } XML_AttrInfo;
771
-
772
- /* Returns an array of XML_AttrInfo structures for the attribute/value pairs
773
- passed in last call to the XML_StartElementHandler that were specified
774
- in the start-tag rather than defaulted. Each attribute/value pair counts
775
- as 1; thus the number of entries in the array is
776
- XML_GetSpecifiedAttributeCount(parser) / 2.
777
- */
778
- XMLPARSEAPI(const XML_AttrInfo *)
779
- XML_GetAttributeInfo(XML_Parser parser);
780
- # endif
781
-
782
780
  /* Parses some input. Returns XML_STATUS_ERROR if a fatal error is
783
781
  detected. The last call to XML_Parse must have isFinal true; len
784
782
  may be zero for this call (or any other).
@@ -921,7 +919,9 @@ XML_SetParamEntityParsing(XML_Parser parser,
921
919
  Returns 1 if successful, 0 when called after parsing has started.
922
920
  Note: If parser == NULL, the function will do nothing and return 0.
923
921
  DEPRECATED since Expat 2.8.0.
922
+ Please use XML_SetHashSalt16Bytes instead.
924
923
  */
924
+ XML_ATTR_DEPRECATED("please use XML_SetHashSalt16Bytes instead")
925
925
  XMLPARSEAPI(int)
926
926
  XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt);
927
927
 
@@ -961,15 +961,24 @@ XML_GetErrorCode(XML_Parser parser);
961
961
  return 0 to indicate an error.
962
962
  Note: XML_GetCurrentByteIndex returns -1 to indicate an error.
963
963
  */
964
+ XML_ATTR_DEPRECATED("please use XML_GetCurrentLineNumber64 instead")
964
965
  XMLPARSEAPI(XML_Size) XML_GetCurrentLineNumber(XML_Parser parser);
966
+ XMLPARSEAPI(uint64_t) XML_GetCurrentLineNumber64(XML_Parser parser);
967
+ XML_ATTR_DEPRECATED("please use XML_GetCurrentColumnNumber64 instead")
965
968
  XMLPARSEAPI(XML_Size) XML_GetCurrentColumnNumber(XML_Parser parser);
969
+ XMLPARSEAPI(uint64_t) XML_GetCurrentColumnNumber64(XML_Parser parser);
970
+ XML_ATTR_DEPRECATED("please use XML_GetCurrentByteIndex64 instead")
966
971
  XMLPARSEAPI(XML_Index) XML_GetCurrentByteIndex(XML_Parser parser);
972
+ XMLPARSEAPI(int64_t) XML_GetCurrentByteIndex64(XML_Parser parser);
967
973
 
968
974
  /* Return the number of bytes in the current event.
969
975
  Returns 0 if the event is in an internal entity.
970
976
  */
977
+ XML_ATTR_DEPRECATED("please use XML_GetCurrentByteCount64 instead")
971
978
  XMLPARSEAPI(int)
972
979
  XML_GetCurrentByteCount(XML_Parser parser);
980
+ XMLPARSEAPI(uint64_t)
981
+ XML_GetCurrentByteCount64(XML_Parser parser);
973
982
 
974
983
  /* If XML_CONTEXT_BYTES is >=1, returns the input buffer, sets
975
984
  the integer pointed to by offset to the offset within this buffer
@@ -981,8 +990,11 @@ XML_GetCurrentByteCount(XML_Parser parser);
981
990
  NOTE: The character pointer returned should not be used outside
982
991
  the handler that makes the call.
983
992
  */
993
+ XML_ATTR_DEPRECATED("please use XML_GetInputContext64 instead")
984
994
  XMLPARSEAPI(const char *)
985
995
  XML_GetInputContext(XML_Parser parser, int *offset, int *size);
996
+ XMLPARSEAPI(const char *)
997
+ XML_GetInputContext64(XML_Parser parser, int64_t *offset, uint64_t *size);
986
998
 
987
999
  /* For backwards compatibility with previous versions. */
988
1000
  # define XML_GetErrorLineNumber XML_GetCurrentLineNumber
@@ -1037,11 +1049,15 @@ enum XML_FeatureEnum {
1037
1049
  XML_FEATURE_UNICODE_WCHAR_T,
1038
1050
  XML_FEATURE_DTD,
1039
1051
  XML_FEATURE_CONTEXT_BYTES,
1052
+ /* Added in Expat 1.95.5, removed in Expat 2.9.0. */
1040
1053
  XML_FEATURE_MIN_SIZE,
1041
1054
  XML_FEATURE_SIZEOF_XML_CHAR,
1042
1055
  XML_FEATURE_SIZEOF_XML_LCHAR,
1056
+ /* Added in Expat 2.0.0. */
1043
1057
  XML_FEATURE_NS,
1058
+ /* Added in Expat 2.0.1. */
1044
1059
  XML_FEATURE_LARGE_SIZE,
1060
+ /* Added in Expat 2.1.0, removed in Expat 2.9.0. */
1045
1061
  XML_FEATURE_ATTR_INFO,
1046
1062
  /* Added in Expat 2.4.0. */
1047
1063
  XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
@@ -1063,6 +1079,41 @@ typedef struct {
1063
1079
  XMLPARSEAPI(const XML_Feature *)
1064
1080
  XML_GetFeatureList(void);
1065
1081
 
1082
+ /* Added in Expat 2.9.0. */
1083
+ enum XML_Parser_Property {
1084
+ # if defined(XML_TESTING)
1085
+ XML_PROP_INVALID = 0,
1086
+ # endif
1087
+ # if XML_GE == 1
1088
+ XML_PROP_ALLOC_TRACKER_ACTIVATION_THRESHOLD = 1, // of type `uint64_t`
1089
+ XML_PROP_ALLOC_TRACKER_MAXIMUM_AMPLIFICATION = 2, // of type `double`
1090
+ XML_PROP_BILLION_LAUGHS_ACTIVATION_THRESHOLD = 3, // of type `uint64_t`
1091
+ XML_PROP_BILLION_LAUGHS_MAXIMUM_AMPLIFICATION = 4, // of type `double`
1092
+ # endif
1093
+ XML_PROP_REPARSE_DEFERRAL_ENABLED = 5, // of type `XML_Bool`
1094
+ /* more properties upcoming here */
1095
+ };
1096
+
1097
+ /* Added in Expat 2.9.0. */
1098
+ XMLPARSEAPI(enum XML_Prop_Error)
1099
+ XML_GetPropertyBool(XML_Parser parser, enum XML_Parser_Property property,
1100
+ XML_Bool *value);
1101
+ XMLPARSEAPI(enum XML_Prop_Error)
1102
+ XML_GetPropertyDouble(XML_Parser parser, enum XML_Parser_Property property,
1103
+ double *value);
1104
+ XMLPARSEAPI(enum XML_Prop_Error)
1105
+ XML_GetPropertyUInt64(XML_Parser parser, enum XML_Parser_Property property,
1106
+ uint64_t *value);
1107
+ XMLPARSEAPI(enum XML_Prop_Error)
1108
+ XML_SetPropertyBool(XML_Parser parser, enum XML_Parser_Property property,
1109
+ XML_Bool value);
1110
+ XMLPARSEAPI(enum XML_Prop_Error)
1111
+ XML_SetPropertyDouble(XML_Parser parser, enum XML_Parser_Property property,
1112
+ double value);
1113
+ XMLPARSEAPI(enum XML_Prop_Error)
1114
+ XML_SetPropertyUInt64(XML_Parser parser, enum XML_Parser_Property property,
1115
+ uint64_t value);
1116
+
1066
1117
  # if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
1067
1118
  /* Added in Expat 2.4.0 for XML_DTD defined and
1068
1119
  * added in Expat 2.6.0 for XML_GE == 1. */
@@ -1095,8 +1146,8 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1095
1146
  See https://semver.org
1096
1147
  */
1097
1148
  # define XML_MAJOR_VERSION 2
1098
- # define XML_MINOR_VERSION 8
1099
- # define XML_MICRO_VERSION 4
1149
+ # define XML_MINOR_VERSION 9
1150
+ # define XML_MICRO_VERSION 0
1100
1151
 
1101
1152
  # ifdef __cplusplus
1102
1153
  }
@@ -83,7 +83,7 @@
83
83
  #define PACKAGE_NAME "expat"
84
84
 
85
85
  /* Define to the full name and version of this package. */
86
- #define PACKAGE_STRING "expat 2.8.4"
86
+ #define PACKAGE_STRING "expat 2.9.0"
87
87
 
88
88
  /* Define to the one symbol short name of this package. */
89
89
  #define PACKAGE_TARNAME "expat"
@@ -92,7 +92,7 @@
92
92
  #define PACKAGE_URL ""
93
93
 
94
94
  /* Define to the version of this package. */
95
- #define PACKAGE_VERSION "2.8.4"
95
+ #define PACKAGE_VERSION "2.9.0"
96
96
 
97
97
  /* Define to 1 if all of the C89 standard headers exist (not just the ones
98
98
  required in a freestanding environment). This macro is provided for
@@ -100,7 +100,7 @@
100
100
  #define STDC_HEADERS 1
101
101
 
102
102
  /* Version number of package */
103
- #define VERSION "2.8.4"
103
+ #define VERSION "2.9.0"
104
104
 
105
105
  /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
106
106
  significant byte first (like Motorola and SPARC, unlike Intel). */
@@ -114,10 +114,6 @@
114
114
  # endif
115
115
  #endif
116
116
 
117
- /* Define to allow retrieving the byte offsets for attribute names and values.
118
- */
119
- /* #undef XML_ATTR_INFO */
120
-
121
117
  /* Define to specify how much context to retain around the current parse
122
118
  point, 0 to disable. */
123
119
  #define XML_CONTEXT_BYTES 1024
@@ -16,6 +16,7 @@
16
16
  Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
17
17
  Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
18
18
  Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
19
+ Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
19
20
  Licensed under the MIT license:
20
21
 
21
22
  Permission is hereby granted, free of charge, to any person obtaining
@@ -125,6 +126,17 @@
125
126
  # define XML_ATTR_ALLOC_SIZE(x)
126
127
  # endif
127
128
 
129
+ /* Marks a function that Expat still provides but that callers should move off
130
+ of. */
131
+ # if defined(__clang__) || defined(__GNUC__)
132
+ # define XML_ATTR_DEPRECATED(message) \
133
+ __attribute__((__deprecated__(message)))
134
+ # elif defined(_MSC_VER)
135
+ # define XML_ATTR_DEPRECATED(message) __declspec(deprecated(message))
136
+ # else
137
+ # define XML_ATTR_DEPRECATED(message) // empty i.e. no deprecation
138
+ # endif
139
+
128
140
  # define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
129
141
 
130
142
  # ifdef __cplusplus
@@ -154,6 +166,9 @@ typedef char XML_LChar;
154
166
  # endif /* XML_UNICODE */
155
167
 
156
168
  # ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
169
+ # if defined(__clang__) || defined(__GNUC__)
170
+ # warning Macro XML_LARGE_SIZE is deprecated, please use the 64bit location API functions instead.
171
+ # endif
157
172
  typedef long long XML_Index;
158
173
  typedef unsigned long long XML_Size;
159
174
  # else
@@ -72,7 +72,7 @@ typedef int FcBool;
72
72
  #define FC_CACHE_VERSION_NUMBER 12
73
73
  #define FC_CACHE_SNAP_VERSION_NUMBER 0
74
74
  #define FC_NEXT_CACHE_VERSION_NUMBER 0
75
- #define FC_CACHE_MIN_COMPAT_VERSION 9
75
+ #define FC_CACHE_MIN_COMPAT_VERSION 12
76
76
 
77
77
  #define _FC_STRINGIFY_(s) #s
78
78
  #define _FC_STRINGIFY(s) _FC_STRINGIFY_ (s)
@@ -15,8 +15,7 @@
15
15
  * GNU Lesser General Public License for more details.
16
16
  *
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
- * along with GNU FriBidi; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ * along with GNU FriBidi; if not, see: <https://www.gnu.org/licenses/>.
20
19
  *
21
20
  * For licensing issues, contact <fribidi.license@gmail.com> or write to
22
21
  * Sharif FarsiWeb, Inc., PO Box 13445-389, Tehran, Iran.
@@ -235,6 +235,12 @@ typedef uint32_t FriBidiParType;
235
235
  # define FRIBIDI_PAR_WLTR FRIBIDI_TYPE_WLTR_VAL
236
236
  # define FRIBIDI_PAR_WRTL FRIBIDI_TYPE_WRTL_VAL
237
237
 
238
+ /* _FRIBIDI_TYPE_SENTINEL and _FRIBIDI_PAR_SENTINEL must be defined in
239
+ * both branches of this #if, so that code using them (e.g. Pango's
240
+ * pango-bidi-type.c) compiles regardless of which branch was taken. */
241
+ # define _FRIBIDI_TYPE_SENTINEL FRIBIDI_TYPE_SENTINEL
242
+ # define _FRIBIDI_PAR_SENTINEL FRIBIDI_TYPE_SENTINEL
243
+
238
244
  #endif
239
245
 
240
246
  /* Please don't use these two type names, use FRIBIDI_PAR_* form instead. */
@@ -371,9 +377,9 @@ fribidi_get_bidi_type (
371
377
  FriBidiChar ch /* input character */
372
378
  ) FRIBIDI_GNUC_CONST;
373
379
 
374
- /* fribidi_get_bidi_types - get bidi types for an string of characters
380
+ /* fribidi_get_bidi_types - get bidi types for a string of characters
375
381
  *
376
- * This function finds the bidi types of an string of characters. See
382
+ * This function finds the bidi types of a string of characters. See
377
383
  * fribidi_get_bidi_type() for more information about the bidi types returned
378
384
  * by this function.
379
385
  */
@@ -58,7 +58,7 @@ FRIBIDI_ENTRY FriBidiBracketType fribidi_get_bracket (
58
58
 
59
59
  /* fribidi_get_bracket_types - get bracketed characters
60
60
  *
61
- * This function finds the bracketed characters of an string of characters.
61
+ * This function finds the bracketed characters of a string of characters.
62
62
  * See fribidi_get_bracket() for more information about the bracketed
63
63
  * characters returned by this function.
64
64
  */
@@ -51,7 +51,7 @@ FriBidiCharSet;
51
51
 
52
52
  /* fribidi_charset_to_unicode - convert string to Unicode
53
53
  *
54
- * This function converts an string from a character set, to a Unicode string.
54
+ * This function converts a string from a character set, to a Unicode string.
55
55
  *
56
56
  * Returns: The length of the new string.
57
57
  */
@@ -64,7 +64,7 @@ FRIBIDI_ENTRY FriBidiStrIndex fribidi_charset_to_unicode (
64
64
 
65
65
  /* fribidi_unicode_to_charset - convert string from Unicode
66
66
  *
67
- * This function converts a Unicode string to an string in another character
67
+ * This function converts a Unicode string to a string in another character
68
68
  * set. It also null-terminates the output string.
69
69
  *
70
70
  * Returns: The length of the new string.
@@ -7,10 +7,10 @@
7
7
  #define FRIBIDI_NAME "GNU FriBidi"
8
8
  #define FRIBIDI_BUGREPORT "https://github.com/fribidi/fribidi/issues/new"
9
9
 
10
- #define FRIBIDI_VERSION "1.0.16"
10
+ #define FRIBIDI_VERSION "1.0.17"
11
11
  #define FRIBIDI_MAJOR_VERSION 1
12
12
  #define FRIBIDI_MINOR_VERSION 0
13
- #define FRIBIDI_MICRO_VERSION 16
13
+ #define FRIBIDI_MICRO_VERSION 17
14
14
  #define FRIBIDI_INTERFACE_VERSION 4
15
15
  #define FRIBIDI_INTERFACE_VERSION_STRING "4"
16
16
 
@@ -216,9 +216,9 @@ fribidi_get_joining_type (
216
216
  FriBidiChar ch /* input character */
217
217
  ) FRIBIDI_GNUC_CONST;
218
218
 
219
- /* fribidi_get_joining_types - get joining types for an string of characters
219
+ /* fribidi_get_joining_types - get joining types for a string of characters
220
220
  *
221
- * This function finds the joining types of an string of characters. See
221
+ * This function finds the joining types of a string of characters. See
222
222
  * fribidi_get_joining_type for more information about the joining types
223
223
  * returned by this function.
224
224
  */
@@ -2,8 +2,8 @@
2
2
  * generated by gen-unicode-version (fribidi unknown)
3
3
  * from the file ReadMe.txt */
4
4
 
5
- #define FRIBIDI_UNICODE_VERSION "16.0.0"
6
- #define FRIBIDI_UNICODE_MAJOR_VERSION 16
5
+ #define FRIBIDI_UNICODE_VERSION "18.0.0"
6
+ #define FRIBIDI_UNICODE_MAJOR_VERSION 18
7
7
  #define FRIBIDI_UNICODE_MINOR_VERSION 0
8
8
  #define FRIBIDI_UNICODE_MICRO_VERSION 0
9
9
 
@@ -43,9 +43,9 @@
43
43
 
44
44
  #include "fribidi-begindecls.h"
45
45
 
46
- /* fribidi_remove_bidi_marks - remove bidi marks out of an string
46
+ /* fribidi_remove_bidi_marks - remove bidi marks out of a string
47
47
  *
48
- * This function removes the bidi and boundary-neutral marks out of an string
48
+ * This function removes the bidi and boundary-neutral marks out of a string
49
49
  * and the accompanying lists. It implements rule X9 of the Unicode
50
50
  * Bidirectional Algorithm available at
51
51
  * http://www.unicode.org/reports/tr9/#X9, with the exception that it removes
@@ -255,7 +255,7 @@ typedef enum {
255
255
  *
256
256
  * Since: 2.90
257
257
  */
258
- G_USER_DIRECTORY_PROJECTS,
258
+ G_USER_DIRECTORY_PROJECTS GLIB_AVAILABLE_ENUMERATOR_IN_2_90,
259
259
 
260
260
  G_USER_N_DIRECTORIES
261
261
  } GUserDirectory;
@@ -94,6 +94,25 @@ HB_BEGIN_DECLS
94
94
  **/
95
95
  typedef int hb_bool_t;
96
96
 
97
+ /**
98
+ * HB_BUDGET_DEFAULT:
99
+ *
100
+ * Use the implementation's finite default work budget.
101
+ *
102
+ * Since: 14.5.0
103
+ **/
104
+ #define HB_BUDGET_DEFAULT ((int64_t) (-0x7FFFFFFFFFFFFFFF - 1))
105
+
106
+ /**
107
+ * HB_BUDGET_UNLIMITED:
108
+ *
109
+ * Use an effectively unlimited work budget. Structural safety limits remain
110
+ * active.
111
+ *
112
+ * Since: 14.5.0
113
+ **/
114
+ #define HB_BUDGET_UNLIMITED ((int64_t) 0x7FFFFFFFFFFFFFFF)
115
+
97
116
  /**
98
117
  * hb_codepoint_t:
99
118
  *
@@ -195,6 +195,61 @@ typedef void (*hb_draw_close_path_func_t) (hb_draw_funcs_t *dfuncs, void *draw_d
195
195
  hb_draw_state_t *st,
196
196
  void *user_data);
197
197
 
198
+ /**
199
+ * hb_draw_set_budget_func_t:
200
+ * @dfuncs: draw functions object
201
+ * @draw_data: The data accompanying the draw functions
202
+ * @budget: the new work-budget policy
203
+ * @user_data: User data pointer passed to hb_draw_funcs_set_set_budget_func()
204
+ *
205
+ * Sets the work-budget policy and recharges the live work budget. @budget is
206
+ * #HB_BUDGET_DEFAULT, #HB_BUDGET_UNLIMITED, or a non-negative concrete value.
207
+ *
208
+ * Return value: `true` if the budget was set, `false` if unsupported
209
+ *
210
+ * Since: 14.5.0
211
+ **/
212
+ typedef hb_bool_t (*hb_draw_set_budget_func_t) (hb_draw_funcs_t *dfuncs,
213
+ void *draw_data,
214
+ int64_t budget,
215
+ void *user_data);
216
+
217
+ /**
218
+ * hb_draw_get_budget_func_t:
219
+ * @dfuncs: draw functions object
220
+ * @draw_data: The data accompanying the draw functions
221
+ * @user_data: User data pointer passed to hb_draw_funcs_set_get_budget_func()
222
+ *
223
+ * Fetches the configured work-budget policy.
224
+ *
225
+ * Return value: the configured work-budget policy
226
+ *
227
+ * Since: 14.5.0
228
+ **/
229
+ typedef int64_t (*hb_draw_get_budget_func_t) (hb_draw_funcs_t *dfuncs,
230
+ void *draw_data,
231
+ void *user_data);
232
+
233
+ /**
234
+ * hb_draw_get_budget_remaining_func_t:
235
+ * @dfuncs: draw functions object
236
+ * @draw_data: The data accompanying the draw functions
237
+ * @user_data: User data pointer passed to
238
+ * hb_draw_funcs_set_get_budget_remaining_func()
239
+ *
240
+ * Fetches the address of the live work budget. The returned address must stay
241
+ * valid while @draw_data is used with @dfuncs. The live value must be concrete;
242
+ * it must not contain #HB_BUDGET_DEFAULT.
243
+ *
244
+ * Return value: (nullable) (transfer none): the live work budget, or `NULL` if
245
+ * live budget accounting is unsupported
246
+ *
247
+ * Since: 14.5.0
248
+ **/
249
+ typedef int64_t *(*hb_draw_get_budget_remaining_func_t) (hb_draw_funcs_t *dfuncs,
250
+ void *draw_data,
251
+ void *user_data);
252
+
198
253
  /**
199
254
  * hb_draw_funcs_set_move_to_func:
200
255
  * @dfuncs: draw functions object
@@ -275,6 +330,54 @@ hb_draw_funcs_set_close_path_func (hb_draw_funcs_t *dfuncs,
275
330
  hb_draw_close_path_func_t func,
276
331
  void *user_data, hb_destroy_func_t destroy);
277
332
 
333
+ /**
334
+ * hb_draw_funcs_set_set_budget_func:
335
+ * @dfuncs: draw functions object
336
+ * @func: (closure user_data) (destroy destroy) (scope notified): budget setter
337
+ * @user_data: Data to pass to @func
338
+ * @destroy: (nullable): callback to destroy @user_data
339
+ *
340
+ * Sets the budget setter callback.
341
+ *
342
+ * Since: 14.5.0
343
+ **/
344
+ HB_EXTERN void
345
+ hb_draw_funcs_set_set_budget_func (hb_draw_funcs_t *dfuncs,
346
+ hb_draw_set_budget_func_t func,
347
+ void *user_data, hb_destroy_func_t destroy);
348
+
349
+ /**
350
+ * hb_draw_funcs_set_get_budget_func:
351
+ * @dfuncs: draw functions object
352
+ * @func: (closure user_data) (destroy destroy) (scope notified): budget getter
353
+ * @user_data: Data to pass to @func
354
+ * @destroy: (nullable): callback to destroy @user_data
355
+ *
356
+ * Sets the budget-policy getter callback.
357
+ *
358
+ * Since: 14.5.0
359
+ **/
360
+ HB_EXTERN void
361
+ hb_draw_funcs_set_get_budget_func (hb_draw_funcs_t *dfuncs,
362
+ hb_draw_get_budget_func_t func,
363
+ void *user_data, hb_destroy_func_t destroy);
364
+
365
+ /**
366
+ * hb_draw_funcs_set_get_budget_remaining_func:
367
+ * @dfuncs: draw functions object
368
+ * @func: (closure user_data) (destroy destroy) (scope notified): live-budget getter
369
+ * @user_data: Data to pass to @func
370
+ * @destroy: (nullable): callback to destroy @user_data
371
+ *
372
+ * Sets the live-budget getter callback.
373
+ *
374
+ * Since: 14.5.0
375
+ **/
376
+ HB_EXTERN void
377
+ hb_draw_funcs_set_get_budget_remaining_func (hb_draw_funcs_t *dfuncs,
378
+ hb_draw_get_budget_remaining_func_t func,
379
+ void *user_data, hb_destroy_func_t destroy);
380
+
278
381
 
279
382
  HB_EXTERN hb_draw_funcs_t *
280
383
  hb_draw_funcs_create (void);
@@ -306,6 +409,16 @@ hb_draw_funcs_make_immutable (hb_draw_funcs_t *dfuncs);
306
409
  HB_EXTERN hb_bool_t
307
410
  hb_draw_funcs_is_immutable (hb_draw_funcs_t *dfuncs);
308
411
 
412
+ HB_EXTERN hb_bool_t
413
+ hb_draw_set_budget (hb_draw_funcs_t *dfuncs, void *draw_data,
414
+ int64_t budget);
415
+
416
+ HB_EXTERN int64_t
417
+ hb_draw_get_budget (hb_draw_funcs_t *dfuncs, void *draw_data);
418
+
419
+ HB_EXTERN int64_t
420
+ hb_draw_get_budget_remaining (hb_draw_funcs_t *dfuncs, void *draw_data);
421
+
309
422
 
310
423
  HB_EXTERN void
311
424
  hb_draw_move_to (hb_draw_funcs_t *dfuncs, void *draw_data,