@img/sharp-libvips-dev 1.0.2 → 1.0.4

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 (118) hide show
  1. package/README.md +1 -2
  2. package/include/aom/aom_decoder.h +1 -1
  3. package/include/aom/aom_encoder.h +7 -1
  4. package/include/aom/aom_image.h +24 -12
  5. package/include/aom/aom_integer.h +3 -3
  6. package/include/aom/aomcx.h +15 -0
  7. package/include/aom/aomdx.h +5 -2
  8. package/include/archive.h +7 -5
  9. package/include/archive_entry.h +5 -3
  10. package/include/cgif.h +3 -0
  11. package/include/freetype2/freetype/config/ftoption.h +1 -1
  12. package/include/fribidi/fribidi-config.h +2 -2
  13. package/include/fribidi/fribidi-unicode-version.h +3 -3
  14. package/include/glib-2.0/gio/gappinfo.h +40 -25
  15. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  16. package/include/glib-2.0/gio/gconverter.h +5 -0
  17. package/include/glib-2.0/gio/gdbusintrospection.h +1 -1
  18. package/include/glib-2.0/gio/gfile.h +16 -0
  19. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  20. package/include/glib-2.0/gio/gsettings.h +8 -0
  21. package/include/glib-2.0/gio/gvfs.h +2 -2
  22. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  23. package/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  24. package/include/glib-2.0/glib/giochannel.h +2 -2
  25. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  26. package/include/glib-2.0/glib/gmacros.h +12 -5
  27. package/include/glib-2.0/glib/gmain.h +93 -7
  28. package/include/glib-2.0/glib/gqsort.h +8 -1
  29. package/include/glib-2.0/glib/gstrfuncs.h +0 -12
  30. package/include/glib-2.0/glib/gstrvbuilder.h +3 -0
  31. package/include/glib-2.0/glib/gunicode.h +1 -1
  32. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  33. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  34. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  35. package/include/glib-2.0/gobject/gtype.h +6 -6
  36. package/include/harfbuzz/hb-buffer.h +6 -0
  37. package/include/harfbuzz/hb-common.h +6 -9
  38. package/include/harfbuzz/hb-cplusplus.hh +8 -11
  39. package/include/harfbuzz/hb-subset.h +17 -4
  40. package/include/harfbuzz/hb-version.h +3 -3
  41. package/include/hwy/abort.h +28 -0
  42. package/include/hwy/aligned_allocator.h +48 -1
  43. package/include/hwy/base.h +235 -34
  44. package/include/hwy/detect_compiler_arch.h +84 -10
  45. package/include/hwy/detect_targets.h +95 -29
  46. package/include/hwy/foreach_target.h +12 -1
  47. package/include/hwy/highway.h +205 -50
  48. package/include/hwy/ops/arm_neon-inl.h +841 -99
  49. package/include/hwy/ops/arm_sve-inl.h +413 -141
  50. package/include/hwy/ops/emu128-inl.h +373 -360
  51. package/include/hwy/ops/generic_ops-inl.h +804 -401
  52. package/include/hwy/ops/inside-inl.h +691 -0
  53. package/include/hwy/ops/ppc_vsx-inl.h +456 -166
  54. package/include/hwy/ops/rvv-inl.h +537 -249
  55. package/include/hwy/ops/scalar-inl.h +169 -79
  56. package/include/hwy/ops/set_macros-inl.h +106 -18
  57. package/include/hwy/ops/shared-inl.h +23 -0
  58. package/include/hwy/ops/wasm_128-inl.h +130 -108
  59. package/include/hwy/ops/x86_128-inl.h +1892 -577
  60. package/include/hwy/ops/x86_256-inl.h +625 -184
  61. package/include/hwy/ops/x86_512-inl.h +733 -131
  62. package/include/hwy/targets.h +22 -21
  63. package/include/hwy/timer-inl.h +3 -3
  64. package/include/hwy/timer.h +5 -1
  65. package/include/libheif/heif.h +170 -15
  66. package/include/libheif/heif_items.h +237 -0
  67. package/include/libheif/heif_properties.h +38 -2
  68. package/include/libheif/heif_regions.h +1 -1
  69. package/include/libheif/heif_version.h +2 -2
  70. package/include/libpng16/pnglibconf.h +1 -1
  71. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
  72. package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
  73. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
  74. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  75. package/include/librsvg-2.0/librsvg/rsvg.h +55 -176
  76. package/include/libxml2/libxml/HTMLparser.h +12 -19
  77. package/include/libxml2/libxml/c14n.h +1 -12
  78. package/include/libxml2/libxml/debugXML.h +1 -1
  79. package/include/libxml2/libxml/encoding.h +9 -0
  80. package/include/libxml2/libxml/entities.h +12 -1
  81. package/include/libxml2/libxml/hash.h +19 -0
  82. package/include/libxml2/libxml/list.h +2 -2
  83. package/include/libxml2/libxml/nanohttp.h +17 -0
  84. package/include/libxml2/libxml/parser.h +61 -55
  85. package/include/libxml2/libxml/parserInternals.h +9 -1
  86. package/include/libxml2/libxml/pattern.h +6 -0
  87. package/include/libxml2/libxml/tree.h +32 -12
  88. package/include/libxml2/libxml/uri.h +11 -0
  89. package/include/libxml2/libxml/valid.h +29 -2
  90. package/include/libxml2/libxml/xinclude.h +7 -0
  91. package/include/libxml2/libxml/xmlIO.h +21 -4
  92. package/include/libxml2/libxml/xmlerror.h +14 -0
  93. package/include/libxml2/libxml/xmlexports.h +111 -15
  94. package/include/libxml2/libxml/xmlmemory.h +8 -45
  95. package/include/libxml2/libxml/xmlreader.h +2 -0
  96. package/include/libxml2/libxml/xmlsave.h +5 -0
  97. package/include/libxml2/libxml/xmlunicode.h +165 -1
  98. package/include/libxml2/libxml/xmlversion.h +15 -179
  99. package/include/libxml2/libxml/xmlwriter.h +1 -0
  100. package/include/libxml2/libxml/xpath.h +4 -0
  101. package/include/pango-1.0/pango/pango-features.h +3 -3
  102. package/include/pango-1.0/pango/pango-item.h +4 -2
  103. package/include/pango-1.0/pango/pango-version-macros.h +25 -0
  104. package/include/pango-1.0/pango/pangofc-font.h +2 -1
  105. package/include/pnglibconf.h +1 -1
  106. package/include/vips/util.h +1 -2
  107. package/include/vips/version.h +4 -4
  108. package/include/webp/decode.h +58 -56
  109. package/include/webp/demux.h +25 -21
  110. package/include/webp/encode.h +44 -39
  111. package/include/webp/mux.h +76 -15
  112. package/include/webp/mux_types.h +2 -1
  113. package/include/webp/sharpyuv/sharpyuv.h +77 -8
  114. package/include/webp/types.h +29 -8
  115. package/include/zconf.h +1 -1
  116. package/include/zlib.h +12 -12
  117. package/package.json +1 -1
  118. package/versions.json +14 -15
@@ -984,3 +984,37 @@
984
984
  #define GLIB_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GLIB_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GLIB_DEPRECATED_IN_2_82 GLIB_DEPRECATED
990
+ #define GLIB_DEPRECATED_IN_2_82_FOR(f) GLIB_DEPRECATED_FOR (f)
991
+ #define GLIB_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GLIB_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GLIB_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GLIB_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GLIB_DEPRECATED_IN_2_82 _GLIB_EXTERN
999
+ #define GLIB_DEPRECATED_IN_2_82_FOR(f) _GLIB_EXTERN
1000
+ #define GLIB_DEPRECATED_MACRO_IN_2_82
1001
+ #define GLIB_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GLIB_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GLIB_DEPRECATED_TYPE_IN_2_82
1005
+ #define GLIB_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GLIB_AVAILABLE_IN_2_82 GLIB_UNAVAILABLE (2, 82)
1010
+ #define GLIB_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GLIB_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GLIB_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GLIB_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GLIB_AVAILABLE_IN_2_82 _GLIB_EXTERN
1016
+ #define GLIB_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GLIB_AVAILABLE_MACRO_IN_2_82
1018
+ #define GLIB_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GLIB_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -861,9 +861,10 @@
861
861
  #define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
862
862
  #define G_STRINGIFY_ARG(contents) #contents
863
863
 
864
- #ifndef __GI_SCANNER__ /* The static assert macro really confuses the introspection parser */
865
864
  #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
866
865
  #define G_PASTE(identifier1,identifier2) G_PASTE_ARGS (identifier1, identifier2)
866
+
867
+ #ifndef __GI_SCANNER__ /* The static assert macro really confuses the introspection parser */
867
868
  #if G_CXX_STD_CHECK_VERSION (11)
868
869
  #define G_STATIC_ASSERT(expr) static_assert (expr, "Expression evaluates to false")
869
870
  #elif (G_C_STD_CHECK_VERSION (11) || \
@@ -877,7 +878,10 @@
877
878
  #endif
878
879
  #endif /* G_CXX_STD_CHECK_VERSION (11) */
879
880
  #define G_STATIC_ASSERT_EXPR(expr) ((void) sizeof (char[(expr) ? 1 : -1]))
880
- #endif /* !__GI_SCANNER__ */
881
+ #else /* __GI_SCANNER__ */
882
+ #define G_STATIC_ASSERT(expr) static int G_PASTE (_GStaticAssertGiScannerNoop, __LINE__) G_GNUC_UNUSED
883
+ #define G_STATIC_ASSERT_EXPR(expr) static int G_PASTE (_GStaticAssertGiScannerNoop, __LINE__) G_GNUC_UNUSED
884
+ #endif /* __GI_SCANNER__ */
881
885
 
882
886
  /* Provide a string identifying the current code position */
883
887
  #if defined (__GNUC__) && (__GNUC__ < 3) && !defined (G_CXX_STD_VERSION)
@@ -1337,6 +1341,7 @@
1337
1341
  /* these macros are private; note that gstdio.h also uses _GLIB_CLEANUP */
1338
1342
  #define _GLIB_AUTOPTR_FUNC_NAME(TypeName) glib_autoptr_cleanup_##TypeName
1339
1343
  #define _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) glib_autoptr_clear_##TypeName
1344
+ #define _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName) glib_autoptr_destroy_##TypeName
1340
1345
  #define _GLIB_AUTOPTR_TYPENAME(TypeName) TypeName##_autoptr
1341
1346
  #define _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) glib_listautoptr_cleanup_##TypeName
1342
1347
  #define _GLIB_AUTOPTR_LIST_TYPENAME(TypeName) TypeName##_listautoptr
@@ -1356,12 +1361,14 @@
1356
1361
  { if (_ptr) (cleanup) ((ParentName *) _ptr); } \
1357
1362
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME(TypeName) (TypeName **_ptr) \
1358
1363
  { _GLIB_AUTOPTR_CLEAR_FUNC_NAME(TypeName) (*_ptr); } \
1364
+ static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName) (void *_ptr) \
1365
+ { (cleanup) ((ParentName *) _ptr); } \
1359
1366
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_LIST_FUNC_NAME(TypeName) (GList **_l) \
1360
- { g_list_free_full (*_l, (GDestroyNotify) (void(*)(void)) cleanup); } \
1367
+ { g_list_free_full (*_l, _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName)); } \
1361
1368
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_SLIST_FUNC_NAME(TypeName) (GSList **_l) \
1362
- { g_slist_free_full (*_l, (GDestroyNotify) (void(*)(void)) cleanup); } \
1369
+ { g_slist_free_full (*_l, _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName)); } \
1363
1370
  static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_QUEUE_FUNC_NAME(TypeName) (GQueue **_q) \
1364
- { if (*_q) g_queue_free_full (*_q, (GDestroyNotify) (void(*)(void)) cleanup); } \
1371
+ { if (*_q) g_queue_free_full (*_q, _GLIB_AUTOPTR_DESTROY_FUNC_NAME(TypeName)); } \
1365
1372
  G_GNUC_END_IGNORE_DEPRECATIONS
1366
1373
  #define _GLIB_DEFINE_AUTOPTR_CHAINUP(ModuleObjName, ParentName) \
1367
1374
  _GLIB_DEFINE_AUTOPTR_CLEANUP_FUNCS(ModuleObjName, ParentName, _GLIB_AUTOPTR_CLEAR_FUNC_NAME(ParentName))
@@ -301,15 +301,101 @@ struct _GSourceCallbackFuncs
301
301
  */
302
302
  typedef void (*GSourceDummyMarshal) (void);
303
303
 
304
+ /**
305
+ * GSourceFuncsPrepareFunc:
306
+ * @source: The #GSource
307
+ * @timeout_: (out) (optional): the maximum timeout (in milliseconds) which should be passed to the poll call
308
+ *
309
+ * Checks the source for readiness.
310
+ *
311
+ * Called before all the file descriptors are polled. If the
312
+ * source can determine that it is ready here (without waiting for the
313
+ * results of the poll call) it should return %TRUE. It can also return
314
+ * a @timeout_ value which should be the maximum timeout (in milliseconds)
315
+ * which should be passed to the poll call. The actual timeout used will
316
+ * be `-1` if all sources returned `-1`, or it will be the minimum of all
317
+ * the @timeout_ values returned which were greater than or equal to `0`.
318
+ * If the prepare function returns a timeout and the source also has a
319
+ * ready time set, then the lower of the two will be used.
320
+ *
321
+ * Since 2.36 this may be `NULL`, in which case the effect is as if the
322
+ * function always returns `FALSE` with a timeout of `-1`.
323
+ *
324
+ * Returns: %TRUE if the source is ready, %FALSE otherwise
325
+ *
326
+ * Since: 2.82
327
+ */
328
+ typedef gboolean (*GSourceFuncsPrepareFunc) (GSource *source,
329
+ gint *timeout_);
330
+
331
+ /**
332
+ * GSourceFuncsCheckFunc:
333
+ * @source: The #GSource
334
+ *
335
+ * Checks if the source is ready to be dispatched.
336
+ *
337
+ * Called after all the file descriptors are polled. The source
338
+ * should return %TRUE if it is ready to be dispatched. Note that some
339
+ * time may have passed since the previous prepare function was called,
340
+ * so the source should be checked again here.
341
+ *
342
+ * Since 2.36 this may be `NULL`, in which case the effect is
343
+ * as if the function always returns `FALSE`.
344
+ *
345
+ * Returns: %TRUE if ready to be dispatched, %FALSE otherwise
346
+ *
347
+ * Since: 2.82
348
+ */
349
+ typedef gboolean (*GSourceFuncsCheckFunc) (GSource *source);
350
+
351
+ /**
352
+ * GSourceFuncsDispatchFunc:
353
+ * @source: The #GSource
354
+ * @callback: (nullable): The #GSourceFunc to call
355
+ * @user_data: (nullable): data to pass to @callback
356
+ *
357
+ * Dispatches the source callback.
358
+ *
359
+ * Called to dispatch the event source, after it has returned
360
+ * `TRUE` in either its prepare or its check function, or if a ready time
361
+ * has been reached. The dispatch function receives a callback function and
362
+ * user data. The callback function may be `NULL` if the source was never
363
+ * connected to a callback using [method@GLib.Source.set_callback]. The dispatch
364
+ * function should call the callback function with @user_data and whatever
365
+ * additional parameters are needed for this type of event source. The
366
+ * return value of the dispatch function should be [const@GLib.SOURCE_REMOVE]
367
+ * if the source should be removed or [const@GLib.SOURCE_CONTINUE] to keep it.
368
+ *
369
+ * Returns: [const@GLib.SOURCE_REMOVE] if the source should be removed,
370
+ * [const@GLib.SOURCE_CONTINUE] otherwise.
371
+ *
372
+ * Since: 2.82
373
+ */
374
+ typedef gboolean (*GSourceFuncsDispatchFunc) (GSource *source,
375
+ GSourceFunc callback,
376
+ gpointer user_data);
377
+
378
+ /**
379
+ * GSourceFuncsFinalizeFunc:
380
+ * @source: The #GSource
381
+ *
382
+ * Finalizes the source.
383
+ *
384
+ * Called when the source is finalized. At this point, the source
385
+ * will have been destroyed, had its callback cleared, and have been removed
386
+ * from its [type@GLib.MainContext], but it will still have its final reference
387
+ * count, so methods can be called on it from within this function.
388
+ *
389
+ * Since: 2.82
390
+ */
391
+ typedef void (*GSourceFuncsFinalizeFunc) (GSource *source);
392
+
304
393
  struct _GSourceFuncs
305
394
  {
306
- gboolean (*prepare) (GSource *source,
307
- gint *timeout_);/* Can be NULL */
308
- gboolean (*check) (GSource *source);/* Can be NULL */
309
- gboolean (*dispatch) (GSource *source,
310
- GSourceFunc callback,
311
- gpointer user_data);
312
- void (*finalize) (GSource *source); /* Can be NULL */
395
+ GSourceFuncsPrepareFunc prepare; /* Can be NULL */
396
+ GSourceFuncsCheckFunc check; /* Can be NULL */
397
+ GSourceFuncsDispatchFunc dispatch;
398
+ GSourceFuncsFinalizeFunc finalize; /* Can be NULL */
313
399
 
314
400
  /*< private >*/
315
401
  /* For use by g_source_set_closure */
@@ -35,13 +35,20 @@
35
35
 
36
36
  G_BEGIN_DECLS
37
37
 
38
- GLIB_AVAILABLE_IN_ALL
38
+ GLIB_DEPRECATED_IN_2_82_FOR(g_sort_array)
39
39
  void g_qsort_with_data (gconstpointer pbase,
40
40
  gint total_elems,
41
41
  gsize size,
42
42
  GCompareDataFunc compare_func,
43
43
  gpointer user_data);
44
44
 
45
+ GLIB_AVAILABLE_IN_2_82
46
+ void g_sort_array (const void *array,
47
+ size_t n_elements,
48
+ size_t element_size,
49
+ GCompareDataFunc compare_func,
50
+ void *user_data);
51
+
45
52
  G_END_DECLS
46
53
 
47
54
  #endif /* __G_QSORT_H__ */
@@ -327,21 +327,9 @@ g_strdup_inline (const char *str)
327
327
  #endif /* !defined (__GTK_DOC_IGNORE__) */
328
328
  #endif /* G_GNUC_CHECK_VERSION (2, 0) */
329
329
 
330
- /* Make a copy of a string interpreting C string -style escape
331
- * sequences. Inverse of g_strescape. The recognized sequences are \b
332
- * \f \n \r \t \\ \" and the octal format.
333
- */
334
330
  GLIB_AVAILABLE_IN_ALL
335
331
  gchar* g_strcompress (const gchar *source) G_GNUC_MALLOC;
336
332
 
337
- /* Copy a string escaping nonprintable characters like in C strings.
338
- * Inverse of g_strcompress. The exceptions parameter, if non-NULL, points
339
- * to a string containing characters that are not to be escaped.
340
- *
341
- * Deprecated API: gchar* g_strescape (const gchar *source);
342
- * Luckily this function wasn't used much, using NULL as second parameter
343
- * provides mostly identical semantics.
344
- */
345
333
  GLIB_AVAILABLE_IN_ALL
346
334
  gchar* g_strescape (const gchar *source,
347
335
  const gchar *exceptions) G_GNUC_MALLOC;
@@ -38,6 +38,9 @@ GStrvBuilder *g_strv_builder_new (void);
38
38
  GLIB_AVAILABLE_IN_2_68
39
39
  void g_strv_builder_unref (GStrvBuilder *builder);
40
40
 
41
+ GLIB_AVAILABLE_IN_2_82
42
+ GStrv g_strv_builder_unref_to_strv (GStrvBuilder *builder);
43
+
41
44
  GLIB_AVAILABLE_IN_2_68
42
45
  GStrvBuilder *g_strv_builder_ref (GStrvBuilder *builder);
43
46
 
@@ -806,7 +806,7 @@ GLIB_VAR const gchar * const g_utf8_skip;
806
806
  * Before using this macro, use g_utf8_validate() to validate strings
807
807
  * that may contain invalid UTF-8.
808
808
  */
809
- #define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(const guchar *)(p)])
809
+ #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
810
810
 
811
811
  GLIB_AVAILABLE_IN_ALL
812
812
  gunichar g_utf8_get_char (const gchar *p) G_GNUC_PURE;
@@ -395,6 +395,15 @@
395
395
  * Since: 2.80
396
396
  */
397
397
  #define GLIB_VERSION_2_80 (G_ENCODE_VERSION (2, 80))
398
+ /**
399
+ * GLIB_VERSION_2_82:
400
+ *
401
+ * A macro that evaluates to the 2.82 version of GLib, in a format
402
+ * that can be used by the C pre-processor.
403
+ *
404
+ * Since: 2.82
405
+ */
406
+ #define GLIB_VERSION_2_82 (G_ENCODE_VERSION (2, 82))
398
407
 
399
408
  /**
400
409
  * GLIB_VERSION_CUR_STABLE:
@@ -984,3 +984,37 @@
984
984
  #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GMODULE_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GMODULE_DEPRECATED_IN_2_82 GMODULE_DEPRECATED
990
+ #define GMODULE_DEPRECATED_IN_2_82_FOR(f) GMODULE_DEPRECATED_FOR (f)
991
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GMODULE_DEPRECATED_IN_2_82 _GMODULE_EXTERN
999
+ #define GMODULE_DEPRECATED_IN_2_82_FOR(f) _GMODULE_EXTERN
1000
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82
1001
+ #define GMODULE_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82
1005
+ #define GMODULE_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GMODULE_AVAILABLE_IN_2_82 GMODULE_UNAVAILABLE (2, 82)
1010
+ #define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GMODULE_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GMODULE_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GMODULE_AVAILABLE_IN_2_82 _GMODULE_EXTERN
1016
+ #define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GMODULE_AVAILABLE_MACRO_IN_2_82
1018
+ #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GMODULE_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -984,3 +984,37 @@
984
984
  #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_80
985
985
  #define GOBJECT_AVAILABLE_TYPE_IN_2_80
986
986
  #endif
987
+
988
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_82
989
+ #define GOBJECT_DEPRECATED_IN_2_82 GOBJECT_DEPRECATED
990
+ #define GOBJECT_DEPRECATED_IN_2_82_FOR(f) GOBJECT_DEPRECATED_FOR (f)
991
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82 GLIB_DEPRECATED_MACRO
992
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
993
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82 GLIB_DEPRECATED_ENUMERATOR
994
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
995
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82 GLIB_DEPRECATED_TYPE
996
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
997
+ #else
998
+ #define GOBJECT_DEPRECATED_IN_2_82 _GOBJECT_EXTERN
999
+ #define GOBJECT_DEPRECATED_IN_2_82_FOR(f) _GOBJECT_EXTERN
1000
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82
1001
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_82_FOR(f)
1002
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82
1003
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_82_FOR(f)
1004
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82
1005
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_82_FOR(f)
1006
+ #endif
1007
+
1008
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_82
1009
+ #define GOBJECT_AVAILABLE_IN_2_82 GOBJECT_UNAVAILABLE (2, 82)
1010
+ #define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_82 GLIB_UNAVAILABLE_STATIC_INLINE (2, 82)
1011
+ #define GOBJECT_AVAILABLE_MACRO_IN_2_82 GLIB_UNAVAILABLE_MACRO (2, 82)
1012
+ #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_82 GLIB_UNAVAILABLE_ENUMERATOR (2, 82)
1013
+ #define GOBJECT_AVAILABLE_TYPE_IN_2_82 GLIB_UNAVAILABLE_TYPE (2, 82)
1014
+ #else
1015
+ #define GOBJECT_AVAILABLE_IN_2_82 _GOBJECT_EXTERN
1016
+ #define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_82
1017
+ #define GOBJECT_AVAILABLE_MACRO_IN_2_82
1018
+ #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_82
1019
+ #define GOBJECT_AVAILABLE_TYPE_IN_2_82
1020
+ #endif
@@ -1095,7 +1095,7 @@ typedef enum /*< skip >*/
1095
1095
  * @base_finalize: Location of the base finalization function (optional)
1096
1096
  * @class_init: Location of the class initialization function for
1097
1097
  * classed and instantiatable types. Location of the default vtable
1098
- * inititalization function for interface types. (optional) This function
1098
+ * initialization function for interface types. (optional) This function
1099
1099
  * is used both to fill in virtual functions in the class or default vtable,
1100
1100
  * and to do type-specific setup such as registering signals and object
1101
1101
  * properties.
@@ -2278,7 +2278,7 @@ static void type_name##_class_intern_init (gpointer klass) \
2278
2278
  #endif /* GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_80 */
2279
2279
 
2280
2280
  /* Added for _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE */
2281
- #define _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name, TYPE_PARENT) \
2281
+ #define _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name) \
2282
2282
  \
2283
2283
  static void type_name##_init (TypeName *self); \
2284
2284
  static void type_name##_class_init (TypeName##Class *klass); \
@@ -2330,12 +2330,12 @@ type_name##_get_type_once (void) \
2330
2330
  return g_define_type_id; \
2331
2331
  } /* closes type_name##_get_type_once() */
2332
2332
 
2333
- /* This was defined before we had G_DEFINE_TYPE_WITH_CODE_AND_PRELUDE, it's simplest
2334
- * to keep it.
2333
+ /* This was defined before we had _G_DEFINE_TYPE_EXTENDED_WITH_PRELUDE in
2334
+ * gtype-private.h, it's simplest to keep it.
2335
2335
  */
2336
2336
  #define _G_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \
2337
- _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE(TypeName, type_name, TYPE_PARENT) \
2338
- _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName, type_name, TYPE_PARENT, flags) \
2337
+ _G_DEFINE_TYPE_EXTENDED_BEGIN_PRE (TypeName, type_name) \
2338
+ _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER (TypeName, type_name, TYPE_PARENT, flags)
2339
2339
 
2340
2340
  /* Intentionally using (GTypeFlags) 0 instead of G_TYPE_FLAG_NONE here,
2341
2341
  * to avoid deprecation warnings with older GLIB_VERSION_MAX_ALLOWED */
@@ -487,6 +487,12 @@ hb_buffer_set_not_found_glyph (hb_buffer_t *buffer,
487
487
  HB_EXTERN hb_codepoint_t
488
488
  hb_buffer_get_not_found_glyph (const hb_buffer_t *buffer);
489
489
 
490
+ HB_EXTERN void
491
+ hb_buffer_set_random_state (hb_buffer_t *buffer,
492
+ unsigned state);
493
+
494
+ HB_EXTERN unsigned
495
+ hb_buffer_get_random_state (const hb_buffer_t *buffer);
490
496
 
491
497
  /*
492
498
  * Content API.
@@ -47,14 +47,10 @@
47
47
  # endif /* !__cplusplus */
48
48
  #endif
49
49
 
50
- #if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || \
51
- defined (_sgi) || defined (__sun) || defined (sun) || \
52
- defined (__digital__) || defined (__HP_cc)
53
- # include <inttypes.h>
54
- #elif defined (_AIX)
50
+ #if defined (_AIX)
55
51
  # include <sys/inttypes.h>
56
52
  #elif defined (_MSC_VER) && _MSC_VER < 1600
57
- /* VS 2010 (_MSC_VER 1600) has stdint.h */
53
+ /* VS 2010 (_MSC_VER 1600) has stdint.h */
58
54
  typedef __int8 int8_t;
59
55
  typedef unsigned __int8 uint8_t;
60
56
  typedef __int16 int16_t;
@@ -63,10 +59,11 @@ typedef __int32 int32_t;
63
59
  typedef unsigned __int32 uint32_t;
64
60
  typedef __int64 int64_t;
65
61
  typedef unsigned __int64 uint64_t;
66
- #elif defined (__KERNEL__)
67
- # include <linux/types.h>
68
- #else
62
+ #elif defined (_MSC_VER) && _MSC_VER < 1800
63
+ /* VS 2013 (_MSC_VER 1800) has inttypes.h */
69
64
  # include <stdint.h>
65
+ #else
66
+ # include <inttypes.h>
70
67
  #endif
71
68
 
72
69
  #if defined(__GNUC__) && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
@@ -27,9 +27,6 @@
27
27
 
28
28
  #include "hb.h"
29
29
 
30
- HB_BEGIN_DECLS
31
- HB_END_DECLS
32
-
33
30
  #ifdef __cplusplus
34
31
 
35
32
  #include <functional>
@@ -56,15 +53,15 @@ struct shared_ptr
56
53
 
57
54
  explicit shared_ptr (T *p = nullptr) : p (p) {}
58
55
  shared_ptr (const shared_ptr &o) : p (v::reference (o.p)) {}
59
- shared_ptr (shared_ptr &&o) : p (o.p) { o.p = nullptr; }
56
+ shared_ptr (shared_ptr &&o) noexcept : p (o.p) { o.p = nullptr; }
60
57
  shared_ptr& operator = (const shared_ptr &o) { if (p != o.p) { destroy (); p = o.p; reference (); } return *this; }
61
- shared_ptr& operator = (shared_ptr &&o) { v::destroy (p); p = o.p; o.p = nullptr; return *this; }
58
+ shared_ptr& operator = (shared_ptr &&o) noexcept { v::destroy (p); p = o.p; o.p = nullptr; return *this; }
62
59
  ~shared_ptr () { v::destroy (p); p = nullptr; }
63
60
 
64
61
  T* get() const { return p; }
65
62
 
66
- void swap (shared_ptr &o) { std::swap (p, o.p); }
67
- friend void swap (shared_ptr &a, shared_ptr &b) { std::swap (a.p, b.p); }
63
+ void swap (shared_ptr &o) noexcept { std::swap (p, o.p); }
64
+ friend void swap (shared_ptr &a, shared_ptr &b) noexcept { std::swap (a.p, b.p); }
68
65
 
69
66
  operator T * () const { return p; }
70
67
  T& operator * () const { return *get (); }
@@ -98,16 +95,16 @@ struct unique_ptr
98
95
 
99
96
  explicit unique_ptr (T *p = nullptr) : p (p) {}
100
97
  unique_ptr (const unique_ptr &o) = delete;
101
- unique_ptr (unique_ptr &&o) : p (o.p) { o.p = nullptr; }
98
+ unique_ptr (unique_ptr &&o) noexcept : p (o.p) { o.p = nullptr; }
102
99
  unique_ptr& operator = (const unique_ptr &o) = delete;
103
- unique_ptr& operator = (unique_ptr &&o) { v::destroy (p); p = o.p; o.p = nullptr; return *this; }
100
+ unique_ptr& operator = (unique_ptr &&o) noexcept { v::destroy (p); p = o.p; o.p = nullptr; return *this; }
104
101
  ~unique_ptr () { v::destroy (p); p = nullptr; }
105
102
 
106
103
  T* get() const { return p; }
107
104
  T* release () { T* v = p; p = nullptr; return v; }
108
105
 
109
- void swap (unique_ptr &o) { std::swap (p, o.p); }
110
- friend void swap (unique_ptr &a, unique_ptr &b) { std::swap (a.p, b.p); }
106
+ void swap (unique_ptr &o) noexcept { std::swap (p, o.p); }
107
+ friend void swap (unique_ptr &a, unique_ptr &b) noexcept { std::swap (a.p, b.p); }
111
108
 
112
109
  operator T * () const { return p; }
113
110
  T& operator * () const { return *get (); }
@@ -73,6 +73,8 @@ typedef struct hb_subset_plan_t hb_subset_plan_t;
73
73
  * OS/2 will not be recalculated.
74
74
  * @HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE: If set don't perform glyph closure on layout
75
75
  * substitution rules (GSUB). Since: 7.2.0.
76
+ * @HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS: If set perform IUP delta optimization on the
77
+ * remaining gvar table's deltas. Since: 8.5.0
76
78
  * @HB_SUBSET_FLAGS_IFTB_REQUIREMENTS: If set enforce requirements on the output subset
77
79
  * to allow it to be used with incremental font transfer IFTB patches. Primarily,
78
80
  * this forces all outline data to use long (32 bit) offsets. Since: EXPERIMENTAL
@@ -93,8 +95,9 @@ typedef enum { /*< flags >*/
93
95
  HB_SUBSET_FLAGS_GLYPH_NAMES = 0x00000080u,
94
96
  HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES = 0x00000100u,
95
97
  HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE = 0x00000200u,
98
+ HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS = 0x00000400u,
96
99
  #ifdef HB_EXPERIMENTAL_API
97
- HB_SUBSET_FLAGS_IFTB_REQUIREMENTS = 0x00000400u,
100
+ HB_SUBSET_FLAGS_IFTB_REQUIREMENTS = 0x00000800u,
98
101
  #endif
99
102
  } hb_subset_flags_t;
100
103
 
@@ -170,6 +173,10 @@ HB_EXTERN void
170
173
  hb_subset_input_set_flags (hb_subset_input_t *input,
171
174
  unsigned value);
172
175
 
176
+ HB_EXTERN hb_bool_t
177
+ hb_subset_input_pin_all_axes_to_default (hb_subset_input_t *input,
178
+ hb_face_t *face);
179
+
173
180
  HB_EXTERN hb_bool_t
174
181
  hb_subset_input_pin_axis_to_default (hb_subset_input_t *input,
175
182
  hb_face_t *face,
@@ -181,15 +188,22 @@ hb_subset_input_pin_axis_location (hb_subset_input_t *input,
181
188
  hb_tag_t axis_tag,
182
189
  float axis_value);
183
190
 
184
- #ifdef HB_EXPERIMENTAL_API
191
+ HB_EXTERN hb_bool_t
192
+ hb_subset_input_get_axis_range (hb_subset_input_t *input,
193
+ hb_tag_t axis_tag,
194
+ float *axis_min_value,
195
+ float *axis_max_value,
196
+ float *axis_def_value);
197
+
185
198
  HB_EXTERN hb_bool_t
186
199
  hb_subset_input_set_axis_range (hb_subset_input_t *input,
187
200
  hb_face_t *face,
188
201
  hb_tag_t axis_tag,
189
202
  float axis_min_value,
190
203
  float axis_max_value,
191
- float *axis_def_value);
204
+ float axis_def_value);
192
205
 
206
+ #ifdef HB_EXPERIMENTAL_API
193
207
  HB_EXTERN hb_bool_t
194
208
  hb_subset_input_override_name_table (hb_subset_input_t *input,
195
209
  hb_ot_name_id_t name_id,
@@ -198,7 +212,6 @@ hb_subset_input_override_name_table (hb_subset_input_t *input,
198
212
  unsigned language_id,
199
213
  const char *name_str,
200
214
  int str_len);
201
-
202
215
  #endif
203
216
 
204
217
  HB_EXTERN hb_face_t *
@@ -41,13 +41,13 @@ HB_BEGIN_DECLS
41
41
  *
42
42
  * The major component of the library version available at compile-time.
43
43
  */
44
- #define HB_VERSION_MAJOR 8
44
+ #define HB_VERSION_MAJOR 9
45
45
  /**
46
46
  * HB_VERSION_MINOR:
47
47
  *
48
48
  * The minor component of the library version available at compile-time.
49
49
  */
50
- #define HB_VERSION_MINOR 3
50
+ #define HB_VERSION_MINOR 0
51
51
  /**
52
52
  * HB_VERSION_MICRO:
53
53
  *
@@ -60,7 +60,7 @@ HB_BEGIN_DECLS
60
60
  *
61
61
  * A string literal containing the library version available at compile-time.
62
62
  */
63
- #define HB_VERSION_STRING "8.3.0"
63
+ #define HB_VERSION_STRING "9.0.0"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
@@ -0,0 +1,28 @@
1
+ // Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // SPDX-License-Identifier: BSD-3-Clause
4
+
5
+ #ifndef HIGHWAY_HWY_ABORT_H_
6
+ #define HIGHWAY_HWY_ABORT_H_
7
+
8
+ #include "hwy/highway_export.h"
9
+
10
+ namespace hwy {
11
+
12
+ // Interface for custom abort handler
13
+ typedef void (*AbortFunc)(const char* file, int line,
14
+ const char* formatted_err);
15
+
16
+ // Retrieve current abort handler
17
+ // Returns null if no abort handler registered, indicating Highway should print and abort
18
+ HWY_DLLEXPORT AbortFunc& GetAbortFunc();
19
+
20
+ // Sets a new abort handler and returns the previous abort handler
21
+ // If this handler does not do the aborting itself Highway will use its own abort mechanism
22
+ // which allows this to be used to customize the handling of the error itself.
23
+ // Returns null if no previous abort handler registered
24
+ HWY_DLLEXPORT AbortFunc SetAbortFunc(AbortFunc func);
25
+
26
+ } // namespace hwy
27
+
28
+ #endif // HIGHWAY_HWY_ABORT_H_